query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
d452b67fe9d7fdecab2b97ded61f5e40
string associated_source = 7;
[ { "docid": "5d861498fcc94fb38b566cf728bd0330", "score": "0.5635104", "text": "public Builder setAssociatedSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n associatedSource_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "4e6e2337749a149da24bf4124dee4d1b", "score": "0.6728411", "text": "java.lang.String getAssociatedSource();", "title": "" }, { "docid": "7e4699c1455b51d758b12b0d71f9deea", "score": "0.6266357", "text": "String getSourceID();", "title": "" }, { "docid": "6359125401b6d9210a2c405c41c88f67", "score": "0.61129624", "text": "String getSourceVariablePart();", "title": "" }, { "docid": "9a35ca1da56ba0af0041e0acbad9613a", "score": "0.6090775", "text": "@java.lang.Override\n public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\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 associatedSource_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "8f717256f5d5c13c02db5426311c6d01", "score": "0.60861206", "text": "String getSourceString();", "title": "" }, { "docid": "9d75055026cb1b030b9a21d9aef68380", "score": "0.6064053", "text": "public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\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 associatedSource_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "c6412c06f1d337552e4e21d6c03f5b71", "score": "0.5931872", "text": "java.lang.String getSource();", "title": "" }, { "docid": "c6412c06f1d337552e4e21d6c03f5b71", "score": "0.5931872", "text": "java.lang.String getSource();", "title": "" }, { "docid": "18921a7089a9b0f4e78108eb142059e3", "score": "0.5924769", "text": "Variable getSourceVariable();", "title": "" }, { "docid": "cdc505882528d98f0c52cc575b2ad62a", "score": "0.59146035", "text": "public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }", "title": "" }, { "docid": "22aeddc6709beedc0b2b61827be084ea", "score": "0.5848164", "text": "@VTID(27)\n java.lang.String getSourceName();", "title": "" }, { "docid": "bda24b63d398c8f2e405763c0bf54bde", "score": "0.5845709", "text": "String getSource();", "title": "" }, { "docid": "6482f6aa05a6d2518931f86097a4909c", "score": "0.57609344", "text": "public abstract String getSource();", "title": "" }, { "docid": "303908899793e7b6ec4d3a8be7c201a2", "score": "0.5756181", "text": "public void setSource (String source);", "title": "" }, { "docid": "97e6d98de342dd96b08737f7de7c4ffe", "score": "0.571882", "text": "public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }", "title": "" }, { "docid": "fdc228fa34e2928a0804c8a6d16b3e6e", "score": "0.56474525", "text": "public String getSource ();", "title": "" }, { "docid": "f8b61515d0c3060feb605b490f3d8bd8", "score": "0.5605162", "text": "public void setSource(String source);", "title": "" }, { "docid": "beb55b0e434da425e49ceb48fa833f77", "score": "0.5563845", "text": "public com.google.protobuf.ByteString\n getAssociatedSourceBytes() {\n java.lang.Object ref = associatedSource_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n associatedSource_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "b2963dff8615256f597871d80426e221", "score": "0.5551059", "text": "public String toString()\n\t{return getClass().getName()+\"[source=\"+source+\",id=\"+id+']';}", "title": "" }, { "docid": "431cb3af9b3db98500bd5e3128453c41", "score": "0.55352", "text": "public String getSource();", "title": "" }, { "docid": "069e24717e72272f18b92c0341b5b565", "score": "0.5527724", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getAssociatedSourceBytes() {\n java.lang.Object ref = associatedSource_;\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 associatedSource_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "e7b5f467ca53e4c73a236f4a48f638d5", "score": "0.5480857", "text": "public void setSource(String source) {\r\n this.source = source;\r\n }", "title": "" }, { "docid": "afa0ae6b79a0de58a2173c004e9b7871", "score": "0.5473611", "text": "String getTargetVariablePart();", "title": "" }, { "docid": "76831f14c445e99f53dda92293868970", "score": "0.54575336", "text": "public String addAutoTestTag(String source)\n\t{\n\t\treturn source;\n\t}", "title": "" }, { "docid": "4f89fdceb660f764596752a038361578", "score": "0.54563445", "text": "public String get_source() {\n\t\treturn source;\n\t}", "title": "" }, { "docid": "726c8fd8a5a91b69f4f5fcb203344a6a", "score": "0.5407691", "text": "public int getSource(){\r\n\t\treturn this.source;\r\n\t}", "title": "" }, { "docid": "514e7bacae7e43e8660161d0da472c7d", "score": "0.54023916", "text": "public void setSource(String source) {\n this.source = source;\n }", "title": "" }, { "docid": "514e7bacae7e43e8660161d0da472c7d", "score": "0.54023916", "text": "public void setSource(String source) {\n this.source = source;\n }", "title": "" }, { "docid": "ba8650c948a7f202c699d3a997341d6c", "score": "0.5396376", "text": "public String method_110() {\r\n String[] var10000 = field_5917;\r\n return \"FlatLevelSource\";\r\n }", "title": "" }, { "docid": "169792100bba4db5b93f54d014d3103d", "score": "0.53702813", "text": "public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}", "title": "" }, { "docid": "f3e2786274eb010f93f028da32f116a9", "score": "0.53660196", "text": "int getAnnotationSourceValue();", "title": "" }, { "docid": "d91fd23965719bcb6d4ed1e374d30b97", "score": "0.53648436", "text": "public final String getTargetString() {\n/* 97 */ return this.m_targetString;\n/* */ }", "title": "" }, { "docid": "5c1eea73148674308d81c33576c7d2b6", "score": "0.5336685", "text": "int getSourceSnId();", "title": "" }, { "docid": "780ca979596b121477f0b59c401ffd6e", "score": "0.5334281", "text": "@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}", "title": "" }, { "docid": "04c9cc593362b3c2f3ecaa8b4041bdb3", "score": "0.53264356", "text": "public void setSource(String source) {\n _source = source;\n }", "title": "" }, { "docid": "12d00fc3876598be1ed525677e84f72a", "score": "0.53153956", "text": "int getNameSourceStart();", "title": "" }, { "docid": "793de9061621cb122188dc54730f401a", "score": "0.5304148", "text": "java.lang.String getTarget();", "title": "" }, { "docid": "793de9061621cb122188dc54730f401a", "score": "0.5304148", "text": "java.lang.String getTarget();", "title": "" }, { "docid": "f6e5a0b79e3e321aef6ac3329e851de9", "score": "0.5299361", "text": "public String makeString()\n {\n return \"ArcanaDungeonSource\";\n }", "title": "" }, { "docid": "ff13b3fff7c6fb60cc74972200694709", "score": "0.5279386", "text": "public String getSource() {\n return source;\n }", "title": "" }, { "docid": "a36bbbcffb1b318e075f0da4829bbb04", "score": "0.52745944", "text": "@Override\n\tpublic String getId()\n\t{\n\t\treturn source.getId();\n\t}", "title": "" }, { "docid": "f148646878340ec9e78b6f7884aae71d", "score": "0.52742994", "text": "public void setSourceId(String source) {\n this.sourceId = sourceId;\n }", "title": "" }, { "docid": "dcacdeb226892423c1818b1eb48b03e7", "score": "0.5269483", "text": "public long getSource()\r\n { return src; }", "title": "" }, { "docid": "a3ed5c8d2b77b45de1d148f5abf29d12", "score": "0.52462023", "text": "@java.lang.Override\n public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "264f6f4e23cdd4c95a0990ae5db228be", "score": "0.5243931", "text": "public int getSource() {\n\t\treturn source;\n\t}", "title": "" }, { "docid": "f693234301893d026d88a1f8239ba958", "score": "0.5243859", "text": "public String makeString()\n\t{\n\t\treturn \"RandomLevelSource\";\n\t}", "title": "" }, { "docid": "052fe805eefb3f69f1e57724f390a0c3", "score": "0.52432007", "text": "public String makeString()\n {\n return \"RandomLevelSource\";\n }", "title": "" }, { "docid": "2c9d5ad3260e266da5ee3069f527d5f5", "score": "0.52390885", "text": "String getDest_id();", "title": "" }, { "docid": "b0c0b2aff63492968ee88209f5aa30d3", "score": "0.5232101", "text": "public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}", "title": "" }, { "docid": "622ca9365685d69b0919a734b3e13bf1", "score": "0.5230525", "text": "Type getSource();", "title": "" }, { "docid": "35719e0d8a9f07233e6449be05aa7667", "score": "0.52206933", "text": "@Override\n public String getName() {\n return source.getName();\n }", "title": "" }, { "docid": "ce1ee0c7cf1accbf75eb1080535574fd", "score": "0.52132064", "text": "java.lang.String getSourceContext();", "title": "" }, { "docid": "eb7220df62d4891afdace3024b56d842", "score": "0.51834834", "text": "@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}", "title": "" }, { "docid": "80b4fc08ff3a7cd7a8edf6975f0149b0", "score": "0.51826394", "text": "long getSourceId();", "title": "" }, { "docid": "73dc7ac5e03d5a5e5110af291241cc6a", "score": "0.5178065", "text": "public String getSource() {\r\n return source;\r\n }", "title": "" }, { "docid": "a548ed95494a708395c83aecbbd0a0e3", "score": "0.5165959", "text": "public String getSourceId() {\n return sourceId;\n }", "title": "" }, { "docid": "edf16b2a9fd58651c3490e6883a540ef", "score": "0.5162537", "text": "String getDest_typ();", "title": "" }, { "docid": "db6e890e8a440b4a5961f4c21a4797f9", "score": "0.5160389", "text": "public String getSouce() {\n\t\treturn source;\n\t}", "title": "" }, { "docid": "a84ef4291b65ba355869b9725dee602f", "score": "0.51570874", "text": "NumberVariable getSource();", "title": "" }, { "docid": "53a95985046b3098a195f1e387efcca7", "score": "0.5157022", "text": "int getSrcId();", "title": "" }, { "docid": "53a95985046b3098a195f1e387efcca7", "score": "0.5157022", "text": "int getSrcId();", "title": "" }, { "docid": "363824a5aa76b0761f183915f132de98", "score": "0.5152551", "text": "public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}", "title": "" }, { "docid": "7dd9c635dba4d8e776b9d29fb05d4cf8", "score": "0.5149271", "text": "public String getSourceString() {\n return sourceString;\n }", "title": "" }, { "docid": "c6b3f0013a41a54a60c6934a33fa8f57", "score": "0.51432335", "text": "public String getIdentifierString();", "title": "" }, { "docid": "d4158081b1f9ed31e72e821553d9dac6", "score": "0.51240456", "text": "public interface Destination {\n String readLabel();\n}", "title": "" }, { "docid": "068e915ed805f9ed3d4b6be5ff8e3767", "score": "0.51194286", "text": "Variable getTargetVariable();", "title": "" }, { "docid": "dffe18f31345e887840b351c781481db", "score": "0.5106578", "text": "public String source(String src)\n\t{\n\t\tint i;\n\t\tString [] toks = src.split(\"\\\\s+\");\n\t\tString ret = toks[sourceStart];\n\t\tfor (i = sourceStart + 1; i < sourceEnd; i++) {\n\t\t\tret += \" \" + toks[i];\n\t\t}\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "e7510cb7c686dc12dd6849e73c877ad8", "score": "0.51038635", "text": "String getTarget();", "title": "" }, { "docid": "e7510cb7c686dc12dd6849e73c877ad8", "score": "0.51038635", "text": "String getTarget();", "title": "" }, { "docid": "45493df806eb38abb21adea70c32ece4", "score": "0.5103851", "text": "public String getStrSourceType() {\n return strSourceType;\n }", "title": "" }, { "docid": "8b3a32360e68a68a2b7387c25f3029d7", "score": "0.50975835", "text": "String getSourceExpression();", "title": "" }, { "docid": "dba553e654d2e84e510493684a29fe12", "score": "0.5095869", "text": "@Override\n public String getSource()\n {\n return null;\n }", "title": "" }, { "docid": "d945ad54b7c37505b094308732dbbfa9", "score": "0.50928384", "text": "@DISPID(-2147417088)\n @PropGet\n int sourceIndex();", "title": "" }, { "docid": "f6c47597196688fa097d96095e0f76cc", "score": "0.5073291", "text": "public interface Destination {\n public String readLabel();\n}", "title": "" }, { "docid": "4e87d8651dd4385461cce154c0fb5c1d", "score": "0.50652856", "text": "public String getSourceString() {\n return null;\n }", "title": "" }, { "docid": "d0f3da3187d3997d0c153e75b9d7803d", "score": "0.5064664", "text": "public String getSource() {\n return this.source;\n }", "title": "" }, { "docid": "882cb943de886703ebd2d37c9e659cf1", "score": "0.5050586", "text": "public String getSource() {\n Object ref = source_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n source_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "e0186aae686d35ae1ebe801bfff8b91f", "score": "0.5049156", "text": "String getFrom();", "title": "" }, { "docid": "e0186aae686d35ae1ebe801bfff8b91f", "score": "0.5049156", "text": "String getFrom();", "title": "" }, { "docid": "e0186aae686d35ae1ebe801bfff8b91f", "score": "0.5049156", "text": "String getFrom();", "title": "" }, { "docid": "e0186aae686d35ae1ebe801bfff8b91f", "score": "0.5049156", "text": "String getFrom();", "title": "" }, { "docid": "649140341ecb343186386957b0815af5", "score": "0.5046987", "text": "public String getSource() {\n return source;\n }", "title": "" }, { "docid": "649140341ecb343186386957b0815af5", "score": "0.5046987", "text": "public String getSource() {\n return source;\n }", "title": "" }, { "docid": "649140341ecb343186386957b0815af5", "score": "0.5046987", "text": "public String getSource() {\n return source;\n }", "title": "" }, { "docid": "38c200ecd0e16483d464ee3ef4cdec1d", "score": "0.5043826", "text": "String getReference();", "title": "" }, { "docid": "38c200ecd0e16483d464ee3ef4cdec1d", "score": "0.5043826", "text": "String getReference();", "title": "" }, { "docid": "a79a9bb28b11a1fb73264e9c853f64e9", "score": "0.5042379", "text": "public abstract Object getSource();", "title": "" }, { "docid": "344624d27127ab095d1a4a0c03e93575", "score": "0.5039357", "text": "public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "344624d27127ab095d1a4a0c03e93575", "score": "0.5039357", "text": "public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a815ad54289f2b0395d78a19427a6313", "score": "0.5028011", "text": "public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "811ef10017470a0953a5d45de2669382", "score": "0.50177616", "text": "public java.lang.String getCaseID(){\n return localCaseID;\n }", "title": "" }, { "docid": "4a9dd368cef12c7843406c49012207db", "score": "0.5016517", "text": "public void setSourceAttribute(String id) {\n this.sourceAttribute = id;\n }", "title": "" }, { "docid": "8927da4fb0641c42c393765b017db0d7", "score": "0.5011635", "text": "int getIdentifier();", "title": "" }, { "docid": "62fc59f0d4f7c68820708fc8b236cceb", "score": "0.50106376", "text": "public String getSource() {\n return mSource;\n }", "title": "" }, { "docid": "5d07b21af7717d978c1d8105b7bbe7f0", "score": "0.5008948", "text": "public void setTargetString(String key) {\n/* 108 */ this.m_targetString = key;\n/* */ }", "title": "" }, { "docid": "71906ead76949dd1c5c020fb1169f3af", "score": "0.50088257", "text": "public Object getSource() { return this.s; }", "title": "" }, { "docid": "d97ffe9b4fb71c9c94c8238c9bb25cb6", "score": "0.5002556", "text": "public String toString() {\n return getClass().getName() + \"[source=\" + source + \"]\";\n }", "title": "" }, { "docid": "5376ce61ac9a3dd3fd6425c526808882", "score": "0.49868724", "text": "public String getIdentifier() {\n/* 222 */ return getValue(\"identifier\");\n/* */ }", "title": "" }, { "docid": "5b7ecc92af956d8cf4414439d8fe361e", "score": "0.4983672", "text": "public java.lang.String getSource() {\r\n return localSource;\r\n }", "title": "" }, { "docid": "df4f83bc85481a71b19b453897d09a51", "score": "0.49745512", "text": "com.google.protobuf.ByteString\n getAssociatedSourceBytes();", "title": "" } ]
eed9965621c6528be3086b2546ad53e2
Get the list of mutually excluded extension definitions.
[ { "docid": "67d236cbb903cb935fbefb2a4c140f45", "score": "0.67731583", "text": "public String[] getMutualExclusions(boolean global);", "title": "" } ]
[ { "docid": "be6d0051f2650580e519fc309d4b6c9b", "score": "0.68751436", "text": "public String[] getExcludedFileTypes() {\n return mExcludedFileTypes;\n }", "title": "" }, { "docid": "c3a55bfc49cb69d5beda6c6aea3eaba2", "score": "0.68041104", "text": "public List<NativeFileItem> getExcluded() {\n return Collections.unmodifiableList(excluded);\n }", "title": "" }, { "docid": "6c2d9a813c260b7ea30c26e351b46496", "score": "0.6787031", "text": "public List<String> exclude() {\n return this.exclude;\n }", "title": "" }, { "docid": "bc3067b18868808b73a6c0fe65695d58", "score": "0.67640346", "text": "public java.util.List<String> getExcludes()\n {\n if ( this.excludes == null )\n {\n this.excludes = new java.util.ArrayList<String>();\n }\n\n return this.excludes;\n }", "title": "" }, { "docid": "4e7a73df49c6a31c8d5c4197d19d8c69", "score": "0.6721005", "text": "public abstract List<String> getExcludePatterns();", "title": "" }, { "docid": "c320caa9322708d7867a9209c55770f9", "score": "0.6597811", "text": "private IExtensionPoint getExtensionPointExclude() {\n \t\tIExtensionRegistry registry = Platform.getExtensionRegistry();\n \t\treturn registry.getExtensionPoint(ValidationPlugin.PLUGIN_ID, ExtensionConstants.excludeExtension);\n \t}", "title": "" }, { "docid": "c3d06a4af09f534c6f1d91f815738321", "score": "0.6584435", "text": "public String getExcludes() {\n return excludes;\n }", "title": "" }, { "docid": "ab54eff31c1012be5a0e1f61a7711b6d", "score": "0.65771484", "text": "Collection<Extension> getExtensions();", "title": "" }, { "docid": "6718da4877b48a085bfe476bd760153e", "score": "0.6550559", "text": "public List getExclusions() { return m_exclusions; }", "title": "" }, { "docid": "1b8e77b7c62a6c61d4e4db6a27b38021", "score": "0.65144646", "text": "List<String> getExtensions();", "title": "" }, { "docid": "35840ac43441dd7bc76f831fa7e9736e", "score": "0.6344745", "text": "public List<String> getExtensions() {\n List<String> commands = commandManager.getExtensions();\n List<String> comparators = comparatorManager.getExtensions();\n List<String> tests = testManager.getExtensions();\n List<String> extensions = new ArrayList<String>(commands.size() + comparators.size()\n + tests.size());\n extensions.addAll(commands);\n extensions.addAll(comparators);\n extensions.addAll(tests);\n return extensions;\n }", "title": "" }, { "docid": "a37389bbfc9b1ba54a74d0e08c7c3374", "score": "0.63022226", "text": "public List<PathExpression> getExcludes() {\r\n List<PathExpression> excludes = new ArrayList<PathExpression>();\r\n for( PathExpression expression : pathExpressions ) {\r\n if( !expression.isIncluded() ) {\r\n excludes.add( expression );\r\n }\r\n }\r\n return excludes;\r\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "f72416e3b005830333cf5c18cc7a71c7", "score": "0.62457985", "text": "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "title": "" }, { "docid": "60cda686619fd2a08a89029c8d9287e4", "score": "0.61721945", "text": "public java.util.List<? extends com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.PairOrBuilder> \n getExtsOrBuilderList() {\n return exts_;\n }", "title": "" }, { "docid": "60cda686619fd2a08a89029c8d9287e4", "score": "0.61721945", "text": "public java.util.List<? extends com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.PairOrBuilder> \n getExtsOrBuilderList() {\n return exts_;\n }", "title": "" }, { "docid": "60cda686619fd2a08a89029c8d9287e4", "score": "0.61721945", "text": "public java.util.List<? extends com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.PairOrBuilder> \n getExtsOrBuilderList() {\n return exts_;\n }", "title": "" }, { "docid": "5f2dfa82fd7118ec7f486546bacca2a5", "score": "0.6115834", "text": "public List<String> getAllowedExtensions() {\r\n\t\treturn allowedExtensions;\r\n\t}", "title": "" }, { "docid": "f4fc76188237595c77fb5d24b48dc637", "score": "0.60883296", "text": "public synchronized String[] getExcludedFiles() throws Exception\n {\n slowScan();\n String[] files = new String[filesExcluded.size()];\n filesExcluded.copyInto(files);\n return files;\n }", "title": "" }, { "docid": "803f0de75be221b88039fa4296987672", "score": "0.60773677", "text": "public String[] getExcludedClassNames() {\n return excludedClassNames;\n }", "title": "" }, { "docid": "8f8d46ae88c35855e9335f82a2d41a40", "score": "0.607076", "text": "public java.util.List<com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.Pair> getExtsList() {\n return exts_;\n }", "title": "" }, { "docid": "8f8d46ae88c35855e9335f82a2d41a40", "score": "0.607076", "text": "public java.util.List<com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.Pair> getExtsList() {\n return exts_;\n }", "title": "" }, { "docid": "8f8d46ae88c35855e9335f82a2d41a40", "score": "0.607076", "text": "public java.util.List<com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.Pair> getExtsList() {\n return exts_;\n }", "title": "" }, { "docid": "af6ab33e611eff12ae3ea127b5e9d30b", "score": "0.606702", "text": "public List<String> getSsextensions() {\r\n\t\treturn Collections.unmodifiableList(ssextensions);\r\n\t}", "title": "" }, { "docid": "c27f5d49db542efa4ba8dbeeb307dfe3", "score": "0.60562617", "text": "org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList getExtLst();", "title": "" }, { "docid": "863726ac45824b22b848f9d2132cc981", "score": "0.603575", "text": "public java.util.List<com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.Pair> getExtsList() {\n if (extsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(exts_);\n } else {\n return extsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "863726ac45824b22b848f9d2132cc981", "score": "0.603575", "text": "public java.util.List<com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.Pair> getExtsList() {\n if (extsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(exts_);\n } else {\n return extsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "863726ac45824b22b848f9d2132cc981", "score": "0.603575", "text": "public java.util.List<com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.Pair> getExtsList() {\n if (extsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(exts_);\n } else {\n return extsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "9ee9cadf12bf5c7220628f5f58e1b758", "score": "0.60218096", "text": "List<String> getSupportedExtensions();", "title": "" }, { "docid": "179a550c880d28117593084ba28ecc31", "score": "0.60078067", "text": "public void setExcluded(@Nonnull final String ext) {\n this.excludedExtensions = ext;\n }", "title": "" }, { "docid": "1fe3e47cf812e2a378312cd4ff69fc4e", "score": "0.5986606", "text": "public List<ExtensionType> getExtension() {\n\t return this.extension;\n\t}", "title": "" }, { "docid": "b9d81f93bcdd1de5b5294336ddf712e2", "score": "0.59823644", "text": "public java.util.List<? extends com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.PairOrBuilder> \n getExtsOrBuilderList() {\n if (extsBuilder_ != null) {\n return extsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(exts_);\n }\n }", "title": "" }, { "docid": "b9d81f93bcdd1de5b5294336ddf712e2", "score": "0.59823644", "text": "public java.util.List<? extends com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.PairOrBuilder> \n getExtsOrBuilderList() {\n if (extsBuilder_ != null) {\n return extsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(exts_);\n }\n }", "title": "" }, { "docid": "b9d81f93bcdd1de5b5294336ddf712e2", "score": "0.59823644", "text": "public java.util.List<? extends com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.PairOrBuilder> \n getExtsOrBuilderList() {\n if (extsBuilder_ != null) {\n return extsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(exts_);\n }\n }", "title": "" }, { "docid": "40c6291a55b968a4ef7e12fb3a2123c2", "score": "0.5955593", "text": "private static String[] getDefaultExcludes()\n {\n return defaultExcludes.toArray(new String[defaultExcludes\n .size()]);\n }", "title": "" }, { "docid": "28eebedcc2c8e0868b451d949493290a", "score": "0.59502614", "text": "@Nullable\n @Optional\n @Input\n public List<String> getExcludes() {\n return excludes;\n }", "title": "" }, { "docid": "582b46007175cde22446ce2be443bb67", "score": "0.59418046", "text": "public String getExclusion() {\n\t\treturn exclusion;\n\t}", "title": "" }, { "docid": "8f6ed82a24b4f18d9f85b56201ffec81", "score": "0.59254485", "text": "public AbstractExtension[] getExtensions() {\n\t\treturn extensions.toArray(new AbstractExtension[extensions.size()]); \n\t}", "title": "" }, { "docid": "382212e72e623ffe3d47903f7e11c1a3", "score": "0.5919643", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList getExtLst();", "title": "" }, { "docid": "a1d9ae014e26d7b484294d87912960ff", "score": "0.5899722", "text": "public String[] getApplicableDiagramEditorFileExtensions();", "title": "" }, { "docid": "d3c196add2931cddb6a08623e7573fc3", "score": "0.5884175", "text": "public String getExts() {\n return exts;\n }", "title": "" }, { "docid": "77a41b19a208b06e076565a2981758a2", "score": "0.58802116", "text": "@Override\n\tpublic List<Extension> getNegotiatedExtensions() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0bdca7695615614d544529543703dc7c", "score": "0.5877376", "text": "public String[] getvalidFileextensions() {\n\t\tString[] retString = { \"c\", \"txt\", \"java\", \"h\" };\n\t\treturn retString;\n\t}", "title": "" }, { "docid": "d5d2ab9bdaebfd4f781673b27cfffc9a", "score": "0.58630997", "text": "public List<DeploymentExtensionSpec> extensions() {\n return this.extensions;\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "695a3ea912cfd7175d96ec128bca6f3b", "score": "0.5859815", "text": "public java.util.List<Extension> modifierExtension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_MODIFIER_EXTENSION);\n }", "title": "" }, { "docid": "aa6f71d799f16bb18270ed47e27ddc69", "score": "0.5858253", "text": "@NotNull\n @Override\n public List<String> getExcludedPaths() throws IOException {\n List<String> excludedPaths = new ArrayList<>();\n excludedPaths.addAll(readExcludedPaths(LOCAL_EXCLUDED_PATHS_KEY));\n excludedPaths.addAll(readExcludedPaths(POLICY_EXCLUDED_PATHS_KEY));\n return excludedPaths;\n }", "title": "" }, { "docid": "081df95c869d1879ccd3b0836edb8f70", "score": "0.58491594", "text": "public abstract String getExcludedIds();", "title": "" }, { "docid": "52a541bacd3a2ccd5dc7497b9fbfe996", "score": "0.58361876", "text": "public List<String> getFileExtensions() {\n if ( fileExtensions == null ) {\n String[] exts = getOption(BINARY_FILE_EXTENSIONS).split(\"\\\\s*[,]\\\\s*\");\n fileExtensions = new ArrayList<String>(Arrays.asList(exts));\n }\n return fileExtensions;\n }", "title": "" }, { "docid": "d125a8cbbea3c3e4e9bf1e88fe433ed6", "score": "0.5820475", "text": "public Map extensions();", "title": "" }, { "docid": "afcd4f5dda3325c1cab5af768464b089", "score": "0.5768481", "text": "UmlgSet<E> excluding(E e);", "title": "" }, { "docid": "75ba6a8b054b35b368112953224594e4", "score": "0.57253176", "text": "private List<String> getExcludeLabelList(String toolName) {\n\t\tList<String> excludeLabels = new ArrayList<>() ;\n\t\tif (dataModel.has(toolName) && dataModel.get(toolName).getAsJsonObject().has(TraceabilityConstants.EXCLUDE_LABEL_PROPERTY)) {\n\t\t\tLOG.debug(\"Tool {} has excludeLabels list {}\",toolName,excludeLabels);\n\t\t\tJsonArray configuredExcludeLable = dataModel.get(toolName).getAsJsonObject().get(TraceabilityConstants.EXCLUDE_LABEL_PROPERTY).getAsJsonArray();\n\t\t\tfor (JsonElement stringExcludeLabel : configuredExcludeLable) {\n\t\t\t\texcludeLabels.add(stringExcludeLabel.getAsString());\n\t\t\t}\n\t\t}\n\t\treturn excludeLabels;\n\t}", "title": "" }, { "docid": "0356c74a2fe9ecc5b22bae78513124ba", "score": "0.57163835", "text": "List<WebSocketExtension> getExtensions();", "title": "" }, { "docid": "de32584146aa7e5901448a1d0e2ceeb8", "score": "0.57163584", "text": "public Map<String, Object> getExtensions(){\n return this.extensions;\n }", "title": "" }, { "docid": "8c7cc387b3b59c70b40186d605231b2e", "score": "0.5685378", "text": "@Deprecated\r\n\tpublic Set<Class<?>> getListOfExcludedJComponentClasses()\r\n\t{\r\n\t\treturn this.excludingJComponentClasses;\r\n\t}", "title": "" }, { "docid": "2d597853a081717a61d146f67e65703a", "score": "0.5666758", "text": "public String[] muzzleIgnoredClassNames() {\n return helperClassNames();\n }", "title": "" }, { "docid": "8fa149baa3bac03c106d84a4ccc9a482", "score": "0.56561315", "text": "public com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.Pair getExts() {\n return exts_;\n }", "title": "" }, { "docid": "8fa149baa3bac03c106d84a4ccc9a482", "score": "0.56561315", "text": "public com.github.hackerwin7.mysql.tracker.protocol.protobuf.SimpleEntry.Pair getExts() {\n return exts_;\n }", "title": "" }, { "docid": "a27fe7d4e912e427a37aaf33237583b5", "score": "0.560198", "text": "public List<String> getInNotIgnored() {\n return getNonNull(inProps);\n }", "title": "" }, { "docid": "e7da03077171e776cb408ccca6fe4739", "score": "0.55968755", "text": "public static String[] getExtensionValues() {\r\n\t\tArrayList<String> list = new ArrayList<String>();\r\n\t\tString[] returnList = new String[0];\r\n\t\t\r\n\t\tfor(MusicFileType type : MusicFileType.values()) {\r\n\t\t\tlist.add(\"*.\" + MusicFileType.getFileExtension(type));\r\n\t\t}\r\n\t\t\r\n\t\treturn list.toArray(returnList);\r\n\t}", "title": "" }, { "docid": "39e18324499f686525717e1a906d9815", "score": "0.55961", "text": "public SVGStringList getRequiredExtensions() {\n/* 846 */ return SVGTestsSupport.getRequiredExtensions((Element)this);\n/* */ }", "title": "" }, { "docid": "c8151e1038fc667b02fbd56b68d4eaf4", "score": "0.5584395", "text": "@Override\n public List<ExcludeMetadata> getConfigurationExcludes(Collection<String> configurations) {\n if (type == MavenDependencyType.OPTIONAL_DEPENDENCY) {\n return Collections.emptyList();\n }\n return excludes;\n }", "title": "" }, { "docid": "9f5685a9c4de799a9b634c2838c5e87c", "score": "0.55639976", "text": "public oasis.names.tc.SAML.v2_0.protocol.Extensions getExtensions(\n ) {\n return this._extensions;\n }", "title": "" }, { "docid": "3a38d12c1c90c07ee26b4369bdcbefb3", "score": "0.5559994", "text": "public synchronized String[] getExcludedDirectories() throws Exception\n {\n slowScan();\n String[] directories = new String[dirsExcluded.size()];\n dirsExcluded.copyInto(directories);\n return directories;\n }", "title": "" }, { "docid": "49503338d468be9eeda855d85288ac73", "score": "0.5558031", "text": "@Override\n\tpublic String getExclude() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e98a295d9c2ebda98a666f9455980253", "score": "0.55443686", "text": "public List<Device> getDevicesExcluded()\r\n\t{\r\n\t\treturn devicesExcluded;\r\n\t}", "title": "" }, { "docid": "ab3b2254553b9113d0830826c3d347c8", "score": "0.55414593", "text": "Collection<String> getFileExtensions();", "title": "" }, { "docid": "e3f8b56d494a5142ffd4118b78949874", "score": "0.5539875", "text": "public Set<String> createModuleExclusionList(List<String> lines) {\n return lines.stream()\n .map(String::trim)\n .filter(line -> StringUtils.startsWithAny(line, UNUSED_MODULE_PREFIXES))\n .map(line -> StringUtils.replaceEach(line, UNUSED_MODULE_PREFIXES, UNUSED_MODULE_REPLACEMENTS))\n .map(line -> StringUtils.removeEnd(line, \")\"))\n .map(String::trim)\n .collect(Collectors.toSet());\n }", "title": "" }, { "docid": "14a4c9a1fe26031f7954d72d4f646272", "score": "0.551971", "text": "public TreeMap<String,QueueExtensionConfig>\n getExtensions() \n {\n return pExtensions;\n }", "title": "" }, { "docid": "906b8b2117ece9807a4e8d6a25b2499c", "score": "0.5503287", "text": "public String[] outputFileExtensions()\n {\n return extensions;\n }", "title": "" }, { "docid": "b610f31404b07406fed8ff394b9ceb51", "score": "0.54837066", "text": "public PatternSet.NameEntry createExclude() {\n return defaultSet.createExclude();\n }", "title": "" }, { "docid": "74b949f1e9585712537f42b230c906ae", "score": "0.5482118", "text": "public synchronized String[] getNotIncludedFiles() throws Exception\n {\n slowScan();\n String[] files = new String[filesNotIncluded.size()];\n filesNotIncluded.copyInto(files);\n return files;\n }", "title": "" }, { "docid": "d60cdf0f03522382787c53c2fc2dc2f1", "score": "0.547619", "text": "private ArrayList<ValidationFilter> getFiltersFromExtensionPoint() {\r\n\t\tif (validationFilters == null) {\r\n\t\t\tvalidationFilters = new ArrayList<ValidationFilter>();\r\n\t\t\tIConfigurationElement[] config = Platform.getExtensionRegistry().getConfigurationElementsFor(\r\n\t\t\t\t\"org.eclipse.emf.ecp.validation.filters\");\r\n\t\t\tfor (IConfigurationElement element : config) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tObject object = element.createExecutableExtension(\"filter\");\r\n\t\t\t\t\tif (object instanceof ValidationFilter) {\r\n\t\t\t\t\t\tValidationFilter validationFilter = (ValidationFilter) object;\r\n\t\t\t\t\t\tif (validationFilter.init()) {\r\n\t\t\t\t\t\t\tvalidationFilters.add(validationFilter);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (CoreException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn validationFilters;\r\n\t}", "title": "" }, { "docid": "93dcd3c80619e204fbb00c2c3d77e6b1", "score": "0.54759943", "text": "private Set<String> getExtensionViews()\r\n {\r\n Set<String> result = new HashSet<String>();\r\n IExtension[] extensions = Platform.getExtensionRegistry().getExtensionPoint(\r\n PMActivator.PLUGIN_ID, VIEW_EXTENSION_POINT_ID).getExtensions();\r\n\r\n for (IExtension extension : extensions)\r\n {\r\n IConfigurationElement[] configElements = extension.getConfigurationElements();\r\n\r\n for (IConfigurationElement configElement : configElements)\r\n {\r\n if (configElement.getName().equals(VIEW_CONFIGURATION_ELEMENT_NAME))\r\n {\r\n String viewIdElement = configElement.getAttribute(VIEW_ID_ATTRIBUTE_NAME);\r\n\r\n if (viewIdElement != null)\r\n {\r\n result.add(viewIdElement);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "f0fe3b421fce7272362ce7928e49c173", "score": "0.5475815", "text": "public abstract ArrayList getExtremityList();", "title": "" }, { "docid": "766373f57ed70b8d7af6a030ee894112", "score": "0.54575473", "text": "public String getExclusionClause();", "title": "" } ]
3a715b2eaaa2dec8e8de69bbb043b4cd
Creates a new proxy that is identical to this proxy, except for the router.
[ { "docid": "33a2f348d724b300a6564ba8315c17f6", "score": "0.58344334", "text": "public final ObjectPrx\n ice_router(Ice.RouterPrx router)\n {\n IceInternal.Reference ref = _reference.changeRouter(router);\n if(ref.equals(_reference))\n {\n return this;\n }\n else\n {\n return newInstance(ref);\n }\n }", "title": "" } ]
[ { "docid": "7bad4ebda4fdf682b52ed77cf6d45c0e", "score": "0.7129998", "text": "void createProxy () {\r\n proxy = new GlobalProxy (this);\r\n proxy.copyToProxy (this);\r\n }", "title": "" }, { "docid": "3f99404dc2cebb1ace09de0857cb1492", "score": "0.6382091", "text": "private HttpProxyCacheServer newProxy() {\n\n return new HttpProxyCacheServer.Builder(this)\n .maxCacheFilesCount(20)\n .build();\n }", "title": "" }, { "docid": "02c74203ea31bf88924a0239b3e4272e", "score": "0.623615", "text": "private Proxy() {}", "title": "" }, { "docid": "ee4bd4353cfc21d5b8b5743cb47db890", "score": "0.61720514", "text": "public final T makeProxy() {\n return Reflection.newProxy(interfaceClass, this);\n }", "title": "" }, { "docid": "1baa2ca92d19b930347a1713d57603ba", "score": "0.6160578", "text": "public MockRouter createRouter() {\n return new MockRouter(getConfiguration(), getProtocolFactory());\n }", "title": "" }, { "docid": "0bbfaaf68e2beaa4b5f31e56710e6c1c", "score": "0.5717514", "text": "public HTTPProxyDestination() {\n this(false);\n }", "title": "" }, { "docid": "8b9d95d0c32dd6ff0a388ef1084675bc", "score": "0.55717355", "text": "public static <O extends Operation<?>> ProxyOperationSink<O> create() {\n return new ProxyOperationSink<O>();\n }", "title": "" }, { "docid": "7660eabca6018c9d16bc501e2ea51b55", "score": "0.5567978", "text": "Router createRouter();", "title": "" }, { "docid": "5676b42c9880380c5f9bfb6a93b08c51", "score": "0.5408316", "text": "public RoutedPacket duplicate()\n {\n\treturn new RoutedPacket(length, headerLength, 0.0, route);\n }", "title": "" }, { "docid": "718ed1af17d4bda0f0b7a94ab6b12db2", "score": "0.53896344", "text": "public Request viaProxy(final HttpHost proxy) {\n this.proxy = proxy;\n return this;\n }", "title": "" }, { "docid": "29b3a41379c6cacab4143ceb078f1c3c", "score": "0.5373083", "text": "public abstract <T> T createProxy(T obj, InvocationHandler handler);", "title": "" }, { "docid": "716a3e97060fcbe9a8d71f2f126e67a3", "score": "0.5370512", "text": "RobotProxy createRobotProxy();", "title": "" }, { "docid": "e1ad0bca97cc73266c35219da908eac3", "score": "0.5357713", "text": "@Override\n public Transport clone() {\n return this;\n }", "title": "" }, { "docid": "3e8dfafb68caa4eaad793bdfd7f2b142", "score": "0.5332543", "text": "GlobalProxy getProxy () { return proxy; }", "title": "" }, { "docid": "3046035c8b9c391b4edaf146916f85e6", "score": "0.5233622", "text": "void createRouter(KubevirtRouter router);", "title": "" }, { "docid": "d0274af04679277b9f368418499ffff8", "score": "0.5208168", "text": "public static SceneProxy getSceneProxy(){\n if (instance == null)\n instance = new SceneProxy();\n\n return instance;\n }", "title": "" }, { "docid": "14fec4c6590314057f569854b8ee6602", "score": "0.51998293", "text": "public GameWorldProxy getProxy(){\n\t\tGameWorldProxy gwp = new GameWorldProxy(this);\n\t\treturn gwp;\n\t}", "title": "" }, { "docid": "377d42018aa4c65f10dd4bf6b172f241", "score": "0.51560086", "text": "public Object clone() {\n byte[] ipAddr_ = saddr.getAddress().getAddress();\n int port = saddr.getPort();\n InetAddress copiedAddr = null;\n try {\n copiedAddr = InetAddress\n .getByAddress( (byte[]) ipAddr_.clone() );\n } catch (java.net.UnknownHostException uhe) { \n /* should be impossible */\n }\n return new IPv4Address (copiedAddr, port);\n }", "title": "" }, { "docid": "a4591923659688709880011dd9b3a5dc", "score": "0.5139985", "text": "<T extends DistributedObject> T createProxy(String objectName);", "title": "" }, { "docid": "2f94890ed2c1a14b0218b8f4c1350ecc", "score": "0.51333576", "text": "public Object clone() {\n DsTelURL clone = (DsTelURL) super.clone();\n if (m_telSubscriber != null) {\n clone.m_telSubscriber = (DsSipTelephoneSubscriber) m_telSubscriber.clone();\n }\n return clone;\n }", "title": "" }, { "docid": "f50dd3d902129f29aaea911711e3efa2", "score": "0.51259315", "text": "public MockProxyServer() {\n this(null, null);\n }", "title": "" }, { "docid": "ad627bdeaa6f194b89f05b585c724594", "score": "0.5120783", "text": "public GenericUrl clone() {\n return this.clone();\n }", "title": "" }, { "docid": "b981a76e7a48fedd1c9d76f0a9d0f531", "score": "0.5114445", "text": "@objid (\"80edc8c8-1dec-11e2-8cad-001ec947c8cc\")\n protected ConnectionRouter getDummyConnectionRouter(final CreateMultiPointRequest request, final EditPart source) {\n return ((ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER)).getConnectionRouter();\n }", "title": "" }, { "docid": "6c6146d74689255541a42fb13fa0d7ee", "score": "0.5101026", "text": "public ProxyRestaurant() {\r\n }", "title": "" }, { "docid": "428ede5afc6b31d491628d478274ef66", "score": "0.50886655", "text": "public DocumentModel createProxy(DocumentRef parentRef, DocumentRef docRef,\n VersionModel version, boolean overwriteExistingProxy)\n throws ClientException {\n return null;\n }", "title": "" }, { "docid": "57ef5f67181519a849b3eb3a7fa2a7ff", "score": "0.50874394", "text": "public Object create(Class<?>[] ifaces, ClassLoader proxyLoader) {\n\t\treturn Proxy.newProxyInstance(proxyLoader, ifaces,\n\t\t\t\tnew XRemotingInvocationHandler(serializer, requester));\n\t}", "title": "" }, { "docid": "6b3747dbaa86d581bccb000f7203c244", "score": "0.50758517", "text": "protected AgentMBean createProxy(ObjectName mbeanName) throws Exception {\n\t\tlog.info(\"Creating MBeanProxy: \"+mbeanName);\n\t\tMBeanServerConnection mbsc = connection.getMBeanServerConnection();\n\t\tAgentMBean mbeanProxy = JMX.newMBeanProxy(mbsc, mbeanName, AgentMBean.class, true);\n\t\tlog.info(\"Created MBeanProxy: \"+mbeanName);\n\t\tlog.info(\"Remote application is\"+(mbeanProxy.isRunning() ? \"\" : \"not\")+\" running\");\n\t\treturn mbeanProxy;\n\t}", "title": "" }, { "docid": "d6fa82b2a38988ba2e228cdd272a20be", "score": "0.5074793", "text": "protected SSAddress clone() {\n return new SSAddress(this);\n }", "title": "" }, { "docid": "3d2b64ac50a7b77bd23a29083aa3d429", "score": "0.5054653", "text": "public Proxy(Object real) {\n\t\tthis.real = real;\n\t\tthis.meta = InvokerHelper.getMetaClass(real);\n\t}", "title": "" }, { "docid": "d5bc5d9e9136b34d4f43977e01f9feea", "score": "0.50290483", "text": "@SuppressWarnings(\"MethodDoesntCallSuperMethod\")\n @Override\n public Triplet clone() {\n return new Triplet(first(), second(), third());\n }", "title": "" }, { "docid": "bfda043837d4e693017574a4f05b838e", "score": "0.5007605", "text": "@Override\n\tpublic synchronized Restlet createInboundRoot() {\n\t\tRouter router = new Router(getContext());\n\n\t\t// default resource\n\t\trouter.attachDefault(QueryEndpointResource.class);\n\n\t\treturn router;\n\t}", "title": "" }, { "docid": "34615eef46361db0965e8ef22b6bd168", "score": "0.50042325", "text": "public abstract <T> T createProxy(Class<T> clazz);", "title": "" }, { "docid": "868810efb80d7c7506110973bc0c251b", "score": "0.49879158", "text": "public Object newInstance() {\n return newInstance(null);\n }", "title": "" }, { "docid": "a16658ce76b2df61e2ea9b82c7eaf945", "score": "0.49744824", "text": "private Maze copy() {\n\t\tMaze maze = new Maze(size);\n\t\t\n\t\tfor (int i = 0; i < size*size; i++)\n\t\t\tmaze.vertexList[i] = new Vertex(vertexList[i].label, vertexList[i].index);\n\t\t\n\t\tfor (int i = 0; i < size*size; i++)\n\t\t\tfor (int j = 0; j < size*size; j++)\n\t\t\t\tmaze.adjMat[i][j] = this.adjMat[i][j];\n\t\t\n\t\treturn maze;\n\t}", "title": "" }, { "docid": "106377c54138466c7f8610d33d3d7909", "score": "0.49688706", "text": "public Builder clearProxied() {\n \n proxied_ = false;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "874baa53d2e2b4e09c064ebaa4a62a30", "score": "0.4967737", "text": "protected Transferable createTransferableProxy(Transferable paramTransferable, boolean paramBoolean) {\n/* 300 */ return new TransferableProxy(paramTransferable, paramBoolean);\n/* */ }", "title": "" }, { "docid": "6f35bacf2cfdeb681c29cd0c2db993c5", "score": "0.49578473", "text": "HttpURLConnection createConnection(Proxy proxy, URL url) throws IOException;", "title": "" }, { "docid": "5fde5195c93397f8f644c82f1072d68b", "score": "0.49432924", "text": "@Override\n public AbstractRelic makeCopy() {\n return new TheStar();\n }", "title": "" }, { "docid": "96f8dfee808cafd9f0cf518960ed56b4", "score": "0.49214515", "text": "public Host(Host toCopy){\r\n copyHost(toCopy);\r\n }", "title": "" }, { "docid": "3cc80a7004d92fe548615ccfd6223596", "score": "0.49073824", "text": "@Override\n\tpublic ICrosser makeCopy() {\n\t\treturn new Goat();\n\t}", "title": "" }, { "docid": "61d2875d5f5e337aa920c3ee324ae1ea", "score": "0.49044335", "text": "static Object createPrivilegedProxy(Class iface, final Object receiver) {\n return Proxy.newProxyInstance(XServiceManagerStub.class.getClassLoader(),\n new Class[] { iface },\n new PrivilegedHandler(receiver));\n }", "title": "" }, { "docid": "fbe25f955d011d80ca3aa9700f87b39a", "score": "0.4901748", "text": "public abstract <T> T createProxy(Class<T> clazz, Object target);", "title": "" }, { "docid": "7ad60a5bb5c706ddf836c31838e37770", "score": "0.4886426", "text": "public Address clone(){\r\n\t\t\t\treturn new Address(this);\r\n\t\t\t}", "title": "" }, { "docid": "3923af7313daca60a372a8601c5af5ba", "score": "0.48758814", "text": "protected Object redefineProxyInTcl(Object proxy)\n {\n /*\n * We've got to ensure that the Proxy will be assignable to the target\n * within this CL\n */\n\n // Get the TCL\n ClassLoader tcl = Thread.currentThread().getContextClassLoader();\n\n // Get the Proxy's CL\n ClassLoader proxyCl = proxy.getClass().getClassLoader();\n\n // If the classloaders are not equal\n if (tcl != proxyCl)\n {\n /*\n * Reconstruct/redefine the Proxy in our CL\n */\n\n // Get the Proxy Class\n Class<?> proxyClass = proxy.getClass();\n\n // Ensure we've got a Proxy\n assert Proxy.isProxyClass(proxyClass) : \"Assumed Proxy is not an instance of \" + Proxy.class.getName();\n\n // Get the InvocationHandler\n InvocationHandler handler = Proxy.getInvocationHandler(proxy);\n\n // Get the Interfaces\n Class<?>[] proxyInterfaces = proxyClass.getInterfaces();\n\n // Make a Set to hold the redefined classes\n Set<Class<?>> ourClInterfaces = new HashSet<Class<?>>();\n\n // For each interface defined by the Proxy\n for (Class<?> proxyInterface : proxyInterfaces)\n {\n // Get the FQN\n String proxyInterfaceName = proxyInterface.getName();\n\n // Redefine the class in our CL\n Class<?> ourDefinedProxyInterface = null;\n try\n {\n ourDefinedProxyInterface = Class.forName(proxyInterfaceName, false, tcl);\n }\n catch (ClassNotFoundException e)\n {\n throw new RuntimeException(\"Can not find interface declared by Proxy in our CL + \" + tcl, e);\n }\n\n // Add the Class to the Set\n ourClInterfaces.add(ourDefinedProxyInterface);\n }\n\n // Redefine the Proxy in our CL\n proxy = Proxy.newProxyInstance(tcl, ourClInterfaces.toArray(new Class<?>[]\n {}), handler);\n\n // Return the new Proxy\n return proxy;\n }\n else\n {\n return proxy;\n }\n }", "title": "" }, { "docid": "a19dd3a17581a5b4bea3cbbf2a90222f", "score": "0.4863308", "text": "private List<IRoute> cloneRoutes(){\n\t\tList<IRoute> clone=new ArrayList<>();\n\t\tfor(IRoute r:routes)\n\t\t\tclone.add(r.clone());\n\t\treturn clone;\n\t}", "title": "" }, { "docid": "684126285e3442a847a3767a29ed076a", "score": "0.48612693", "text": "protected <T> T createRMProxy(Class<T> protocol, Configuration config,\n UserGroupInformation user, Token<AMRMTokenIdentifier> token)\n throws IOException {\n return AMRMClientUtils.createRMProxy(config, protocol, user, token);\n }", "title": "" }, { "docid": "44aa8758585b7564944e38bf192e0fed", "score": "0.48179263", "text": "public XRemotingProxyFactory(Requester requester) {\n\t\tinit(requester, (Serializer) null);\n\t}", "title": "" }, { "docid": "13f382ca007cc585eda824d9f0896ba5", "score": "0.4815677", "text": "public Proxy() throws SocketException, IOException\n {\n System.out.println(\"proxy constructor\");\n this.cModule = new CommunicationModule();\n \n // cModule.connect(portNumber);\n this.remoteRef = new RemoteReference(cModule);\n \n }", "title": "" }, { "docid": "fd65e4f410a7652d87cce2e7f0e0ef0e", "score": "0.48055935", "text": "@Override\n public T newInstance() {\n try {\n return access.newInstance();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "983fb65d8bedb17fa9687fc01ee41155", "score": "0.47965303", "text": "private static com_ariasluque_agendainteractiva_models_NotesRealmProxy newProxyInstance(BaseRealm realm, Row row) {\n final BaseRealm.RealmObjectContext objectContext = BaseRealm.objectContext.get();\n objectContext.set(realm, row, realm.getSchema().getColumnInfo(com.ariasluque.agendainteractiva.models.Notes.class), false, Collections.<String>emptyList());\n io.realm.com_ariasluque_agendainteractiva_models_NotesRealmProxy obj = new io.realm.com_ariasluque_agendainteractiva_models_NotesRealmProxy();\n objectContext.clear();\n return obj;\n }", "title": "" }, { "docid": "569d28b766108fe30185e918b4149124", "score": "0.4787423", "text": "public XRemotingProxyFactory(String url) {\n\t\tinit(createDefaultRequester(url), (Serializer) null);\n\t}", "title": "" }, { "docid": "6ce2d4452c58111f1641e30cbec28b2e", "score": "0.47869986", "text": "@Override\n public ConnectionNetState copy()\n {\n ConnectionNetState copy = new ConnectionNetState(netPlan);\n \n copy.nextConnectionId = nextConnectionId;\n copy.nextConnectionRouteId = nextConnectionRouteId;\n copy.isModifiable = true;\n \n Iterator<Entry<Long, Connection>> connIt = connections.entrySet().iterator();\n while(connIt.hasNext())\n {\n Entry<Long, Connection> entry = connIt.next();\n copy.connections.put(entry.getKey(), entry.getValue().clone());\n }\n\n Iterator<Entry<Long, ConnectionRoute>> connRouteId = connectionRoutes.entrySet().iterator();\n while(connRouteId.hasNext())\n {\n Entry<Long, ConnectionRoute> entry = connRouteId.next();\n copy.connectionRoutes.put(entry.getKey(), entry.getValue().clone());\n }\n \n return copy;\n }", "title": "" }, { "docid": "811ee9a1e0635a00537f4ee582ae0266", "score": "0.477227", "text": "Forward createForward();", "title": "" }, { "docid": "7032c794030e61f6dc450f3fecc9fd3f", "score": "0.47684008", "text": "public Direction copyOf(){\n return new Direction(direction);\n }", "title": "" }, { "docid": "de2a988ea7460b7b62e39142e108ca54", "score": "0.47606316", "text": "@Override\n public Archaeopteryx createNewCopy(){\n return new Archaeopteryx(true);\n }", "title": "" }, { "docid": "db149edfd853066c70a4e5c20f5b2246", "score": "0.47469696", "text": "public void setProxy() {\n\t\tif (proxy) {\n\n\t\t/*\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\t\tcredsProvider.setCredentials(new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT),\n\t\t\t\t\tnew UsernamePasswordCredentials(proxyUser, proxyPassword));\n\t\t\tHttpClientBuilder clientBuilder = HttpClientBuilder.create();\n\t\t\tclientBuilder.useSystemProperties();\n\t\t\tclientBuilder.setProxy(new HttpHost(proxyHost, proxyPort));\n\t\t\tclientBuilder.setDefaultCredentialsProvider(credsProvider);\n\t\t\tclientBuilder.setProxyAuthenticationStrategy(new ProxyAuthenticationStrategy());\n\t\t\tCloseableHttpClient client = clientBuilder.build();\n\t\t\tHttpComponentsClientHttpRequestFactory factory = new HttpComponentsClientHttpRequestFactory();\n\t\t\tfactory.setHttpClient(client);\n\t\t\tthis.setRequestFactory(factory);*/\n\t\t}\n\n\t}", "title": "" }, { "docid": "9217dc4f844a4d4a008eb27c61d80d24", "score": "0.4728104", "text": "public static Proxy getProxy() {\n\t\treturn proxy;\n\t}", "title": "" }, { "docid": "85baba8f1245587f3c8e81d027a5f6b9", "score": "0.4724804", "text": "public HTTPProxyDestination(boolean enableManagement) {\n super(enableManagement);\n\n dynamicUrls = new ArrayList();\n }", "title": "" }, { "docid": "a57d836a2383b3a2aef52c0b2fd55c61", "score": "0.47211725", "text": "public Builder setProxied(boolean value) {\n \n proxied_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0bbb92964c18224e3b430843aee708bd", "score": "0.47132963", "text": "Call clone();", "title": "" }, { "docid": "fe19cd15eb77795f8b9cf5af2df28475", "score": "0.4711145", "text": "public ProxiesPriv() {\n\t\tthis(\"proxies_priv\", null);\n\t}", "title": "" }, { "docid": "4f2ea1fbae9e7cae7fd079b14c5fe392", "score": "0.47082514", "text": "@Override\r\n\tpublic JumpStatement makeClone() {\n\t\tJumpStatement newInstance = new JumpStatement();\r\n\t\tnewInstance.setJumpExpression(jumpExpression.makeClone());\r\n\t\tnewInstance.setJumpLiteral(new Vector<String>(jumpLiteral));\r\n\t\treturn newInstance;\r\n\t}", "title": "" }, { "docid": "4d84f473d77bcc9bbcc5cbd286f94c4c", "score": "0.47056627", "text": "private PlanAlgorithm getRouter() {\n final TravelTime travelTime = this.travelTimes.get(TransportMode.bike);\n TripRouterFactoryBuilderWithDefaults routerFactory = new TripRouterFactoryBuilderWithDefaults();\n routerFactory.setTravelTime(travelTime);\n routerFactory.setTravelDisutility( this.travelDisutilityFactories.get(TransportMode.bike).createTravelDisutility(travelTime) );\n// new RandomizingTimeDistanceTravelDisutilityFactory(TransportMode.bike, scenario.getConfig().planCalcScore()).createTravelDisutility(travelTime));\n\n final TripRouter tripRouter = routerFactory.build(this.scenario).get();\n final TimeInterpretation timeInterpretation = TimeInterpretation.create(this.scenario.getConfig());\n return new PlanRouter(tripRouter, timeInterpretation);\n }", "title": "" }, { "docid": "abae711434cee5a5b31085dd38d71673", "score": "0.46999246", "text": "public JsonSchemaConverter copy() {\n JsonSchemaConverter copy = create();\n copy.config = config;\n copy.mappers.addAll(mappers);\n copy.propertyNamingStrategy = propertyNamingStrategy;\n copy.refStrategy = refStrategy;\n copy.shapePredicate = shapePredicate;\n return copy;\n }", "title": "" }, { "docid": "6d4ea759e9f3a1075e634322c5e94206", "score": "0.46894282", "text": "public static void iniciarProxy(){\n ControladorInterfaces.proxy = new Proxy();\n }", "title": "" }, { "docid": "4d7cfb8b652429f6a9c4bc8426f216b5", "score": "0.46848384", "text": "public VectorIntf newCopy() {\r\n // DblArray1Vector x = new DblArray1Vector(_x);\r\n\t\tfinal int n = _x.length;\r\n\t\tDblArray1Vector x = DblArray1Vector.newInstance(n);\r\n\t\tfor (int i=0; i<n; i++) {\r\n\t\t\tx.setCoord(i, _x[i]);\r\n\t\t}\r\n return x;\r\n }", "title": "" }, { "docid": "aee46c75e97f2e38b14477c83880c729", "score": "0.46770844", "text": "public MachinePlanner createPlanner() {\r\n return new BasicPlanner(this);\r\n }", "title": "" }, { "docid": "3eff2529146963ec2fc632ad88dd8ef1", "score": "0.4676475", "text": "<T> T getProxy(final ClassLoader loader, final Class<T> targetClass, final InvocationHandler handler, final boolean override);", "title": "" }, { "docid": "be0c35b16db93a73ef6808bb585c4829", "score": "0.46739402", "text": "synchronized void addProxy() {\r\n proxyCount++;\r\n }", "title": "" }, { "docid": "5be36f5d23fb96fe16f01889650c011b", "score": "0.4665433", "text": "private void mockProxy() {\n PowerMock.mockStatic(ProxySelector.class);\n ProxySelector mockProxySelector = PowerMock.createMock(ProxySelector.class);\n EasyMock.expect(ProxySelector.getInstance()).andReturn(mockProxySelector).anyTimes();\n PowerMock.replay(ProxySelector.class);\n ProxyFactory mockProxyFactory = PowerMock.createMock(ProxyFactory.class);\n\n // Generate by Mock Plugin\n RemoteSender mockRemoteSender = PowerMock.createMock(RemoteSender.class);\n EasyMock.expect(mockRemoteSender.trigger(EasyMock.anyObject(SwiftRpcEvent.class))).andReturn(null).anyTimes();\n\n EasyMock.expect(mockProxyFactory.getProxy(EasyMock.eq(RemoteSender.class))).andReturn(mockRemoteSender).anyTimes();\n EasyMock.expect(mockProxySelector.getFactory()).andReturn(mockProxyFactory).anyTimes();\n PowerMock.replay(mockProxySelector, mockProxyFactory, mockRemoteSender);\n\n }", "title": "" }, { "docid": "3604d6a969cbc496ea947cbce1452495", "score": "0.46617708", "text": "public Object clone() {\n URLIntrospector copy = null;\n try {\n copy = (URLIntrospector) super.clone();\n } catch (CloneNotSupportedException e) {\n throw new UndeclaredThrowableException(e);\n }\n // copy internal state of this to copy\n copy.protocol = this.protocol;\n copy.reference = this.reference;\n copy.host = this.host;\n copy.userInfo = this.userInfo;\n copy.port = this.port;\n copy.path = this.path;\n\n // copy the query string\n copy.setQuery(this.getQuery());\n\n return copy;\n }", "title": "" }, { "docid": "79112db0b358f47c0c1f1ade6ad1ff89", "score": "0.4651878", "text": "@Override\r\n public ICrosser makeCopy() {\n return null;\r\n }", "title": "" }, { "docid": "759027318a2f5265a76979c4a61fb0ee", "score": "0.46457297", "text": "public Object clone() throws CloneNotSupportedException {\n RoutingMap obj = (RoutingMap) super.clone();\n obj.processors = Collections.unmodifiableSet(processors);\n obj.processMap = Collections.unmodifiableMap(processMap);\n obj.discardMap = Collections.unmodifiableMap(discardMap);\n obj.exceptionMap = Collections.unmodifiableMap(exceptionMap);\n return obj;\n }", "title": "" }, { "docid": "b16d8415c032f6874f8983ae0e367720", "score": "0.46428925", "text": "@Override\n public Network clone() throws CloneNotSupportedException {\n \n Network temp = new Network(1,1,_activationFunction.getType());\n temp.setError(_error);\n temp.setInitialUpdate(_initialUpdate);\n temp.setInputLayer(_inputLayer.clone());\n temp.setOutputLayer(_outputLayer.clone());\n temp.setLayerCount(_layerCount);\n\n Layer t = _inputLayer;\n Layer ttt = temp.getInputLayer();\n for (int i = 0; i < temp.getLayerCount() - 1; i++) {\n Layer tt = t.getNext().clone();\n ttt.setNextPointer(tt);\n tt.setPrevious(ttt);\n t = t.getNext();\n ttt = tt;\n }\n\n temp.setFinalize(_finalize);\n return temp;\n }", "title": "" }, { "docid": "24a91583b7b48a6733a07dc2ce8d1697", "score": "0.4638157", "text": "protected ServerConnector produceNewServerConnector() {\n return new ServerConnector(new ConnectionInformation(\"http\", \"localhost\", getPort(), \"/api/v1/\"), new DefaultTokenManager());\n }", "title": "" }, { "docid": "92953dc10152c4c78a0a4fb325802b4d", "score": "0.4633009", "text": "public googleDoodleEnv makeHardCopy() {\n\t\treturn new googleDoodleEnv(this.grid, iBunny, jBunny, dir);\n\t}", "title": "" }, { "docid": "c5ef47e33802988623f2ed2e1c65f162", "score": "0.4632806", "text": "public d deepCopy() {\r\n return new d(this);\r\n }", "title": "" }, { "docid": "5c7b01f4aa23b752d316d7a9541f3a15", "score": "0.4632012", "text": "@Override\n\tpublic Object clone() {\n\t\treturn new DGNNProtocol();\n\t}", "title": "" }, { "docid": "f63aeec5b47af2b7bfe269ea164fc0ec", "score": "0.46308017", "text": "void returnProxy(Proxy proxy, Page page, Task task);", "title": "" }, { "docid": "d071bc76e0dc32b5f832f95dec0c2cd6", "score": "0.46172887", "text": "public Poolable clone();", "title": "" }, { "docid": "f878b601499cbe954078b76569210bab", "score": "0.4611886", "text": "protected abstract Object getProxy(ProxyFactory proxyFactory, Name name, Map<String, List<String>> referenceAddresses);", "title": "" }, { "docid": "f10c20f5fd1d62550e7c8538670c6d01", "score": "0.4604708", "text": "public static sun.net.www.http.HttpClient New(URL url, String proxy, int proxyPort, boolean resolveProxy) \n throws IOException {\n\t/* see if one's already around */\n\t//HttpClient ret = (HttpClient) kac.get(url);\n\n\tObject obj = kac.get(url, null);\n\tHttpClient ret = null;\n\n\tif (obj instanceof HttpClient)\n\t ret = (HttpClient) obj;\n\n\tif (ret == null) {\n\t ret = new HttpClient(url, proxy, proxyPort, resolveProxy); // CTOR called openServer()\n\t} else {\n\t SecurityManager security = System.getSecurityManager();\n\t if (security != null) {\n\t\tsecurity.checkConnect(url.getHost(), url.getPort());\n\t }\n\t ret.url = url;\n\t}\n\t// don't know if we're keeping alive until we parse the headers\n\t// for now, keepingAlive is false\n\treturn ret;\n }", "title": "" }, { "docid": "06eee28bb0d4d50e292f32a0e0c5c4bc", "score": "0.46018428", "text": "public Object create(Class<?> iface, ClassLoader proxyLoader) {\n\t\treturn create(new Class[]{iface}, proxyLoader);\n\t}", "title": "" }, { "docid": "0e56d81dfca144e61f3f80b72805c14d", "score": "0.45812616", "text": "private static HttpConnection getPlainConnection(InetSocketAddress addr,\n InetSocketAddress proxy,\n HttpRequestImpl request,\n HttpClientImpl client) {\n if (request.isWebSocket() && proxy != null) {\n return new PlainTunnelingConnection(addr, proxy, client);\n } else {\n if (proxy == null) {\n return new PlainHttpConnection(addr, client);\n } else {\n return new PlainProxyConnection(proxy, client);\n }\n }\n }", "title": "" }, { "docid": "5b5b4df5c0681f5086c849a2e3f4a21c", "score": "0.4576282", "text": "public Maze MakeMaze() {\n return new Maze();\n }", "title": "" }, { "docid": "d7ee91cad89aab0e21a917bfece5ea5b", "score": "0.45746875", "text": "private CreditAgencyWS getProxy() {\n JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean();\n ClientFactoryBean clientBean = proxyFactory.getClientFactoryBean();\n clientBean.setAddress(creditAgencyAddress);\n clientBean.setServiceClass(CreditAgencyWS.class);\n clientBean.setBus(BusFactory.getDefaultBus());\n return (CreditAgencyWS)proxyFactory.create();\n }", "title": "" }, { "docid": "abfbaab0b311a85901d4b4916be6e00c", "score": "0.45715392", "text": "@Override\n public SwampTree newInstance(Tile tile) {\n return new SwampTree(tile, this.isObstructed());\n }", "title": "" }, { "docid": "6ccc1c9090984480aa8b786983867ef5", "score": "0.4570428", "text": "public Configuration forwardHttpProxy(InetSocketAddress forwardHttpProxy) {\n this.forwardHttpProxy = forwardHttpProxy;\n return this;\n }", "title": "" }, { "docid": "65656cad20a1b1781d36f3e132448005", "score": "0.45696408", "text": "@NonNull\n @Override\n protected Object clone() throws CloneNotSupportedException {\n\n ResponseMapping clone = new ResponseMapping(this.string, this.response, Position.valueOf(this.position.toString()));\n\n return clone;\n }", "title": "" }, { "docid": "352628a76ba6e6bca30ce23dcee32d0f", "score": "0.45674363", "text": "public Object clone() throws CloneNotSupportedException{\n AxesWalker clone=(AxesWalker)super.clone();\n //clone.setCurrentNode(clone.m_root);\n // clone.m_isFresh = true;\n return clone;\n }", "title": "" }, { "docid": "44256c4ab358879df11bbed6aa6b2fc0", "score": "0.4566477", "text": "@SuppressWarnings(\"unchecked\")\n public static <T> T createProxy(InvocationHandler handler, Class<T> itface)\n {\n if(handler instanceof ObjectProxy)\n {\n ObjectProxy proxy = (ObjectProxy) handler;\n if(!ReflectUtils.isSubClassOrInterfaceOf(proxy.getProxiedObject().getClass(), itface))\n throw new IllegalArgumentException(proxy.getProxiedObject().getClass() + \" does not extend \" + itface);\n }\n\n return (T) Proxy.newProxyInstance(itface.getClassLoader(),\n new Class<?>[] {itface},\n handler);\n }", "title": "" }, { "docid": "ce762e28471bd573a5dbdf831eece6ae", "score": "0.455798", "text": "@objid (\"80edc8a8-1dec-11e2-8cad-001ec947c8cc\")\n protected Connection createDummyConnection(final CreateMultiPointRequest req, final EditPart source) {\n return new PolylineConnection();\n }", "title": "" }, { "docid": "e63445e4b9f4a8407aa8bf8027672a99", "score": "0.45578963", "text": "public Object newDelegate() {\r\n\t\t\treturn new Person();\r\n\t\t}", "title": "" }, { "docid": "cf33ab0d70f5d51fb1b508e86661feba", "score": "0.45555788", "text": "public native ExtElement createProxy(String cls, Element renderTo, boolean matchBox) /*-{\r\n\t\tvar elem = this.@com.ait.ext4j.client.core.JsObject::getJsObj()();\r\n\t\telem.createProxy(cls, renderTo, matchBox);\r\n\t\treturn this;\r\n }-*/;", "title": "" }, { "docid": "83ffaa913c016bf9454c0b4a6d2c43d2", "score": "0.45550042", "text": "public Building copy()\n {\n return new Building(position.x, position.y, type, cityId);\n }", "title": "" }, { "docid": "d2888cc4ebd296646e2d541b59b923ec", "score": "0.45437244", "text": "@Override\n public WebSocket.Builder newWebSocketBuilder() {\n return new BuilderImpl(this.facade(), proxySelector);\n }", "title": "" }, { "docid": "e8ef0de260744cef42179d9f51aaaff5", "score": "0.45381778", "text": "public native ExtElement createProxy(DomConfig config, Element renderTo, boolean matchBox) /*-{\r\n\t\tvar configJS = config.@com.ait.ext4j.client.core.DomConfig::getJsObject()();\r\n\t\tvar elem = this.@com.ait.ext4j.client.core.JsObject::getJsObj()();\r\n\t\tvar proxy = elem.createProxy(configJS, renderTo, matchBox);\r\n\t\tvar proxyJ = @com.ait.ext4j.client.core.ExtElement::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(proxy);\r\n\t\treturn proxyJ;\r\n }-*/;", "title": "" }, { "docid": "f4837f28c6d9561431c1456425d5d2d2", "score": "0.4536655", "text": "public interface Proxy {\n\t\n}", "title": "" }, { "docid": "ad6b66afe78cea581d4cd6a251e6eda5", "score": "0.4535985", "text": "Proxy getProxy(Task task);", "title": "" }, { "docid": "be4362040bee8d731a63400628fd4fc1", "score": "0.45353964", "text": "RouterComponent createRouterComponent();", "title": "" } ]
d684f1ec0c685cccd78b7bc138a40936
Class constructor. Inherits from parent class LoginAccount
[ { "docid": "780d3817ae53308a6c2a15adc0788f6a", "score": "0.0", "text": "public Admin() {\n\t\tsuper();\n\n\t}", "title": "" } ]
[ { "docid": "8f4531d8e1645181ad2adce5e25f4ebb", "score": "0.78474075", "text": "public Accounts(String login)\r\n\t{\r\n\t\tsuper(login);\r\n\t}", "title": "" }, { "docid": "9384a70197e69c27af5fa64ef477c376", "score": "0.7697106", "text": "public Login() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "51deaea7dc7929a7b93f30c8a33a1292", "score": "0.7690585", "text": "public Login() {\n super();\n }", "title": "" }, { "docid": "11263af42f5b7a590036bc6737295317", "score": "0.76034546", "text": "public UserAccount() {\n\t \n\t }", "title": "" }, { "docid": "1c2f0d8e0b97f154cde61069195905c6", "score": "0.7557231", "text": "Login_Employee(String username, String password, String loginType) {\n super(username, password, loginType);\n }", "title": "" }, { "docid": "900645daaba963e004886fc3c8f244f8", "score": "0.73673904", "text": "public UserAccount() {}", "title": "" }, { "docid": "079abd29e1f3461e4527b40f84614d68", "score": "0.73312384", "text": "public Account() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "6e1303b7a8b770a4afe79ae4731e12b7", "score": "0.73154575", "text": "public Login() {\n }", "title": "" }, { "docid": "6e1303b7a8b770a4afe79ae4731e12b7", "score": "0.73154575", "text": "public Login() {\n }", "title": "" }, { "docid": "68a9395b0130ea09ae27d6d37b85081e", "score": "0.72689676", "text": "public login(){}", "title": "" }, { "docid": "daa95282b8e9981780884b6a4299781e", "score": "0.7212611", "text": "private Login() {}", "title": "" }, { "docid": "820013ce81b71b990022c0ba9afdf9d3", "score": "0.7159821", "text": "private Account() {\n\t\t}", "title": "" }, { "docid": "49cba28f39cc50b7dc1e886437887b99", "score": "0.71049947", "text": "public Account() {\r\n }", "title": "" }, { "docid": "163899398ee94bb139197dfb033361e3", "score": "0.70989305", "text": "public Login() {\r\n\t\tusername=\"\";\r\n\t\tpassword=\"\";\r\n\t\t\r\n\t}", "title": "" }, { "docid": "31ebfad8d245ce422b144ab08368958f", "score": "0.70642054", "text": "public Account() {}", "title": "" }, { "docid": "01af83664b1835af9b290b56f7c2f7eb", "score": "0.70311797", "text": "public User(String name, String email, String password, String username, String accountType) {\n super(name, email, password, username, accountType);\n }", "title": "" }, { "docid": "1829e91fec69e5304156340274e5e7cc", "score": "0.7018951", "text": "public LogIn() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "c932d855fb5cc27fc7dd61126401608a", "score": "0.700556", "text": "public ManagedLogin() {\n }", "title": "" }, { "docid": "91a06dbe994a7836803d75e3aa4adc2c", "score": "0.69722646", "text": "protected LoginResp() {\r\n\r\n }", "title": "" }, { "docid": "ca9e540a1f013a9d20716eebcea47fda", "score": "0.6940634", "text": "public Account() {\n }", "title": "" }, { "docid": "d38faa2ec3e7e9afabb35f9655d4d810", "score": "0.692337", "text": "public LoginDeUsuario() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "title": "" }, { "docid": "72778dbefcbf1eb872bbe6f99155037a", "score": "0.6865615", "text": "public Account() {\n // No-op.\n }", "title": "" }, { "docid": "5df5fd12e12795648ce8104e529b7e55", "score": "0.6840264", "text": "public Accounts(String login, String password, BigDecimal lastactive,\r\n\t\t\tInteger accessLevel, Integer lastServerId, Integer birthYear,\r\n\t\t\tInteger birthMonth, Integer birthDay, String lastIp)\r\n\t{\r\n\t\tsuper(login, password, lastactive, accessLevel, lastServerId, lastIp);\r\n\t\tthis.birthYear = birthYear;\r\n\t\tthis.birthMonth = birthMonth;\r\n\t\tthis.birthDay = birthDay;\r\n\t}", "title": "" }, { "docid": "07a413e67dd7ea349a1f06c8290bee21", "score": "0.68388134", "text": "public CheckLogin() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "359c797e20a64496ff0407a6331a1fd1", "score": "0.67291856", "text": "public TimedLogin() {\n }", "title": "" }, { "docid": "c17cdde12cd14816946f21cbd3437d14", "score": "0.67054754", "text": "private Login() {\n initFields();\n }", "title": "" }, { "docid": "28d58aeb94b0e8ce219f8cca0ce212f1", "score": "0.6701603", "text": "public AccountEntity(String username, String password) {\r\n\t\tthis.username = username;\r\n\t\tthis.password = password;\r\n\t}", "title": "" }, { "docid": "16537f02dea878f11233eeff0b45bfb8", "score": "0.6692296", "text": "public Account(String anAccountName){\n accountName = anAccountName;\n balance = 0;\n numberOfTransactions = 0;\n }", "title": "" }, { "docid": "9122e827a768759b40e8210940339dde", "score": "0.6681529", "text": "public Customer(String username, String password) {\n super(username, password);\n }", "title": "" }, { "docid": "de7536d23f65fce42e230c638d720441", "score": "0.6656507", "text": "protected InvestmentAccount() {\n\n }", "title": "" }, { "docid": "bbca429b1a295b724b732009d0ec6e68", "score": "0.66468763", "text": "public EnrollmentAccount() {\n }", "title": "" }, { "docid": "fbca1a69d5af32caf581b407a673ee7b", "score": "0.6633566", "text": "public User(String email, String password, String username) {\n this.email = email;\n this.password = Crypto.passwordHash(password);\n this.username = username;\n Skins.setSkin(this,\"DEFAULT\");//set skin as default skin\n // this.education = new ArrayList<Enrollment>();\n }", "title": "" }, { "docid": "8de369fea497856833905148a5a2f906", "score": "0.6609545", "text": "public Accounts(String FIELD_OFFICIAL_NAME,String FIELD_OFFICIAL_EMAIL,String FIELD_OFFICIAL_UNAME,String FIELD_OFFICIAL_PASSWORD) {\r\n\t\tsuper();\r\n\t\tthis. FIELD_OFFICIAL_NAME= FIELD_OFFICIAL_NAME;\r\n\t\tthis. FIELD_OFFICIAL_EMAIL= FIELD_OFFICIAL_EMAIL;\r\n\t\tthis. FIELD_OFFICIAL_UNAME=FIELD_OFFICIAL_UNAME;\r\n\t\tthis. FIELD_OFFICIAL_PASSWORD = FIELD_OFFICIAL_PASSWORD;\r\n\t}", "title": "" }, { "docid": "7c5c99bb3bc1af5d1a56775d87ebeab6", "score": "0.6577246", "text": "public NewAccount() {\n super(\"HomePage\");\n initComponents();\n conn = JavaConnect.ConncerDB();\n }", "title": "" }, { "docid": "0bfa3c712a6286df80a33ae88de1af51", "score": "0.6565685", "text": "public Persistent_logins() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "f94f7cc552be887b12afe1fdca1feff8", "score": "0.65491176", "text": "public abstract User login(String email, String password);", "title": "" }, { "docid": "63f01c401540ee1b767df93db332c3f1", "score": "0.6504762", "text": "public SavingsAccount(){\n\t\tsuper(\"\", 0);\n\t}", "title": "" }, { "docid": "eb348806d99ad50c415ff7e39792884c", "score": "0.6490024", "text": "public PasswordEncrypt() {\n }", "title": "" }, { "docid": "86dd49244f9b2beca281610fa6c79ad1", "score": "0.64880913", "text": "public BankAccountPlus() {\n }", "title": "" }, { "docid": "2bae77f48fdb8d229d815f4218ae6cd9", "score": "0.6485237", "text": "public BankAccount() {\r\n\t\r\n\tpin = 9999;\r\n\tacctNum= 999999999;\r\n\t\r\n }", "title": "" }, { "docid": "57c5684c70e47833bf11d4055d204127", "score": "0.64755267", "text": "public AccountDao() {\n super(Account.ACCOUNT, com.scratch.database.mysql.jv.tables.pojos.Account.class);\n }", "title": "" }, { "docid": "ee36d6b0be0318e909cf51d86a8fc743", "score": "0.64688736", "text": "public abstract IntfUser login(String login, String password);", "title": "" }, { "docid": "3c7baffcc41a773cfbe63929d13dd598", "score": "0.6455656", "text": "public User(String login, String password) {\n this.login = login;\n this.password = password;\n }", "title": "" }, { "docid": "8d2bd997d0f7cd1e1aaa1a4be433f1cd", "score": "0.6439678", "text": "public AppUser(String usernameGiven,String passwordGiven){\r\n this.username=usernameGiven;\r\n this.password1=passwordGiven;\r\n }", "title": "" }, { "docid": "256be3b4e52c83039791fa374d57612a", "score": "0.640892", "text": "public Authentication() {\n }", "title": "" }, { "docid": "d03b0b80adbd6299a983ad4a85fb3f27", "score": "0.6405307", "text": "public CheckingAccount(BankAccountPK anId) {\n\tsuper(anId);\n}", "title": "" }, { "docid": "ece67fda58ac21be01a5a0dc3891348d", "score": "0.63948387", "text": "public LoginContext()\r\n\t{\r\n\t\tthis(0, false);\r\n\t}", "title": "" }, { "docid": "aecedc85e4965b156d0500ef120d4ec5", "score": "0.6390244", "text": "public InternetAccount(int i, String p, long s) {\n setId(i);\n setPassword(p);\n setSessionId(s);\n }", "title": "" }, { "docid": "4e24ce5e1224da5d954f0c260d581afa", "score": "0.6387568", "text": "public Account() {\n initComponents();\n }", "title": "" }, { "docid": "2c7219698531a0b7e0750a53d49c7f40", "score": "0.63805526", "text": "Login createLogin();", "title": "" }, { "docid": "b1e297138c794fececad1eb32d5e7fff", "score": "0.6371788", "text": "public AppUser(String passwordGiven){\r\n this.password1=passwordGiven;\r\n }", "title": "" }, { "docid": "c6cb81b122f6e77e3e7443fb2740e0e0", "score": "0.63676775", "text": "BankAccount(){\n\t\tSystem.out.println(\"New Account creates....\");\n\t}", "title": "" }, { "docid": "e98dbbed8d05edfbdf311ecdfef75251", "score": "0.63663095", "text": "public Admin(String firstName, String lastName, String userName, String password){\n\t super.setTypeOfUser('a');\n\t super.setFirstName(firstName);\n\t super.setLastName(lastName);\n\t super.setUsername(userName);\n\t super.setPassword(password);\n\t }", "title": "" }, { "docid": "a354bdc21af23ba17e9928404efac83d", "score": "0.6357304", "text": "public Login() {\n super(\"JFSS (Java File Security System)\");\n initComponents();\n }", "title": "" }, { "docid": "992c904d2a208b946c0c9b0f29eddcaa", "score": "0.6353088", "text": "public User(String userName){\n\t\t\tlogin = userName;\n\t}", "title": "" }, { "docid": "379d11cb7c14c50d1b912194bcc1d4b1", "score": "0.6345276", "text": "public Account(String pass, int salt) {\r\n\t\tthis.salt = salt; \r\n\t\tthis.accountID = nextIDNum++; \r\n\t\tthis.setPlaintextPassword(pass);\r\n\t}", "title": "" }, { "docid": "fc5c98d9789b0ca3e708a3d1c364b86f", "score": "0.63384014", "text": "public TbltrackLogin() {\n this(\"tbltrack_login\", null);\n }", "title": "" }, { "docid": "317a25f7f174411ce56fa9249bfd1606", "score": "0.6328436", "text": "private AccountManager() {\n\n\t}", "title": "" }, { "docid": "1ba795ac11485dbbddaacf122e83657a", "score": "0.6325864", "text": "public BankAccount()\n {\n this(0);\n }", "title": "" }, { "docid": "e25885a9dfd34598a978e9185c3ace7b", "score": "0.63212883", "text": "public Login() {\n initComponents();\n \n \n }", "title": "" }, { "docid": "a707481a5bb2b587698d57feb83fe890", "score": "0.63171995", "text": "@Override\n public LoggedInUser login(String username, String password, Map properties)\n {\n return null;\n }", "title": "" }, { "docid": "f6e0b97bc8fb93cfa6bcdaf5ed882d08", "score": "0.6301334", "text": "public UserLogin() {\n initComponents();\n }", "title": "" }, { "docid": "f6e0b97bc8fb93cfa6bcdaf5ed882d08", "score": "0.6301334", "text": "public UserLogin() {\n initComponents();\n }", "title": "" }, { "docid": "fccd9d76edb0b231541446ae05e4660d", "score": "0.6294591", "text": "public UserLoginResponse() {\n }", "title": "" }, { "docid": "520831311aa46a184429b677015d7426", "score": "0.6286274", "text": "public BankAccount( int newAcctNum, String newPass ) {\r\n\tacctNum=newAcctNum;\r\n\tpasswd = newPass;\r\n\tpin = 9999;}", "title": "" }, { "docid": "38b37f1aecb3cc4eaf9871b957456d77", "score": "0.628151", "text": "public Account(String username, String password, List<String> authorities) {\n\t\tthis.username = username;\n\t\tthis.password = password;\n\t\tthis.authorities = authorities;\n\t}", "title": "" }, { "docid": "e00892fa64c69de0d0acf4ea628dc0ab", "score": "0.62654907", "text": "public DirectorManagement() \n {\n super();\n this.accountDirector = \"???\";\n this.passwordDirector = \"???\"; \n this.submitAccount = false;\n }", "title": "" }, { "docid": "44431392acd670b587d8d9c884705b25", "score": "0.6259168", "text": "public Account(String aUserName, String aPassword, String aName, String aEmail, boolean admin){\n\t\t\n\t\tthis.passwordEncryptor = new BasicPasswordEncryptor();\n\t\tthis.userName = aUserName;\n\t\tthis.name = aName;\n\t\tthis.email = aEmail;\n\t\tthis.password = createEncryptedPassword(aPassword);\n\t\t\n\t}", "title": "" }, { "docid": "4ed7357c18ab7f72979baeb963819c9d", "score": "0.6252389", "text": "public AdminAccount(String name, String pwd) {\n this.name = name;\n this.pwd = pwd;\n }", "title": "" }, { "docid": "455f485290ea45ee3320ab8fc37b89fb", "score": "0.62407464", "text": "public Account(String aUserName, String aPassword, String aName, \n\t\t\tString aEmail, String aAddress, String aPhoneNum, boolean isAdmin){\n\t\t\n\t\tthis.passwordEncryptor = new BasicPasswordEncryptor();\n\t\tthis.userName = aUserName;\n\t\tthis.password = createEncryptedPassword(aPassword);\n\t\tthis.isAdmin = isAdmin;\n\t\tthis.name = aName;\n\t\tthis.email = aEmail;\n\t\tthis.phoneNumber = aPhoneNum;\n\t\tthis.address = aAddress;\n\t\t\n\t}", "title": "" }, { "docid": "dbb5fba5a17071ab3b96503247b89217", "score": "0.6226486", "text": "public LoginBean() {\r\n\t}", "title": "" }, { "docid": "c2c5681f3404b486a55a3751a9dd961a", "score": "0.621696", "text": "public User(String username, String fname, String lname, String email, String password) {\n this.username = username;\n this.fname = fname;\n this.lname = lname;\n this.email = email;\n this.password = password;\n }", "title": "" }, { "docid": "9c35989e58f6c0693b40203d3d44f9c0", "score": "0.62105656", "text": "public LoginResource() {\r\n }", "title": "" }, { "docid": "9c35989e58f6c0693b40203d3d44f9c0", "score": "0.62105656", "text": "public LoginResource() {\r\n }", "title": "" }, { "docid": "fb6e3085825b8e7cf89cfe84aaaf1613", "score": "0.62053466", "text": "public LoginRequest() {\n super(LoginResponse.class);\n }", "title": "" }, { "docid": "fe942f453aafae9808410ffa98bac586", "score": "0.6199461", "text": "public Usuario (){\n\t\t\n\t}", "title": "" }, { "docid": "1a32b2f603bee1a7682fb069b065cc66", "score": "0.61839956", "text": "Account(int accNo,int pinNo,int cash){\r\n AccNo=accNo;\r\n userPinNo=pinNo;\r\n availableBalance=cash;\r\n totalBalance=cash;\r\n }", "title": "" }, { "docid": "cad5ff616a2a1f0209827aa71ee684a4", "score": "0.61812633", "text": "public LoginBean() {\r\n }", "title": "" }, { "docid": "cad5ff616a2a1f0209827aa71ee684a4", "score": "0.61812633", "text": "public LoginBean() {\r\n }", "title": "" }, { "docid": "487049eb5a1199a9521bdbf9c4359443", "score": "0.61766016", "text": "public LoginRequest() {\n }", "title": "" }, { "docid": "c45b061ef864c7cfe5668f69778a0b0a", "score": "0.6175138", "text": "public Login(StringProperty email, StringProperty password) {\n\t\t\n\t\t//Må få inn try/catch\n\t\tif(validateEmail(email)){\n\t\t\tthis.email = email;\t\t\t\n\t\t}\n\t\t\n\t\tif(validatePassword(password)){\n\t\t\tthis.password = password;\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "e35361fd07434fe364ae0036e36f25df", "score": "0.61711735", "text": "public BankAccount() {\t\t\r\n\t\tnumberLoans = 0;\r\n\t\tbalance = Balance.INITIALBALANCE;\r\n\t}", "title": "" }, { "docid": "b3f5ac228ef1926e59e406725d0d8e16", "score": "0.6166791", "text": "public CustomerStart(String username, String password) {\n this.username = username;\n this.password = password;\n initComponents();\n }", "title": "" }, { "docid": "42aa26a930f53e2557b826cc475792c8", "score": "0.61642104", "text": "public Passwordmanage()\n {\n }", "title": "" }, { "docid": "68bc652e3ff9da3d1e841a20d2f7de98", "score": "0.6162155", "text": "public MyUsernamePasswordAuthUser(final String password) {\n\t\tsuper(password, null);\n\t\tlastName = null;\n\t\tfirstName = null;\n\t}", "title": "" }, { "docid": "42b80aa2601238eaf29925cedba6b040", "score": "0.6161431", "text": "public AbstractUser(String username, String password) {\r\n\t\tsuper();\r\n\t\tthis.username = username;\r\n\t\tthis.password = password;\r\n\t}", "title": "" }, { "docid": "c05d7d7414a54b6f0ea92d9bd117991b", "score": "0.61593884", "text": "BankAccount(){\n\t\tSystem.out.println(\"New account created.\");\n\t}", "title": "" }, { "docid": "aa0ea0613d79cc41bde91664a8b9adcc", "score": "0.6135335", "text": "public TLoginInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "d88ec99ecc8b96db515f18d7e69b51f7", "score": "0.6132681", "text": "public RdbmsLoginModule() {\n tempCredentials = new ArrayList();\n roles = new ArrayList<>();\n loginResult = false;\n debug = false;\n }", "title": "" }, { "docid": "a46b2bd81b82abdd0c2dcc255194e6e1", "score": "0.61289954", "text": "private void login() {\n }", "title": "" }, { "docid": "49860ffcc01a2e2cb8a095db7799f251", "score": "0.6127304", "text": "public Customer(String userName,String password,\n\t\t\tUserType usertype)\n\t{\n\t\tsuper(userName, password, usertype);\n\t}", "title": "" }, { "docid": "7824e903dafc37eae35ecaa5f95ed768", "score": "0.6126354", "text": "public SalariedEmpolyee()\r\n {\r\n\r\n account=new Account();\r\n }", "title": "" }, { "docid": "2e8f9b8dd65af5fa7ebdb05f70e3d1a0", "score": "0.61116576", "text": "public BankAccount(){\n\t\tbalance=0;\n\t\taccountType=0;\n\t\tAccountNumber=\"none\";\n\t\tAccountHolder=\"Uknown\";\n\t}", "title": "" }, { "docid": "10f9fa9ccfa1adbd31be78e2e7b88722", "score": "0.61104673", "text": "public BankAccount(long accNum, double balance, String name, String email, long phoneNum){\n this.accNum= accNum;\n this.balance= balance;\n this.name= name;\n this.email= email;\n this.phoneNum= phoneNum;\n }", "title": "" }, { "docid": "12af2ba0f7c2506159f70dde3ca1adc8", "score": "0.61104524", "text": "public newAccount() {\n initComponents();\n }", "title": "" }, { "docid": "00d50b699c43cd4b7e5d70609170a592", "score": "0.610552", "text": "public void newAccount (Account account) {\n \n }", "title": "" }, { "docid": "acfff97d3a2d448dde3dd58d84659640", "score": "0.6105473", "text": "public LoginPageTest() { // Constructor of this class(LoginPageTest)\n\t\tsuper(); // Constructor of super or parent class(TestBase)\n\t}", "title": "" }, { "docid": "90f3e00516c4370e570dc775f93feed0", "score": "0.61048675", "text": "public Account(String anAccountName, int aBalance, int aNumberOfTransactions){\n accountName = anAccountName;\n balance = aBalance;\n numberOfTransactions = aNumberOfTransactions;\n }", "title": "" }, { "docid": "92331982011b9fdcfa2223a26cc7d8aa", "score": "0.608668", "text": "public AccountLogin(long id, long accountId, short serverId, String ip, Instant loggedInAt)\n\t{\n\t\t_id = id;\n\t\t_accountId = accountId;\n\t\t_serverId = serverId;\n\t\t_ip = ip;\n\t\t_loggedInAt = loggedInAt;\n\t}", "title": "" }, { "docid": "e613596794b4ca2a06ac33bcc4115e25", "score": "0.60845554", "text": "private AccountingTransaction() {\r\n }", "title": "" }, { "docid": "7993e8e43e9171d087de7a2cc9e7376f", "score": "0.60818064", "text": "public LoginFormData() {\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "f91ffe38c05090a0c551bf8a8cb877ba", "score": "0.0", "text": "@Override\r\n\tpublic ResponseEntity<Object> update(ObjectNode entity, HttpServletRequest request) {\n\t\treturn null;\r\n\t}", "title": "" } ]
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "941cb2826e3c700358fcaba402e6bb01", "score": "0.66775143", "text": "@Override\r\n\tpublic void hissetmek() {\n\r\n\t}", "title": "" }, { "docid": "63918b2e510c9040bbddcac00095b41a", "score": "0.6605982", "text": "private void recuperation() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "6a98c5d2724fce37914819c5694da3c3", "score": "0.6509783", "text": "@Override\r\n\tpublic void anular() {\n\r\n\t}", "title": "" }, { "docid": "dae8b602ea36995333bfb23acf8fc88d", "score": "0.6496443", "text": "@Override\n\tpublic void respire() {\n\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "f099266a753a2faacd6b8dfa57904378", "score": "0.64321727", "text": "@Override\r\n\tpublic void courrir() {\n\t}", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.6425563", "text": "@Override\r\n\tpublic void grabar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1068dc3e7725abba37b41c9a52dee06b", "score": "0.6386121", "text": "@Override\r\n\tpublic void tatmak() {\n\r\n\t}", "title": "" }, { "docid": "6141981a3ecff744fc5ac85a76ccce98", "score": "0.63590497", "text": "@Override\r\n\tpublic void avlan() {\n\t\t\r\n\t}", "title": "" }, { "docid": "98fb55d46118273a6e8a6d23841c620d", "score": "0.6327681", "text": "@Override\n\tpublic void eati() {\n\t\t\n\t}", "title": "" }, { "docid": "0792d032a803e20f3b87637fd91001d5", "score": "0.62811846", "text": "@Override\n\tpublic void getSugary() {\n\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.6276059", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a8ee8a5581ce765ec4ab398c0459e014", "score": "0.61750215", "text": "@Override\r\n\tpublic void koklama() {\n\r\n\t}", "title": "" }, { "docid": "0e69410f7365f8e3379273ee4419fb49", "score": "0.6149904", "text": "@Override\r\n\tprotected void init() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "d65d6c17fb978c0d576ada2c03cd49fe", "score": "0.61387193", "text": "@Override\n\tpublic void apagar() {\n\t\t\n\t}", "title": "" }, { "docid": "8bae22ac805011d799a49bd7b5316540", "score": "0.612467", "text": "@Override\n public int describeContents() {\n // Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "8c5b7f2508d01c106c784ecca7153f46", "score": "0.6119395", "text": "@Override\n\tvoid comer() {\n\t\t\n\t}", "title": "" }, { "docid": "7bc643d9ac7542f10430da7f200395d4", "score": "0.610188", "text": "@Override\n\tpublic void fiyat() {\n\t\t\n\t}", "title": "" }, { "docid": "7dadb1a7e45c020b2193294044375a9d", "score": "0.60646844", "text": "@Override\r\n \tpublic void init() {\n \t\t\r\n \t}", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.60607964", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "b7f027eb6ff62218a28c15c608504db7", "score": "0.6055265", "text": "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "9dd1bbd8c949b94d0e93b83bfc68c88a", "score": "0.6021345", "text": "@Override\n\tpublic void aeronoticalinfo() {\n\t\t\n\t}", "title": "" }, { "docid": "2762ca3c2d0df2e43c2974f74b6f5794", "score": "0.6013198", "text": "public void mo23507LF() {\n }", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "119b459aa82980ed18ed9f73e4c0c1f6", "score": "0.5970375", "text": "public void mo8248e() {\n }", "title": "" }, { "docid": "c7fe9cc2a6c42140d48d92c4796a998c", "score": "0.5924626", "text": "@Override\r\n\t\t\t\t\t\tpublic void visitEnd() {\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "092f51e9c99cd4188e1aae23e1830dfd", "score": "0.58991617", "text": "protected void func_70626_be() {}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5896488", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "4790ff4cb67532ccdfaae8968e73fbc3", "score": "0.58832747", "text": "@Override\n protected void initData() {\n\n\n }", "title": "" }, { "docid": "023182f0f855d46c66b41a6d83583efa", "score": "0.5871911", "text": "@Override\r\n\tpublic void singen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8d96d27dfdf5b1a8cc8b8a7627c83bc1", "score": "0.5869012", "text": "@Override\n public void afficher() {\n\n }", "title": "" }, { "docid": "298aa14afe5846b172f76bcf90564013", "score": "0.58663046", "text": "@Override\n\tprotected void initAfterData() {\n\t\t\n\t}", "title": "" }, { "docid": "e065a728f99482f0172c0250b07109a9", "score": "0.58587575", "text": "public void MIENTRAS() {\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "6c15d2233a095a738527f0099df0e328", "score": "0.58534765", "text": "@Override\n\tprotected void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7da3b15ef60da758589933b21890a100", "score": "0.5835782", "text": "@Override\n\t\t\tpublic void buscar() {\n\n\t\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.5810359", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "ac3fa8f374744c1d8419fb42b093eb87", "score": "0.58098364", "text": "@Override\n public void ATOM() {\n\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "17bf5dfb3822657f7beb964bbcaf351d", "score": "0.58010787", "text": "private void getdata() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c1cba83b623b4186565c3383ace251b9", "score": "0.5798524", "text": "@Override\n public void RES() {\n\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "04320a5131c4ec5a83b61f5170f3303b", "score": "0.578828", "text": "private void refreash() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "96aa62cb7c02dc761fce03adeea3bae6", "score": "0.5768868", "text": "public void consumidor() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "f76cff0faf8f5cac2bb5c9fa073b3900", "score": "0.5732497", "text": "private static void ispisiRemi() {\n\t\t\n\t}", "title": "" }, { "docid": "0da844a8d21284fc890b9866b17625b3", "score": "0.5729389", "text": "public void auton() {\r\n\r\n\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "e0989255fd1af22841693489e1afa33b", "score": "0.57214063", "text": "public void mo24349a() {\n }", "title": "" }, { "docid": "b860b78be8e10589ee5bd58e2ab7be8e", "score": "0.57196456", "text": "@Override\r\n\tpublic void autonomous() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "08ff281f85800b58e0eb77195be25bfc", "score": "0.5708199", "text": "public void finito() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "24b649f4fd4e2e8f4e195b19c09f4c8b", "score": "0.56936413", "text": "@Override\n public void FUNMAYORQ() {\n\n }", "title": "" }, { "docid": "b3c7aad07c4af0cfec14c4b0f0f289ef", "score": "0.5692504", "text": "@Override\n\tpublic void arb() {\n\n\t}", "title": "" }, { "docid": "8657ef720f12b2480d4363be4e46781e", "score": "0.5691313", "text": "protected boolean method_4310() {\r\n return true;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "45fd99bd8793c6d67c4f276a27b4fdca", "score": "0.5685153", "text": "@Override public int getDefensa(){\n\n return 0;\n\n }", "title": "" } ]
c923da041b69479ef03616b9f8f163aa
Default constructor. Can override by subclasses.
[ { "docid": "b25a907f37fbe4300c95f3c12aa014b9", "score": "0.0", "text": "C10E13GeometricFigure(){ }", "title": "" } ]
[ { "docid": "0a132d984c58769e5c52e467e589cbb5", "score": "0.7558841", "text": "protected Constructor(){\r\n\t}", "title": "" }, { "docid": "c53dbd71ec35ff380661b14df2848fc4", "score": "0.7272671", "text": "protected OBJ() {\n this(null);\n }", "title": "" }, { "docid": "72cbbfc4f9caf74bdea6e6f7691b87f4", "score": "0.710834", "text": "public Zubereitungsanleitung() {}", "title": "" }, { "docid": "2ac23f1f7a52fb730d0001b45bab9f28", "score": "0.7098208", "text": "public Piegeur() {\r\n\t}", "title": "" }, { "docid": "b3e30b9dd4ba91d0fc705fd69af5b153", "score": "0.7042844", "text": "public Tyrian()\n {\n \t\n }", "title": "" }, { "docid": "46a460fe7658f3c47ccd353629357303", "score": "0.7033872", "text": "private Obsfucator() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "ca38cce0c6bc3e74da6229826310ea0b", "score": "0.7025279", "text": "public Extended()\r\n\t\t{\r\n\t\t\tthis(true,true);\t\t\t\r\n\t\t}", "title": "" }, { "docid": "4f4fc4805345a96fae39c8dbd5394f16", "score": "0.69819844", "text": "public Cruiser() {\n super(3);\n }", "title": "" }, { "docid": "a76b0461e69c9739403edc2f64d4d4a0", "score": "0.6936102", "text": "public Picture() {\n\t\t/*\n\t\t * not needed but use it to show students the implicit call to super()\n\t\t * child constructors always call a parent constructor\n\t\t */\n\t\tsuper();\n\t}", "title": "" }, { "docid": "42f354572b7cf11d3bbfb2e46958dda0", "score": "0.6918294", "text": "private Version()\n {\n // Empty default ctor, defined to override access scope.\n }", "title": "" }, { "docid": "165fc8d8939e6ebde0a7bab89f18d73f", "score": "0.69137836", "text": "@Override\n\tprotected void construct() {\n\t\t\n\t}", "title": "" }, { "docid": "f3ba4082161625a198b6e82b860ad8eb", "score": "0.6855577", "text": "public Noeud() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "05ea33860b86cf2f2cd3d64dc1de9cd7", "score": "0.68490475", "text": "public Simple() {\n }", "title": "" }, { "docid": "b2996230832762988d46b4acb7f7eef1", "score": "0.6847677", "text": "protected Document () {\n\t\tthis(null, null);\n\t}", "title": "" }, { "docid": "887ed814f91e8a72f9e23ec86ad50bb4", "score": "0.6847095", "text": "protected Document () {\r\n\t\tthis(null, null);\r\n\t}", "title": "" }, { "docid": "28beea7569e98179db3596d67a9de699", "score": "0.68449324", "text": "@Override\n public void init() { }", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.6829374", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "7fca8e41f05c9bdd22ac89cda28e66af", "score": "0.68183756", "text": "public Basic() {}", "title": "" }, { "docid": "d9d1e12ccfd061270ce263d9d8e0108c", "score": "0.678607", "text": "public Kalah() {\n\t}", "title": "" }, { "docid": "bafda7f11b4da877e6c45139606ffb8b", "score": "0.6783518", "text": "public Maneuver() {\r\n }", "title": "" }, { "docid": "0daf338670fc2f5b6ad71a4eff8bb07b", "score": "0.67797726", "text": "public AbstractComponent() {\n this(17, 1000, true);\n }", "title": "" }, { "docid": "29615cbc9d81f7962700de0df66016db", "score": "0.6779347", "text": "public Node() {\n this(null,null,null);\n }", "title": "" }, { "docid": "3e5d8101593594d072339c706b9a6913", "score": "0.6768385", "text": "public Pessoa () {\n\t\t\n\t}", "title": "" }, { "docid": "0732d08de63d1de88c81baabd981f3ac", "score": "0.6755426", "text": "public Simple() {\n super(\"Simple\", 25.23,5,0,10);\n }", "title": "" }, { "docid": "4791494664f19cbaa6bbd4669d0c341c", "score": "0.6750534", "text": "protected Node(){}", "title": "" }, { "docid": "4849b27a7b3a78288a988a0edd78d0df", "score": "0.67408353", "text": "public Node() {\n this(null, null, null);\n }", "title": "" }, { "docid": "517a2e84dc07a6936621711ee0f1c6f9", "score": "0.6720701", "text": "public Car() {\n this(4, 4, \"Default model\", \"Some engine\", \"Red\");\n }", "title": "" }, { "docid": "8f108e2c9069c553d2e4d12f2661488a", "score": "0.67153573", "text": "public Person() {\n this(\"\", 0, 0.0d);\n }", "title": "" }, { "docid": "c5e7ce16cefcdc1de871e26d590f9a6d", "score": "0.6715225", "text": "public Cafeteria() {\r\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.67125416", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.67125416", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "33fc8df42eaab4ad0f135e352fa0aa90", "score": "0.6708487", "text": "protected AbstractList() {\n }", "title": "" }, { "docid": "80eed9459ec475453263ee414c8cfffe", "score": "0.6701374", "text": "protected DataType() {\n super();\n }", "title": "" }, { "docid": "d36639f223d978fec860bc0a8b3192cb", "score": "0.6699899", "text": "@Override\n\tprotected void initialize() {}", "title": "" }, { "docid": "ac6c39670a9da98550b2346bf75e519d", "score": "0.66761744", "text": "public Job() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "cf2b9a386426fb57cd5287019bcdb674", "score": "0.6673833", "text": "public Titik() {\n }", "title": "" }, { "docid": "78ca88a32abc77263bf29ee8092f3c70", "score": "0.667238", "text": "public Main14() \n\t{\n\t\tthis(null);\n\t}", "title": "" }, { "docid": "7603c72dcc13471e81f3244a6eeaf303", "score": "0.667094", "text": "public StnNewVORowImpl() {\n }", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.66693985", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.66693985", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.66693985", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.66693985", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.66693985", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "cac20469a56e75eff52d3c242d53b2b0", "score": "0.6655915", "text": "protected IRNode ( ) {\n super();\n }", "title": "" }, { "docid": "6ddf2dc3984093641ae87ef717fe7d1e", "score": "0.66519177", "text": "public Student() { \r\n\t\tthis(\"Connolly\", 43213); \r\n\t}", "title": "" }, { "docid": "c4fa257f1d9c8e55ec00612334f57e8b", "score": "0.6651713", "text": "@Override\n public void init() {\n\t\n }", "title": "" }, { "docid": "f0556ed341fe4308eb28013e54f597bd", "score": "0.6650533", "text": "protected Snapshot() {\r\n\t}", "title": "" }, { "docid": "96b61696edc82af3851dc02954ebece8", "score": "0.66492736", "text": "public GLBaseObject( ) \r\n\t{\r\n\t\tthis( null, null, null, null, null );\r\n\t}", "title": "" }, { "docid": "080f65cfedddb3ea4d7b3c276531c5ad", "score": "0.6644884", "text": "protected Parser() \t{ }", "title": "" }, { "docid": "d7a8e359b8e98fc1f27351a02b877bb7", "score": "0.6640365", "text": "public Node(){\n\t\t// Do nothing\n\t}", "title": "" }, { "docid": "31cfd5e3de8125ee7de9445be5e3c7cf", "score": "0.6640228", "text": "public Item() {\n this((Object)null);\n }", "title": "" }, { "docid": "9e3246510bb20ce7568b18310a269930", "score": "0.66306657", "text": "public Record() {\n super();\n }", "title": "" }, { "docid": "d1a4a8d496117742e89a3ad1deaf1683", "score": "0.6628489", "text": "public Stego() {\r\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.66261417", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.66261417", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.66261417", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.66261417", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "583194b1956643af16c7d6daf8713d16", "score": "0.6624558", "text": "public Boblight() {\r\n\t}", "title": "" }, { "docid": "bd5a77c0e7977e41955a5d25fd1bbab8", "score": "0.6623491", "text": "public Sgfilial() {\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.6623124", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "ea34c4501f16626774a00996c3e3c7ce", "score": "0.66209286", "text": "public CDanza() {\r\n super();\r\n }", "title": "" }, { "docid": "458f88562774037ab053b2824869644f", "score": "0.66162467", "text": "AI() {\r\n this(null, null);\r\n }", "title": "" }, { "docid": "639096390229789519022fd25d18f088", "score": "0.66126585", "text": "protected Book() {\n\t}", "title": "" }, { "docid": "a8addd14b7d02ab5df0485069d8427e1", "score": "0.6598219", "text": "public ETSForecasterTest() {\n\t\t// Default constructor\n\t}", "title": "" }, { "docid": "fcaa448de946eab67a8fa5c63d7a3877", "score": "0.6598175", "text": "public PionJouer() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "05c714007824dbc99a8158e7b649b166", "score": "0.65973073", "text": "public Carrera() {}", "title": "" }, { "docid": "50c02630384b79d7361c2d6e6232dc74", "score": "0.6590378", "text": "public Tv() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d91ea1ecf4ecf7e5adbbbbc0a987660b", "score": "0.6589437", "text": "protected ParseException() {\r\n super();\r\n specialConstructor = false;\r\n }", "title": "" }, { "docid": "d2ca7ef6cedcab30d80efbd3867c5a44", "score": "0.6589331", "text": "public Parser() {\n\t}", "title": "" }, { "docid": "92b3a3c56b44047a66464230cfcf3f7f", "score": "0.65857184", "text": "public CustomObject() {}", "title": "" }, { "docid": "92e03cb59e36f8b96ff41393dded0fe4", "score": "0.65813214", "text": "public Data(){}", "title": "" }, { "docid": "11a437ee1bf13e2d6517936d665c55fc", "score": "0.6580788", "text": "public Clorus() {\n this(1);\n }", "title": "" }, { "docid": "dec518f4da7d2a0b6e0b1bd182d1f50a", "score": "0.65790105", "text": "public Itinerary() {\n }", "title": "" }, { "docid": "fca588dfdf6dc7fb547e484b10930eff", "score": "0.6577412", "text": "protected DataTransformFactory() {\n }", "title": "" }, { "docid": "a2feaa582ca520f7521bae7a24dadee6", "score": "0.65739274", "text": "private Note() {}", "title": "" }, { "docid": "2449bc93aefaeb62dd9d6af5155834b4", "score": "0.6572618", "text": "public Avion() {\r\n }", "title": "" }, { "docid": "934d52c7b89fe52b2e1d7ccdbfd48650", "score": "0.6570453", "text": "public Person(){\n this(\"Jane\", \"Doe\");\n }", "title": "" }, { "docid": "0b838a288eddd9d156dc3de3b4aae943", "score": "0.65610343", "text": "private Toy(){}", "title": "" }, { "docid": "818c3f05644ae72e8248d2e1c0ef3451", "score": "0.65605724", "text": "public Personne() {\r\n super();\r\n }", "title": "" }, { "docid": "fbf672b6eee18b3af9fb642de0403cf0", "score": "0.655804", "text": "AI() {\n this(null, null);\n }", "title": "" }, { "docid": "ddec7661bcbde35a5c8f592c67331b8e", "score": "0.6547825", "text": "public Parser (){\n\t\t//empty constructor\n\t}", "title": "" }, { "docid": "3d4086226b7a9f5ae6ce8638a30f1900", "score": "0.65459335", "text": "private Loader() {\n // Constructor is intentionally empty.\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.65456325", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e86bc06c97f56e8e4586a354051cc19f", "score": "0.6545058", "text": "public SLNode() {\r\n this(null, null); //Call to SLNode constructor passing null for all arguments\r\n }", "title": "" }, { "docid": "c81cf3ef76fb9ae70142918a60712e06", "score": "0.65420496", "text": "protected UniversalContainer()\r\n\t{\r\n\t\tthis(ContainerConstructor.UNDEFINED);\r\n\t}", "title": "" }, { "docid": "d1537a74902f467fb04b8b758f376e82", "score": "0.6540985", "text": "public AbstractT108()\n {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6539885", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6539885", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6539885", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6539885", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6539885", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6539885", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6539885", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6539885", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "d522987db573fa1668ff57534d2ac039", "score": "0.6538899", "text": "public Genome() {\n this(DEFAULT_VALUES);\n }", "title": "" }, { "docid": "6f5ce9786f3c26f904550c437b043f26", "score": "0.6538245", "text": "public ma() {}", "title": "" }, { "docid": "87efb67e020a2e0b8285c47f5466e733", "score": "0.65378994", "text": "public Stack()\n\t{\n\t\tsuper();\n\t}", "title": "" }, { "docid": "8cc3830647d2271f0218677e6838100c", "score": "0.65361553", "text": "public AbstractList()\r\n {\r\n }", "title": "" }, { "docid": "3d61a85ce0f3213d06ab601b46c3940f", "score": "0.65335906", "text": "public JobBase() {\r\n title = null;\r\n verbose = false;\r\n debug = false;\r\n logFile = null;\r\n version = null;\r\n task = null;\r\n callback = null;\r\n }", "title": "" }, { "docid": "828a71e8ea91324f6a32685956fec264", "score": "0.6528781", "text": "public State () {\n\t\t\tsuper();\n\t\t}", "title": "" }, { "docid": "f91b854a70b922c38999a0711b097ae7", "score": "0.6521543", "text": "public GenericSaxParser() {\n\t}", "title": "" } ]
5559a3b2771785ed23c30b959d0aca11
Interface to be used by classes that listen to wind change events
[ { "docid": "b118fd2808981b299af83d22796148a0", "score": "0.7670996", "text": "public interface WindListener {\n // callback sent when WindProvider senses change in local wind direction or speed\n void onWindChanged(float windDirection, float speed);\n}", "title": "" } ]
[ { "docid": "2ae1787b8433223273aa36db7fb92703", "score": "0.68669575", "text": "void onWindChanged(float windDirection, float speed);", "title": "" }, { "docid": "6b3012f23ff7c93fc62eca2ffb84900d", "score": "0.6646814", "text": "public interface TimeChangeListener {\n void onChange(String appname);\n}", "title": "" }, { "docid": "d0faeb422954a730b8717d0bbb70fd0d", "score": "0.65265137", "text": "public interface PhenomenaListener {\n\n public void temperatureChanged(ClimateController.Temperature temp);\n public void climateChanged(ClimateController.Climate climate);\n}", "title": "" }, { "docid": "c35a8b2241d42b4a795dd82f51eb0589", "score": "0.6387682", "text": "public interface NmeaEvent {\n void locationChanged(NemaLocation location);\n}", "title": "" }, { "docid": "42f76b5bca4b3ccc2c19e0b8afdf3d06", "score": "0.63796777", "text": "public interface DriveListener {\n\n public void driveActiveChanged(Drive drive, boolean active);\n \n}", "title": "" }, { "docid": "8a0436ad0157382cebb0145ca8aefd51", "score": "0.6341466", "text": "public interface FSListener {\n\n void update(Capsule capsule);\n}", "title": "" }, { "docid": "4cb84865fbabae84545e3bf029c2833e", "score": "0.6341298", "text": "public void clockChanged ();", "title": "" }, { "docid": "efc61608f5a589c86f70dfad6b138764", "score": "0.628251", "text": "public interface DoorStateListener {\n\n /**\n * Handler for changes in door state\n *\n * @param deviceId id of the device\n * @param state state of the door\n */\n void onDoorStateChanged(String deviceId, int state);\n}", "title": "" }, { "docid": "6a734029e7d168ed09c8711488d83075", "score": "0.6233307", "text": "public interface StepperVelocityChangeListener\n{\n\t/**\n\t * This method is called with the event data when a new event arrives.\n\t * \n\t * @param ae the event data object containing event data\n\t */\n\tpublic void stepperVelocityChanged(StepperVelocityChangeEvent ae);\n}", "title": "" }, { "docid": "0f575cbb115debd077d1698ee1921554", "score": "0.6216937", "text": "public interface ZKConfigChangedListener {\n\n void eventReceived();\n\n}", "title": "" }, { "docid": "53faa53099c129b7142509d78b6c874b", "score": "0.61994445", "text": "protected void currentChanged() { }", "title": "" }, { "docid": "ee1a50a3c2fb75c4fd10de70eaef2b51", "score": "0.6191107", "text": "public interface IChronoEventListener {\n\t\n\t/**\n\t * Called when the chronometer starts\n\t */\n\tabstract void onChronoStart();\n\t\n\t/**\n\t * Called when the chronometer stops\n\t */\n\tabstract void onChronoStop();\n\t\n\t/**\n\t * Called when the chronometer reach the timer value\n\t */\n\tabstract void onChronoReached(int timeElapsed);\n\t\n\n}", "title": "" }, { "docid": "ffd1510d003071db8fff359e666190a9", "score": "0.61902916", "text": "public interface ChangedListener\r\n{\r\n void dispose();\r\n\r\n void changed();\r\n}", "title": "" }, { "docid": "e31c656be9d7576baaa5a17e913ae9a4", "score": "0.6169099", "text": "public interface HardwareEventListener {\n\n void hwEventTriggered(HWEventType type, LocalTime timeStamp);\n}", "title": "" }, { "docid": "7a0a49521fdd85bcd639320fdc0d46da", "score": "0.615843", "text": "public interface DensityMonitor {\n\n /**\n * This method is called when the density is changed.\n *\n * @param density The new value for the density.\n */\n public void densityChanged(double density);\n\n}", "title": "" }, { "docid": "269d898d733f14bcda79ab148a88ae15", "score": "0.6154515", "text": "public interface SeasonListener {\n\n public void seasonChanged();\n}", "title": "" }, { "docid": "acad6bea8cf03fce05eeed68d7d0f7cd", "score": "0.61383665", "text": "public interface DataChangeListener {\r\n\r\n void dataChange();\r\n}", "title": "" }, { "docid": "bd8c1bcb91acb6596e8177fbf217f60d", "score": "0.6092612", "text": "public interface OnConnectionChangeListener {\n /** Gets called when car watchdog daemon is connected or disconnected. */\n void onConnectionChange(boolean connected);\n }", "title": "" }, { "docid": "33d1ce402a371c4f17cf5de669c1eb9f", "score": "0.60733634", "text": "public void conditionChanged() {}", "title": "" }, { "docid": "face7d74083328608f2ccfdd92ca59fe", "score": "0.60686696", "text": "public interface SwitchStatusListener {\n public void onSwitch(boolean status);\n}", "title": "" }, { "docid": "b946423f37c56ca94b7526ef5f6ceafd", "score": "0.60442007", "text": "public abstract void connectionChanged(ConnectionRCEvent e);", "title": "" }, { "docid": "12f2a385836c35ea401e97eb3e7e1d92", "score": "0.60396636", "text": "public interface Change {\n /**\n * Filename.\n * @return Name of the file that changed.\n */\n String filename();\n\n /**\n * Simple implementation of the change interface that is able to read\n * basic information from {@link WatchEvent}.\n */\n class Simple implements Change {\n /**\n * Source event.\n */\n private final WatchEvent<?> source;\n\n /**\n * Ctor.\n * @param event Source event.\n */\n public Simple(final WatchEvent<?> event) {\n this.source = event;\n }\n\n @Override\n public String filename() {\n return this.source.context().toString();\n }\n }\n}", "title": "" }, { "docid": "d68d992bf757ed9a5d1194548b4b9489", "score": "0.60096395", "text": "public interface SensorEventProvider {\n void start();\n\n void stop();\n\n void registerListener(SensorEventListener var1);\n\n void unregisterListener(SensorEventListener var1);\n}", "title": "" }, { "docid": "5f84807625644c1c7337d433edb529be", "score": "0.60008687", "text": "public interface StockListener {\n public void stockPriceChanged(Stock stock, double oldPrice, double newPrice);\n}", "title": "" }, { "docid": "8f1394a66cc7ad0698b0222f800eab38", "score": "0.59940326", "text": "public interface ServerStatusChangeListener {\n\n void onChange(ServerStatusChangeEvent e);\n}", "title": "" }, { "docid": "26baed62f12eb63935626868ba4f179f", "score": "0.5986127", "text": "public interface HighFiveMetersChange {\n public void highFiveMetersChange();\n}", "title": "" }, { "docid": "55974c70f3d5946b256dd5e245000cda", "score": "0.5984028", "text": "public interface CurrentDifferenceMovedListener {\n \n public void CurrentDifferenceIncremented();\n\n public void CurrentDifferenceDecremented();\n}", "title": "" }, { "docid": "83a4d20fb5848845a8d07396ef64e06a", "score": "0.5961266", "text": "@Override\n public void changedUpdate(DocumentEvent pEvent)\n {\n }", "title": "" }, { "docid": "6703f0ca154684e958c27ec9247a9e67", "score": "0.59543556", "text": "public interface OnChangeDirListener {\n void onEnterDir(File dir);\n\n void onExitDir(File dir);\n}", "title": "" }, { "docid": "2a0ab03d9dea5ac4c97bdb028fee526d", "score": "0.59463066", "text": "@Override\n\tpublic void propertyChange(PropertyChangeEvent event) {\n\t\tString value = event.getPropertyName();\n\t\tswitch(value){\n\t\t case \"ChangedWindowCoords\" : this.updateCoords(event);\n\t\t break;\n\t\t}\n \t\t\n\t}", "title": "" }, { "docid": "d026d6ff8a918e9a114619ad49270368", "score": "0.59436196", "text": "public interface SwitchBoardListener extends EventListener\n{\n\t/**\n\t * Invoked when a Responder was bound to a SwitchBoard.\n\t *\n\t * @param sbe SwitchBoardEvent describing the binding\n \t */\n\tpublic void responderBound(SwitchBoardEvent sbe);\n\n\t/**\n\t * Invoked when a Responder is unbound from a SwitchBoard.\n\t *\n\t * @param sbe SwitchBoardEvent describing the unbinding\n\t */\n\tpublic void responderUnbound(SwitchBoardEvent sbe);\n}", "title": "" }, { "docid": "8ced8d9ad8869ed3c818e49a6781bb3e", "score": "0.593052", "text": "public abstract void onBrightnessChanged();", "title": "" }, { "docid": "8d4c6e7f4eb0982d09968298b6d430ba", "score": "0.59208393", "text": "public interface ChangeTypeListener extends EventListener {\n\t\n\t/**\n\t * Actin a realiser lorsqu'un joueur change de type\n\t * @param type le nouveau type du joueur\n\t */\n\tpublic void changeType(TypeJoueur type);\n\t\n}", "title": "" }, { "docid": "460e12bcb938cff3e7cdb9dcc51054ea", "score": "0.5916483", "text": "public interface Listener {\n void actOnUpdate(int sit);\n}", "title": "" }, { "docid": "ad954159da12286a6a4700e2a250ea03", "score": "0.59164363", "text": "public interface EnvironmentObserver\n{\n public void update(double temp, double visibilityLevel, double lightLevel, EarthComm earthComm);\n}", "title": "" }, { "docid": "59204cc7c5cc4a9193894edba4995593", "score": "0.5905854", "text": "public interface TrackPositionListener {\n /**\n * Called when track position changes on server.\n * @param event event.\n */\n void trackPositionChanged(MPDTrackPositionChangedEvent event);\n}", "title": "" }, { "docid": "3cde2acbfe11bf25472d500e0731d062", "score": "0.59021586", "text": "@Override\n public void onWaveChanged(int wave) {\n }", "title": "" }, { "docid": "13fbdb776450e1db258b159042dc989a", "score": "0.5898996", "text": "void setWind(Wind wind);", "title": "" }, { "docid": "1b923da5075f5b3d9300eb2dbd18ad8d", "score": "0.58958334", "text": "@Override\r\n \t\tpublic void changedUpdate(DocumentEvent arg0) {\n \t\t}", "title": "" }, { "docid": "39d27b48232ed5960f3680b32899c1b1", "score": "0.58868515", "text": "@FunctionalInterface\n public interface WindowOrderChangeListener extends ConnectorEventListener {\n\n /**\n *\n */\n public static final Method windowOrderChangeMethod = ReflectTools\n .findMethod(WindowOrderChangeListener.class,\n \"windowOrderChanged\", WindowOrderChangeEvent.class);\n\n /**\n * Called when the subwindow order position is changed. Use {@link WindowOrderChangeEvent#getWindow()} to get a reference to the\n * {@link SubWindow} whose order position is changed. Use {@link WindowOrderChangeEvent#getOrder()} to get a new order position.\n *\n * @param event\n */\n public void windowOrderChanged(WindowOrderChangeEvent event);\n }", "title": "" }, { "docid": "f4291d5be732163f8db2924c1c755f75", "score": "0.5882269", "text": "@Override\n\t\tpublic void onVolumeChanged(int arg0) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "826a5a04d3eebfc4559c0a1fd6d02d77", "score": "0.5872334", "text": "void changeWeather() {\n conditionsChanged();\n }", "title": "" }, { "docid": "8d98536aa629befae7efe7735e56f665", "score": "0.58718175", "text": "public interface OnSwitchListener extends OnActListener {\n\n void onSwitch(int flag);\n}", "title": "" }, { "docid": "6c8e03d2319735c0310b91340c600618", "score": "0.5861605", "text": "public interface NetworkStateChangeListener {\n void onChange(Boolean status);\n}", "title": "" }, { "docid": "b8d199131de47255560fda7bc222bc53", "score": "0.5852163", "text": "interface BumpChangeHandler extends EventListener {\n\n void handleFileStarted(String proj,String file);\n void handleFileChanged(String project,String file);\n void handleFileAdded(String project,String file);\n void handleFileRemoved(String project,String file);\n void handleProjectOpened(String project);\n\n}", "title": "" }, { "docid": "5949778007a0c019b935e6f0e5b69419", "score": "0.584777", "text": "public interface PositionChange {\n \n /**\n * This says the axis of displacement\n */\n public enum DISP_AXIS {X,Y};\n \n /**\n * This is the magnitude of the position change\n * from one keystroke on the keyboard\n * \n * The number is large only because it will be manipulated by \n * a scale factor that is very small\n */\n public static final float POSITION_CHANGE = 8000.0f;\n \n /**\n * Factor used if moving up or right\n */\n public static final float POS_FACTOR = 1.0f;\n \n /**\n * Factor used if moving down or left\n */\n public static final float NEG_FACTOR = -1.0f;\n \n /**\n * method that changes the current x displacement\n * @param change amount of x change\n */\n void changeX(float change);\n \n /**\n * method that changes the current y displacement\n * @param change amount of y change\n */\n void changeY(float change);\n \n}", "title": "" }, { "docid": "c40233c5aa08e956130881a7a541b462", "score": "0.58397824", "text": "public interface ScheduleChangeListener {\r\n\t\r\n\t/**\r\n\t * Called whenever a particular slot\r\n\t * in the schedule is toggled.\r\n\t * \r\n\t * @param day Weekday (0 = Sun, 6 = Sat)\r\n\t * @param segment 10-minute segment within day\r\n\t */\r\n\tpublic void scheduleChanged(int day, int segment);\r\n\r\n}", "title": "" }, { "docid": "16af4bc5e376320d20be1614f2aa3585", "score": "0.58370906", "text": "public interface ILocationChangedObserver {\n void LocationChanged(ObservableAgent agent) throws Exception;\n\n}", "title": "" }, { "docid": "1085dba3c58b2bf1a25661083701e9b5", "score": "0.5836502", "text": "public EventType onPositionChange();", "title": "" }, { "docid": "f16fbf2b76a1c0a01c08a8cec3db65c2", "score": "0.58311427", "text": "public interface Observer {\n public void update(float temperature, float humidity, float pressure);\n}", "title": "" }, { "docid": "787905811dedc8f3a9c60677d6b1d46c", "score": "0.58248836", "text": "public interface Observer {\n void update(float tempreture, float pressure, float humidity);\n}", "title": "" }, { "docid": "e3307610e51427c5a6ff736ea24683f7", "score": "0.58202416", "text": "@Override\n\t\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "06a554edeb88526535b4f83b45ab4b5d", "score": "0.5819805", "text": "public interface Listener {\n\n void update();\n\n}", "title": "" }, { "docid": "900a1393aab82567e809c963cdb2ed5f", "score": "0.58176345", "text": "public interface ListenerMusic {\n /**\n * Trigger quand la musique change\n * @param music : nouvelle musique jouer\n */\n void onMusicChange(Music music);\n}", "title": "" }, { "docid": "373da20751bb03c81192b60e5dff94e2", "score": "0.5814617", "text": "@Override\n\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "b2a351c8f3eb83c9ae27b1df5722018a", "score": "0.5812436", "text": "public interface LifeCycleListener extends com.ibm.adtech.jastor.ThingListener {\n\n\n\t/**\n\t * Called when a value of lifeCycleContribute has been added\n\t * @param source the affected instance of rvg.sv.LifeCycle\n\t * @param newValue the object representing the new value\n\t */\t\n\tpublic void lifeCycleContributeAdded(LifeCycle source, LCContribute newValue);\n\n\t/**\n\t * Called when a value of lifeCycleContribute has been removed\n\t * @param source the affected instance of rvg.sv.LifeCycle\n\t * @param oldValue the object representing the removed value\n\t */\n\tpublic void lifeCycleContributeRemoved(LifeCycle source, LCContribute oldValue);\n\t\t\n\t/**\n\t * Called when a value of lifeCycleVersion has been added\n\t * @param source the affected instance of rvg.sv.LifeCycle\n\t * @param newValue the object representing the new value\n\t */\t\n\tpublic void lifeCycleVersionAdded(LifeCycle source, LangString newValue);\n\n\t/**\n\t * Called when a value of lifeCycleVersion has been removed\n\t * @param source the affected instance of rvg.sv.LifeCycle\n\t * @param oldValue the object representing the removed value\n\t */\n\tpublic void lifeCycleVersionRemoved(LifeCycle source, LangString oldValue);\n\t\t\n\t/**\n\t * Called when a value of lifeCycleStatus has been added\n\t * @param source the affected instance of rvg.sv.LifeCycle\n\t * @param newValue the object representing the new value\n\t */\t\n\tpublic void lifeCycleStatusAdded(LifeCycle source, LangString newValue);\n\n\t/**\n\t * Called when a value of lifeCycleStatus has been removed\n\t * @param source the affected instance of rvg.sv.LifeCycle\n\t * @param oldValue the object representing the removed value\n\t */\n\tpublic void lifeCycleStatusRemoved(LifeCycle source, LangString oldValue);\n\t\t\n}", "title": "" }, { "docid": "c8cfd23dee7299f30e88d8cafb628829", "score": "0.57999796", "text": "@Override\r\n\t\tpublic void changedUpdate(DocumentEvent arg0) {\n\r\n\t\t}", "title": "" }, { "docid": "cdecd904a240c6a8d58c70e320935772", "score": "0.5799357", "text": "public interface GnssMeasurementListener {\n void onSatStatusUpdated(GnssStatus status);\n void onLocationChanged(Location loc);\n void onGnssMeasurementReceived(GnssMeasurementsEvent event);\n void onEWDataProcessed(DataPoint dp,EWIndicators indicators);\n void onProviderChanged(String provider, boolean enabled);\n}", "title": "" }, { "docid": "5463134be340413a1964320525edb73b", "score": "0.5792134", "text": "public interface Observer {\n public void update(float temp, float humidity, float pressure);\n}", "title": "" }, { "docid": "7d70844fa4902db77fa2824dc8bb130d", "score": "0.5776061", "text": "public interface INetEvent {\n void onNetChange(int netWorkState);\n}", "title": "" }, { "docid": "cb48efd5b7ba6a34d29e0149e0c0ef29", "score": "0.5772735", "text": "public interface ObjectListener {\n public void objectChanged();\n}", "title": "" }, { "docid": "f8c810e52fed9b93b4c3db1afa728a86", "score": "0.5762658", "text": "public interface ContextListener {\n\n\t/**\n\t * Invoked in case the lives changed.\n\t * @param context the context the event comes from\n\t */\n\tvoid livesChanged(Context context);\n\t\n\t/**\n\t * Invoked in case the credits changed.\n\t * @param context the context the event comes from\t \n\t */\n\tvoid creditsChanged(Context context);\n\t\n\t/**\n\t * Invoked in case the income changed.\n\t * @param context the context the event comes from\n\t */\n\tvoid incomeChanged(Context context);\n\n\t/**\n\t * Invoked in case the income time changed.\n\t * @param context the context the event comes from\n\t * @param seconds the time to the next income\n\t */\n\tvoid incomeTimeChanged(Context context, int seconds);\n\n\t/**\n\t * Invoked in case the selected tower changed.\n\t * @param context the context the event comes from\n\t * @param message the information as message\n\t */\n\tvoid selectedChanged(Context context, String message);\n}", "title": "" }, { "docid": "680d4f1997dc7c54d7b560bab2393660", "score": "0.5761825", "text": "public interface PercentchangeListenner {\n void PercentChange(float percent);\n}", "title": "" }, { "docid": "9edb6b1aa388115416a0c91d94f8f795", "score": "0.57601964", "text": "public interface OrderStateChangeListener {\r\n\r\n\t/**\r\n\t * Called on State Change of the Order \r\n\t * @param orderChanged_ Order being Changed\r\n\t * @param newState_ New Order State \r\n\t */\r\n\tpublic void stateChanged(OrderInterface orderChanged_, OrderState newState_);\r\n\t\r\n}", "title": "" }, { "docid": "6b9fbaad5fe82ec48c1f137b8e8d236f", "score": "0.5755101", "text": "@Override\r\n\tpublic void changedUpdate(DocumentEvent arg0) {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bd646a27c203f059d6f37b3b985e73a5", "score": "0.5750988", "text": "public interface Observer {\n\n void update(float temp, float humidity, float pressure);\n}", "title": "" }, { "docid": "8a37ffb5459b79d7610c5f352f92f6bb", "score": "0.5742625", "text": "public interface WifiObserver {\n\n void update(Wifi wifi);\n}", "title": "" }, { "docid": "ba1898bbbf70d231807187aafc5bd5a5", "score": "0.5736554", "text": "public abstract void globalEnableEvents();", "title": "" }, { "docid": "bac3d492b9d4b9135383abf2c2e0d970", "score": "0.5731818", "text": "@Override\n public void propertyChange(PropertyChangeEvent arg0) {\n }", "title": "" }, { "docid": "fec0fde956fc120aa51a704511e5c245", "score": "0.57248545", "text": "public void setChanged() {\n\r\n\t}", "title": "" }, { "docid": "6208826f4dbf7748f92552e57dd17030", "score": "0.57208323", "text": "public interface WhiteboardWatcher {\n\n void updateCanvasDrawing();\n}", "title": "" }, { "docid": "1baa3fb422c5fdb437161c4954cf4aee", "score": "0.57165605", "text": "public interface Observer {\n\n\n //更新温度\n void update(float temp);\n\n}", "title": "" }, { "docid": "5da09595f2a184a0a77fbcce41c4d988", "score": "0.5712301", "text": "protected void onInputChanged() {\n // Override in child classes ?\n }", "title": "" }, { "docid": "b26d94e001d5f5c825869d45d6b214a0", "score": "0.57084733", "text": "public interface IWeatherObserver {\n void onWeatherUpdate(WeatherInfo info);\n\n}", "title": "" }, { "docid": "b073e7dff38d1c63bbe27ae4625581d7", "score": "0.57021946", "text": "@Override\n \t\t\tpublic void controlMoved(ControlEvent arg0)\n \t\t\t{\n \t\t\t\t\n \t\t\t}", "title": "" }, { "docid": "fdd6e9c370bf5d62b3b843af3c20543d", "score": "0.5700037", "text": "public interface AppsDatabaseEventListener extends EventListener{\r\r\n /**\r\r\n * The AppsDataBase has radically changed. \r\r\n *\r\r\n * @param evt the AppsDatabaseEvent.\r\r\n * @since MHP1.0\r\r\n */\r\r\n public void newDatabase(AppsDatabaseEvent evt) ;\r\r\n \r\r\n /**\r\r\n * The AppsDataBase has had an application entry added. \r\r\n * \r\r\n * @param evt the AppsDatabaseEvent.\r\r\n * @since MHP1.0\r\r\n */\r\r\n public void entryAdded(AppsDatabaseEvent evt) ;\r\r\n \r\r\n /**\r\r\n * The AppsDataBase has had an application entry removed. \r\r\n * \r\r\n * @param evt the AppsDatabaseEvent.\r\r\n * @since MHP1.0\r\r\n */\r\r\n public void entryRemoved(AppsDatabaseEvent evt) ;\r\r\n\r\r\n /**\r\r\n * The AppsDataBase has had an application entry changed. \r\r\n * \r\r\n * @param evt the AppsDatabaseEvent.\r\r\n * @since MHP1.0\r\r\n */\r\r\n public void entryChanged(AppsDatabaseEvent evt) ;\r\r\n}", "title": "" }, { "docid": "8a8afbe583a36ddcec4b25dd8ed35c99", "score": "0.5699113", "text": "@Override\n public void addChangeListener(ChangeListener l) {\n }", "title": "" }, { "docid": "61af9fdafe3eff4d86ebb3b4f6c289ad", "score": "0.56902826", "text": "public void stateChanged(MPDStateChangedEvent event) {\n \n \t}", "title": "" }, { "docid": "c5455f01b98f4768c686f5bd9c20317b", "score": "0.5689878", "text": "@Override\n public void onSensorChanged(SensorEvent event) {\n }", "title": "" }, { "docid": "1c7dfa77dd7cb9c84ae29b8e7e8cf887", "score": "0.56884664", "text": "public interface SystemdListenerEventHandler {\n void publish_state(String service, Pair<String, String> state);\n}", "title": "" }, { "docid": "5b2d45bfeab6d7dd0996707b4949305a", "score": "0.568769", "text": "public interface OnCallChange{\r\n\t\tpublic void OnComingCall(String inComingNumber);\r\n\t\tpublic void OnCallOffhook();\r\n\t}", "title": "" }, { "docid": "dfd39a96797cd22e80decb29fa8b70ab", "score": "0.5681629", "text": "public interface LocationChangeListener {\n\n void onLocationChangedFromService(Location latLng);\n void onETAchanged(String s);\n void onDistanceChanged(Double distance);\n void onPathLatLngChanged(ArrayList<LatLng> pathLatLng);\n}", "title": "" }, { "docid": "8ad49ad919162792aee019fb77eba009", "score": "0.5680497", "text": "@Override\n public void stateChanged(ChangeEvent e) {\n \n\tJSlider eventSource = (JSlider) e.getSource();\n \n\tif (eventSource == slider_currentFrequency) {\n \n\t double sliderValue = slider_currentFrequency.getValue();\n\t currentFrequency = getFrequencyFromSliderValue(sliderValue);\n\t updateVisuals();\n\t}\n\tif (eventSource == slider_currentVolume) {\n \n\t double sliderValue = slider_currentVolume.getValue() / 100f;\n\t currentVolume = sliderValue;\n\t updateVisuals();\n\t}\n }", "title": "" }, { "docid": "79a71cd04fb3d6431aae8b3d872de52d", "score": "0.5678162", "text": "public interface DataEvents {\n\n\tpublic static final String ATTR_NAME_CHANGED = \"attrNameChanged\";\n\tpublic static final String ATTR_TYPE_CHANGED = \"attrTypeChanged\";\n\tpublic static final String ATTR_DATA_TYPE_CHANGED = \"attrDataTypeChanged\";\n\t\n}", "title": "" }, { "docid": "d1f124200d12eb8f8b10446102ae5238", "score": "0.56716937", "text": "public interface INetworkMonitor {\n\t/**\n\t * onNetworkAvailabilityChange: triggers everytime when network went online to offline or offline to online\n\t *\n\t * @param networkAvailable\n\t * @return\n\t */\n\t\n\tvoid onNetworkAvailabilityChange (boolean networkAvailable);\n\t\n\t/**\n\t * onNetworkSpeedChanges: triggers whenever connected data network upload or download speed changes.\n\t *\n\t * @param uploadSpeed\n\t * @param downloadSpeed\n\t */\n\tvoid onNetworkSpeedChanges (int uploadSpeed, int downloadSpeed);\n}", "title": "" }, { "docid": "13adaecd3874e325bfedb8d283c943a7", "score": "0.567109", "text": "public interface ArduinoListener {\n\t\n\t/**\n\t * If the Arduino has an update an read any Strings it will appear as newValue \n\t * in this method. Every value is seperated by a ':' (eg. <code>TEMP:24.30\n\t * </code>). Everyone how wants to listen to a specific value or sensor should \n\t * implement this interface and should be registered in the {@link Arduino} as\n\t * a listener.\n\t * @param newValue the new read sensor value (eg.<code>TEMP:24.30</code>).\n\t */\n\tpublic abstract void updateArduino(String newValue);\n}", "title": "" }, { "docid": "93a5908083c666984536c91171f1c57a", "score": "0.5671068", "text": "public interface WInfoEvent extends Serializable, Cloneable {\n\n\t\n\t/**\n\t * Getting information.\n\t * @return information.\n\t */\n\tString getInfo();\n\t\n\t\n\t/**\n\t * Setting information.\n\t * @param info specified information.\n\t */\n\tvoid setInfo(String info);\n\t\n\t\n}", "title": "" }, { "docid": "e3101a04210066255ee0a3fcbfca0248", "score": "0.566993", "text": "public interface SurfaceChangeListener {\n\n /**\n * Called when the peer video feed changes dimensions. This can occur when the peer rotates\n * their device, changing the aspect ratio of the video signal.\n *\n * @param call The call which experienced a peer video\n */\n void onUpdatePeerDimensions(DialerCall call, int width, int height);\n\n /**\n * Called when the local camera changes dimensions. This occurs when a change in camera occurs.\n *\n * @param call The call which experienced the camera dimension change.\n * @param width The new camera video width.\n * @param height The new camera video height.\n */\n void onCameraDimensionsChange(DialerCall call, int width, int height);\n }", "title": "" }, { "docid": "6214319189851850fb45e5d1a7a39d57", "score": "0.56630504", "text": "@Override\n\tpublic void addChangeListener(ChangeListener l) {\n\t\t\n\t}", "title": "" }, { "docid": "63a5e868b0435f4ce139305c691b257a", "score": "0.5663", "text": "public interface DroneEventListener extends EventListener {\n\n /**\n * Things to do when the Capacitance measurement is ready.\n *\n * @param event\n * @since 1.1.1\n */\n public void capacitanceMeasured(DroneEventObject event);\n\n /**\n * Things to do when the External ADC measurement is ready.\n *\n * @param event\n * @since 1.1.1\n */\n public void adcMeasured(DroneEventObject event);\n\n /**\n * Things to do when the RGBC measurement is ready.\n *\n * @param event\n * @since 1.1.1\n */\n public void rgbcMeasured(DroneEventObject event);\n\n /**\n * Things to do when the Pressure measurement is ready.\n *\n * @param event\n * @since 1.1.1\n */\n public void pressureMeasured(DroneEventObject event);\n\n /**\n * Things to do when the Altitude measurement is ready.\n *\n * @param event\n * @since 1.1.1\n */\n public void altitudeMeasured(DroneEventObject event);\n\n /**\n * Things to do when the IR Temperature measurement is ready.\n *\n * @param event\n * @since 1.1.1\n */\n public void irTemperatureMeasured(DroneEventObject event);\n\n /**\n * Things to do when the Humidity measurement is ready.\n *\n * @param event\n * @since 1.1.1\n */\n public void humidityMeasured(DroneEventObject event);\n\n /**\n * Things to do when the Temperature measurement is ready.\n *\n * @param event\n * @since 1.1.1\n */\n public void temperatureMeasured(DroneEventObject event);\n\n /**\n * Things to do when the (Reducing) General Gas measurement is ready.\n *\n * @param event\n * @since 1.1.1\n */\n public void reducingGasMeasured(DroneEventObject event);\n\n /**\n * Things to do when the (Oxidizing) General Gas measurement is ready.\n *\n * @param event\n * @since 1.1.1\n */\n public void oxidizingGasMeasured(DroneEventObject event);\n\n /**\n * Things to do when the Precision Gas measurement is ready.\n *\n * @param event\n * @since 1.1.1\n */\n public void precisionGasMeasured(DroneEventObject event);\n\n /**\n * Things to do when the UART is read\n *\n * @param event\n * @since 1.1.1\n */\n public void uartRead(DroneEventObject event);\n\n /**\n * Things to do when the I2C is read\n *\n * @param event\n * @since 1.1.1\n */\n public void i2cRead(DroneEventObject event);\n\n /**\n * Things to do when the USB UART is read\n *\n * @param event\n * @since 1.1.1\n */\n public void usbUartRead(DroneEventObject event);\n\n /**\n * A catch for a custom event if you need one\n *\n * @param event\n * @since 1.1.1\n */\n public void customEvent(DroneEventObject event);\n\n /**\n * Things to do when a Sensordrone connection is made.\n *\n * @param event\n * @since 1.1.1\n */\n public void connectEvent(DroneEventObject event);\n\n /**\n * Things to do when a Sensordrone is disconnected.\n *\n * @param event\n * @since 1.1.1\n */\n public void disconnectEvent(DroneEventObject event);\n\n /**\n * Things to do when a Sensordrone connection is lost.\n *\n * @param event\n * @since 1.1.1\n */\n public void connectionLostEvent(DroneEventObject event);\n\n /**\n * This is only used if the event is unknown (i.e. a typo, or other error).\n * Can be useful for checking if customEvent is working properly\n *\n * @param event\n * @since 1.1.1\n */\n public void unknown(DroneEventObject event);\n\n}", "title": "" }, { "docid": "8019048e65e8624a8b19d1c3d535dd7c", "score": "0.5662736", "text": "public interface ParameterChangeListener extends EventListener {\n /**\n * Function that must be implemented by all Listeners for\n * ParameterChangeEvents.\n *\n * @param event The Event which triggered this function call\n */\n public void parameterChange( ParameterChangeEvent event );\n}", "title": "" }, { "docid": "71de4c158f192aa8603b1099a5e5ab36", "score": "0.5661375", "text": "public void onSensorChanged(SensorEvent event) {\n\n }", "title": "" }, { "docid": "5f86b80f6d1ec5d692a5705adbf372d6", "score": "0.56603104", "text": "@Override\n\t\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "5f86b80f6d1ec5d692a5705adbf372d6", "score": "0.56603104", "text": "@Override\n\t\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "343d8530873a5583078b709107ee824d", "score": "0.56534064", "text": "public interface Listener extends EventListener {\r\n void photonAdded( Photon photon );\r\n\r\n void photonRemoved( Photon photon );\r\n\r\n void moleculeAdded( Molecule molecule );\r\n\r\n void moleculeRemoved( Molecule molecule );\r\n\r\n void emittedPhotonWavelengthChanged();\r\n\r\n void photonTargetChanged();\r\n\r\n void photonEmissionPeriodChanged();\r\n\r\n void configurableAtmosphereCompositionChanged();\r\n\r\n /**\r\n * Notification that the model was reset. In general, this should\r\n * ONLY be used to reset things in the view that do not have a direct\r\n * representation in the model, such as the way some part of the view\r\n * is configured.\r\n */\r\n void modelReset();\r\n }", "title": "" }, { "docid": "1f63c549a8a65e1d317e78e508c6ad86", "score": "0.5645603", "text": "@Override\n protected void hookEvents() {\n state.firmwareBuildProperty().addListener(\n (obj, oldValue, newValue) -> tfFirmwareBuild.setText(newValue.toString())); \n\n state.firmwareBuildStringProperty().addListener(\n (obj, oldValue, newValue) -> tfFirmwareBuildString.setText(newValue)); \n\n state.firmwareConfigProperty().addListener(\n (obj, oldValue, newValue) -> tfFirmwareConfig.setText(newValue)); \n\n state.firmwareVersionProperty().addListener(\n (obj, oldValue, newValue) -> tfFirmwareVersion.setText(newValue.toString())); \n\n state.hardwareVersionProperty().addListener(\n (obj, oldValue, newValue) -> tfHardwareVersion.setText(newValue.toString())); \n }", "title": "" }, { "docid": "6518c79e28d407d067dc6d228b309aaf", "score": "0.56442106", "text": "public interface IDataChangeSource {\n\n /**\n * Adds the provided listener to the list of listeners.\n * \n * @param listener\n * The listener to be added.\n */\n public void addDataChangeListener(IDataChangeListener listener);\n\n\n /**\n * Removes the provided listener from the list of listeners.\n * \n * @param listener\n * The listener to be removed.\n */\n public void removeDataChangeListener(IDataChangeListener listener);\n\n\n /**\n * Notifies all listeners of the event.\n * \n * @param event\n * The event.\n */\n public void fireDataChangeEvent(IDataChangeEvent event);\n\n}", "title": "" }, { "docid": "44203bf80d14897aeb381746bfea69fa", "score": "0.5643805", "text": "public void changedUpdate(DocumentEvent e) {\n }", "title": "" }, { "docid": "a14939d2c5dc17c64c829e9ab2674f5e", "score": "0.56435984", "text": "public abstract void onAvailabilityChanged(int status);", "title": "" }, { "docid": "7e80bbaf787410ca9fa4a97ce86ad6a2", "score": "0.564071", "text": "public interface MusicStateListener {\n /**\n * 更新歌曲状态信息\n */\n void updateTrackInfo();\n\n void updateTime();\n\n void changeTheme();\n\n void reloadAdapter();\n}", "title": "" } ]
47d6a55241ddc507f49b6d73facf152c
This method was generated by MyBatis Generator. This method corresponds to the database table leaves
[ { "docid": "6ef63bfae5d1429bad6e50265b8f6aaa", "score": "0.556177", "text": "Leaves selectByPrimaryKey(Long id);", "title": "" } ]
[ { "docid": "7e891f0d3de637129bcc9f7361e78f3f", "score": "0.61782587", "text": "@Override\n\tpublic List<Leaveword> findAllLeave() {\n\t\t String sql = \"from Leaveword \";\n\t\t List<Leaveword> lisleave = this.getHibernateTemplate().find(sql);\n\t\treturn lisleave;\n\t}", "title": "" }, { "docid": "850e2f951cfaea5a3e76f8eb6ecea0a7", "score": "0.5981527", "text": "@FXML\r\n void leaves(final MouseEvent event) throws SQLException {\r\n loadUi(\"leaves\");\r\n }", "title": "" }, { "docid": "ca6eae744de0f9c2403d20eeac73292c", "score": "0.5597345", "text": "List<Leaves> selectAll();", "title": "" }, { "docid": "e1818149fe81a20a23e89f85ce4c096e", "score": "0.5334703", "text": "Leave selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "c137db8fa317c8662f42d032e4a88fc2", "score": "0.5298048", "text": "@Transactional\r\n\tpublic List<Mstleave> getAllLeaveTypes() {\r\n\t\treturn teacherDao.getAllLeaveTypes();\r\n\t}", "title": "" }, { "docid": "4fad819f2aa3fc326a41180d678610cb", "score": "0.528716", "text": "@Override\n\tpublic List<LeaveReturnApplication> selectLeaveReturnApplicationList() {\n\t\treturn session.selectList(makeSql(\"selectLeaveReturnApplicationList\"));\n\t}", "title": "" }, { "docid": "216c84a1ee9ff21d3a45af35ea038465", "score": "0.52540433", "text": "@Override\r\n\tpublic void leave() {\n\r\n\t}", "title": "" }, { "docid": "23526afe5a35b8cc9da30805d91cfb05", "score": "0.5230142", "text": "public Expression leave(Expression node) {\n if (node instanceof FunctionCall) {\n FunctionCall call = (FunctionCall) node;\n Function f = call.getFunction();\n // If i already see something that is in my set, I want to rename that node\n // to the corresponding A# value so it can evaluate that easily again.\n if (f instanceof AggregateFunction) {\n String colNameString = \"#A\" + Integer.toString(numAggregates+1);\n if (!rememberColNames.contains(colNameString)) {\n rememberColNames.add(colNameString);\n ColumnName colName = new ColumnName(colNameString);\n node = new ColumnValue(colName);\n aggregateFunctions.remove(aggregateFunctions.size() - 1);\n } else if (mapFunctionToString.containsKey(call)){\n // If this is true, then we have seen the functionCall \"call\" before. In this case,\n // we want to reuse the columnName we have stored for it using our amazing\n // mapFuncitonToString map.\n String name = mapFunctionToString.get(call);\n ColumnName colName = new ColumnName(name);\n node = new ColumnValue(colName);\n }\n }\n }\n return node;\n }", "title": "" }, { "docid": "f6af86d93f8606bf67c4f9c7a598500d", "score": "0.5172186", "text": "public abstract boolean avail_leave(int no_of_leaves, char type_of_leave);", "title": "" }, { "docid": "7ad6001652622624f6c58948f8b4d409", "score": "0.5171996", "text": "public Set<PhysicalEntity> getLeft();", "title": "" }, { "docid": "0565e320ab1ac787f19f85074824935c", "score": "0.5163826", "text": "@TargetDataSource(name = \"slave\")\n public List<Map<String, Object>> getLeftMenu() {\n // TODO Auto-generated method stub\n\n return menuDao.getLeftMenu();\n }", "title": "" }, { "docid": "9bdc6365be595b87454fe502a71822b1", "score": "0.5133325", "text": "public abstract void calculate_balance_leaves();", "title": "" }, { "docid": "b52caf815b31d3e3ad6e866fcdf9245c", "score": "0.5130725", "text": "default void visitLeave(AffectedDocument affectedDocument) {\n }", "title": "" }, { "docid": "a8c8825b1aef49a09cab02926003693c", "score": "0.5100557", "text": "@Override\r\n\t public void dragLeave(DropTargetEvent dropTargetEvent) {\n\t\tif (dragger == DnDCell.this) {\r\n\t\t return;\r\n\t\t}\r\n\r\n\t\tDnDContent contentDragged = dragger.getContentOnTop();\r\n\t\tDnDStructure structure = contentDragged.getStructure();\r\n\t\tif (structure != null) {\r\n\t\t List<DnDCell> structureCellsShifted = structure\r\n\t\t\t .getStructureCellsShiftedBy(contentDragged,\r\n\t\t\t\t DnDCell.this);\r\n\t\t // if it was not able to get the cells to shift, I stop\r\n\t\t if (structureCellsShifted == null) {\r\n\t\t\treturn;\r\n\t\t }\r\n\t\t for (DnDCell shiftedCell : structureCellsShifted) {\r\n\t\t\tshiftedCell.dragLeaveOperations();\r\n\t\t }\r\n\t\t} else {\r\n\t\t dragLeaveOperations();\r\n\t\t}\r\n\t }", "title": "" }, { "docid": "553c7081a6882ffcf7057bfdfb87e920", "score": "0.50851953", "text": "void onEntityLeaves(String name, Bounds bounds, Entity entity);", "title": "" }, { "docid": "f5f7fe222d196a15fd29e544021b42f9", "score": "0.5051961", "text": "@Override\r\n\tpublic void leave(GameContainer arg0, StateBasedGame arg1) throws SlickException {\n\r\n\t}", "title": "" }, { "docid": "8a60b3b4fd78e193f791e0df9e24a654", "score": "0.5043208", "text": "@Override\r\n\tpublic String parentTableName() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ed0b6bb6270804d08936ee12ac7cf9d0", "score": "0.504024", "text": "public int numLeaves()\n {\n \treturn numLeavesH( tree ) ;\n }", "title": "" }, { "docid": "decfdf690aad1cc93ecf992b9ef6da87", "score": "0.49832162", "text": "private void leaveRoom() {\n Map<String, Object> multipleUpdates = new HashMap<>();\n multipleUpdates.put(\"/players/\" + mUid + \"/status\", Player.STATUS_IDLE);\n multipleUpdates.put(\"/rooms/\" + mRoomCode + \"/players/\" + mUid, null);\n mDatabase.updateChildren(multipleUpdates);\n updateWidgetLayout();\n }", "title": "" }, { "docid": "d576ad42095137f2bfbbd9cd152a917d", "score": "0.4981746", "text": "@RequestMapping(value = \"/Reports/GenerateLeavesReport\", method = RequestMethod.POST, produces = \"application/json\")\n\t@ResponseBody\n\tpublic List<Leave> generateLeavesReport(@RequestBody Leave leave) throws HibernateException, ParseException {\n\t\treturn leaveService.generateLeavesReport(leave);\n\t}", "title": "" }, { "docid": "06519d1cda60e1c81cba920ec514118d", "score": "0.4965189", "text": "public void visitLeave(IndexNode node) {\n\t\t\tnewAddressCode(node);\n\t\t\t\n\t\t\tASMCodeFragment indexedItem = removeValueCode(node.child(0));\n\t\t\tASMCodeFragment index = removeValueCode(node.child(1));\n\t\t\t\n\t\t\tcode.append(indexedItem);\n\t\t\tcode.append(index);\n\t\t\t\n\t\t\tif (node.nChildren() > 2) {\n\t\t\t\tindex = removeValueCode(node.child(2));\n\t\t\t\tcode.append(index);\n\t\t\t}\n\t\t\t\n\t\t\tObject variant = node.getSignature().getVariant();\n\t\t\t\n\t\t\tif (variant instanceof SimpleCodeGenerator) {\n\t\t\t\tSimpleCodeGenerator scg1 = (SimpleCodeGenerator) variant;\n\t\t\t\tcode.addChunk(scg1.generate());\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "3489c2fb3b4b6713d64eb3cd983c7de3", "score": "0.49641204", "text": "@Override\r\n\tpublic void onLeave() {\n\r\n\t}", "title": "" }, { "docid": "c8bc90423626197ec3c4d1174b08fe29", "score": "0.4951426", "text": "public List<String> getAllLeavesName(){\n List <String> leavesName = new ArrayList<String>();\n HashMap<Integer, Node> ids_nodes = this.nodes;\n\n Iterator nodesIter = ids_nodes.entrySet().iterator();\n while (nodesIter.hasNext()) {\n\n Map.Entry pair = (Map.Entry) nodesIter.next();\n\n if (((Node) pair.getValue()).getChildren().isEmpty()) {\n leavesName.add(((Node) pair.getValue()).name) ;\n }\n }\n return leavesName;\n\n }", "title": "" }, { "docid": "a8a7c02405ecc791efdb1f0c4c6efee0", "score": "0.49432674", "text": "public int getLeaveType() {\n return this.leaveType;\n }", "title": "" }, { "docid": "e527d546c676841a13be95aef80111fe", "score": "0.49227518", "text": "public Collection selectLeave(String year, Date fromDate, Date toDate, ArrayList unitIds, String sort, boolean desc, int startIndex, int maxRows) throws DaoException{\r\n\t\tCollection leaves = new ArrayList();\r\n\t\tString strSort=\"\";\r\n\t\tif (sort != null) {\r\n strSort += \" ORDER BY \" + sort;\r\n if (desc)\r\n strSort += \" DESC\";\r\n }else \r\n \tstrSort += \" ORDER BY manpowerName, dateFrom ASC \";\r\n\r\n\t\tArrayList params = new ArrayList();\r\n\t\t\r\n\t\tString sql=\"SELECT distinct fml.id AS manpowerLeaveId, u.firstName + ' ' + u.lastName AS manpowerName, fml.manpowerId as manpowerId, fmls.id,fls.leaveTypeName as leaveType,fmls.dateFrom,fmls.dateTo \" +\r\n\t\t\"FROM fms_manpow_leave_setup fmls, fms_leaveType_setup fls, fms_manpower_leave fml, security_user u \" +\r\n\t\t\"WHERE fml.leaveId=fmls.id AND fmls.leaveType=fls.id AND fml.manpowerId = u.id \";\r\n\t\t\r\n\t\t// filter by year\r\n\t\tsql += \"AND year(fmls.dateFrom) = ? \";\r\n\t\tparams.add(year);\r\n\t\t\r\n\t\t// filter by unit\r\n\t\tsql += \"AND u.unit IN (\" + SqlUtil.placeholders(unitIds.size()) + \") \";\r\n\t\tparams.addAll(unitIds);\r\n\t\t\r\n\t\t// filter by date\r\n\t\tif (fromDate!=null && toDate!=null) {\r\n\t\t\tsql+=\" AND (( fmls.dateFrom between ? AND ? ) OR ( fmls.dateTo between ? AND ? )) \";\r\n\t\t\tparams.add(fromDate);\r\n\t\t\tparams.add(toDate);\r\n\t\t\tparams.add(fromDate);\r\n\t\t\tparams.add(toDate);\r\n\t\t}\r\n\t\t\r\n\t\tleaves = super.select(sql+strSort, HashMap.class, params.toArray(), startIndex, maxRows);\r\n\t\treturn leaves;\r\n\t}", "title": "" }, { "docid": "cc8e8131c826375aa9ab819099d64d37", "score": "0.4909376", "text": "public JSONObject getStudentLeaves(JSONObject data) {\n\t\tJSONObject result = new JSONObject();\n\t\ttry{\n\t\t\tJSONObject retObject = cacStudentDao.getStudentLeaves(data);\n\t\t\t\n\t\t\tif(retObject.getInt(\"flag\") == 0)\n\t\t\t{\n\t\t\t\tresult.put(\"result\", \"0\");\n\t\t\t\tresult.put(\"resultTip\", retObject.getString(\"tip\"));\n\t\t\t\tresult.put(\"data\", retObject.getJSONArray(\"data\"));\n\t\t\t}else {\n\t\t\t\tresult.put(\"result\", \"1\");\n\t\t\t\tresult.put(\"resultTip\", retObject.getString(\"tip\"));\n\t\t\t\tresult.put(\"data\",\"\");\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\t\n\t}", "title": "" }, { "docid": "1e2a3c81684288e7e5914e323199474c", "score": "0.4905394", "text": "default void visitLeave(Change change) {\n }", "title": "" }, { "docid": "ab1b7b373fbfbd68da2d6cb9839259d8", "score": "0.489228", "text": "@Override\n\tpublic void leave(GameContainer container, StateBasedGame stateBasedGame) throws SlickException {}", "title": "" }, { "docid": "127dcfbfb312f185f37a75a9a373301c", "score": "0.48918715", "text": "RelationalExpChild getLeft();", "title": "" }, { "docid": "9c2171a61fd0186bff6325d3b17ba0b8", "score": "0.48794988", "text": "@Override\n\tpublic String findParentKeyColumnName()\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "25951d0286e52f8c96313142df8b683c", "score": "0.48774767", "text": "public void Leave() {}", "title": "" }, { "docid": "cb90d47e29b6a6cd7d3ff6caf1eec771", "score": "0.4861232", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"EmployeeLeave [leaveId=\" + leaveId + \", empId=\" + empId + \", appliedDate=\" + appliedDate\r\n\t\t\t\t+ \", leaveDuration=\" + leaveDuration + \", fromDate=\" + fromDate + \", toDate=\" + toDate + \", status=\"\r\n\t\t\t\t+ status + \"]\";\r\n\t}", "title": "" }, { "docid": "1a92b32b9d52eaa71dce93a3eac983f4", "score": "0.4854055", "text": "public void visitLeave(FunctionDefinitionNode node) {\n\t\t\tnewVoidCode(node);\n\t\t\t\n\t\t\tif (node.child(0) instanceof IdentifierNode) {\n\t\t\t\tfunctionDefinitions.add((IdentifierNode) node.child(0));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "51e7a94093994914e98086e1c5dcbd86", "score": "0.48526147", "text": "public void lvlup() {\n\t}", "title": "" }, { "docid": "ba0954ddd861930b844d42c3fd97cd5d", "score": "0.48525956", "text": "LeaveHistory createLeave(LeaveHistory leaveHistory, Integer empId);", "title": "" }, { "docid": "ae91796a890c555010f49b3ef9507894", "score": "0.4846275", "text": "public abstract void left();", "title": "" }, { "docid": "ff0cf6bb10d48326a98b79dcb9687368", "score": "0.48426142", "text": "@Override\n\tpublic String printLogicalTree() {\n\t\tString tableScanned = null;\n\t\tString aliasName = null;\n\t\tif(!this.joinedTable) {\t\n\t\ttableScanned = plainSelect.getFromItem().toString();// first table in from item\t\n\t\tString[] strs = tableScanned.split(\"\\\\s+\");//if there is aliases\n\t\ttableScanned = strs[0];\n\t\taliasName = strs[strs.length-1];\n\t\t}else {\n\t\t\ttableScanned = null;\n\t\t\ttableScanned = plainSelect.getJoins().get(joinedTableIndex).toString();\n\t\t\tString[] strs = tableScanned.split(\"\\\\s+\");//if there is aliases\n\t\t\ttableScanned = strs[0];\n\t\t\taliasName = strs[strs.length-1];\n\t\t}\n\t\treturn String.format(\"Leaf[%s]\", tableScanned);\n\t}", "title": "" }, { "docid": "eee1249981905d40b49bfce2c812e955", "score": "0.48340926", "text": "public int numberOfLeaves() throws NullPointerException {\r\n return DEFAULT_RETURN_INT;\r\n }", "title": "" }, { "docid": "851935822f2f7e199186eabeadca733d", "score": "0.48101804", "text": "public void test_leave(){\r\n\t\tassertTrue(expectedTrue,Command.getTableParking().execute(paramWithLotInt));\r\n\t\tassertFalse(expectedFalse,Command.getTableParking().execute(paramsTesLeaveNoData));\r\n\t\t\r\n\t\tassertTrue(expectedTrue, Command.getTableParking().execute(paramsTesParkingParamEqual2));\r\n\t\tassertTrue(expectedTrue,Command.getTableParking().execute(paramsTesStatus));\r\n\t\t\r\n\t\tassertFalse(expectedFalse,Command.getTableParking().execute(paramsTesLeaveNoData));\r\n\t\tassertFalse(expectedFalse,Command.getTableParking().execute(paramsTesLeaveNoDataAvail));\r\n\t\tassertTrue(expectedTrue,Command.getTableParking().execute(paramsTesLeaveDataAvail));\r\n\t}", "title": "" }, { "docid": "3611faead3d320fe8e02d73b35cc3429", "score": "0.47996953", "text": "@Override\r\n\tpublic function left() {\n\t\treturn left;\r\n\t}", "title": "" }, { "docid": "25a2287913bece5b7508bd680cd1cd4d", "score": "0.47906542", "text": "void leave(BinaryTreeAutomaton visitable);", "title": "" }, { "docid": "6aee6e3e613edd37751ccb872e3a4cb0", "score": "0.4789118", "text": "default void visitLeave(RelatedDocument RelatedDocument) {\n }", "title": "" }, { "docid": "0c49b989249a68e09ecc33cd5371d155", "score": "0.47847024", "text": "public int countLeaves() {\n\t\treturn this.root.leaves();\n\t}", "title": "" }, { "docid": "f68469fbbd63b165ed6cd432ac4711c9", "score": "0.4782111", "text": "@Override\n\tpublic void leaving(Customer c) {\n\t\t\n\t}", "title": "" }, { "docid": "65c27a88ea212ae35677c3740c430f1d", "score": "0.47801754", "text": "public void visitLeave(ParseNode node) {\n\t\t\tassert false : \"node \" + node + \" not handled in ASMCodeGenerator\";\n\t\t}", "title": "" }, { "docid": "e77ffcc80f2e5ea0866e13b8db86f6f4", "score": "0.47761253", "text": "public ArrayList<IntNaryTree> getLeaves() {\n LeafCollector leafCollector = new LeafCollector();\n postOrderTraversal(leafCollector);\n return leafCollector.leaves;\n }", "title": "" }, { "docid": "a3fb775a7c0bb45539c616002d4078b9", "score": "0.47570232", "text": "@Override\n\tpublic function left() {\n\n\t\treturn this.left;\n\t}", "title": "" }, { "docid": "eee8c2e0744071108c64be75dc24527e", "score": "0.4755136", "text": "List<Leave> selectByExample(LeaveExample example);", "title": "" }, { "docid": "e4e553c815dbc39777e7f3a3adc4b296", "score": "0.4755042", "text": "Page<LeaveHistory> fetchAllSubEmployeeLeaves(Integer pageNo, Integer pageSize, String sortBy, Integer managerId);", "title": "" }, { "docid": "18de111ce1b3d5579b987d9456b46184", "score": "0.4728576", "text": "@Repository\npublic interface LeaveEmployeeDao {\n //添加离职员工\n public void insert(LeaveEmployee leaveEmployee);\n //查询所有离职员工\n public List<LeaveEmployee> selectAll();\n //通过eId查询离职员工\n public LeaveEmployee selectByEid(int eId);\n}", "title": "" }, { "docid": "89f79bb34d12c769a18fdba0cd6aa12b", "score": "0.472513", "text": "void leave(BranchingTransition visitable);", "title": "" }, { "docid": "7d1c45b0f36980c1495342a38f368a1d", "score": "0.4724418", "text": "public void leave() throws GridException\r\n\t;", "title": "" }, { "docid": "1474a101405fedc0abebc1899a867ead", "score": "0.4711538", "text": "@Override\n\t\t\tpublic void leaveRoom() {\n\t\t\t\ttry {\n\t\t\t\t\troomModel.leaveRoom();\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}", "title": "" }, { "docid": "775ba8c56522b3e6135956f8ba7d2abf", "score": "0.4703663", "text": "@ResponseStatus(HttpStatus.CREATED)\n @RequestMapping(value = \"/leaveTable\", method = RequestMethod.POST)\n public String leaveTable(@RequestBody String json) {\n\n logger.info(\"json:\" + json);\n\n try {\n\n ObjectMapper mapper = new ObjectMapper();\n Model.Table value = mapper.readValue(json, Model.Table.class);\n\n//ToDo p.setTables(\"accounts\", value.getTableId(),value.getRestaurantId(),value.getSeatNumber());\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return \"200/OK\";\n }", "title": "" }, { "docid": "e43a809f40191bd8ed251937514fe8ae", "score": "0.46924603", "text": "public abstract void leave();", "title": "" }, { "docid": "1be70378bd17eafc7c8c04fe318de976", "score": "0.46898916", "text": "@Override\n\tpublic int insertLeaveReturnApplication(LeaveReturnApplication leaveReturnApplication) {\n\t\treturn session.insert(makeSql(\"insertLeaveReturnApplication\"), leaveReturnApplication);\n\t}", "title": "" }, { "docid": "3cbd291aae147c5c1d35005a7848811d", "score": "0.4689147", "text": "@Override\r\n\tpublic String tableName() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "964531ea61200337616b9e16b62e801a", "score": "0.46867123", "text": "public abstract void updateLeaves(ArrayList<TreeNode> leaves);", "title": "" }, { "docid": "9ade0c64c017e3c5ef552bc6ad62c39e", "score": "0.46780124", "text": "@Override\r\n\tpublic List<HyData> selectLevelList() {\n\t\tList<HyData> selectDataList = hyDataMapper.selectLevelList();\r\n\t\treturn selectDataList;\r\n\t}", "title": "" }, { "docid": "645e5713a53ac4a50d59fa4b1af2982c", "score": "0.46731097", "text": "public abstract TreeNode left();", "title": "" }, { "docid": "cdce82f7803bb2f13baa783d1d531092", "score": "0.4669616", "text": "@Override\n\t\tpublic function left() {\n\t\t\treturn this.left();\n\t\t}", "title": "" }, { "docid": "d528343f948df2315a7edafe92806c84", "score": "0.4666858", "text": "Integer fetchLeaveBalance(Integer empId);", "title": "" }, { "docid": "81e6974cca450e048e3a61cf72fd7713", "score": "0.46618667", "text": "void moveAfterLst() throws SQLException;", "title": "" }, { "docid": "4b54380b19d2df334d6b8cf311a19a25", "score": "0.46602124", "text": "public void visitLeave(PrintStatementNode node) {\n\t\t\tnewVoidCode(node);\n\t\t\tnew PrintStatementGenerator(code, this).generate(node);\t\n\t\t}", "title": "" }, { "docid": "520f024a8302ed53a4e712b84615f3b5", "score": "0.4653909", "text": "void wipeParentTable() {\r\n try {\r\n wipeParentTable.execute();\r\n System.err.println(\"Parent table successfully wiped.\");\r\n } catch (SQLException e) {\r\n System.err.println(\"Error wiping parent table, it may already exist.\");\r\n // e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "5fa4578ebce775c7b0c739ad617223a8", "score": "0.46522033", "text": "List<SkipNodeIdentity> getLefts(int level);", "title": "" }, { "docid": "b9e287dffa779be2ea30aaf26490773a", "score": "0.46424136", "text": "EmplLeaveType getLeaveType();", "title": "" }, { "docid": "8ed925b2db2ef4a7dad2ba9d5383939d", "score": "0.4640388", "text": "public int countLeaves()\n {\n return countLeaves(root);\n }", "title": "" }, { "docid": "39fe754aa515d3c2476e3a1d1abb4e84", "score": "0.46394122", "text": "@Override\r\n\tpublic void onLeaveRoom(int code, GotyeRoom room) {\n\t\t\r\n\t}", "title": "" }, { "docid": "216558e9bd53e08ecf210a8939c74c36", "score": "0.46389604", "text": "protected void onLevelUp() {\n\n }", "title": "" }, { "docid": "bdd3cdfa95f772c33f976d2c635a76b7", "score": "0.46241775", "text": "String getNestedTableName();", "title": "" }, { "docid": "60f3f9de4900045d1a18c12752da038b", "score": "0.4612381", "text": "@Override\n\tpublic <E> String buildSql(TableMapping<E> mapping) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cb756cee3779373c10a54a929dab51f2", "score": "0.4610118", "text": "@Override\n\tpublic boolean canLeave() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "176fefb4b0df025da76ee75bdb366822", "score": "0.460751", "text": "public void setLeaveType(int leaveType) {\n this.leaveType = leaveType;\n }", "title": "" }, { "docid": "7db2c26a4338d1446b6e672bf87d9a40", "score": "0.46073785", "text": "public A left() {\n return null;\n }", "title": "" }, { "docid": "25e21e47ce061d3d1a6269b34d68aba0", "score": "0.46071765", "text": "@Override\r\n\tpublic Expression getLeft() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "888b4b9c32d481ab7d4ed133eb4cfbec", "score": "0.45768058", "text": "void leave(ListTransition visitable);", "title": "" }, { "docid": "704d87c930415299baff91fa9c3bb9a8", "score": "0.4573981", "text": "@Override\r\n\tpublic List<BoardDTO> board_list_pop() {\n\t\treturn sql.selectList(\"board.mapper.pop_list\");\r\n\t}", "title": "" }, { "docid": "a3c75c1d9616f5f6ef08e200809c4f8f", "score": "0.45738074", "text": "void addLeft(PhysicalEntity left);", "title": "" }, { "docid": "05c17b2dccbfbf73f4eac4624720798f", "score": "0.45718735", "text": "public int getLeftColumn() {\n return leftColumn;\n }", "title": "" }, { "docid": "8e877ad1f3e86368dd02934b41fa4649", "score": "0.45592088", "text": "@Step(\"Get leave data from table.\")\n\tpublic List<LeaveSummary> getLeaveRow(String leaveId){\n\t\tLeaveObject leaveObject = getLeaveSummaryTable();\n\t\tList<LeaveSummary> list = leaveObject.getLeaveSumamry();\n\t\tList<LeaveSummary> leaveSummaryList = list.stream().\n\t\t\t\tfilter(s->s.getId().contains(leaveId))\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn leaveSummaryList;\n\t}", "title": "" }, { "docid": "7ab36060023c301cbc38dab8d685f074", "score": "0.45574036", "text": "public ArrayList<PathNode> getLeaves(){\n leaves = new ArrayList<PathNode>();\n \n searchLeaves(root);\n \n return leaves;\n }", "title": "" }, { "docid": "acaa1cd48c9bf6dc7f4333b826747e2d", "score": "0.45545924", "text": "@Column(name = \"PARENTENDOFFSET\", length = EntityWithId.COLUMNLENGTH)\n \n \n public Long getParentEndOffset() {\n return parentEndOffset;\n }", "title": "" }, { "docid": "08f1860d070ed0257e9e3bb409dae621", "score": "0.4543897", "text": "void dropParentTable() {\r\n try {\r\n dropParentTable.execute();\r\n System.err.println(\"Parent table successfully dropped.\");\r\n } catch (SQLException e) {\r\n System.err.println(\"Error dropping parent table, it may not exist.\");\r\n // e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "df6104789018e745135e9feec75f3ae6", "score": "0.45396414", "text": "void leave(OneOrMoreAttributeTransition visitable);", "title": "" }, { "docid": "2ea3112d8e3b280bb6e25eaa630899bf", "score": "0.4538783", "text": "public List<List<T>> findLeaves(){\n List<List<T>> res = new ArrayList<>();\n nodeHeight(root, res);\n return res;\n }", "title": "" }, { "docid": "9ef84ca8dd400b1ddc16842b3302453d", "score": "0.45381606", "text": "@Mapper\npublic interface MenuMapper {\n\n /**\n * 모든 메뉴 리스트 조회\n * @return 메뉴 리스트\n */\n // storeIdx로 menuList 조회(size = 1(regular)일 때)\n @Select(\"SELECT MENU.menu_idx, MENU.name, MENU.photo_url, SIZE_PRICE.price, SIZE_PRICE.size FROM MENU \" +\n \"INNER JOIN STORES_MENU ON (MENU.menu_idx = STORES_MENU.menu_idx) \" +\n \"INNER JOIN SIZE_PRICE ON (MENU.menu_idx = SIZE_PRICE.menu_idx) \" +\n \"WHERE STORES_MENU.store_idx = #{store_idx} AND (SIZE_PRICE.size NOT IN(0, 2)) ORDER BY SIZE_PRICE.size\")\n List<Menu> findMenuByStoreIdx(@Param(\"store_idx\") final int storeIdx);\n\n /**\n * 메뉴 상세 정보 조회\n * @return 메뉴 상세 정보\n */\n // menu 정보 조회\n @Select(\"SELECT COUNT(*) FROM STORES_MENU WHERE store_idx = #{store_idx} AND menu_idx = #{menu_idx}\")\n int findStoreMenu(@Param(\"store_idx\") final int storeIdx, @Param(\"menu_idx\") final int menuIdx);\n\n // size별 가격 조회\n @Select(\"SELECT size, price FROM SIZE_PRICE WHERE menu_idx = #{menu_idx} ORDER BY size\")\n List<SizePrice> findSizePriceByMenuIdx(@Param(\"menu_idx\") final int menuIdx);\n}", "title": "" }, { "docid": "f560851260093c3753f3cdd9918200d8", "score": "0.45366862", "text": "void leave(StartTransition visitable);", "title": "" }, { "docid": "140a6e66ad760841145eee20ac8d4e43", "score": "0.45338702", "text": "@Override\n\tpublic List<BoardListDto> boardMenu() {\n\t\tBoardAdminDao boardAdminDao = sqlSession.getMapper(BoardAdminDao.class);\n\t\treturn boardAdminDao.boardMenu();\n\t}", "title": "" }, { "docid": "e4c3b81ec9a6b0bae9dafdb0ed02e1c0", "score": "0.45324957", "text": "public String[] getLeaveTimeRange()\r\n\t\t{\r\n\t\t\treturn this.leaveTimeRange ;\r\n\t\t}", "title": "" }, { "docid": "064ed6c335ddf9a9b17118733488a3a7", "score": "0.4532304", "text": "int updateByPrimaryKey(Leaves record);", "title": "" }, { "docid": "c4d7159c88785d7329c5b1d9e2d150cf", "score": "0.45309564", "text": "int insertSelective(Leave record);", "title": "" }, { "docid": "229d847bd356caa0165ece608dd3d9a3", "score": "0.45308676", "text": "public BTNode getLeft()\n {\n return left;\n }", "title": "" }, { "docid": "1a06e902c855fdfc41fe030abae22bdc", "score": "0.45297742", "text": "public interface UserOwnerDao {\n\n\n @Select({\"SELECT \\n\" +\n \"A_ENAME as eName,\\n\" +\n \"tbl_power_info_v2.P_BY_KwhZ as consumption,\\n\" +\n \"tbl_power_info_v2.P_CODE as pCode,\\n\" +\n \"tbl_water_info.W_READINGS AS water,\\n\" +\n \"tbl_power_info_v2.P_TIME as time\\n\" +\n \"FROM\\n\" +\n \"tbl_area\\n\" +\n \"\\n\" +\n \"LEFT JOIN\\n\" +\n \"tbl_area_hardware ON tbl_area.A_CODE=tbl_area_hardware.AH_AREA_ID\\n\" +\n \"LEFT JOIN\\n\" +\n \"tbl_power_info_v2 ON tbl_power_info_v2.P_CODE = tbl_area_hardware.AH_HARDWARE_ID\\n\" +\n \"AND tbl_power_info_v2.P_TIME IN (\\n\" +\n \"\\tSELECT\\n\" +\n \"\\t\\tMAX(tbl_power_info_v2.P_TIME)\\n\" +\n \"\\tFROM\\n\" +\n \"\\t\\ttbl_power_info_v2\\n\" +\n \"\\tGROUP BY\\n\" +\n \"\\t\\ttbl_power_info_v2.P_CODE\\n\" +\n \")\\n\" +\n \"LEFT JOIN\\n\" +\n \"t_water_area ON tbl_area.A_CODE = t_water_area.a_code\\n\" +\n \"LEFT JOIN\\n\" +\n \"tbl_water_info ON t_water_area.w_addr = tbl_water_info.W_ADDRESS\\n\" +\n \"AND\\n\" +\n \"tbl_water_info.W_TIME in(\\n\" +\n \"\\tSELECT MAX(tbl_water_info.W_TIME)\\n\" +\n \"\\tFROM tbl_water_info\\n\" +\n \"\\tGROUP BY\\n\" +\n \"\\ttbl_water_info.W_ADDRESS\\n\" +\n \")\\n\" +\n \"\\n\" +\n \"GROUP BY\\n\" +\n \"eName\\n\"})\n List<PowerWaterRtimeInfo> selectPWRtimeInfos();\n\n @Select({\"SELECT \\n\" +\n \"tbl_area.A_CODE as factoryNumber,A_ENAME as companyName,\\n\" +\n \"tbl_power_info_v2.P_ZXYGDN as electricity,\\n\" +\n \"tbl_power_info_v2.P_CODE as pCode,\" +\n \"tbl_water_info.W_READINGS AS water\\n\" +\n \"\\n\" +\n \"FROM\\n\" +\n \"tbl_area\\n\" +\n \"\\n\" +\n \"LEFT JOIN \\n\" +\n \"tbl_area_hardware ON tbl_area.A_CODE=tbl_area_hardware.AH_AREA_ID\\n\" +\n \"LEFT JOIN\\n\" +\n \"tbl_power_info_v2 ON tbl_power_info_v2.P_CODE = tbl_area_hardware.AH_HARDWARE_ID\\n\" +\n \"AND tbl_power_info_v2.P_TIME IN (\\n\" +\n \"\\tSELECT\\n\" +\n \"\\t\\tMAX(tbl_power_info_v2.P_TIME)\\n\" +\n \"\\tFROM\\n\" +\n \"\\t\\ttbl_power_info_v2\\n\" +\n \"\\tGROUP BY\\n\" +\n \"\\t\\ttbl_power_info_v2.P_CODE\\n\" +\n \")\\n\" +\n \"LEFT JOIN\\n\" +\n \"t_water_area ON tbl_area.A_CODE = t_water_area.a_code\\n\" +\n \"LEFT JOIN\\n\" +\n \"tbl_water_info ON t_water_area.w_addr = tbl_water_info.W_ADDRESS\\n\" +\n \"AND\\n\" +\n \"tbl_water_info.W_TIME in(\\n\" +\n \"\\tSELECT MAX(tbl_water_info.W_TIME)\\n\" +\n \"\\tFROM tbl_water_info\\n\" +\n \"\\tGROUP BY\\n\" +\n \"\\ttbl_water_info.W_ADDRESS\\n\" +\n \")\\n\" +\n \"GROUP BY\\n\" +\n \"factoryNumber\\n\"})\n List<SsjcMapInfo> selectMapInfo();\n\n\n @Select({\n \"SELECT\\n\" +\n \"\\tAH_HARDWARE_ID AS id,\\n\" +\n \"\\ttbl_area.A_ENAME AS eName,\\n\" +\n \"tbl_area.A_CODE as aCode,\"+\n \"\\ttbl_power_info_v2.P_TIME AS time,\\n\" +\n \"\\ttbl_power_info_v2.P_A_DIANYA AS dianYa,\\n\" +\n \"\\ttbl_power_info_v2.P_A_DIANLIU AS dianLiu,\\n\" +\n \"\\ttbl_power_info_v2.P_ZXYGDN AS zdn,\\n\" +\n \"\\ttbl_power_info_v2.P_HXYGGL AS yggl,\\n\" +\n \"\\ttbl_power_info_v2.P_HXGLYS AS glys,\\n\" +\n \"\\ttbl_power_info_v2.P_BY_HKvarhG AS gdn,\\n\" +\n \"\\ttbl_power_info_v2.P_BY_HKvarhF AS fdn,\\n\" +\n \"\\ttbl_power_info_v2.P_BY_HKvarhJ AS jdn,\\n\" +\n \"\\ttbl_power_info_v2.P_BY_HKvarhP AS pdn,\\n\" +\n \"\\ttbl_power_info_v2.P_HXYGGL AS zgl\\n\" +\n \"FROM\\n\" +\n \"\\ttbl_area_hardware\\n\" +\n \"LEFT JOIN tbl_area ON tbl_area.A_CODE = tbl_area_hardware.AH_AREA_ID\\n\" +\n \"LEFT JOIN tbl_power_info_v2 ON tbl_power_info_v2.P_CODE = tbl_area_hardware.AH_HARDWARE_ID\\n\" +\n \"AND tbl_power_info_v2.P_TIME IN (\\n\" +\n \"\\tSELECT\\n\" +\n \"\\t\\tMAX(tbl_power_info_v2.P_TIME)\\n\" +\n \"\\tFROM\\n\" +\n \"\\t\\ttbl_power_info_v2\\n\" +\n \"\\tGROUP BY\\n\" +\n \"\\t\\ttbl_power_info_v2.P_CODE\\n\" +\n \")\\n\" +\n \"GROUP BY\\n\" +\n \"\\tid\\n\" +\n \"ORDER BY\\n\" +\n \"\\tid\"\n })\n List<PowerListInfo> selectPowerListInfo();\n\n\n List<UserOwner> selectCompanyNameById(int userid);\n// @Select(\"SELECT AH_HARDWARE_ID FROM tbl_area_hardware WHERE AH_AREA_ID = #{code}\")\n List selectPcodeByAcode(@Param(\"code\") String code); //根据acode查找电表编号\n @Select(\"SELECT AH_AREA_ID FROM tbl_area_hardware WHERE AH_HARDWARE_ID = #{pCode}\")\n String selectAcodeByPcode(@Param(\"pCode\") int pCode);\n @Select(\"SELECT a_code FROM t_user_per WHERE user_id = #{userid} \")\n String selectAcodeByUserId(@Param(\"userid\") int userid);\n\n /**\n * 换算标煤,取出来今天所有厂房的电能,相加\n * @return\n */\n @Select(\"SELECT sum(P_BY_KwhZ) FROM tbl_power_info_v2 WHERE P_TIME IN (\\n\" +\n \" SELECT max(P_TIME) FROM tbl_power_info_v2 WHERE DATE (P_TIME) = DATE (now())\\n\" +\n \" GROUP BY P_CODE)\")\n Double selectCoalByYear();\n\n @Select(\"select P_CODE pCode,P_BY_KwhZ pBYKwhZ,P_TIME pTime from tbl_power_info_v2 where P_TIME IN (\\n\" +\n \" SELECT max(P_TIME) From tbl_power_info_v2 where DATE (P_TIME) = DATE (now())\\n\" +\n \" GROUP BY P_CODE ORDER BY P_BY_KwhZ)\\n\" +\n \" UNION select P_CODE,P_BY_KwhZ,P_TIME from tbl_power_info_v2 where P_TIME IN (\\n\" +\n \" SELECT max(P_TIME) From tbl_power_info_v2 where DATE (P_TIME) = DATE (now())-1\\n\" +\n \" GROUP BY P_CODE)\\n\" +\n \" ORDER BY pTime DESC\")\n List<PowerInfo> selectSsjcConsumption();\n\n @Select(\"SELECT A_ENAME FROM tbl_area WHERE A_CODE = (\\n\" +\n \" SELECT AH_AREA_ID FROM tbl_area_hardware WHERE AH_HARDWARE_ID = #{pCode})\")\n String selectEnameByPCode(@Param(\"pCode\") int pCode);\n\n /* @Select(\"SELECT W_TIME time,W_ADDRESS address, W_READINGS readings FROM tbl_water_info where W_TIME = (\\n\" +\n \"SELECT MAX(W_TIME) FROM tbl_water_info WHERE DATE (W_TIME) = DATE(now()) )\\n\" +\n \" AND W_ADDRESS IN (SELECT w_addr FROM t_water_area WHERE a_code = #{aCode})\\n\" +\n \"GROUP BY W_ADDRESS\")*/\n List<WaterInfo> selectCurrWater(@Param(\"aCode\") String aCode);\n\n List<WaterInfo> selectCurrWater();\n\n\n @Select(\"SELECT DISTINCT W_TIME time, W_READINGS readings,W_ADDRESS FROM tbl_water_info WHERE W_TIME IN (\\n\" +\n \" SELECT max(W_TIME) FROM tbl_water_info WHERE \\n\" +\n \" DATE_FORMAT(W_TIME,'%Y') = DATE_FORMAT(now(),'%Y') GROUP BY MONTH(W_TIME)) \\n\" +\n \" AND W_ADDRESS IN (SELECT w_addr FROM t_water_area WHERE a_code = #{aCode})\")\n List<WaterInfo> selectWaterByMonth(@Param(\"aCode\") String aCode);\n\n //查找行业类别\n @Select(\"SELECT O_NAME aEname,O_TYPE oType FROM tbl_owner_info\")\n List<UserOwner> selectAllType();\n}", "title": "" }, { "docid": "03ff85ae8c2fb52c2f5169fc98d3b986", "score": "0.45187742", "text": "public String leaf() {\n return get(size() - 1);\n }", "title": "" }, { "docid": "77ecf814fec05c340848c98fa725e15c", "score": "0.45132995", "text": "@Override\n public void onLeaveRoomDone(RoomEvent arg0) {\n\n }", "title": "" }, { "docid": "8c0e224883b0c3ee9190638a46153572", "score": "0.45019108", "text": "void removeLeft(PhysicalEntity left);", "title": "" }, { "docid": "e70d9a998aa686ec6c0df1f65e43984e", "score": "0.45009875", "text": "@Override\r\n\tpublic void left() {\n\t\tfinish();\r\n\t}", "title": "" }, { "docid": "d04f21e4228acd1bff6adffc2cce4867", "score": "0.4494934", "text": "@Mapper\npublic interface UserDao {\n String TABLE_NAME1 = \"user\";\n String SELECT = \"select\";\n String UPDATE = \"update\";\n String INSERT = \"insert into\";\n\n String INSERT_FIELDS = \" employee_id, head_url, employee_name, employee_sex, employee_type, employee_level,employee_describe,group_id,del_flag,set_time,update_time \";\n\n String SELECT_FIELDS = \" id, \"+INSERT_FIELDS;\n\n @Insert({\n INSERT, TABLE_NAME1, \"(\", INSERT_FIELDS,\n \") Values (#{employeeId}, #{hearUrl}, #{employeeName}, #{employeeSex},#{employeeType}, #{employeeLevel}, #{employeeDescribe}, #{groupId}, #{delFlag},#{setTime}, #{updateTime})\"\n })\n int addUser(User user);\n\n @Select({SELECT, SELECT_FIELDS, \"from \", TABLE_NAME1, \" where employee_id=#{employeeId}\"})\n User selsectUserForUserId(String employeeId);\n\n @Update({UPDATE , TABLE_NAME1, \" set employee_level = #{employeeLevel} where employee_id=#{employeeId}\"})\n public void updateUserEmployeeLevel(User user);\n\n @Update({UPDATE , TABLE_NAME1, \" set group_id = #{groupId} where employee_id=#{employeeId}\"})\n public void updateUserGroupId(User user);\n\n @Update({UPDATE , TABLE_NAME1, \" set del_flag = 1 where employee_id=#{employeeId}\"})\n public void deleteUser(User user);\n\n @Update({UPDATE , TABLE_NAME1, \" set del_flag = 1 where employee_id=#{employeeId}\"})\n public void deleteUserByUserId(String employeeId);\n}", "title": "" }, { "docid": "331589ee5c57a8255f72d4b6d4d5728a", "score": "0.44891506", "text": "public int getLigne() {\n \t\treturn this.row;\n \t}", "title": "" } ]
4ba1bb82f314b69633519c2eece98f30
This method is used to check duplicate organization and to hold the organization entries
[ { "docid": "1c3d0a02e88dc8aa5c891250a7e1f102", "score": "0.53684413", "text": "public String createOrganization() throws Exception {\n\t\tHttpSession session = request.getSession();\n\t\tsession.setAttribute(\"org\", this);\n\t\tOrganizationHelper orgReg = new OrganizationHelper();\n\t\tString returntype = orgReg.verifyOrgName(getOrgName());\n\t\tif (returntype.equals(\"ERROR\")) {\n\t\t\taddActionError(\"ORGANIZATION Already Exists!!\");\n\t\t\treturn ERROR;\n\t\t} else if (returntype.equals(\"SUCCESS\")) {\n\t\t\t// get the email mailing privilege list from database\n\t\t\tUserInfoBean userBean = (UserInfoBean) session\n\t\t\t\t\t.getAttribute(\"USER_INFO\");\n\n\t\t\tMap<Integer, String> reportTypeTitleMap = null;\n\t\t\tif (\"BO\".equalsIgnoreCase(userBean.getUserType())) {\n\t\t\t\treportTypeTitleMap = orgReg.getMailingReportTitle(\"AGENT\");\n\t\t\t} else if (\"AGENT\".equalsIgnoreCase(userBean.getUserType())) {\n\t\t\t\treportTypeTitleMap = orgReg.getMailingReportTitle(\"RETAILER\");\n\t\t\t}\n\t\t\tlogger.debug(\"email privilege list in orgnization creation == \"\n\t\t\t\t\t+ reportTypeTitleMap);\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"email privilege list in orgnization creation == \"\n\t\t\t\t\t\t\t+ reportTypeTitleMap);\n\t\t\tsession.setAttribute(\"reportTypeTitleMap\", reportTypeTitleMap);\n\t\t\treturn SUCCESS;\n\t\t}\n\t\taddActionError(\"PLEASE ENTER ORGANIZATION NAME!!\");\n\t\treturn ERROR;\n\n\t}", "title": "" } ]
[ { "docid": "654619b6ebaa36e4deba781b79035c04", "score": "0.6400869", "text": "@Test\n public void testCreateDuplicateOrganization()\n throws StringTooLongException, MandatoryArgumentException, InvalidKeyException,\n DuplicateOrganizationCodeException, Exception {\n String lCode = \"CODE1\";\n String lName = \"test1\";\n\n OrgKey lOrgKey = OrgKey.ADMIN;\n\n // Create the new Organization\n iOrgService.createOrg( lOrgKey, lCode, lName, RefOrgTypeKey.DEPT );\n\n try {\n iOrgService.createOrg( lOrgKey, lCode, lName, RefOrgTypeKey.DEPT );\n fail( \"Duplicate path/code not reported.\" );\n } catch ( DuplicateOrganizationCodeException e ) {\n // Expected behaviour.\n }\n }", "title": "" }, { "docid": "c1f697fca246920cd3826f32b1cc8080", "score": "0.58805114", "text": "boolean organizationExistsByName(String name);", "title": "" }, { "docid": "ccc1ef557ea55332c0d09c3f7ed2e885", "score": "0.576082", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof SysTOrganization)) {\r\n return false;\r\n }\r\n SysTOrganization other = (SysTOrganization) object;\r\n if ((this.organizationId == null && other.organizationId != null) || (this.organizationId != null && !this.organizationId.equals(other.organizationId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "c40df7dd619f006e9f72e60e3f4730ac", "score": "0.57256705", "text": "private void checkExisting(String name, String address){\n Map<String, Restaurant> restaurantsCopy = getAllRestaurants();\n if(restaurantsCopy.isEmpty())\n return;\n for (String code : restaurantsCopy.keySet()) {\n if (checkInfo(code, name, address))\n throw new RestaurantAlreadyExistingException(\"Il ristorante è già presente nel sistema !\");\n }\n }", "title": "" }, { "docid": "01f7bbecc3a759419c58a8bcfff0dd35", "score": "0.5700751", "text": "public boolean update (Organization organization);", "title": "" }, { "docid": "08c6ab3434defdd3eb9d1088cfedb57d", "score": "0.56110173", "text": "boolean hasOrganization();", "title": "" }, { "docid": "08c6ab3434defdd3eb9d1088cfedb57d", "score": "0.56110173", "text": "boolean hasOrganization();", "title": "" }, { "docid": "150df2a0fb5bae668fdb3e39fee66ccd", "score": "0.55837125", "text": "public boolean hasOrganization() {\n return organization_ != null;\n }", "title": "" }, { "docid": "150df2a0fb5bae668fdb3e39fee66ccd", "score": "0.55837125", "text": "public boolean hasOrganization() {\n return organization_ != null;\n }", "title": "" }, { "docid": "b54ec5f87134959284f49827cb462595", "score": "0.55516016", "text": "public boolean create(Organization organization);", "title": "" }, { "docid": "4d758b452f41e88729bd46b22ec30320", "score": "0.5445327", "text": "public Organization updateOrganization(Organization organization) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f6135ce11125f93b06ee500bf3cce4d5", "score": "0.54365706", "text": "public void generateOrgData(){\n\n ConfigFileReader configFileReader = new ConfigFileReader();\n Company company = faker.company();\n String companyName = company.name();\n organization.setOrganizationName(companyName);\n Address address = faker.address();\n organization.setAddress(address.streetAddress());\n organization.setCity(address.city());\n organization.setCounty(address.state());\n organization.setPostcode(address.zipCode());\n organization.setCountry(configFileReader.getCountryName());\n organization.setTradingName(companyName.substring(0,3).toUpperCase());\n organization.setOrgAbbreviation(companyName.substring(0,6).toLowerCase());\n organization.setContactEmailAddress(configFileReader.getEmailId());\n String firstName = faker.name().firstName();\n String lastName = faker.name().lastName();\n name = firstName + \" \" + lastName;\n organization.setContactFirstName(firstName);\n organization.setContactLastName(lastName);\n organization.setContactPhone(faker.phoneNumber().phoneNumber());\n //Store the data in the data store\n new DataStore().storeOrganizationInfo(\"organization\", organization);\n\n }", "title": "" }, { "docid": "7577b5d831851947f031487e407df16f", "score": "0.5421795", "text": "@Test(expected = AppValidationException.class)\n public void saveAuthProviderPersonDuplicate() {\n final AuthProvider AUTHPROVIDER = new AuthProvider(\"AP1\");\n final Person PERSON = new Person(\"P1\");\n final Authentication authentication = new Authentication(null, null, AUTHPROVIDER, PERSON);\n given(authenticationRepository.findByAuthProviderAndPerson(AUTHPROVIDER, PERSON)).willReturn(authentication);\n\n authenticationService.save(authentication);\n }", "title": "" }, { "docid": "9e40ad7c1caaa7b9d6ad7385bbeef6ad", "score": "0.53470767", "text": "private void mergeDuplicates(Collection<Protein> duplicates, DuplicatesFoundEvent evt) {\n ProteinUpdateProcessorConfig config = ProteinUpdateContext.getInstance().getConfig();\n ProteinUpdateErrorFactory errorFactory = config.getErrorFactory();\n\n String uniprotOrganism = evt.getUniprotTaxId() != null ? evt.getUniprotTaxId() : \"\";\n\n if (log.isDebugEnabled()) log.debug(\"Merging duplicates: \"+ DebugUtil.acList(duplicates));\n\n // the collection which will contain the duplicates having the same sequence\n List<Protein> duplicatesHavingSameSequence = new ArrayList<>(duplicates.size());\n\n // the collection which will contain the duplicates having different sequences\n List<Protein> duplicatesHavingDifferentSequence = new ArrayList<>(duplicates.size());\n\n // sort the duplicates per organism\n Map<String, List<Protein>> duplicatesSortedByOrganism = sortDuplicatesPerOrganism(duplicates);\n\n if (duplicatesSortedByOrganism.size() != 1){\n if (evt.getSource() instanceof ProteinUpdateProcessor){\n ProteinUpdateProcessor processor = (ProteinUpdateProcessor) evt.getSource();\n\n StringBuilder reason = new StringBuilder();\n reason.append(\"Impossible to merge proteins having different taxIds : \");\n\n int index = 0;\n for (String taxId : duplicatesSortedByOrganism.keySet()){\n reason.append(taxId);\n\n if (index < duplicatesSortedByOrganism.size() - 1){\n reason.append(\", \");\n }\n index ++;\n }\n\n ProteinUpdateError impossibleMerge = errorFactory.createImpossibleMergeError(null, null, evt.getPrimaryUniprotAc(), reason.toString());\n processor.fireOnProcessErrorFound(new UpdateErrorEvent(processor, evt.getDataContext(), impossibleMerge, evt.getPrimaryUniprotAc()));\n }\n }\n\n // for each duplicated proteins sorted per organism, merge. If two proteins have same uniprot but different taxids, they are not merged together\n for (Map.Entry<String, List<Protein>> entry : duplicatesSortedByOrganism.entrySet()){\n\n duplicatesHavingDifferentSequence.clear();\n duplicatesHavingSameSequence.clear();\n\n List<Protein> duplicatesAsList = entry.getValue();\n\n boolean isUpdatable = entry.getKey().equals(uniprotOrganism);\n\n // while the list of possible duplicates has not been fully treated, we need to check the duplicates\n while (duplicatesAsList.size() > 0){\n // clear the list of duplicates having the same sequence\n duplicatesHavingSameSequence.clear();\n\n // pick the first protein of the list and add it in the list of duplicates having the same sequence\n Iterator<Protein> iterator = duplicatesAsList.iterator();\n Protein protToCompare = iterator.next();\n duplicatesHavingSameSequence.add(protToCompare);\n\n // the sequence of the protein\n String originalSequence = protToCompare.getSequence();\n\n // we compare the sequence of this first protein against the sequence of the other proteins\n while (iterator.hasNext()){\n // we extract the sequence of the next protein to compare\n Protein proteinCompared = iterator.next();\n String sequenceToCompare = proteinCompared.getSequence();\n\n // if the sequences are identical, we add the protein to the list of duplicates having the same sequence\n if (originalSequence != null && sequenceToCompare != null){\n if (originalSequence.equalsIgnoreCase(sequenceToCompare)){\n duplicatesHavingSameSequence.add(proteinCompared);\n }\n }\n else if (originalSequence == null && sequenceToCompare == null){\n duplicatesHavingSameSequence.add(proteinCompared);\n }\n }\n\n // if we have more than two proteins in the duplicate list having the exact same sequence, we merge them\n // without having to shift the ranges first\n if (duplicatesHavingSameSequence.size() > 1){\n // in the list of duplicates having different sequences, we can add the final protein which is the result of the merge of several proteins having the same sequence\n duplicatesHavingDifferentSequence.add(merge(duplicatesHavingSameSequence, Collections.EMPTY_MAP, evt, false));\n }\n // the duplicates didn't have the same sequence, we add it to the list of duplicates having different sequences only if the proteins can be updated with the uniprot entry. No organism conflicts\n else if (isUpdatable){\n duplicatesHavingDifferentSequence.addAll(duplicatesHavingSameSequence);\n }\n\n // we remove the processed proteins from the list of protein to process\n duplicatesAsList.removeAll(duplicatesHavingSameSequence);\n }\n\n // we still have to merge duplicates having different sequences\n if (duplicatesHavingDifferentSequence.size() > 1){\n // the uniprot protein has been found previously, it is possible to shift the ranges first using the uniprot sequence\n if (evt.getUniprotSequence() != null){\n // in case of feature conflicts, we will only attach the interactions without feature conflicts to the original protein and keep the\n // duplicate as no-uniprot-update with the interactions having feature conflicts\n Map<String, Collection<Component>> proteinNeedingPartialMerge = new HashMap<>();\n\n // we try to shift the ranges of each protein to merge and collect the components with feature conflicts\n for (Protein p : duplicatesHavingDifferentSequence){\n // update the ranges with the new uniprot sequence for each duplicate\n RangeUpdateReport rangeReport = deprecatedParticipantFixer.getRangeFixer().updateRanges(p, evt.getUniprotSequence(), (ProteinUpdateProcessor) evt.getSource(), evt.getDataContext());\n\n if (!rangeReport.getShiftedRanges().isEmpty() || (rangeReport.getInvalidComponents().isEmpty() && !rangeReport.getUpdatedFeatureAnnotations().isEmpty())){\n evt.getUpdatedRanges().put(p.getAc(), rangeReport);\n }\n // get the list of components with feature range conflicts\n Collection<Component> componentWithRangeConflicts = rangeReport.getInvalidComponents().keySet();\n\n // if we have feature range conflicts before the merge\n if (!componentWithRangeConflicts.isEmpty()){\n\n log.info( \"We found \" + componentWithRangeConflicts.size() + \" components with feature conflicts for the protein \" + p.getAc() );\n // add this duplicate with the list of components with conflicts to the map of protein which couldn't be merged\n proteinNeedingPartialMerge.put(p.getAc(), componentWithRangeConflicts);\n // add the components with feature conflicts in the report\n evt.getComponentsWithFeatureConflicts().put(p, rangeReport);\n }\n }\n\n // we merge the proteins taking into account the possible feature conflicts\n Protein finalProt = merge(duplicatesHavingDifferentSequence, proteinNeedingPartialMerge, evt, true);\n log.info( \"The protein \" + finalProt.getAc() + \"has been kept as original protein.\");\n // we set the original protein in the report\n evt.setReferenceProtein(finalProt);\n }\n // we cannot merge because we don't have a uniprot sequence as reference for range shifting. Log in 'process_errors.csv'\n else {\n if (evt.getSource() instanceof ProteinUpdateProcessor) {\n final ProteinUpdateProcessor updateProcessor = (ProteinUpdateProcessor) evt.getSource();\n\n for (Protein prot : duplicatesHavingDifferentSequence){\n ProteinUpdateError impossibleMerge = errorFactory.createImpossibleMergeError(prot.getAc(), null, evt.getPrimaryUniprotAc(), \" The uniprot sequence is null and we need a valid uniprot sequence to merge proteins having different sequences\");\n updateProcessor.fireOnProcessErrorFound(new UpdateErrorEvent(updateProcessor, evt.getDataContext(), impossibleMerge, prot, evt.getPrimaryUniprotAc()));\n }\n }\n log.error(\"It is impossible to merge all the duplicates (\"+duplicatesHavingDifferentSequence.size()+\") because the duplicates have different sequence and no uniprot sequence has been given to be able to shift the ranges before the merge.\");\n }\n }\n // all the duplicates had the same sequence and have been merged. Set the original protein in the report\n else if (duplicatesHavingDifferentSequence.size() == 1){\n evt.setReferenceProtein(duplicatesHavingDifferentSequence.iterator().next());\n }\n }\n }", "title": "" }, { "docid": "afd82d685016166f6a6f71441d34192d", "score": "0.5344512", "text": "private void enterDistrictDetails()\r\n {\r\n String distName;\r\n \r\n System.out.println(\"Enter the name of the district you which to add.\");\r\n distName = reader.getInput();\r\n \r\n District districtadd = new District(distName);\r\n \r\n boolean alreadyexsists = false;\r\n \r\n for (District Dist : crimeDatabase.getListOfDistricts())\r\n {\r\n if(distName.equals(districtadd.getDistrictName()))\r\n {\r\n alreadyexsists = true;\r\n \r\n }\r\n }\r\n if (alreadyexsists)\r\n {\r\n System.out.println(\"That district is already in our database.\");\r\n }\r\n \r\n else\r\n {\r\n crimeDatabase.addDistrict(districtadd);\r\n \r\n System.out.println(\"Thank You, the district has been added to our database.\");\r\n \r\n }\r\n }", "title": "" }, { "docid": "c43854a3db920ab087b76fd94fb72399", "score": "0.53184956", "text": "public boolean isDuplicateEntry(Person entry){\n for (Person person : personObservableList){\n if (person.getAge() == entry.getAge() && person.getGender().equals(entry.getGender()) &&\n person.getPhoneNumber() == entry.getPhoneNumber() && person.getBirthCertificateNumber().equals(entry.getBirthCertificateNumber())\n && person.getBirthday().equals(entry.getBirthday()) && person.getName().equals(entry.getName()) && person.getSurname().equals(entry.getSurname())){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Chyba!\");\n alert.setHeaderText(\"Špatný záznam\");\n alert.setContentText(\"Databáze již obsahuje tento záznam\");\n alert.initModality(Modality.APPLICATION_MODAL);\n alert.showAndWait();\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "d1ceda7aadbbefc2b87727404da20ea0", "score": "0.5315857", "text": "@Test\n public void testDuplicateKey() throws IOException {\n boolean threwException = false;\n /**\n * Test duplicate mappingName\n */\n HashSet mappings = new HashSet();\n TypeMapping duplicate = new TypeMapping();\n duplicate.setMappingName(dtoMappingName.getMappingName());\n duplicate.setSourceDataStore(dtoMappingName.getSourceDataStore());\n duplicate.setSourceTypeName(dtoMappingName.getSourceTypeName());\n duplicate.setTargetElementName(dtoMappingName.getTargetElementName());\n mappings.add(dtoMappingName);\n mappings.add(duplicate);\n config.setTypeMappings(mappings);\n try {\n AppSchemaDataAccess da = new AppSchemaDataAccess(AppSchemaDataAccessConfigurator\n .buildMappings(config));\n } catch (DataSourceException e) {\n assertTrue(e\n .getMessage()\n .startsWith(\n \"Duplicate mappingName or targetElement across FeatureTypeMapping instances detected.\"));\n threwException = true;\n }\n assertTrue(threwException);\n threwException = false;\n /**\n * Test when targetElement duplicates a mappingName\n */\n duplicate = new TypeMapping();\n duplicate.setMappingName(dtoNoMappingName.getTargetElementName());\n duplicate.setSourceDataStore(dtoNoMappingName.getSourceDataStore());\n duplicate.setSourceTypeName(dtoNoMappingName.getSourceTypeName());\n duplicate.setTargetElementName(dtoNoMappingName.getTargetElementName());\n mappings.clear();\n mappings.add(duplicate);\n mappings.add(dtoNoMappingName);\n config.setTypeMappings(mappings);\n // make sure the above operation didn't fail\n assertTrue(config.getTypeMappings().containsAll(mappings));\n try {\n AppSchemaDataAccess da = new AppSchemaDataAccess(AppSchemaDataAccessConfigurator\n .buildMappings(config));\n } catch (DataSourceException e) {\n assertTrue(e\n .getMessage()\n .startsWith(\n \"Duplicate mappingName or targetElement across FeatureTypeMapping instances detected.\"));\n threwException = true;\n }\n assertTrue(threwException);\n threwException = false;\n /**\n * Test duplicate targetElement, when both don't have mappingName\n */\n duplicate = new TypeMapping();\n duplicate.setSourceDataStore(dtoNoMappingName.getSourceDataStore());\n duplicate.setSourceTypeName(dtoNoMappingName.getSourceTypeName());\n duplicate.setTargetElementName(dtoNoMappingName.getTargetElementName());\n mappings.clear();\n mappings.add(duplicate);\n mappings.add(dtoNoMappingName);\n config.setTypeMappings(mappings);\n assertTrue(config.getTypeMappings().containsAll(mappings));\n try {\n AppSchemaDataAccess da = new AppSchemaDataAccess(AppSchemaDataAccessConfigurator\n .buildMappings(config));\n } catch (DataSourceException e) {\n assertTrue(e\n .getMessage()\n .startsWith(\n \"Duplicate mappingName or targetElement across FeatureTypeMapping instances detected.\"));\n threwException = true;\n }\n assertTrue(threwException);\n }", "title": "" }, { "docid": "d30a3b60ad8c363cd969536594fb8b97", "score": "0.53044134", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Organizacion)) {\n return false;\n }\n Organizacion other = (Organizacion) object;\n if ((this.organizacionID == null && other.organizacionID != null) || (this.organizacionID != null && !this.organizacionID.equals(other.organizacionID))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "028f784ec252af3299980f585e8ccc2c", "score": "0.52985996", "text": "public int findOrganization(String name){\n\t\tif(!entitiesOrganization.contains(name)){\n\t\t\tfor(int i = 0 ; i < entitiesOrganization.size() ; ++i){\n\t\t\t\tif(entitiesOrganization.get(i).equals(name))\n\t\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\tentitiesOrganization.add(new Organization(name));\n\t\treturn entitiesOrganization.size() - 1;\n\t}", "title": "" }, { "docid": "a70dedb3d5a5a5202f2df39fce02e779", "score": "0.5297951", "text": "@Test\n public void testAddNewOrg() throws OrgDaoException, InvalidEntityException, DuplicateNameException {\n Org forSuperSet = dao.getOrgById(1);\n Org toAdd = new Org(\"Fourth Org\", \"Fourth Desc\", \"Fourth Adr\", \"Fourth Phone\", forSuperSet.getSupers());\n Org returned = service.addNewOrg(toAdd);\n assertEquals(4, returned.getId());\n assertEquals(\"Fourth Org\", returned.getName());\n assertEquals(\"Fourth Desc\", returned.getDescription());\n assertEquals(\"Fourth Adr\", returned.getAddress());\n assertEquals(\"Fourth Phone\", returned.getPhone());\n assertEquals(1, returned.getSupers().size());\n }", "title": "" }, { "docid": "c97abc27219fa71360d30c9fab8042f5", "score": "0.52864665", "text": "private static void checkManifestEntryDuplication(Document testDocument) throws XPathExpressionException {\n\t\tOdfFileDom manifestDom = testDocument.getPackage().getManifestDom();\n\t\tXPath xpath = manifestDom.getXPath();\n\t\tNode manifestRootElement = manifestDom.getRootElement();\n\t\tNodeList manifestEntries = (NodeList) xpath.evaluate(\"./*/@manifest:full-path\", manifestRootElement, XPathConstants.NODESET);\n\t\tAssert.assertNotNull(manifestEntries);\n\t\tMap<String, Integer> entries = new HashMap<String, Integer>();\n\t\tfor (int i = 0; i < manifestEntries.getLength(); i++) {\n\t\t\tString entryName = manifestEntries.item(i).toString();\n\t\t\tif (!entries.containsKey(entryName)) {\n\t\t\t\tentries.put(entryName, 1);\n\t\t\t} else {\n\t\t\t\tint newCount = entries.get(entryName) + 1;\n\t\t\t\tentries.put(entryName, newCount);\n\t\t\t}\n\t\t}\n\t\tboolean duplicated = false;\n\t\tStringBuilder sb = null;\n\n\t\t// check if there are multiple occurances\n\t\tfor (String s : entries.keySet()) {\n\t\t\tif (entries.get(s) > 1) {\n\t\t\t\tif (sb == null) {\n\t\t\t\t\tsb = new StringBuilder();\n\t\t\t\t\tsb.append(\"The following manifest entrie(s) are duplicated:\\n\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\tThe entry '\").append(s).append(\"' exists \").append(entries.get(s)).append(\" times.\\n\");\n\t\t\t\tduplicated = true;\n\t\t\t}\n\t\t}\n\t\tString errorMsg = \"\";\n\t\tif (sb != null) {\n\t\t\terrorMsg = sb.toString();\n\t\t}\n\t\tAssert.assertFalse(errorMsg, duplicated);\n\t}", "title": "" }, { "docid": "b08f3ea1a2314078d6de6f70c1e0237d", "score": "0.52692604", "text": "@Test \n\tpublic void checkUnique() {\n\t\tthis.admin.createClass(\"test\", 2017, \"Instructor\", 1); \n\t\tthis.admin.createClass(\"test\", 2017, \"Instructor\", 1);\n\t\tassertFalse(this.admin.classExists(\"test\", 2017)); \n\t}", "title": "" }, { "docid": "05b42a4ce9fa152ea80b9a320d1042ad", "score": "0.5260476", "text": "public Organization createOrganization(Organization organization) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a61bdf3a7f9683bb339bbdf27fdb7f7b", "score": "0.5257959", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Organizations)) {\n return false;\n }\n Organizations other = (Organizations) object;\n return !((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id)));\n }", "title": "" }, { "docid": "cf99d6c14cb75b34976abed86aae74e4", "score": "0.5247592", "text": "public boolean hasOrganization() {\n return organizationBuilder_ != null || organization_ != null;\n }", "title": "" }, { "docid": "cf99d6c14cb75b34976abed86aae74e4", "score": "0.5247592", "text": "public boolean hasOrganization() {\n return organizationBuilder_ != null || organization_ != null;\n }", "title": "" }, { "docid": "7bb31f5c14c94f58575461ffcc19a57b", "score": "0.52450204", "text": "private boolean isTransactionDuplicated(ISOMsg m) throws ISOException,\n\t\t\tServiceException {\n\t\tString audit = m.getString(11);\n\t\tString reference = m.getString(37);\n\t\tString amountStr = m.getString(4);\n\t\tString amount = AmountUtils.formatAmountString(amountStr);\n\t\tBigDecimal amountValue = new BigDecimal(amount);\n\t\tString terminal = m.getString(41);\n\t\tString partnerAff = m.getString(43);\n\t\tString parnershopAff = m.getString(42);\n\t\tString isoDate = m.getString(7);\n\t\tboolean foundFirstLevel = serviceTransactionDetail\n\t\t\t\t.existsTransactionDetail(audit, reference, amountValue, isoDate);\n\t\tif (foundFirstLevel) {\n\t\t\treturn true;\n\t\t}\n\t\tboolean foundSecondLevel = serviceTransactionDetail\n\t\t\t\t.existsTransactionDetailDeep(audit, reference, amountValue,\n\t\t\t\t\t\tterminal, partnerAff, parnershopAff, isoDate);\n\t\treturn foundSecondLevel;\n\n\t}", "title": "" }, { "docid": "e47eafb3981d978a64545afbb79e2bfb", "score": "0.5243467", "text": "Organization createOrganization();", "title": "" }, { "docid": "9fbc8e20b1950852496d0f20c0279f37", "score": "0.52338123", "text": "String syncOrganizations();", "title": "" }, { "docid": "d4e3ea587bb5804c0193241ec072bb25", "score": "0.522696", "text": "public boolean isExistingOrg() {\n\t\treturn isExistingOrg;\n\t}", "title": "" }, { "docid": "8728a9d22faa02e556f544fd6dd32ab2", "score": "0.52217275", "text": "@Override\n\tpublic OrgDto createOrganization(OrgDto org) {\n\t\t\n\t\tif(orgRepository.findByEmail(org.getEmail())!=null)throw new RuntimeException(\"Record Already exists\");\n\t\t\n\t\tOrgEntity orgEntity=new OrgEntity();\n\t\tBeanUtils.copyProperties(org, orgEntity);\n\t\t\n\t\tString OrgId=utils.generateOrgId(30);\n\t\torgEntity.setOrgId(OrgId);\n\t\torgEntity.setEncryptedPassword(bCryptPasswordEncoder.encode(org.getPassword()));\n\t\t\n\t\tOrgEntity storedOrgEntity=orgRepository.save(orgEntity);\n\t\t\n\t\tOrgDto returnValue=new OrgDto();\n\t\tBeanUtils.copyProperties(storedOrgEntity, returnValue);\n\t\t\n\t\treturn returnValue;\n\t}", "title": "" }, { "docid": "a80d6e40be9aae2b02a108c0869750a9", "score": "0.5190514", "text": "private void recordDistrict(Reporting r){\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Enter District's name: \");\n String name = sc.nextLine();\n\n boolean b = false;\n\n for(District d: r.getDistricts()){\n if (name.equals(d.getName())) {\n b = true;\n break;\n }\n }\n if (!b) {\n District d = new District(name);\n r.addDistrict(d);\n System.out.println(\"New district:\\n\" + d);\n }\n else{\n System.out.println(\"District already exists.\\n\");\n }\n }", "title": "" }, { "docid": "c85083e43d6ec1c683f16425729fa30a", "score": "0.51743984", "text": "private boolean isDuplicated(ISOMsg m) throws ISOException,\n\t\t\tServiceException {\n\t\tboolean previousRecords = hasPreviousRecords(m);\n\t\tif (!previousRecords) {\n\t\t\treturn false;\n\t\t}\n\t\tboolean isDuplicated = isTransactionDuplicated(m);\n\t\treturn isDuplicated;\n\t}", "title": "" }, { "docid": "c44b23b962b5957f04830de401be56db", "score": "0.51571083", "text": "Node createOrganization(Node orgNode) throws Exception;", "title": "" }, { "docid": "0ab034dcf9ada3a91cba54945fac7545", "score": "0.51468825", "text": "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse mergeOrganization(@WebParam(name=\"Organizations\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Organizations xmlOrganizations) throws SecurityExceptionFaultMessage;", "title": "" }, { "docid": "d5310af3d9c9705a471524f7f1988565", "score": "0.51426184", "text": "@Test\n public void testEditOrg() throws OrgDaoException, InvalidEntityException, DuplicateNameException {\n Org forSuperSet = dao.getOrgById(1);\n Org toEdit = new Org(1, \"First Org PE\", \"First Desc PE\", \"First Adr PE\", \"First Phone PE\", forSuperSet.getSupers());\n service.editOrg(toEdit);\n Org postEdit = dao.getOrgById(1);\n assertEquals(1, postEdit.getId());\n assertEquals(\"First Org PE\", postEdit.getName());\n assertEquals(\"First Desc PE\", postEdit.getDescription());\n assertEquals(\"First Adr PE\", postEdit.getAddress());\n assertEquals(\"First Phone PE\", postEdit.getPhone());\n assertEquals(1, postEdit.getSupers().size());\n }", "title": "" }, { "docid": "93747d142b214f317cab6d5997c6eb36", "score": "0.51424164", "text": "private String isDuplicate(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\t\n\t\tString userId = request.getParameter(\"userId\");\n\t\tString accountName = request.getParameter(\"accountName\");\n\t\t// Check user is existing.\n\t\tSystemUser checkUser = new SystemUser();\n\t\tif (!StringUtils.checkNull(userId)) {\n\t\t\tcheckUser.setUserId(Long.valueOf(userId));\n\t\t\tcheckUser.setAccountName(accountName);\n\t\t\tList<SystemUser> checkList = systemUserManage.isDuplicate(checkUser);\n\t\t\tif (checkList != null && checkList.size() > 0) {\n\t\t\t\tStrutsUtil.renderText(response, \"exist\");\t\n\t\t\t} else {\n\t\t\t\tStrutsUtil.renderText(response, \"no\");\n\t\t\t}\n\t\t}\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "05d8d9315ec7dc1cf62f5fdebcc6b2de", "score": "0.5135537", "text": "public void duplicateCheck(Register register){\n Register findRegister = registerRepository.findByMember(register.getMember());\n\n if(findRegister != null){\n throw new IllegalStateException(\"이미 등록하셨습니다.\");\n }\n }", "title": "" }, { "docid": "0fa93b980f2610f632b1ae03576d3d2b", "score": "0.51288825", "text": "String saveOrganization(Organization organization);", "title": "" }, { "docid": "b8cd3054db99d519f85b3b00c39e4d0a", "score": "0.51117224", "text": "public void dedublicate() {\n Query q = entityManager.createNativeQuery(\"select count(1) from Contact c where c.p_name=:name and c.url=:url and c.dublicate=0 and c.id <> :id\");\n List<Contact> res = entityManager.createQuery(\"from Contact c order by c.id\", Contact.class).getResultList();\n for (Contact cnt : res) {\n BigInteger count = (BigInteger) q.setParameter(\"name\", cnt.getName()).setParameter(\"url\", cnt.getUrl()).setParameter(\"id\", cnt.getId()).getSingleResult();\n if (count.intValue() > 0) {\n cnt.setDublicate(true);\n entityManager.merge(cnt);\n entityManager.flush();\n }\n }\n }", "title": "" }, { "docid": "f0f36d66b35fd26f920e43e4a6375a1a", "score": "0.5097117", "text": "@Test\n public void testGetOrgByName() throws InvalidNameException {\n Org toCheck = service.getOrgByName(\"First Org\");\n assertEquals(1, toCheck.getId());\n assertEquals(\"First Org\", toCheck.getName());\n assertEquals(\"First Desc\", toCheck.getDescription());\n assertEquals(\"First Adr\", toCheck.getAddress());\n assertEquals(\"First Phone\", toCheck.getPhone());\n assertEquals(1, toCheck.getSupers().size());\n }", "title": "" }, { "docid": "ebac9be069f1e1708ca017b630c766d3", "score": "0.5086161", "text": "void setOrganizationName(String organizationName);", "title": "" }, { "docid": "24a8875c505e0d403c8f2a3c1a1b444d", "score": "0.50801605", "text": "public boolean addsDuplicates();", "title": "" }, { "docid": "74e789fc66ba4beb137a010dddc1592c", "score": "0.50758266", "text": "public boolean update(Organization org);", "title": "" }, { "docid": "a56b25b50d4b787ad2b448603da308cb", "score": "0.50736874", "text": "void createOrganization(cOrganizationModel organizationModel);", "title": "" }, { "docid": "fc24a73c17ccecdf386d6584a5f67948", "score": "0.5056481", "text": "public boolean create(Organization org);", "title": "" }, { "docid": "13902c93d8fb1a60c3735f4f1f21e7a5", "score": "0.50549066", "text": "protected boolean isUnique(List<AwardReportTermRecipient> awardReportTermRecipientItems, AwardReportTermRecipient awardReportTermRecipientItem) {\n boolean duplicateFound = false;\n ArrayList<String> contactRecipients = new ArrayList<String>();\n ArrayList<String> rolodexRecipients = new ArrayList<String>();\n ArrayList<String> rolodexRecipientsWithNullContactId = new ArrayList<String>();\n for (AwardReportTermRecipient listItem : awardReportTermRecipientItems) {\n if (listItem != null) {\n if(listItem.getContactId() == null && listItem.getRolodex() != null && !rolodexRecipientsWithNullContactId.contains(listItem.getRolodexId())){\n rolodexRecipientsWithNullContactId.add(listItem.getRolodexId().toString()) ;\n }\n if (listItem.getContactId() != null) {\n duplicateFound = checkStringInList(listItem.getContactId().toString(), contactRecipients);\n } else {\n duplicateFound = checkStringInList(listItem.getRolodexId().toString(), rolodexRecipients);\n }\n if (duplicateFound) {\n break;\n }\n }\n }\n \n if (!duplicateFound && awardReportTermRecipientItem != null) {\n if (awardReportTermRecipientItem.getContactId() != null && !contactRecipients.isEmpty()) {\n duplicateFound = checkStringInList(awardReportTermRecipientItem.getContactId().toString(), contactRecipients);\n if(!duplicateFound){\n Integer rolodexId = getRolodexIdFromContactId(awardReportTermRecipientItem.getContactId());\n if(rolodexId != null){\n duplicateFound = checkStringInList(rolodexId.toString(), rolodexRecipientsWithNullContactId);\n }\n }\n } else {\n if(awardReportTermRecipientItem.getRolodexId() != null){\n duplicateFound = checkStringInList(awardReportTermRecipientItem.getRolodexId().toString(), rolodexRecipients);\n }else{\n if(awardReportTermRecipientItem.getContactId() != null){\n Integer rolodexId = getRolodexIdFromContactId(awardReportTermRecipientItem.getContactId());\n if(rolodexId != null){\n duplicateFound = checkStringInList(rolodexId.toString(), rolodexRecipients);\n }\n }\n \n }\n }\n }\n if (duplicateFound) {\n if (!hasDuplicateErrorBeenReported()) {\n reportError(\"AwardReportTermRecipient\", KeyConstants.ERROR_AWARD_REPORT_TERM_RECIPIENT_ITEM_NOT_UNIQUE);\n }\n }\n return !duplicateFound;\n }", "title": "" }, { "docid": "225bceab4e41d75740c81ac2c0ac0398", "score": "0.5039677", "text": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n BusinessOrganization businessOrganization = (BusinessOrganization) o;\n if (businessOrganization.getId() == null || getId() == null) {\n return false;\n }\n return Objects.equals(getId(), businessOrganization.getId());\n }", "title": "" }, { "docid": "8019d12ee332d8befebd0166436c2059", "score": "0.5038101", "text": "public void testCreateDuplicateSale () throws Exception {\r\n\t\t//\tLong pk = new Long(4049);\r\n\t\tPropertySale address = createPropertySale();\r\n\t\taddress.setAddressKey(\"ABCDEF0\");\r\n\t\t// yyyy-MM-dd HH:mm:ss format is\r\n\t\tString dateStr = \"2008-07-15 12:00:00\";\r\n\t\taddress.setSaleDate(DateFormatter.getFormattedDateFromLandReg(dateStr));\r\n\r\n\t\tPropertyAddress result = service.insertPropertyAddress(address);\r\n\t\tassertNotNull(result);\r\n\t\tassertEquals(WorkFlowStatus.DUPLICATE.getValue(), result.getWorkFlowStatus());\r\n\r\n\t}", "title": "" }, { "docid": "9f21a6a8af70afff4e18fd665c9473f7", "score": "0.50312513", "text": "@Override\r\n\tpublic List<Organization> searchOrganization() {\n\t\tList<Object[]> list = null;\r\n\t\tList<Organization> organizations = new ArrayList<Organization>();\r\n\t\tString sql = null;\r\n\t\tIterator<Object[]> iterator = null;\r\n\t\tObject[] objects = null;\r\n\t\tOrganization organization = null;\r\n\t\tOrganizationType organizationType = null;\r\n\t\tCountrysList countrysList = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select o.orgId,o.orgName,o.add1,o.add2,o.add3,o.city,o.state,o.countrysList,o.phone,o.fax,o.email,o.organizationType,o.image from Organization o order by o.orgName\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t\titerator = list.iterator();\r\n\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\tobjects = (Object[]) iterator.next();\r\n\t\t\t\torganization = new Organization();\r\n\t\t\t\torganization.setOrgId((Integer) objects[0]);\r\n\t\t\t\torganization.setOrgName((String) objects[1]);\r\n\t\t\t\torganization.setAdd1((String) objects[2]);\r\n\t\t\t\torganization.setAdd2((String) objects[3]);\r\n\t\t\t\torganization.setAdd3((String) objects[4]);\r\n\t\t\t\torganization.setCity((String) objects[5]);\r\n\t\t\t\torganization.setState((String) objects[6]);\r\n\t\t\t\tcountrysList = (CountrysList) objects[7];\r\n\t\t\t\t// organization.setCountryId((Integer)objects[7]);\r\n\t\t\t\torganization.setCountry(countrysList.getCountryName());\r\n\t\t\t\torganization.setPhone((String) objects[8]);\r\n\t\t\t\torganization.setFax((String) objects[9]);\r\n\t\t\t\torganization.setEmail((String) objects[10]);\r\n\t\t\t\torganizationType = (OrganizationType) objects[11];\r\n\t\t\t\t// Byte bytes=(Byte)objects[12];\r\n\r\n\t\t\t\torganization.setOrgTypeId(String.valueOf(organizationType\r\n\t\t\t\t\t\t.getOrgTypeId()));\r\n\t\t\t\torganization.setOrgType(organizationType.getOrgType());\r\n\t\t\t\torganizations.add(organization);\r\n\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 organizations;\r\n\t}", "title": "" }, { "docid": "82c795e2479c5f34b461bbc818842ef5", "score": "0.50253814", "text": "@Test\n public void duplicateStation() {\n final BusDataBuilder builder = new BusDataBuilder(null);\n try {\n builder.createStation(\"ok\", \"0\", 0, 0, 0, 0);\n builder.createStation(\"fail\", \"0\", 0, 0, 0, 0);\n fail(\"bus stations must have unique ids\");\n } catch(final IllegalArgumentException e) {\n // success\n }\n }", "title": "" }, { "docid": "1da78ec5bc2b55446872c662486e1810", "score": "0.5017364", "text": "private void createOrganization() {\n OrganizationContactsRecord record = new OrganizationContactsRecord();\n System.out.print(\"Enter the organization name: \");\n String name = scanner.nextLine();\n record.setName(name);\n System.out.print(\"Enter the address: \");\n String address = scanner.nextLine();\n record.setAddress(address);\n System.out.print(\"Enter the number: \");\n String number = scanner.nextLine();\n record.setNumber(number);\n contactsBook.addRecord(record);\n System.out.println(\"The record added.\\n\");\n }", "title": "" }, { "docid": "334199b4e2fd5ce32c89c6e1296801cf", "score": "0.50167227", "text": "private void checkDuplicate(Engine engine) {\n List<Engine> duplicateCarModel = getByExample(engine);\n validate(!duplicateCarModel.isEmpty(), \"error.engine.notUnique\");\n }", "title": "" }, { "docid": "23a13c560826d75b3089a84a57b0b9e4", "score": "0.50162715", "text": "void setOrganization(final String organization);", "title": "" }, { "docid": "43b10b31ac18de9a1c75a28811c0dce8", "score": "0.5015179", "text": "private void loadOrganizationInfo() {\n\t\ttry {\n\t\t\tResultSet rs = databaseHandler.execQuery(\"select top 1 * from tbOrganizationInfo\");\n\t\t\tif(rs.next()) {\n\t\t\t\tsetOrgName(rs.getString(\"orgName\"));\n\t\t\t\tsetOrgAddress(rs.getString(\"orgAddress\"));\n\t\t\t\tsetOrgContact(rs.getString(\"orgNumber\"));\n\t\t\t\tsetOrgOther(rs.getString(\"other\"));\n\n\t\t\t}\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t}", "title": "" }, { "docid": "f7a4e2c61831be1d7f330264206f1d41", "score": "0.5005272", "text": "private void isDuplicateSuspect(Expense expense) {\n Map<String, Object> params = new HashMap<>();\n params.put(\"orgid\", expense.getOrgId());\n params.put(\"fromemployeeid\", expense.getFromEmployeeID());\n\n\n params.put(\"amount\", expense.getTotalAmount().longValue());\n\n Integer count = namedParameterJdbcTemplate.queryForObject(\"select count(*) from ( SELECT floor(totalamount) \" +\n \" as totalamount ,id FROM generalexpense where orgid=:orgid and fromemployeeid=:fromemployeeid and (isdeleted is null or isdeleted<> true) \" +\n \" order by id desc limit 1) expense where totalamount = :amount\", params, Integer.class);\n System.out.println(count);\n if (count > 0) {\n throw new CustomAppException(\"The created expense looks like duplicate\", \"SERVER.CREATE_GENERAL_EXPENSE.DUPLICATE_SUSPECT\", HttpStatus.CONFLICT);\n }\n }", "title": "" }, { "docid": "8d24332c7d58107f8c2fc5e8db880a38", "score": "0.5002917", "text": "public void setExistingOrg(boolean isExistingOrg) {\n\t\tthis.isExistingOrg = isExistingOrg;\n\t}", "title": "" }, { "docid": "e2d86b4fb96fa9664711ecbb51f75657", "score": "0.5002618", "text": "public static boolean ensureAllEmailsAreUnique() throws Exception {\r\n for (Email e:\r\n EmailPool) {\r\n for (Email other:\r\n EmailPool) {\r\n if(e.uniqueID==other.uniqueID && e!=other){\r\n Log.v(\"Unique Email Check!\",\"All emails are not unique!\");\r\n throw new Exception(\"NON UNIQUE CHECK\");\r\n }\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "d8c49130e9e01055643475403f342414", "score": "0.50016195", "text": "@Test\n public void testUniqueKey() throws IOException {\n /**\n * When mappingName are present in both mappings, and they're unique\n */\n HashSet mappings = new HashSet();\n TypeMapping duplicate = new TypeMapping();\n duplicate.setMappingName(dtoMappingName.getTargetElementName());\n duplicate.setSourceDataStore(dtoMappingName.getSourceDataStore());\n duplicate.setSourceTypeName(dtoMappingName.getSourceTypeName());\n duplicate.setTargetElementName(dtoMappingName.getTargetElementName());\n mappings.add(dtoMappingName);\n mappings.add(duplicate);\n config.setTypeMappings(mappings);\n AppSchemaDataAccess da = new AppSchemaDataAccess(AppSchemaDataAccessConfigurator\n .buildMappings(config));\n assertNotNull(da);\n da.dispose();\n /**\n * When mappingName is present in one mapping, and it's different from the targetElement of\n * the other.\n */\n mappings.clear();\n mappings.add(dtoMappingName);\n mappings.add(dtoNoMappingName);\n config.setTypeMappings(mappings);\n assertTrue(config.getTypeMappings().containsAll(mappings));\n da = new AppSchemaDataAccess(AppSchemaDataAccessConfigurator.buildMappings(config));\n assertNotNull(da);\n da.dispose();\n // no need to test the scenario if both target elements are unique, as most of the other\n // app-schema test files are already like this.\n }", "title": "" }, { "docid": "618d04acd4d53c7c1024898de9f882ed", "score": "0.500152", "text": "@Override\n\tpublic boolean allowDuplicatePortlets() {\n\t\tif (focusAgreementId > 0)\n\t\t\treturn false;\n\t\t//\tAllowed for any general search\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c259826ad490df10760acb1234b9ca7b", "score": "0.49884182", "text": "public boolean addAtomsByEntry( int orgEntryId, int nomEntryId ) {\n// int countRenamed = 0;\n int countNotFound = 0;\n int MAX_ATOMS_TO_SHOW = 50;\n\n BitSet orgAtoms = SQLSelect.selectBitSet(mainRelation.dbms, mainRelation,\n Gumbo.DEFAULT_ATTRIBUTE_SET_ENTRY[ RelationSet.RELATION_ID_COLUMN_NAME],\n SQLSelect.OPERATION_TYPE_EQUALS, new Integer(orgEntryId), false);\n BitSet nomAtoms = SQLSelect.selectBitSet(mainRelation.dbms, mainRelation,\n Gumbo.DEFAULT_ATTRIBUTE_SET_ENTRY[ RelationSet.RELATION_ID_COLUMN_NAME],\n SQLSelect.OPERATION_TYPE_EQUALS, new Integer(nomEntryId), false);\n int orgAtomsCount = orgAtoms.cardinality();\n int nomAtomsCount = nomAtoms.cardinality();\n\n General.showOutput(\"Will look for atoms to add all models.\");\n General.showOutput(\"Entry to add to has number of atoms : \" + orgAtomsCount);\n General.showOutput(\"Entry to add from has number of atoms : \" + nomAtomsCount);\n\n // filter out the atoms from non standard residues.\n BitSet nomAtomsStandardResidues = getStandardResidueAtoms(nomAtoms);\n int nomAtomsCountStandardResidues = nomAtomsStandardResidues.cardinality();\n int nomAtomsCountNonStandardResidues = nomAtomsCount - nomAtomsCountStandardResidues;\n if ( nomAtomsCountNonStandardResidues > 0 ) {\n General.showWarning(\"Skipping number of atoms in non-standard residues: \" + nomAtomsCountNonStandardResidues);\n nomAtoms.and(nomAtomsStandardResidues);\n }\n\n // Get nom atoms already present as determined by coordinates xyz\n BitSet nomAtomsPresent = new BitSet();\n HashMap orgAtomMap = getMapOnXYZ(orgAtoms);\n if ( orgAtomMap == null ) {\n General.showError(\"Failed getMapOnXYZ\");\n return false;\n }\n for (int rid=nomAtoms.nextSetBit(0);rid>=0;rid=nomAtoms.nextSetBit(rid+1)) {\n Object key = getKeyXYZ( rid );\n Integer orgRidInt = (Integer) orgAtomMap.get( key );\n if ( orgRidInt == null ) {\n //General.showDebug(\"atom not in original entry map: \" + toString(rid) + \" on xyz key: \" + key);\n countNotFound++;\n continue;\n }\n// int orgRid = orgRidInt.intValue();\n nomAtomsPresent.set(rid);\n }\n int nomCountAtomsPresent = nomAtomsPresent.cardinality();\n if ( nomCountAtomsPresent > 0 ) {\n General.showOutput(\"Skipping atoms in new entry that are already present in old as determined by coordinates: \" + nomCountAtomsPresent);\n nomAtoms.andNot(nomAtomsPresent);\n }\n\n /** Check to see if nom atoms are in old entry but perhaps just a bit\n *off on the coordinate. Those off by the coordinate will still not be added.\n *This requires an expensive flaky lookup and that's why the pre-filtering above is\n *done.\n */\n BitSet nomAtomsPresent2 = new BitSet();\n IntArrayList orgAtomsIntArrayList = PrimitiveArray.toIntArrayList( orgAtoms );\n Comparator atomComparator = new ComparatorAuthorAtomWithoutEntry(gumbo);\n ArrayList orgAtomsSorted = getSorted(orgAtomsIntArrayList, atomComparator);\n// boolean showAuthorInfo = true;\n// General.showDebug(\"Sorted org atoms (by author chain id and residue number[string], and regular atom name) are: \\n\" +\n// toString(orgAtomsSorted, showAuthorInfo));\n int[] nomAtomObject = new int[2];\n for (int rid=nomAtoms.nextSetBit(0);rid>=0;rid=nomAtoms.nextSetBit(rid+1)) {\n nomAtomObject[0] = rid;\n int insertPoint = Collections.binarySearch(orgAtomsSorted,nomAtomObject,atomComparator);\n // Return value >=0 means the object was found.\n if ( insertPoint >= 0 ) {\n// General.showDebug( \"The new atom is already present at insert point: \" +\n// insertPoint + \" , probably off on some by coordinate: \" + toString(rid,true));\n nomAtomsPresent2.set(rid);\n } else {\n// General.showDebug( \"New atom: \" + toString(rid,true));\n }\n }\n int nomCountAtomsPresent2 = nomAtomsPresent2.cardinality();\n if ( nomCountAtomsPresent2 > 0 ) {\n General.showOutput(\"Skipping atoms in new entry that are present already as determined by name: \" + nomCountAtomsPresent2 );\n General.showOutput(\"Coordinates are perhaps a bit off.\");\n nomAtoms.andNot(nomAtomsPresent2);\n }\n nomAtomsCount = nomAtoms.cardinality();\n if ( nomAtomsCount == 0 ) {\n General.showOutput( \"No atoms to add\" );\n return true;\n }\n BitSet firstCouple = (BitSet) nomAtoms.clone();\n PrimitiveArray.truncate(firstCouple, MAX_ATOMS_TO_SHOW);\n int toShow = Math.min(MAX_ATOMS_TO_SHOW,nomAtomsCount);\n General.showOutput( \"First \" + toShow + \" of \" + nomAtomsCount + \" atoms to add:\\n\" + toString(firstCouple));\n int totalAtoms = orgAtomsCount+nomAtomsCount;\n float perAdded = Defs.NULL_FLOAT;\n if ( totalAtoms != 0 ) {\n perAdded = 100f*nomAtomsCount/totalAtoms;\n }\n General.showOutput(\n \"Initial total : \" + orgAtomsCount + \" atoms\" + General.eol +\n \" will try adding: \" + nomAtomsCount + \" atoms, (\" + perAdded + \" % added atoms over the total number of atoms.\"\n );\n\n // Add atoms but do NOT create the residues even if that means not adding atoms.\n // So let's find the residue by looking for any existing atom in both\n // with the same coordinate.\n mainRelation.reserveRows(nomAtomsCount); // prevents the index from being regenerated.\n int org_rid_dst = 0; // needs to be zero for starting the scan\n// String nomAtomNameStable = null;\n int ridOrgFound = -1;\n int nomResRid = -1;\n Integer orgRidInt = null;\n BitSet nomAtomsRes = null;\n for (int rid=nomAtoms.nextSetBit(0);rid>=0;rid=nomAtoms.nextSetBit(rid+1)) {\n orgRidInt = null;\n nomResRid = resId[rid];\n nomAtomsRes = SQLSelect.selectBitSet(dbms, mainRelation,\n Gumbo.DEFAULT_ATTRIBUTE_SET_RES[ RelationSet.RELATION_ID_COLUMN_NAME],\n SQLSelect.OPERATION_TYPE_EQUALS, new Integer(nomResRid), false);\n if ( nomAtomsRes == null ) {\n General.showError(\"Failed to get list of atoms for residue: \" + gumbo.res.toString(nomResRid));\n General.showWarning(\"While looking at atom :\\n\" + toString(rid) );\n return false;\n }\n if ( nomAtomsRes.nextSetBit(0) < 0 ) {\n General.showWarning(\"Got empty list of atoms for residue: \" + gumbo.res.toString(nomResRid));\n General.showWarning(\"Skipping addition of this atom :\\n\" + toString(rid) );\n continue;\n }\n //General.showDebug(\"Got new atoms in same residue:\\n\" + toString(nomAtomsRes));\n // Loop usually executes only ones.\n for (int rid_stable_atom = nomAtomsRes.nextSetBit(0); rid_stable_atom >= 0; rid_stable_atom = nomAtomsRes.nextSetBit(rid_stable_atom+1)) {\n Object key = getKeyXYZ( rid_stable_atom );\n orgRidInt = (Integer) orgAtomMap.get( key );\n //General.showDebug(\"Checking new atom for any related atom in org set:\\n\" + toString(rid_stable_atom));\n if ( orgRidInt != null ) {\n break;\n }\n }\n if ( orgRidInt == null ) {\n General.showWarning(\"Failed to match ANY org atom with new residue:\\n\" + gumbo.res.toString(resId[rid]));\n General.showWarning(\"Skipping addition of this atom :\\n\" + toString(rid) );\n continue;\n }\n ridOrgFound = orgRidInt.intValue();\n org_rid_dst = mainRelation.getNextReservedRow(org_rid_dst); // would nill the index if not cached.\n //General.showDebug(\"Copying from atom:\\n\"+ toString(ridOrgFound));\n mainRelation.copyRow(ridOrgFound, org_rid_dst);\n entryId[ org_rid_dst] = entryId[ ridOrgFound ];\n nameList[ org_rid_dst] = nameListNR.intern( nameList[ rid ]);\n authAtomNameList[ org_rid_dst] = null;\n pdbInsertionCodeList[ org_rid_dst] = pdbInsertionCodeList[ rid ];\n xList[ org_rid_dst] = xList[rid];\n yList[ org_rid_dst] = yList[rid];\n zList[ org_rid_dst] = zList[rid];\n bfactor[ org_rid_dst] = bfactor[rid];\n occupancy[ org_rid_dst] = occupancy[rid];\n elementId[ org_rid_dst] = elementId[rid];\n modelSiblingIds[ org_rid_dst] = null;\n int rid_entry = entryId[rid]; // could be taken out of the loop of course.\n gumbo.entry.modelsSynced.clear(rid_entry);\n }\n mainRelation.cancelAllReservedRows(); // not all atoms might have been added.\n\n // Final report.\n orgAtoms = SQLSelect.selectBitSet(mainRelation.dbms, mainRelation,\n Gumbo.DEFAULT_ATTRIBUTE_SET_ENTRY[ RelationSet.RELATION_ID_COLUMN_NAME],\n SQLSelect.OPERATION_TYPE_EQUALS, new Integer(orgEntryId), false);\n General.showOutput( \"Added \" + (orgAtoms.cardinality()-orgAtomsCount) + \" atoms of the attempted \" + nomAtomsCount);\n return true;\n }", "title": "" }, { "docid": "7740f894411828bf5f5edc966e187d7a", "score": "0.49879852", "text": "@Test\n public void should_shouldKeep_UniqueContacts()\n {\n\t\tAddressBookServiceImpl service = new AddressBookServiceImpl();\n\t\tservice.addContact(new Contact(\"Dad\", \"0429147328\"), \"family\");\n\t\tservice.addContact(new Contact(\"Mom\", \"0429147329\"), \"family\");\n \tservice.addContact(new Contact(\"Nikhita\", \"0450147326\"), \"friends\");\n \tservice.addContact(new Contact(\"Arun\", \"0450147327\"), \"friends\");\n \tservice.addContact(new Contact(\"Swati\", \"0450147328\"), \"friends\");\n\n\t\t// Add a contact to all address books, to check contact uniqueness\n\t\t// across address books\n \tservice.addContact(new Contact(\"Sachin\", \"0429147370\")); // added to the default address book\n \tservice.addContact(new Contact(\"Sachin\", \"0429147370\"), \"friends\");\n \tservice.addContact(new Contact(\"Sachin\", \"0429147370\"), \"family\");\n \tservice.addContact(new Contact(\"Sachin\", \"0429147370\"), \"work\"); // contact added to new address book\n\n \t// Assert contacts per address book\n \tAssert.assertEquals(1, service.getContacts(\"default\").size());\n \tAssert.assertEquals(3, service.getContacts(\"family\").size());\n \tAssert.assertEquals(4, service.getContacts(\"friends\").size());\n \tAssert.assertEquals(1, service.getContacts(\"work\").size());\n \tAssert.assertEquals(6, service.getAllContacts().size());\n }", "title": "" }, { "docid": "8289fe16f5ca6b2d50a0fa6a2bc9b1a5", "score": "0.49810785", "text": "@Test\n public void testGetPastListContactNoDuplicates() {\n cm2Contacts.addNewPastMeeting(contacts2, pastDateMinute, \"Past meeting\");\n cm2Contacts.addNewPastMeeting(contacts2, pastDateMinute, \"Past meeting\");\n cm2Contacts.addNewPastMeeting(contacts2, pastDateHour, \"Past meeting\");\n\n List<PastMeeting> rtn = cm2Contacts.getPastMeetingList(c1);\n List<PastMeeting> list1 = new ArrayList<PastMeeting>();\n list1.add(new PastMeetingImpl(1, pastDateMinute, contacts2, \"Past meeting\"));\n list1.add(new PastMeetingImpl(3, pastDateHour, contacts2, \"Past meeting\"));\n\n List<PastMeeting> list2 = new ArrayList<PastMeeting>();\n list1.add(new PastMeetingImpl(2, pastDateMinute, contacts2, \"Past meeting\"));\n list1.add(new PastMeetingImpl(3, pastDateHour, contacts2, \"Past meeting\"));\n\n assertEquals(2, rtn.size());\n assertTrue(rtn.containsAll(list1) || rtn.containsAll(list2));\n }", "title": "" }, { "docid": "62db0a8ca8333df3503adeace4b7ac03", "score": "0.49744195", "text": "private boolean validateNewOwner() {\n ObservableList<Account> registeredAccounts = Singleton.getInstance().getAccounts();\n for (Account account : registeredAccounts) {\n if (account.getEmail().equalsIgnoreCase(newItemOwner.getText())) {\n changeDone = true;\n return true;\n }\n }\n MessageHandler.getErrorAlert(\"Error\", \"Error\", \"Entered owner doesn't exist.\").showAndWait();\n return false;\n }", "title": "" }, { "docid": "099cd29c326544180eede4a55473047e", "score": "0.49693766", "text": "protected boolean isNotDuplicate(Map lobs, LobData lobData) {\n String key = (new StringBuffer().append(lobData.getDataName()).append(\"_\").append(lobData.getSequenceNmbr())).toString();\n if (lobs.containsKey(key)) {\n return false;\n }\n lobs.put(key, EMPTYSTRING);\n return true;\n }", "title": "" }, { "docid": "45b85be55b52a92524526fffbf135614", "score": "0.49658126", "text": "@Test\n\tpublic void testBuildLegalContactOrgList01() {\n\t\tQuestionnaireConfig config = getQuestionnaireConfig(\"ExampleCitationDataProviderFactoryTest_testBuildLegalContactOrgList01-questionnaire.xml\", \"1\");\n\t\tMultipleQuestionGroup legalContactOrgQuestionGroup = config.getQuestionGroupMap().get(\"13\").getChildMultipleQuestionGroupById(\"13.4\");\n\t\tMap<String, String> metatagMap = config.getMetatagToQuestionIdMap();\n\t\tMap<String, Answer> answerMap = answerMap(\n\t\t\tmultipleAnswerGroup(legalContactOrgQuestionGroup,\n\t\t\t\tanswerGroup(\n\t\t\t\t\tanswer(\"13.4.1\", ControlledVocabularyServiceStub.ORG_JAMES_COOK_UNIVERSITY)\n\t\t\t\t),\n\t\t\t\tanswerGroup(\n\t\t\t\t\tanswer(\"13.4.1\", ControlledVocabularyServiceStub.ORG_UNIVERSITY_OF_ADELAIDE)\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t\tList<String> result = objectUnderTest.buildLegalContactOrgList(metatagMap, answerMap, config);\n\t\tassertEquals(2, result.size());\n\t\tassertThat(result, hasItems(\"James Cook University\", \"University of Adelaide\"));\n\t}", "title": "" }, { "docid": "7fc529570a13cef5898c8f5286a32a41", "score": "0.49519733", "text": "@Test\n public void createAuthenticationPersonAndProviderDuplicated() throws Exception {\n final String query = \"mutation {createAuthentication(authentication: {username: \\\"user4\\\" password: \\\"123\\\" authProvider: {} person: {id: \\\"\" + dbPeople.get(1).getId() + \"\\\"}}) {id username}}\";\n final Map mapResult = integrationTest.performGraphQL(query, CREATE_USERS_TOKEN);\n final Map data = (Map) mapResult.get(\"data\");\n final List<Map> errors = (List) mapResult.get(\"errors\");\n final Map extensions = (Map) errors.get(0).get(\"extensions\");\n final Map error = (Map) extensions.get(\"error\");\n\n assertNull(data.get(\"createAuthentication\"));\n assertEquals(400, extensions.get(\"errorCode\"));\n assertEquals(\"'N2 LN2' already has an Authorization with provider 'LOCAL'.\", error.get(\"message\"));\n\n // not inserted in data base\n assertEquals(authenticationRepository.count(), 3);\n assertEquals(authProviderRepository.count(), 3);\n assertEquals(personRepository.count(), 2);\n\n // authProviders not edited\n validateAuthProvidersNotEdited();\n // people not edited\n validatePeopleNotEdited();\n }", "title": "" }, { "docid": "a9ffec9773301ad33561c70f7f9e180e", "score": "0.49482885", "text": "@Test(retryAnalyzer = helpers.RetryMechanism.class, groups = { \"Regression\",\"PCSE\",\"CS\",\"Sanity\"})\n\t\t@Parameters({\"browser\", \"environment\", \"clientName\"})\n\t\tpublic void DuplicateDetection_ExcludingPostalCode(String browser ,String environment, String clientName) throws InterruptedException, IOException\n\t\t{\n\t\t\tsetup(browser, environment, clientName,\"CRM\");\n\t\t\tCrmHome ObjCrmHome = new CrmHome(getDriver());\n\t\t\tObjCrmHome = ObjCrmHome.clickOnInlineDialog();\n\t\t\tObjCrmHome = ObjCrmHome.clickScreening();\n\t\t\tContacts ObjContacts = ObjCrmHome.clickContactsTile();\n\t\t\tObjContacts = ObjCrmHome.clickOnContactNewRecord();\n\t\t\tThread.sleep(2000);\n\t\t\tString nhsNo = helpers.CommonFunctions.generateValidNHSNo();\n\t\t\tObjCrmHome = ObjContacts.EnterContactDetails_Duplicate(nhsNo, 5);\n\t\t\t\n\t\t\tObjCrmHome = ObjCrmHome.clickScreening();\n\t\t\tObjContacts = ObjCrmHome.clickContactsTile();\n\t\t\tObjContacts = ObjCrmHome.clickOnContactNewRecord();\n\t\t\tThread.sleep(2000);\n\t\t\tString nhsNo2 = helpers.CommonFunctions.generateValidNHSNo();\n\t\t\tObjCrmHome = ObjContacts.EnterContactDetails_Duplicate(nhsNo2, 6);\n\t\t\tString Fname = utilities.ExcelUtilities.getKeyValueFromExcelWithPosition(\"CRMTESTDATA.xlsx\", \"Contact\", \"Forename\", 5);\n\t\t\tString Lname = utilities.ExcelUtilities.getKeyValueFromExcelWithPosition(\"CRMTESTDATA.xlsx\", \"Contact\", \"Surname\", 5);\n\t\t\tString Fullname = (Fname+\" \"+Lname);\n\t\t\tSystem.out.println(Fullname);\n\t\t\tObjCrmHome = ObjCrmHome.clickScreening();\n\t\t\tObjContacts = ObjCrmHome.clickContactsTile();\n\t\t\tObjContacts = ObjContacts.searchPatient(Fullname);\n\t\t\tint records = ObjContacts.verifyresultrecord();\n\t\t\tif(records == 2)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"The two records is generate if we entered different postal code\" +Fullname);\n\t\t\t\tsetAssertMessage(\"The two records is generate if we entered different postal code\" +Fullname, 1);\t\t\t\t\n\t\t\t}\n\t\t\tVerify.verifyTrue((records == 2), \"The two record is not created if we entered different postal code \");\n\t\t\tAssert.assertFalse(Verify.verifyFailure(), \"There were some Failures as shown above.\");\t\n\t\t\tObjContacts = ObjContacts.deleteallrecord();\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a3273512637ad54eaaa7a8d6cadefd0d", "score": "0.4946644", "text": "public List<String> checkUniqueNameBirthDate() {\r\n\t\tList<String> errors = new ArrayList<String>();\r\n\t\tfor (Map.Entry<String, Individual> e1 : individuals.entrySet()) {\r\n\t\t\tfor (Map.Entry<String, Individual> e2 : individuals.entrySet()) {\r\n\t\t\t\tif (e1 != e2) {\r\n\t\t\t\t\tif (e1.getValue().getName().equals(e2.getValue().getName()) && e1.getValue().getBirthday().compareTo(e2.getValue().getBirthday()) == 0 ) {\r\n\t\t\t\t\t\terrors.add(\"Error (23): No more than one individual with the same name and birth date.\");\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\treturn errors;\r\n\t}", "title": "" }, { "docid": "a608fc5202f2857dc66a00d4ca976c43", "score": "0.49460557", "text": "@Test\n void isSerialDuplicate() {\n String serial = \"A-AAA-BBB-BBB\";\n // make sure it is not registered as taken yet\n assertFalse(Item.isSerialDuplicate(serial));\n\n Item item = new Item(\"Apple\", serial, \"2.50\");\n\n // check that it is taken now\n assertTrue(Item.isSerialDuplicate(serial));\n\n // remove the serial\n item.removeSerial(serial);\n\n // see that it has been removed from duplicate map\n assertFalse(Item.isSerialDuplicate(serial));\n }", "title": "" }, { "docid": "a8fdcc4ec59cc39e62ad420c2520be23", "score": "0.49455407", "text": "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateOrganization(@WebParam(name=\"Organizations\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Organizations xmlOrganizations) throws SecurityExceptionFaultMessage;", "title": "" }, { "docid": "5c53f5b038ae9813a6e4a69ff5f20ae7", "score": "0.49409962", "text": "public boolean saveOrgan() {\n\t\ttry {\n\t\t\tsession.save();\n\n\t\t\tshowStatusMessage(\"organSaved\");\n\t\t} catch (IOException ex) {\n\t\t\tlogger.log(Level.INFO, \"saving organ failed\", ex);\n\n\t\t\tshowBoxMessage(\"saveIOException\", MessageBox.OPTIONS_OK,\n\t\t\t\t\tsession.getFile().getName());\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fcc8bfa192a7bdca51270ab801f4f3b1", "score": "0.49350193", "text": "@Test\n\tpublic void testBuildLegalContactOrgList02() {\n\t\tQuestionnaireConfig config = getQuestionnaireConfig(\"ExampleCitationDataProviderFactoryTest_testBuildLegalContactOrgList01-questionnaire.xml\", \"1\");\n\t\tMultipleQuestionGroup legalContactOrgQuestionGroup = config.getQuestionGroupMap().get(\"13\").getChildMultipleQuestionGroupById(\"13.4\");\n\t\tMap<String, String> metatagMap = config.getMetatagToQuestionIdMap();\n\t\tMap<String, Answer> answerMap = answerMap(\n\t\t\tmultipleAnswerGroup(legalContactOrgQuestionGroup,\n\t\t\t\tanswerGroup(\n\t\t\t\t\tanswer(\"13.4.1\", \"\")\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t\tList<String> result = objectUnderTest.buildLegalContactOrgList(metatagMap, answerMap, config);\n\t\tassertEquals(Collections.emptyList(), result);\n\t}", "title": "" }, { "docid": "4e065fbcac3b085f48578bd92bffed1c", "score": "0.4933585", "text": "@Test\n public void testAddOrganization() {\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 Organization test = dao.getOrganizationById(org.getOrganizationID());\n \n assertEquals(org.getName(), test.getName());\n assertEquals(org.getOrgDesc(), test.getOrgDesc());\n assertEquals(org.getOrganizationID(), test.getOrganizationID());\n\n assertEquals(org.getChampions(), test.getChampions());\n assertEquals(org.getContacts(), test.getContacts());\n assertEquals(org.getLocations(), test.getLocations());\n \n assertEquals(org, test);\n }", "title": "" }, { "docid": "06fad7844881bc5d63b4c69cf65c0c6b", "score": "0.49328238", "text": "public boolean checkDuplicates() {\n List<Booking> dupbookings = new ArrayList<>();\n try {\n dupbookings = bookingHelper.checkDuplicates(sel.getId(), selDate, selSTime, selETime);\n } catch (Exception e) {\n //facesMessage(\"No other bookings found for the day and time\");\n }\n return dupbookings.size() > 0;\n }", "title": "" }, { "docid": "337ec8a44124a0a7129c8d5ccb7c5f80", "score": "0.4929064", "text": "protected void ignoreDuplicatedChangeItemRequests() {\n if (this.getItems() != null) {\n final List<V> items = new ArrayList<V>(this.getItems());\n \n /* on the second loop, remove any items that are marked for both add and remove is separate items */\n for (int i = 0; i < items.size(); ++i) {\n final V child1 = items.get(i);\n final T childItem1 = child1.getItem();\n \n // New Entity so ignore it\n if (childItem1.getId() == null)\n continue;\n \n /* at this point we know that either add1 or remove1 will be true, but not both */\n final boolean add1 = child1.getState() == ADD_STATE;\n final boolean remove1 = child1.getState() == REMOVE_STATE;\n final boolean update1 = child1.getState() == UPDATE_STATE;\n \n /* Loop a second time, looking for duplicates */\n for (int j = i + 1; j < items.size(); ++j) {\n final V child2 = items.get(j);\n final T childItem2 = child2.getItem();\n \n // New Entity so ignore it\n if (childItem2.getId() == null)\n continue;\n \n /* Check the PropertyTags for uniqueness and their value as well as their IDs */\n if (childItem1.getId().equals(childItem2.getId())) {\n final boolean add2 = child2.getState() == ADD_STATE;\n final boolean remove2 = child2.getState() == REMOVE_STATE;\n final boolean update2 = child2.getState() == UPDATE_STATE;\n \n /* check for double add, double remove, double update, and remove one instance */\n if ((add1 && add2) || (remove1 && remove2) || (update1 && update2))\n this.getItems().remove(child1);\n \n /* check for double add, double remove, add and remove, remove and add */\n if ((add1 && remove2) || (remove1 && add2) || (update1 && remove2) || (update2 && remove1)\n || (update1 && add2) || (update2 && add1)) {\n this.getItems().remove(child1);\n this.getItems().remove(child2);\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "5e2abe87b30bd7921ea900b309aeb4be", "score": "0.4913858", "text": "@Test\r\n\tpublic void testInsertDuplicates() {\r\n\t\tCountry country = new Country(\"Brazil\");\r\n\t\tCity city = new City(\"Rio de Janeiro\", country);\r\n\t\tcityDao.addCity(city);\r\n\t\t\r\n\t\tAssert.assertNotNull(cityDao.getCitiesMatchingCountry(\"Brazil\"));\r\n Assert.assertEquals(cityDao.getCitiesMatchingCountry(\"Brazil\").size(), 4);\r\n\t}", "title": "" }, { "docid": "74afdfacd94a5ace76974c93b0407c6e", "score": "0.49082303", "text": "public void updateOrg (Organization org) throws Exception {\n\t\tif(orgs.containsKey(org.getOrgId())) {\n\t\t\torgs.put(org.getOrgId(), org);\n\t\t} else {\n\t\t\tthrow new NotFoundException (\"Organization Id not found\");\n\t\t}\n\t}", "title": "" }, { "docid": "324c8f7d209d4c7d9f1534872c7b0d1f", "score": "0.49069178", "text": "public OrganizationFetcher(){}", "title": "" }, { "docid": "bbdfd0cec32935da5a8e51d0f662a5ce", "score": "0.49067152", "text": "public void test_AR_1517__AND__AR_1411()\n {\n personService.getPerson(\"1234\");\n assertTrue(personService.personExists(\"1234\"));\n personService.getPerson(\"Loon\");\n assertTrue(personService.personExists(\"Loon\"));\n personService.getPerson(\"andy\");\n assertTrue(personService.personExists(\"andy\"));\n personService.createPerson(createDefaultProperties(\"Novalike\", \"Nova\", \"Like\", \"Nove@Like\", \"Sun\", null));\n assertTrue(personService.personExists(\"Novalike\"));\n personService.getPerson(\"1andy\");\n assertTrue(personService.personExists(\"1andy\"));\n personService.getPerson(\"andy2\");\n assertTrue(personService.personExists(\"andy2\"));\n personService.getPerson(\"an3dy\");\n assertTrue(personService.personExists(\"an3dy\"));\n\n assertEquals(2, pubAuthorityService.getAllAuthorities(AuthorityType.GROUP).size());\n assertEquals(2, pubAuthorityService.getAllRootAuthorities(AuthorityType.GROUP).size());\n String auth1 = pubAuthorityService.createAuthority(AuthorityType.GROUP, \"one\");\n pubAuthorityService.addAuthority(auth1, \"1234\");\n String auth2 = pubAuthorityService.createAuthority(AuthorityType.GROUP, \"two\");\n pubAuthorityService.addAuthority(auth2, \"andy\");\n String auth3 = pubAuthorityService.createAuthority(AuthorityType.GROUP, \"three\");\n pubAuthorityService.addAuthority(auth3, \"Novalike\");\n String auth4 = pubAuthorityService.createAuthority(AuthorityType.GROUP, \"four\");\n pubAuthorityService.addAuthority(auth4, \"1andy\");\n String auth5 = pubAuthorityService.createAuthority(AuthorityType.GROUP, \"five\");\n pubAuthorityService.addAuthority(auth5, \"andy2\");\n String auth6 = pubAuthorityService.createAuthority(AuthorityType.GROUP, \"six\");\n pubAuthorityService.addAuthority(auth6, \"an3dy\");\n\n assertEquals(1, pubAuthorityService.getContainedAuthorities(null, auth1, true).size());\n assertTrue(pubAuthorityService.getContainedAuthorities(null, auth1, true).contains(\"1234\"));\n assertEquals(1, pubAuthorityService.getContainedAuthorities(null, auth2, true).size());\n assertTrue(pubAuthorityService.getContainedAuthorities(null, auth2, true).contains(\"andy\"));\n assertEquals(1, pubAuthorityService.getContainedAuthorities(null, auth3, true).size());\n assertTrue(pubAuthorityService.getContainedAuthorities(null, auth3, true).contains(\"Novalike\"));\n assertEquals(1, pubAuthorityService.getContainedAuthorities(null, auth4, true).size());\n assertTrue(pubAuthorityService.getContainedAuthorities(null, auth4, true).contains(\"1andy\"));\n assertEquals(1, pubAuthorityService.getContainedAuthorities(null, auth5, true).size());\n assertTrue(pubAuthorityService.getContainedAuthorities(null, auth5, true).contains(\"andy2\"));\n assertEquals(1, pubAuthorityService.getContainedAuthorities(null, auth6, true).size());\n assertTrue(pubAuthorityService.getContainedAuthorities(null, auth6, true).contains(\"an3dy\"));\n\n assertEquals(1, pubAuthorityService.getContainingAuthorities(null, \"1234\", false).size());\n assertTrue(pubAuthorityService.getContainingAuthorities(null, \"1234\", false).contains(auth1));\n assertEquals(1, pubAuthorityService.getContainingAuthorities(null, \"andy\", false).size());\n assertTrue(pubAuthorityService.getContainingAuthorities(null, \"andy\", false).contains(auth2));\n assertEquals(1, pubAuthorityService.getContainingAuthorities(null, \"Novalike\", false).size());\n assertTrue(pubAuthorityService.getContainingAuthorities(null, \"Novalike\", false).contains(auth3));\n assertEquals(1, pubAuthorityService.getContainingAuthorities(null, \"1andy\", false).size());\n assertTrue(pubAuthorityService.getContainingAuthorities(null, \"1andy\", false).contains(auth4));\n assertEquals(1, pubAuthorityService.getContainingAuthorities(null, \"andy2\", false).size());\n assertTrue(pubAuthorityService.getContainingAuthorities(null, \"andy2\", false).contains(auth5));\n assertEquals(1, pubAuthorityService.getContainingAuthorities(null, \"an3dy\", false).size());\n assertTrue(pubAuthorityService.getContainingAuthorities(null, \"an3dy\", false).contains(auth6));\n\n }", "title": "" }, { "docid": "d492fa7a7efae3c0a7164a8bcaebd81f", "score": "0.4906124", "text": "public boolean isExisting() throws Exception\r\n\t\t{\r\n\t\tMediaRessourceGroup myM = (MediaRessourceGroup) myMRG.get();\r\n\t\tthis.UUID = myM.getUUID();\r\n\t\t\r\n\t\tVariables.getLogger().debug(\"Item \"+this.name+\" already exist in the CUCM\");\r\n\t\treturn true;\r\n\t\t}", "title": "" }, { "docid": "446242855d1aa9f44718492b69e5a43f", "score": "0.4897133", "text": "protected void checkForDuplicateSamFiles() {\n Set<SAMReaderID> encounteredSamFiles = new HashSet<SAMReaderID>();\n Set<String> duplicateSamFiles = new LinkedHashSet<String>();\n\n for ( SAMReaderID samFile : samReaderIDs ) {\n if ( encounteredSamFiles.contains(samFile) ) {\n duplicateSamFiles.add(samFile.getSamFilePath());\n }\n else {\n encounteredSamFiles.add(samFile);\n }\n }\n\n if ( duplicateSamFiles.size() > 0 ) {\n throw new ArgumentException(\"The following BAM files appear multiple times in the list of input files: \" +\n duplicateSamFiles + \" BAM files may be specified at most once.\");\n }\n }", "title": "" }, { "docid": "06f6e188c909798ec7c460a39a13952b", "score": "0.48892865", "text": "public void removePopularPlacesDuplication(){\n\t\tString dicPopularPlacesOriginal = \"/export/scratch1/duc/work/virtuosoServer/virtuosoOPS/var/lib/virtuoso/db/popularPlacesByCountry.txt.original\";\n\t\tString dicPopularPlaces = \"/export/scratch1/duc/work/virtuosoServer/virtuosoOPS/var/lib/virtuoso/db/popularPlacesByCountry.txt\";\n\n\t\tString line; \n\t\tString locationName; \n\t\tString popularPlaceName; \n\t\tString lastLocationName = \"\";\n\t\tint curLocationId = -1; \n\t\tint totalNumPopularPlaces = 0;\n\t\tString lastAddedPopularName = \"\";\n\t\t\n\t\t\n\t\ttry {\n\t\t\tFileOutputStream \tdicPopularPlaceFile;\n\t\t\tdicPopularPlaceFile = new FileOutputStream(dicPopularPlaces);\n\t\t\tOutputStreamWriter writer; \n\t\t\twriter = new OutputStreamWriter(dicPopularPlaceFile);\n\t\t\t\n\t\t\tRandomAccessFile dicPopularPlace = new RandomAccessFile(dicPopularPlacesOriginal, \"r\");\n\n\t\t\twhile ((line = dicPopularPlace.readLine()) != null){\n\t\t\t\t\t\n\t\t\t\tString infos[] = line.split(\" \");\t//country Name Label Lat Long\n\t\t\t\tlocationName = infos[0];\n\t\t\t\t//System.out.println(\"Line in names = \" + line); \n\t\t\t\tif (locationName.compareTo(lastLocationName) != 0){ \t// New location\n\t\t\t\t\tif (locationNames.containsKey(locationName)){\t\t// Check whether it exists\n\t\t\t\t\t\tlastLocationName = locationName;\n\t\t\t\t\t\tcurLocationId = locationNames.get(locationName); \n\t\t\t\t\t\tpopularPlaceName = infos[1].trim();\n\t\t\t\t\t\tif (popularPlaceName.compareTo(lastAddedPopularName) != 0){\n\t\t\t\t\t\t\twriter.write(line + \"\\n\");\n\t\t\t\t\t\t\tlastAddedPopularName = popularPlaceName;\n\t\t\t\t\t\t\ttotalNumPopularPlaces++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tpopularPlaceName = infos[1].trim();\n\t\t\t\t\tif (popularPlaceName.compareTo(lastAddedPopularName) != 0){\n\t\t\t\t\t\twriter.write(line + \"\\n\");\n\t\t\t\t\t\tlastAddedPopularName = popularPlaceName;\n\t\t\t\t\t\ttotalNumPopularPlaces++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\twriter.close();\n\t\t\t\n\t\t\tSystem.out.println(\"Done ... \" + totalNumPopularPlaces + \" organizations were extracted\");\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": "dfb231f6cf310d30e5d2417db8ad3b60", "score": "0.48880613", "text": "public int isAccountDup(MemAppVO memAppVO);", "title": "" }, { "docid": "cf56d24bc3a061c70c6f61898c977786", "score": "0.48860982", "text": "private void checkUniqueComanyId( Long id ){\r\n \r\n //Long elofordulas = em.createNamedQuery( \"Company.CompanyIdCount\" , Long.class )\r\n // .setParameter(\"id\", id)\r\n // .getSingleResult();\r\n //if( elofordulas > 0 ){\r\n //\r\n // throw new NonUniqueIdException( \"Cegazonosito : \" + id.toString() );\r\n //}\r\n if ( ! this.companyRepository.existsById( id ) ){\r\n \r\n @SuppressWarnings({\"ThrowableInstanceNotThrown\", \"ThrowableInstanceNeverThrown\"})\r\n NonUniqueIdException nthrow = new NonUniqueIdException( \"Cegazonosito : \" + id );\r\n } \r\n }", "title": "" }, { "docid": "08f0d2cb4691ff4e0afca1a57cf125ee", "score": "0.48834562", "text": "public boolean checkDuplicatesAccNo (long accNumb) {\n\t\taccNo[index1] = accNumb;\n\t\t\n\t\tfor (int j = 1; j < accNo.length; j ++) {\n\t\t\t\n\t\t\tif (accNo[index1] == accNo [j]) {\n\t\t\t\t\n\t\t\t\tSystem.err.println(\"Account number has been taken\");\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tindex1 ++;\n\t\t\n\t\tif (index1 < accNo.length) {\n\t\t\t\n\t\t\tif (accNo[index1] == 0) {\n\t\t\t\t\n\t\t\t\taccNo[index1] = accNumb;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\t\n\t\t\t\taccNo[index1 + 1] = accNumb;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "df3fdabb56e8281d39addf1166712dfd", "score": "0.4871445", "text": "protected void checkForDuplicateICalUid(ICalendarItem item, CollectionItem parent) {\n if (item.getIcalUid() == null) {\n return;\n }\n\n // ignore modifications\n if (item instanceof NoteItem && ((NoteItem) item).getModifies() != null) {\n return;\n }\n\n // Lookup item by parent/icaluid\n TypedQuery<Long> query = null;\n if (item instanceof NoteItem) {\n query = this.em.createNamedQuery(\"noteItemId.by.parent.icaluid\", Long.class)\n .setParameter(\"parentid\", getBaseModelObject(parent).getId())\n .setParameter(\"icaluid\", item.getIcalUid());\n } else {\n query = this.em.createNamedQuery(\"icalendarItem.by.parent.icaluid\", Long.class)\n .setParameter(\"parentid\", getBaseModelObject(parent).getId())\n .setParameter(\"icaluid\", item.getIcalUid());\n }\n query.setFlushMode(FlushModeType.COMMIT);\n\n Long itemId = null;\n List<Long> idList = query.getResultList();\n if (!idList.isEmpty()) {\n itemId = idList.get(0);\n }\n\n // If icaluid is in use throw exception\n if (itemId != null) {\n // If the note is new, then its a duplicate icaluid\n if (getBaseModelObject(item).getId() == -1) {\n Item dup = (Item) this.em.find(HibItem.class, itemId);\n throw new IcalUidInUseException(\n \"iCal uid\" + item.getIcalUid() + \" already in use for collection \" + parent.getUid(),\n item.getUid(), dup.getUid());\n }\n // If the note exists and there is another note with the same icaluid, then its a duplicate icaluid\n if (getBaseModelObject(item).getId().equals(itemId)) {\n Item dup = (Item) this.em.find(HibItem.class, itemId);\n throw new IcalUidInUseException(\n \"iCal uid\" + item.getIcalUid() + \" already in use for collection \" + parent.getUid(),\n item.getUid(), dup.getUid());\n }\n }\n }", "title": "" }, { "docid": "fd44555a165d1d876334e38b33998fbb", "score": "0.4866783", "text": "@Test\n public void testGetSupesByOrg() {\n }", "title": "" }, { "docid": "03eff9781a58cbc31ac9108f729c11db", "score": "0.48642236", "text": "@Override\n\tpublic ReturnStatus update(HapOrg hapOrg) {\n\t\tif(hapOrg.getId()==0){\n\t\t\thapOrgDao.insert(hapOrg);\n\t\t}else{\n\t\t\thapOrgDao.update(hapOrg);\n\t\t}\n\t\tReturnStatus rs=new ReturnStatus(true);\n\t\treturn rs;\n\t}", "title": "" }, { "docid": "464f1049e6ad82d283e7308ae45092d2", "score": "0.4863786", "text": "int insert(SysOrg record);", "title": "" }, { "docid": "464f1049e6ad82d283e7308ae45092d2", "score": "0.4863786", "text": "int insert(SysOrg record);", "title": "" }, { "docid": "5971b41716d77f46a847893a7f474252", "score": "0.4857964", "text": "private static void processCreate(int accountNo, String accountName){\n if (!accountsMap.containsKey(accountNo)) {\n accountsMap.put(accountNo, new AccountInfo(0, accountName));\n } else {\n System.out.println(\n String.format(\"Creation failed: account with account number %d already exists\", accountNo));\n }\n }", "title": "" }, { "docid": "be2f18a57f554441789e53ac207a86df", "score": "0.48575866", "text": "@Test\n public void testUpdateOrganization() {\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 org.setName(\"The Vindicators\");\n \n dao.updateOrganization(org);\n \n assertEquals(\"The Vindicators\", dao.getOrganizationById(org.getOrganizationID()).getName());\n }", "title": "" }, { "docid": "b649f365553fe601de43ac012c919201", "score": "0.48564696", "text": "@Test\r\n public void t12_update_user_address_duplicated(){\n System.out.println(\"WARNING this action is adding more than 1 address\");\r\n RestAssured.baseURI = String.format(\"%s/addresses/v1/create\",baseUrl);\r\n\r\n Response response = POSTUserAddressBody(tokenUuid);\r\n\r\n //Validaciones\r\n String body = response.getBody().asString();\r\n System.out.println(\"Status expected: 201\" );\r\n System.out.println(\"Result: \" + response.getStatusCode());\r\n assertEquals(201, response.getStatusCode());\r\n String errorCode = response.jsonPath().getString(\"error\");\r\n System.out.println(\"Request expected to return duplicate \\nResult: \" + errorCode);\r\n assertTrue(body.contains(\"addressID\"));\r\n }", "title": "" }, { "docid": "5e901986caecd11b3796f98642a9343c", "score": "0.48545757", "text": "public void searchOrganizations() {\n if(!isVolunteer()) \n return; \n \n visible = \"visible\";\n organizations = null;\n statusMessage = \"\";\n \n // Get list of Zip Codes\n List<String> zipCodesList = getZipCodesList();\n \n //Use when testing\n// List<String> zipCodesList = new ArrayList<String>();\n// zipCodesList.add(\"24060\");\n// zipCodesList.add(\"24061\");\n \n // If no search fields then show all\n if(searchVolunteeringAreaField != null) {\n List<Integer> userIDsList = getListOrganizationUserIDsInterestedInArea();\n organizations = organizationFacade.SearchOrganizations(userIDsList, zipCodesList, searchOrganizationNameField, searchKeywordField); // , searchVolunteeringAreaField)\n }\n else\n organizations = organizationFacade.SearchOrganizations(zipCodesList, searchOrganizationNameField, searchKeywordField); // , searchVolunteeringAreaField)\n\n }", "title": "" }, { "docid": "83de287b28a430bc393ec1701f432aaf", "score": "0.48505807", "text": "public String getOrganization()\r\n {\r\n return m_sOrganization;\r\n }", "title": "" }, { "docid": "613e7cac5bad05c31863ccf5d14649a4", "score": "0.4849767", "text": "@Test\n void checkAlreadyContainedIfCorrect() throws Exception {\n Depot newDepot = new Depot(48);\n StorableResource resourceToStore = new StorableResource(ResourceType.STONE, 15);\n StorableResource resourceToCompare = new StorableResource(ResourceType.STONE, 2);\n StorableResource resourceToFail = new StorableResource(ResourceType.COIN, 15);\n newDepot.storeResourceInDepot(resourceToStore);\n assertTrue(newDepot.alreadyContained(resourceToCompare));\n assertFalse(newDepot.alreadyContained(resourceToFail));\n }", "title": "" }, { "docid": "79cc90160b593c76d16aefc089723a26", "score": "0.483539", "text": "@Override\r\n @Transactional(propagation = Propagation.REQUIRED, readOnly = false)\r\n public Organization createOrganization(Organization organization, Location location) throws AlreadyExistsException {\n int addressId = getOrCreateNewLocation(location);\r\n organization.setLocationId(addressId);\r\n try {\r\n //once the organization location is added, add the organization itself and key to location.\r\n jdbcTemplate.update(SqlQueries.SQL_INSERT_NEW_ORGANIZATION,\r\n organization.getName(),\r\n organization.getDescription(),\r\n organization.getPhone(),\r\n organization.getLocationId()\r\n );\r\n organization.setId(getLastInsertId());\r\n } catch (DataIntegrityViolationException e) {\r\n throw new AlreadyExistsException(\"That Power already exists\");\r\n }\r\n return organization;\r\n }", "title": "" }, { "docid": "46ac9f2aed4e3215efd44c683bd78d95", "score": "0.48334217", "text": "public boolean enterFieldCheckDuplicates(FieldInfo info) {\n \t\t\treturn false;\n \t\t}", "title": "" }, { "docid": "d69e5e07d22522eb2dccf99c00d1fd6f", "score": "0.4819191", "text": "private boolean isALreadyExistadmission() {\n boolean bol = false;\n try {\n ResultSet rs = model.db.getData(\"SELECT\\n\"\n + \"customer_register.admission_no\\n\"\n + \"FROM\\n\"\n + \"customer_register\\n\"\n + \"WHERE\\n\"\n + \"customer_register.admission_no = '\" + txt_admisson_no.getText() + \"'\");\n if (rs.next()) {\n// practical_topic_id = rs.getInt(2);\n// com.Messages.normaljoption(\"practical_topic_id \" + practical_topic_id);\n bol = true;\n// Messages.errorjoption(\"This NIC Number Already Exist ! \");\n// txtnic.grabFocus();\n// txtnic.selectAll();\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return bol;\n }", "title": "" } ]
e8a9b076072de95493f7938816040b12
Calculate number of diamonds awarded.
[ { "docid": "d178d9f11573ddfbbf59dc11c1a5ec47", "score": "0.6220961", "text": "public final int getDiamonds() {\n Random r = new Random();\n int d = r.nextInt(100) + 1;\n if (d <= 4) {\n return 5;\n } else if (d <= 12) {\n return 4;\n } else if (d <= 24) {\n return 3;\n } else if (d <= 50) {\n return 2;\n }\n return 1;\n }", "title": "" } ]
[ { "docid": "65e1a05181372aa363ab23508aa6fd08", "score": "0.6966514", "text": "public int getDiamondsCount() {\n return diamondsCount;\n }", "title": "" }, { "docid": "045642a4b945e504747e849566115660", "score": "0.63097334", "text": "public void addDiamond() {\n diamonds++;\n }", "title": "" }, { "docid": "7437176e9cb1d1671102db6a15516c9b", "score": "0.6118357", "text": "public int getDiamonds() {\n return diamonds;\n }", "title": "" }, { "docid": "2ff360e456d7cd36ca187059b3fa7d99", "score": "0.6104989", "text": "public int getDances()\r\n\t{\r\n\t\treturn dances;\r\n\t}", "title": "" }, { "docid": "2de27ac4c736250f9de4fa60bfe7441b", "score": "0.60747623", "text": "@Override\n\tpublic int hit() {\n\t\tfor (Soldier s : listSoldier) {\n\t\t\ttotalDams += s.hit();\n\t\t}\n\t\treturn totalDams;\n\t}", "title": "" }, { "docid": "014ba57433a167d8ebed4b905be9cc1a", "score": "0.6056408", "text": "public int countAccessoriesEarned() {\n open();\n\n Cursor c = myDatabase.rawQuery(\"SELECT Count (*) FROM user_accessories\", null);\n\n c.moveToFirst();\n\n //there are 8 skins already in the user_achievements that we need to subtract\n int count = (c.getInt(0)) - 8;\n\n //if accessories are given on the success page, we need to up the count by one\n //so that the achievement is given when they are about to get a 3rd accessory\n count += 1;\n\n c.close();\n close();\n\n return count;\n }", "title": "" }, { "docid": "64afe26a914ddca6dd8e42d3dbbe5d5a", "score": "0.6041481", "text": "int getFairyAnimalCount();", "title": "" }, { "docid": "fc2f620e501500f53ba443855d9bf604", "score": "0.59740824", "text": "public int getDamageCounter();", "title": "" }, { "docid": "cd203e44a15d8612af54e63726b172a9", "score": "0.5922394", "text": "public int getTotalAwards() {\n return totalAwards;\n }", "title": "" }, { "docid": "b70f76c362745293f412f6b648ee165e", "score": "0.59204495", "text": "public void incrementDiamondCount() {\n diamondCount++;\n System.out.println(\"Diamond count: \" + diamondCount);\n }", "title": "" }, { "docid": "14348b4a39b784a584c9716cfe3c2f56", "score": "0.5906026", "text": "public Long getDiamondsnumber()\r\n\t{\r\n\t\treturn diamondsnumber;\r\n\t}", "title": "" }, { "docid": "97889d5a998bcded8059ffe7759debb7", "score": "0.59038347", "text": "public int getTotalDexterity() {\n int dexterity = 0;\n for (Equipment equipment : this.equipment) {\n dexterity += equipment.getDexterity();\n }\n return dexterity;\n }", "title": "" }, { "docid": "7f141f688180aa920e93fd2a072b4410", "score": "0.5897442", "text": "public abstract int getTotalMagicDefense();", "title": "" }, { "docid": "5c9b00774fd99da8956adf21896364bb", "score": "0.58964026", "text": "public void countDistance() {\n distance += speed * Math.random();\n }", "title": "" }, { "docid": "8446d256393f5920bca71386421ba7f8", "score": "0.5825411", "text": "int getNumberOfBottles();", "title": "" }, { "docid": "f37710351829eeed433162d4b91c1958", "score": "0.57931346", "text": "public int countAccessoriesWorn(){\n open();\n\n Cursor c = myDatabase.rawQuery(\"SELECT Count(*) FROM user_accessories WHERE \" +\n \"currently_wearing = 1 \", null);\n\n c.moveToFirst();\n int count = c.getInt(0);\n\n c.close();\n close();\n\n return count;\n }", "title": "" }, { "docid": "3819f3bf2992598bde90d4b50fec8b8e", "score": "0.57660174", "text": "public abstract int getTotalMagicAttack();", "title": "" }, { "docid": "da8eb88d3558333486f4796ead504804", "score": "0.575574", "text": "public int numOfBeats() {\n int numOfBeats = 0;\n for (ASound s : this.sounds) {\n numOfBeats += s.getDuration();\n }\n return numOfBeats;\n }", "title": "" }, { "docid": "93d02e254795caefbdaa12b2ab64fcdf", "score": "0.5755289", "text": "public abstract int getTotalDefense();", "title": "" }, { "docid": "e718e8785f983cb44f2692fd7b9022a9", "score": "0.57390106", "text": "public abstract int getTotalAttack();", "title": "" }, { "docid": "d3e17cf7cbecd7189be5633b0e2fbe49", "score": "0.57024664", "text": "public int getDrinkCount() {\n return this.drinkCount;\n }", "title": "" }, { "docid": "af60c5322239ed025e94d4cf107c2a41", "score": "0.57012355", "text": "public int getDiamondCount() {\n return diamondCount;\n }", "title": "" }, { "docid": "931934fb09337115e3c37eca7ea4a94e", "score": "0.5696688", "text": "protected int getNumOfDices() {\n return this.numOfDices;\n }", "title": "" }, { "docid": "eb2ee1c1c5a877746846ae8be076adbe", "score": "0.56861985", "text": "private int breed()\n {\n int births = 0;\n if(canBreed() && rand.nextDouble() <= BREEDING_PROBABILITY) {\n births = rand.nextInt(MAX_LITTER_SIZE) + 1;\n }\n return births;\n }", "title": "" }, { "docid": "e8d62591dae6b624dbdd5cfe41be86ef", "score": "0.5674626", "text": "int getGoalCount();", "title": "" }, { "docid": "e0ff9c6a1a75a17e38c5fdb553ca9ac7", "score": "0.56691265", "text": "String getNoOfAnimals();", "title": "" }, { "docid": "5c130104be2a9e46fcb81de7827c089e", "score": "0.56658113", "text": "protected int breed()\n {\n int births = 0;\n if(canBreed() && rand.nextDouble() <= getBreedingProbability()) {\n births = rand.nextInt(getMaxLitterSize()) + 1;\n }\n return births;\n }", "title": "" }, { "docid": "c562da5f490b6bcd5c4750742daff7c5", "score": "0.5650844", "text": "private int breed() {\n int births = 0;\n if (canBreed() && rand.nextDouble() <= BREEDING_PROBABILITY) {\n births = rand.nextInt(MAX_LITTER_SIZE) + 1;\n }\n return births;\n }", "title": "" }, { "docid": "824aabde0b60a1a26697d818f19f87ce", "score": "0.5650566", "text": "public int dealDamage() {\n\t\tint result = 0;\n\t\tfor(Troop troop:troops) {\n\t\t\tresult += troop.getDamage();\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "ce8576c795c5ba51492ce0929e093715", "score": "0.56468695", "text": "public int calculoBonos(ArrayList<Dia> d) {\n\t\tint sol = 0;\n\t\tfor (Dia dia : d) {\n\t\t\tsol += dia.totalBonos();\n\t\t}\n\t\treturn sol;\n\t}", "title": "" }, { "docid": "1f30ad11f08204ef06013583982cb832", "score": "0.56230587", "text": "public void incrementDeaths()\n {\n this.amountOfDeaths++;\n }", "title": "" }, { "docid": "5300c74a6dcf4e196a6529ea7a3c66fc", "score": "0.562114", "text": "public int numeroBicisAdult() {\r\n\t\tint contador = 0;\r\n\t\tfor (Bike bici : getPack()) {\r\n\t\t\tif (bici instanceof AdultBike) {\r\n\t\t\t\tcontador++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn contador;\r\n\t}", "title": "" }, { "docid": "855e5045148619a21f93f2dbb283e207", "score": "0.5615341", "text": "public int calAvoidanceAbility() {\n // System.out.println(playerId+avoid);\n return effectiveAbilities.getDexterity() + randomGen.random1To6();\n }", "title": "" }, { "docid": "ee4fe253d1ca578f62ea838ab85fb5ac", "score": "0.5597118", "text": "public static int calculateTotalHealth (MakeAlien a){\n int sum = a.happiness + a.hunger + a.sleep;\n return sum;\n }", "title": "" }, { "docid": "e8a1972b9722e15988f43a4eb4ad6225", "score": "0.558999", "text": "int getTotalOfAwards(final Map<actor.ActorsAwards, Integer> awrads) {\r\n int sum = 0;\r\n for (Map.Entry<actor.ActorsAwards, Integer> entry : awrads.entrySet()) {\r\n sum += entry.getValue();\r\n }\r\n return sum;\r\n }", "title": "" }, { "docid": "78c8690efc5cabdd1bebddeb589c387e", "score": "0.5580541", "text": "public static int numberOfLives() {\n // TODO: Implement this method.\n\t\treturn no_of_lives;\n }", "title": "" }, { "docid": "e49ca6379ec13e6364a2bfa6be3cf483", "score": "0.5551142", "text": "public int giveAmmount(){return fineAmmount;}", "title": "" }, { "docid": "559eab738214235321e0674a8f1c41ee", "score": "0.5546561", "text": "int getNoughts();", "title": "" }, { "docid": "996a8cd8cd8fe49361e1978bc2b29f43", "score": "0.55430764", "text": "public int getTotalFolded()\r\n {\r\n return myAmount[0] + myAmount[1] + myAmount[2] + myAmount[3] + myAmount[4];\r\n }", "title": "" }, { "docid": "8a60d495a4252b3f50c2b28f7187d1f8", "score": "0.55398667", "text": "public Integer getNumDrinks() \n\t{\n\t\treturn numDrinks;\n\t}", "title": "" }, { "docid": "ea02101664b0547656cc36da106838ed", "score": "0.5539141", "text": "public int gifts() {\n if (listCount == 0) {\n System.out.println(\"There is nothing in this list.\");\n return 0;\n }\n else {\n Node current = head.next;\n int count = 0;\n while (current != null) {\n count += current.household;\n current = current.next;\n }\n return count;\n }\n }", "title": "" }, { "docid": "cc38b51477c35a8af4a2ecd7543360dd", "score": "0.5536314", "text": "public static int distanceToCounts(double ratio, double displacement) {\r\n return (int) Math.round(displacement / ratio);\r\n }", "title": "" }, { "docid": "ac1b912c91e855dad3511f0846d7520d", "score": "0.5504815", "text": "public void checkDiamondCount() throws InvalidOperationException {\n if(!hasDiamonds()) {\n String message = \"Not enough diamonds to redeem this entity\";\n throw new InvalidOperationException(InvalidOperationException.ErrorCode.INSUFFICIENT_DIAMONDS, message);\n }\n }", "title": "" }, { "docid": "bde5bfe857c9c798346bc891a2b04fe0", "score": "0.54980934", "text": "private int calculateWhiteDaisy(){\r\n\t\tint count = 0;\r\n\t\tfor(Patch patch : patchMap.values()){\r\n\t\t\tif(patch instanceof WhiteDaisy){\r\n\t\t\t\tcount+=1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "1e2ddc52a59b7a123a152cec95d5e67e", "score": "0.5493046", "text": "public int damage(){\n int damage2 = Randomizer.nextInt(20)+1;\n int dHit = Randomizer.nextInt(MAX_HUMAN_STR-MIN_HUMAN_STR)+MIN_HUMAN_STR;\n int plus50 = 0;\n if(damage2 == 1){\n plus50 += 50;\n } \n return plus50;\n }", "title": "" }, { "docid": "d1a2b8ce4e4d2d8a0338aba0f7b63479", "score": "0.5490284", "text": "public int getTotalArmorValue()\n {\n int i = super.getTotalArmorValue() + 2;\n\n if (i > 20)\n {\n i = 20;\n }\n\n return i;\n }", "title": "" }, { "docid": "b93805bdd2edfaeb34849c8774139c52", "score": "0.5489898", "text": "public int numOfPenthouses() {\n\t\tint total = 0;\n\t\tfor (Apartment apt : apartments) {\n\t\t\tif (apt instanceof Penthouse) {\n\t\t\t\ttotal++;\n\t\t\t}\n\t\t}\n\t\treturn total;\n\t}", "title": "" }, { "docid": "56e070e770fa1c0dbc427e7e1b991a05", "score": "0.54850686", "text": "int getAislesCount();", "title": "" }, { "docid": "b8b0340453de48148ef67a8d1e9c16b8", "score": "0.5484125", "text": "public boolean hasDiamonds() {\n return diamonds > 0;\n }", "title": "" }, { "docid": "f46e395cc52006a6649710ed0c691754", "score": "0.5462778", "text": "public int additionalClaimCardsCount(SortedBag<Card> claimCards, SortedBag<Card> drawnCards)\r\n throws IllegalArgumentException {\r\n\r\n Preconditions.checkArgument(level != Level.OVERGROUND);\r\n Preconditions.checkArgument(drawnCards.size() == Constants.ADDITIONAL_TUNNEL_CARDS);\r\n\r\n List<Card> claimedCards = claimCards.toList();\r\n List<Card> drewCards = drawnCards.toList();\r\n\r\n int tempWagon = 0;\r\n int locCount = 0;\r\n Card card = null;\r\n\r\n for (Card claimedCard : claimedCards)\r\n if (claimedCard != Card.LOCOMOTIVE)\r\n card = claimedCard;\r\n\r\n for (Card drewCard : drewCards) {\r\n tempWagon = ((drewCard != Card.LOCOMOTIVE) && (drewCard == card)) ? tempWagon + 1 : tempWagon;\r\n locCount = (drewCard == Card.LOCOMOTIVE) ? locCount + 1 : locCount;\r\n }\r\n\r\n return tempWagon + locCount;\r\n }", "title": "" }, { "docid": "7f7779300bfebce86178670f4ce52c91", "score": "0.5457765", "text": "private int hitDamage() \r\n\t{\r\n\t\tint damage = strength * (int)(Math.random()*6+1);\r\n\t\tSystem.out.println(\"The damage = \" + damage);\r\n\t\treturn damage;\r\n\t}", "title": "" }, { "docid": "ef153a1d2b606dca620b624e09024dcc", "score": "0.5455729", "text": "public int getNumberOfSimilarCards() {\n int numberOfUnits = 0;\n int infantryCardNumber = 0;\n int artilaryCardNumber = 0;\n int cavalaryCardNumber = 0;\n List<CardModel> cards = this.playerModel.getDeck();\n\n infantryCardNumber = getNumberCardTypeByCardType(cards, EnumHandler.CardType.INFANTRY);\n artilaryCardNumber = getNumberCardTypeByCardType(cards, EnumHandler.CardType.ARTILLERY);\n cavalaryCardNumber = getNumberCardTypeByCardType(cards, EnumHandler.CardType.CAVALRY);\n\n numberOfUnits += infantryCardNumber / 3;\n numberOfUnits += artilaryCardNumber / 3;\n numberOfUnits += cavalaryCardNumber / 3;\n\n if (infantryCardNumber / 3 > 0) {\n setPlayerDeckByCardType(cards, EnumHandler.CardType.INFANTRY);\n }\n if (artilaryCardNumber / 3 > 0) {\n setPlayerDeckByCardType(cards, EnumHandler.CardType.ARTILLERY);\n }\n if (cavalaryCardNumber / 3 > 0) {\n setPlayerDeckByCardType(cards, EnumHandler.CardType.CAVALRY);\n }\n\n return numberOfUnits;\n }", "title": "" }, { "docid": "7b4f027a5c8422293898d58d54eb93ed", "score": "0.5453126", "text": "public int getCalories() {\n int index = 0;\n int calories = 0;\n while (index < listofmeals.size()) {\n Meal thismeal = listofmeals.get(index);\n calories = calories + thismeal.getCalories();\n index++;\n }\n return calories;\n }", "title": "" }, { "docid": "0a64ecc4ac3fb7780f6a7cf35864c946", "score": "0.5450673", "text": "public int howManyAbsorbedBalls(){\n return this.absorbedBalls.size();\n }", "title": "" }, { "docid": "29a2be28966c3a197d3d2ae4542335ef", "score": "0.54499525", "text": "public int getAmountOfDeaths()\n {\n return this.amountOfDeaths;\n }", "title": "" }, { "docid": "120d78adf4e69d68210c0fb54d21e33f", "score": "0.54498035", "text": "public int totalAllDice(){\r\n\t\tint total = 0;\r\n\t\tfor(int i = 0; i<sizeOfHand; i++){\r\n\t\t\ttotal += currentHand.get(i).getSideOnTop();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "title": "" }, { "docid": "226eec242ae918c61733b0758ee69cd3", "score": "0.54486126", "text": "int getSpawnedCount();", "title": "" }, { "docid": "ed4c25c2c8e47a048770afe544eb4090", "score": "0.54426587", "text": "@Override\n\tpublic int getDiamondCount() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "c343f42c1bccc0d0ef0f99a528659edb", "score": "0.543763", "text": "@Override\n\tpublic int getNbDiamond() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "671e16938509784a533aaef5628b1da9", "score": "0.54327923", "text": "int getPerDiemPercentage();", "title": "" }, { "docid": "7a8db80089eb1e7a8c0ef105ece8d86d", "score": "0.5425386", "text": "public int getTotalArmiesOwned() {\r\n\t\treturn totalArmiesOwned;\r\n\t}", "title": "" }, { "docid": "29e7690da58669eabd90189c457f079a", "score": "0.54219395", "text": "public int totalAreaOfGardens() {\n\t\tint total = 0;\n\t\tfor (Apartment apt : apartments) {\n\t\t\tif (apt instanceof GardenApartment) {\n\t\t\t\ttotal += ((GardenApartment) apt).getGardenArea();\n\t\t\t}\n\t\t}\n\t\treturn total;\n\t}", "title": "" }, { "docid": "c973665e83e050e838e79c8fd01cd5e7", "score": "0.54204506", "text": "private int calculateBlackDaisy(){\r\n\t\tint count = 0;\r\n\t\tfor(Patch patch : patchMap.values()){\r\n\t\t\tif(patch instanceof BlackDaisy){\r\n\t\t\t\tcount+=1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "fb15d56e035199c72b44d937daf60d0c", "score": "0.5419805", "text": "public int getDmgTaken();", "title": "" }, { "docid": "ce52ca2c5a069648bae738763d50e809", "score": "0.5416507", "text": "public int getDrugs(){\r\n\t\treturn drugs;\r\n\t}", "title": "" }, { "docid": "95b679136f9d1cdda33c1e3d746c2baa", "score": "0.54146475", "text": "public int evade() {\n if (abilities.contains(HUNTER_ABILITY_3) && attackSequence.indexOf(HUNTER_ABILITY_3) == -1) {\n agility = agility + 35;\n System.out.println(\"Increased your agility by 35!\");\n return 1;\n }\n return 0;\n }", "title": "" }, { "docid": "a2946761fad168d6361cad86053ab4b5", "score": "0.5409508", "text": "public int getTotalEndurance() {\n int endurance = 0;\n for (Equipment equipment : this.equipment) {\n endurance += equipment.getEndurance();\n }\n return endurance;\n }", "title": "" }, { "docid": "b94482c5833212d8a04b879aded116f9", "score": "0.54086155", "text": "int totalPersonLivingInLondon(){\n\t\tint count = 0;\n\t\n\tfor (int i = 0; i < 5; i++)\n\t{\n\t\tif(per.city==\"london\"){\n\t\t\tcount = count + 1;\n\t\t}\n\t}\n\n\treturn count;\n\n\t}", "title": "" }, { "docid": "e932ea892f854a6a0c22ca9fc2a16be4", "score": "0.5395357", "text": "int getPlayerTotalRestrictedMojo(EntityPlayer player);", "title": "" }, { "docid": "003e70282a91521ef5e7e4f0822ddb3d", "score": "0.5379767", "text": "@Override\n\tpublic int getCalories() {\n\t\treturn (int)(_seafood.getCalories() + _rice.getCalories() + 0.5);\n\t}", "title": "" }, { "docid": "68e4e9223e8036006f8be4ed8f4dddf9", "score": "0.53783226", "text": "public void bardTotalSpells(){\n totalBardSpells[1] = baseSpellsPerDay[1] + bonusSpells[1];\n totalBardSpells[2] = baseSpellsPerDay[2] + bonusSpells[2];\n totalBardSpells[3] = baseSpellsPerDay[3] + bonusSpells[3];\n totalBardSpells[4] = baseSpellsPerDay[4] + bonusSpells[4];\n totalBardSpells[5] = baseSpellsPerDay[5] + bonusSpells[5];\n totalBardSpells[6] = baseSpellsPerDay[6];\n \n }", "title": "" }, { "docid": "3e423ac1a8ba3999cbfbcaf4c96b4cf6", "score": "0.5362512", "text": "int getOccupyWonderInfoCount();", "title": "" }, { "docid": "3a43f021c5e872041f49998674070c1c", "score": "0.5356228", "text": "private int calculateDiamondAverage(int y, int x, int size) {\r\n\t\tint average = ((mapArray[y - size][x - size] + mapArray[y + size][x - size] + mapArray[y - size][x + size]\r\n\t\t\t\t+ mapArray[y + size][x + size]) / 4);\r\n\t\taverage = average + (random.nextInt(noise*2 + 1) - noise);\r\n\r\n\t\treturn average;\r\n\t}", "title": "" }, { "docid": "bce6ba0bc5c48d26011afdd9e33d7865", "score": "0.5354413", "text": "public int getArmy(){\r\n \treturn numOfArmy;\r\n }", "title": "" }, { "docid": "41b75f6429c27eca78abc736600ab374", "score": "0.5347572", "text": "private int sumHand(){\n int sum = 0;\n for(int i = 0; i < hand.getMax_dice(); ++i){\n sum += hand.dieAt(i).getValue();\n }\n return sum;\n }", "title": "" }, { "docid": "80263d344a1a72dba58b334f82b07613", "score": "0.5332752", "text": "protected int getRewardCount() {\n return jdbcTemplate.queryForInt(COUNT_REWARDS_SQL);\n }", "title": "" }, { "docid": "69cd78276c5eb74625c1aadd641b08dc", "score": "0.5332686", "text": "public int getGamesTied()\r\n {\r\n int totTied = 0;\r\n for( Game g : games)\r\n {\r\n if( g.getGameResult() == 2 ){ totTied += 1; }\r\n }\r\n return totTied;\r\n }", "title": "" }, { "docid": "b841781aa89c82e1bf4fdc47e08ba32e", "score": "0.53273237", "text": "private float need(ArrayList<Person> persons) {\n\t\tfloat acc = 0;\n\t\tfor (Person p : persons) {\n\t\t\tfloat c = p.getCash();\n\t\t\tif (c < povertyLim) {\n\t\t\t\tacc += (povertyLim - c);\n\t\t\t}\n\t\t}\n\t\treturn acc;\n\t}", "title": "" }, { "docid": "bf2031736eb92baa97dff0c2c2cb2f25", "score": "0.532398", "text": "public abstract void calculateHealth(int attackIn);", "title": "" }, { "docid": "13d906c5441968448fefa9dd29ae7093", "score": "0.5323269", "text": "public int getLifePoints();", "title": "" }, { "docid": "977a2257b416da0662f71bb0eb9a0b97", "score": "0.5318351", "text": "public void damagedBy(double amount);", "title": "" }, { "docid": "43e3add43573907a2bad543554356fd9", "score": "0.53165805", "text": "public int getReciveDamage()\n {\n return totalDmg;\n }", "title": "" }, { "docid": "b9ca32697a344e68fa413285f32edc34", "score": "0.5308229", "text": "int getAgesCount();", "title": "" }, { "docid": "5e3e7fe78ec366d7b939ec0ad78a8241", "score": "0.53064424", "text": "int getGiftdeallistCount();", "title": "" }, { "docid": "c1379833efedae5ff9b5f226be831086", "score": "0.5305928", "text": "public int getTotalNum() { return adult_num + child_num + baby_num; }", "title": "" }, { "docid": "f4bbe301fc47c6c12b7737660e29627f", "score": "0.53028077", "text": "public int getTotalDraws() \n\t{\n\t\treturn totalDraws;\n\t}", "title": "" }, { "docid": "8f8046950268d3fc296a30d91cc048ef", "score": "0.5299784", "text": "private int calcFoodDemanded() {\n\t\t//formula for food points demanded: FP = 100log(total_wealth) + 19.75sqrt(monthly_income) + random [300,500]\n\t\tint fp = (int) (100*Math.log10(household.getWealth().doubleValue()) + 19.75*Math.sqrt(household.getMonthlyIncome().doubleValue()) + 201*Math.random() + 300);\n\t\treturn fp;\n\t}", "title": "" }, { "docid": "263fbe773a98120ebad1914110543120", "score": "0.529507", "text": "public double mealCal()\n\t{\n\t\tdouble result = 0;\n\t\tfor(Food f : ingredients){\n\t\t\tresult += f.getCalories();\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "80b66f9efbcc87421196ec9a65a4f072", "score": "0.52942634", "text": "public void numOfHits() {\r\n if (this.numOfHit > 0) {\r\n this.numOfHit -= 1;\r\n }\r\n }", "title": "" }, { "docid": "b84f1b0a07a78152665b4b75cf724c33", "score": "0.529279", "text": "public double calculateTotalCharge() {\n double totalCharge = 0;\n for (Rental rental : rentalSet) {\n totalCharge += rental.calculateRentalCharge(rental.getMovie());\n }\n return totalCharge;\n }", "title": "" }, { "docid": "c889e74f8e2e2be26b67cc4b68683776", "score": "0.5289883", "text": "private void receiveDamage(int amount)\n { \n //generate three die\n Die die1 = new Die();\n Die die2 = new Die();\n Die die3 = new Die();\n \n dice1 = die1.getTopValue();\n dice2 = die2.getTopValue();\n dice3 = die3.getTopValue();\n \n //if and only if gladiator makes damage to troll, troll will add the biggest dice number. otherwise there is no damage troll takes\n if (amount > 0)\n {\n if(dice1 >= dice2 && dice1 >= dice3)\n {\n totalDmg = amount + dice1;\n }\n else if(dice2 >= dice3)\n {\n totalDmg = amount + dice2;\n }\n else\n {\n totalDmg = amount + dice3;\n }\n }\n else\n {\n totalDmg = 0;\n }\n }", "title": "" }, { "docid": "7c47b078d48fbc78215241fbc775a8c8", "score": "0.52873504", "text": "protected long count()\n {\n long sum = 0L;\n for (int i = 0; i < decayingBuckets.length; i++)\n sum += decayingBuckets[i];\n return sum;\n }", "title": "" }, { "docid": "e6c20254ffd9d081ecb1b76659930f24", "score": "0.5286617", "text": "public static int countCannonballs(int height) {\n\tif (height == 0){\n\t return 0;\n\t}\n\telse{\n\t return height*height + (countCannonballs(height-1));\n\t}\n }", "title": "" }, { "docid": "c6bf48d23eb7f0e9fda93ea669379ce5", "score": "0.5284381", "text": "static public double acidAmountPerL(Acid acid, double moles) {\n\t\tdouble amnt = moles * acid.getMolWt();\n\t\tif (acid.isLiquid()) {\n\t\t\tamnt = amnt / acid.getMgPerL();\n\t\t}\n\n\t\treturn amnt;\n\t}", "title": "" }, { "docid": "63c81f500d3103bb6c7061d1de416cda", "score": "0.52833515", "text": "public int numCards()\n {\n leftInDeck=CARDS_IN_DECK - dealt;\n return leftInDeck;\n }", "title": "" }, { "docid": "816a4a90e58defd6cd196190aa62fa18", "score": "0.52797383", "text": "@Override\n public int attack()\n {\n return batDmg; // Returns damage of the bat for use in damage calculation.\n }", "title": "" }, { "docid": "84260b1fb60ae840d75dd548f4755401", "score": "0.52792627", "text": "@Override\n\tpublic int calculateReinforcementArmies() {\n\t\tint totalReinforcements = 0;\n\t\ttotalReinforcements = (int) (player.assignedTerritories.size() / 3);\n\t\tif (totalReinforcements < 3) {\n\t\t\ttotalReinforcements = 3;\n\t\t}\n\n\t\tfor (Map continent : Main.activeMap.continents) {\n\t\t\tint i = 0;\n\t\t\tfor (Territory territory : continent.territories) {\n\t\t\t\tif (territory.owner != player) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (i == continent.territories.size()) {\n\t\t\t\ttotalReinforcements = totalReinforcements + continent.score;\n\t\t\t}\n\t\t}\n\t\tif (player.canExchangeCards()) {\n\t\t\ttotalReinforcements += Card.cardExchangeValue;\n\t\t\tArrayList<Integer> cardIndexes = player.getCardIndexesToExchange();\n\t\t\tplayer.exchangeCards(cardIndexes.get(0), cardIndexes.get(1), cardIndexes.get(2));\n\t\t}\n\n\t\tSystem.out.println(\"Player \" + player.getName() + \" gets \" + totalReinforcements + \" reinforcement armies.\");\n\t\tplayer.totalArmiesCount += totalReinforcements;\n\t\treturn totalReinforcements;\n\t}", "title": "" }, { "docid": "4e3291876e41c3e72264c1940d73521a", "score": "0.5268268", "text": "public int getGoalCount() {\n return goalCount_;\n }", "title": "" }, { "docid": "cc819f113629adbbcaa3dc1d22394dc0", "score": "0.5250966", "text": "public double getTotalDefence() {\n\t\tArmor.Type armorType = null;\n\t\tint armorDefenceiveValue = 0;\n\t\tif(this.equipedArmor != null) {\n\t\t\tarmorDefenceiveValue = equipedArmor.getDefence();\n\t\t\tarmorType = equipedArmor.getType();\n\t\t}\n\t\tdouble dexBonus = this.dex / 10.0;\n\t\tdouble maxDexBonus = maxDexBonus(armorType);\n\t\tif(maxDexBonus > 0 && dexBonus > maxDexBonus)\n\t\t\tdexBonus = maxDexBonus;\n\t\tdouble totalDefence = defence + armorDefenceiveValue + dexBonus;\n\t\treturn totalDefence;\n\t}", "title": "" }, { "docid": "acaea80926d9b3b9ac1280bbc42cb056", "score": "0.52463627", "text": "int getItemDamage();", "title": "" } ]
8df14c367efc2ec0f56f934772122f73
~ Methods Sets the status of the popup menu support.
[ { "docid": "4d762a00f83907478e72b4f037163102", "score": "0.0", "text": "public void setEnabled(boolean enable)\n {\n if (enable)\n {\n if (_interceptor == null)\n {\n _interceptor = new FocusInterceptor();\n Toolkit.getDefaultToolkit().addAWTEventListener(\n _interceptor, AWTEvent.FOCUS_EVENT_MASK);\n }\n }\n else\n {\n Toolkit.getDefaultToolkit().removeAWTEventListener(_interceptor);\n _interceptor = null;\n\n // if no text component have ever got the focus no listeners were\n // added, so we have to check\n if (_registeredComponents != null)\n {\n for (int i = 0, size = _registeredComponents.size(); i < size; i++)\n {\n ListenerSupport support =\n (ListenerSupport) _registeredComponents.get(i);\n support.remove();\n }\n }\n\n _registeredComponents = null;\n _copyAction = null;\n _cutAction = null;\n _selectAllAction = null;\n _pasteAction = null;\n _deleteAction = null;\n _menu = null;\n }\n }", "title": "" } ]
[ { "docid": "e0b9c790453a4b915f586adfd0d57a19", "score": "0.6594622", "text": "public void setPopUpMenu() {\r\n this.trayIcon.setPopupMenu(TrayMenu.getInstance());\r\n }", "title": "" }, { "docid": "3c7861a13968e450fa5a7757630fd584", "score": "0.6523304", "text": "private void menu_status() {\n\n menu_open.setVisibility(View.GONE);\n menu_click.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "f76dc3faa701aba9ab70f6e100d349f6", "score": "0.6409021", "text": "public void initializePopup() {\n ListMenu listMenu = (ListMenu) ((LayoutInflater) this.mActivity.getSystemService(\"layout_inflater\")).inflate(C0905R.layout.list_menu, null, false);\n listMenu.setSettingChangedListener(this);\n String[] strArr = this.mOtherKeys1;\n if (this.mActivity.isDeveloperMenuEnabled()) {\n strArr = this.mOtherKeys2;\n }\n if (strArr != null) {\n listMenu.initialize(this.mPreferenceGroup, strArr);\n }\n this.mListMenu = listMenu;\n overridePreferenceAccessibility();\n overrideMenuForVideoHighFrameRate();\n }", "title": "" }, { "docid": "2e828344bc529cb2b93dd578ea6ebbab", "score": "0.6170459", "text": "public abstract void setUsesItemFromMenu(boolean flag);", "title": "" }, { "docid": "ec04cb110a2e23badfb3f4c742295cac", "score": "0.6092261", "text": "public void setMenuPopup(String menuPopup) {\r\n this.menuPopup = menuPopup;\r\n }", "title": "" }, { "docid": "3484861ebbd648f7334ecfccb12155e7", "score": "0.60881025", "text": "@Override\n public void activate_panel()\n {\n boolean system_level = true;\n }", "title": "" }, { "docid": "f16cafeeea5ee93efcba25145213f257", "score": "0.60555214", "text": "public void onMusicMenuClick(boolean status) {\r\n\t\tmodel.setMusicSetting(status);\r\n\t}", "title": "" }, { "docid": "d3ddb0495ffb28662c4b6da968e131f3", "score": "0.60301346", "text": "private void updateContextMenu(){\n if (Utils.isNull(mMenuButton)){\n return;\n }\n mMenuButton.setOnClickListener(new View.OnClickListener() {\n @SuppressLint(\"RestrictedApi\")\n @Override\n public void onClick(View view) {\n MenuBuilder menuBuilder =new MenuBuilder(getContext());\n MenuInflater inflater = new MenuInflater(getContext());\n inflater.inflate(R.menu.menu_track_list, menuBuilder);\n // hide or show menu items\n for (MenuItem item : menuBuilder.getVisibleItems()){\n switch (item.getItemId()) {\n case R.id.menu_hide_item:\n item.setVisible(mMode == Modes.FEED);\n break;\n case R.id.menu_attach_photo_item:\n item.setVisible(isCurrentTrackEditable());\n break;\n case R.id.menu_mark_to_upload_item:\n item.setVisible(isCurrentTrackEditable());\n break;\n case R.id.menu_chart_item:\n item.setVisible(true);\n break;\n case R.id.menu_share_track_item:\n item.setVisible(true);\n break;\n case R.id.menu_continue_recording_item:\n item.setVisible(isCurrentTrackEditable());\n break;\n case R.id.menu_gpx_item:\n item.setVisible(true);\n break;\n case R.id.menu_track_type_item:\n item.setVisible(isCurrentTrackEditable() && !Utils.isNull(mTrack));\n if (!Utils.isNull(mTrack)) {\n item.setIcon(mTrack.getAccessType().equals(Track.AccessTypes.PRIVATE_TYPE) ? R.drawable.ic_lock : R.drawable.ic_unlock);\n }\n break;\n case R.id.menu_delete_item:\n item.setVisible(isCurrentTrackEditable());\n break;\n case R.id.menu_runkeeper_item:\n item.setVisible(isCurrentTrackEditable());\n break;\n case R.id.menu_flickr_upload_item:\n item.setVisible(isCurrentTrackEditable());\n break;\n }\n }\n\n MenuPopupHelper menuPopupHelper = new MenuPopupHelper(getContext(), menuBuilder, view);\n menuPopupHelper.setForceShowIcon(true);\n\n menuBuilder.setCallback(new MenuBuilder.Callback() {\n @Override\n public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu_hide_item:\n hideTrack();\n break;\n case R.id.menu_attach_photo_item:\n attachPhoto();\n break;\n case R.id.menu_mark_to_upload_item:\n markToUpload();\n break;\n case R.id.menu_chart_item:\n showTrackAnalytics();\n break;\n case R.id.menu_share_track_item:\n shareTrack();\n break;\n case R.id.menu_continue_recording_item:\n continueRecordingTrack();\n break;\n case R.id.menu_gpx_item:\n exportTrackToGPX();\n break;\n case R.id.menu_track_type_item:\n changeTrackAccessType();\n break;\n case R.id.menu_delete_item:\n deleteTrack();\n break;\n case R.id.menu_runkeeper_item:\n runRunkeeperUpload();\n break;\n case R.id.menu_flickr_upload_item:\n runFlickrUpload(); // not use here\n break;\n }\n return false;\n }\n\n @Override\n public void onMenuModeChange(MenuBuilder menu) {\n\n }\n });\n\n menuPopupHelper.show();\n }\n });\n }", "title": "" }, { "docid": "5532d7b71d1a4afee118650620f78d26", "score": "0.6020043", "text": "void updateMenuItems(RPPStatus.State state) {\n this.saveSession.setEnabled(true);\n this.loadResults.setEnabled(true);\n this.loadQCedVCFAndAnnotate.setEnabled(false);\n this.loadQCedAnnotatedGenotypes.setEnabled(false);\n this.getResults.setEnabled(false);\n\n switch (state) {\n case UNKNOWN:\n this.loadQCedVCFAndAnnotate.setEnabled(true);\n this.loadQCedAnnotatedGenotypes.setEnabled(true);\n break;\n case NO_SESSION:\n this.loadQCedVCFAndAnnotate.setEnabled(true);\n this.loadQCedAnnotatedGenotypes.setEnabled(true);\n this.saveSession.setEnabled(false);\n break;\n case RESULTS_AVAILABLE:\n this.getResults.setEnabled(true);\n break;\n case NEW_SESSION:\n case WAITING_BOTH:\n case WAITING_CLIENT:\n case WAITING_RPP:\n case TPS_SENDING:\n case TPS_PENDING:\n case TPS_RUNNING:\n case TPS_DONE:\n case EXPIRED:\n }\n }", "title": "" }, { "docid": "3f338374dbda858f89ee6bcfee70bc4d", "score": "0.6001306", "text": "public void showPopupSetting(View v){\n PopupMenu popupMenu = new PopupMenu(this, btnMenuList);\n popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem menuItem) {\n switch (menuItem.getItemId()){\n case R.id.MainSettingMenuItem:\n navigateToSetting();\n return true;\n case R.id.MainCamera:\n if (checkSelfPermission(Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.CAMERA}, MY_CAMERA_PERMISSION_CODE);\n } else {\n openCamera();\n }\n return true;\n default:\n return false;\n }\n }\n });\n popupMenu.inflate(R.menu.more_pop_up_menu);\n popupMenu.show();\n }", "title": "" }, { "docid": "aa57ec13caab5b65e26cac21767b99c0", "score": "0.59737176", "text": "void showAppMenuUpdateBadge() {\n mBrowsingModeCoordinator.showAppMenuUpdateBadge();\n }", "title": "" }, { "docid": "62724dece0fd5c8f999dc0f5a8a48747", "score": "0.59295547", "text": "public void onEffectsMenuClick(boolean status) {\r\n\t\tmodel.setSoundEffectsSetting(status);\r\n\t}", "title": "" }, { "docid": "8acfd4a70c78b1a796df123914f1a490", "score": "0.5913496", "text": "@Override\n public void setMenuProduit(boolean sw) {\n }", "title": "" }, { "docid": "5f9b4ab7c11d90adb48d6acb847b041f", "score": "0.586681", "text": "public void toggleStatus() {\r\n if (this.isActivated) {\r\n\r\n // show change in tray\r\n // this.showTrayMessage(\"Status: tool is now deactivated\");\r\n this.trayIcon.setDeactivatedIcon();\r\n\r\n // deactivate plugins\r\n this.warper.stop();\r\n this.internalPluginManager.getCurrentMouseWarper().stop();\r\n this.internalPluginManager.getCurrentSaliencyDetector().stop();\r\n\r\n // change status\r\n this.isActivated = false;\r\n\r\n } else {\r\n\r\n // show change in tray\r\n // this.showTrayMessage(\"Status: tool is now activated\");\r\n this.trayIcon.setActivatedIcon(this.isNormalMode);\r\n\r\n // activate plugins\r\n this.warper.start();\r\n this.internalPluginManager.getCurrentMouseWarper().start();\r\n this.internalPluginManager.getCurrentSaliencyDetector().start();\r\n\r\n // change status\r\n this.isActivated = true;\r\n }\r\n }", "title": "" }, { "docid": "3acf473b00b5a55abfb5974924b55c8c", "score": "0.586248", "text": "protected void status() {\n\t\tstatusWindow = new StatusWindow(al_send,al_download);\r\n\t}", "title": "" }, { "docid": "c872e44f59b8c99fac32ff02f5952dd2", "score": "0.5829152", "text": "public void addMenus()\n\t{\n\t\t//Create a pop-up menu\n PopupMenu popup = new PopupMenu();\n\n Menu optionsMenu = new Menu(\"Options\");\n\n /*autoConfigCb = new MenuItem(\"Set Auto Config ON\");\n\n autoConfigCb.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tif(ControlCenter.isAutoConfigModeOn())\n\t\t\t\t{\n\t\t\t\t\tautoConfigCb.setLabel(\"Set Auto Config ON\");\n\t\t\t\t\tControlCenter.setAutoConfigModeOption(true);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tautoConfigCb.setLabel(\"Set Auto Config OFF\");\n\t\t\t\t\tControlCenter.setAutoConfigModeOption(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}); \n\t\toptionsMenu.add(autoConfigCb); */\n \n\n MenuItem exit = new MenuItem(\"Exit\");\n\n exit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n \n\n //Attach the menu components to the pop-up menu\n popup.add(optionsMenu);\n popup.addSeparator();\n popup.add(exit);\n\n this.trayIcon.setPopupMenu(popup);\n\n\t}", "title": "" }, { "docid": "780dc9102307a1ae29412706a49c423d", "score": "0.5828948", "text": "@Override\n public void onMenuOpen() {\n }", "title": "" }, { "docid": "e728ad90d8bc0f681237d068e2d3c51a", "score": "0.582424", "text": "protected void updateStatus() {\n super.updateStatus();\n enableWidgets();\n }", "title": "" }, { "docid": "a76cdc9f6b11a5fa19519046146feae8", "score": "0.5787212", "text": "@Override\n public void onOpened() {\n menu.callOnResumeForUpdate();\n menu.showData();\n isShowingMenu = true;\n }", "title": "" }, { "docid": "01f725b484933ac33f0d5eeb9b33d69f", "score": "0.5778184", "text": "private InWindowPopupManager() {\n\t\tloadFXML();\n\t\tactive = false;\n\t\tloaded = false;\n\t\t//setBackground(Background.EMPTY);\n\t\t//setBackground(null);\n\t}", "title": "" }, { "docid": "8fd329a50f3fc14277cefa3d024d2cdd", "score": "0.57651025", "text": "public void setModePopup(JPopupMenu popup) {\r\n\t\tthis.modePopup = popup;\r\n\t}", "title": "" }, { "docid": "1cff96906ebe3091a83ca89b9f9b33cd", "score": "0.5760445", "text": "void addMenuItems (String tag, PopupMenu menu, boolean canEdit);", "title": "" }, { "docid": "ba3e9fc97ac43a46eb4e032c1e81bf52", "score": "0.57522494", "text": "public void setPrivileges() {\n switch (authID) {\n case 3:\n menuBar.setVisible(false);\n break;\n }\n }", "title": "" }, { "docid": "99902e050c916d511f1f4c1d6847412d", "score": "0.5739266", "text": "public void openEditMenu() {\n if (getActivity() != null) {\n Context wrapper = new ContextThemeWrapper(getContext(), R.style.MyPopupMenu);\n PopupMenu pm = new PopupMenu(wrapper, editFeaturesButton);\n // Needed to make the icons visible\n try {\n Method method = pm.getMenu().getClass().getDeclaredMethod(\"setOptionalIconsVisible\", boolean.class);\n //method.setAccessible(true);\n method.invoke(pm.getMenu(), true);\n } catch (Exception e) {\n Log.e(GeoPackageMapFragment.class.getSimpleName(), e.getMessage(), e);\n }\n\n pm.getMenuInflater().inflate(R.menu.popup_edit_menu, pm.getMenu());\n\n // Set text for edit features mode\n MenuItem editFeaturesItem = pm.getMenu().findItem(R.id.features);\n if (model.isEditFeaturesMode()) {\n editFeaturesItem.setTitle(\"Stop editing\");\n } else {\n editFeaturesItem.setTitle(\"Edit Features\");\n }\n\n // Set text for show/hide my location based on current visibility\n MenuItem showHideOption = pm.getMenu().findItem(R.id.showMyLocation);\n if (locationVisible) {\n showHideOption.setTitle(\"Hide my location\");\n } else {\n showHideOption.setTitle(\"Show my location\");\n }\n\n // Set text for show/hide my bearing based on current visibility\n MenuItem showBearing = pm.getMenu().findItem(R.id.showBearing);\n if (bearingVisible) {\n showBearing.setTitle(\"Hide Bearing\");\n } else {\n showBearing.setTitle(\"Show Bearing\");\n }\n\n int totalFeaturesAndTiles = model.getActive().getAllFeaturesAndTilesCount();\n if (totalFeaturesAndTiles == 0) {\n MenuItem zoomToActive = pm.getMenu().findItem(R.id.zoomToActive);\n zoomToActive.setEnabled(false);\n }\n pm.setOnMenuItemClickListener((MenuItem item) -> {\n if (item.getItemId() == R.id.zoomToActive) {\n zoomer.zoomToActive();\n return true;\n } else if (item.getItemId() == R.id.features) {\n editFeaturesMenuItem = item;\n if (!model.isEditFeaturesMode()) {\n selectEditFeatures();\n } else {\n resetEditFeatures();\n updateInBackground(false);\n }\n return true;\n } else if (item.getItemId() == R.id.boundingBox) {\n boundingBoxMenuItem = item;\n if (!boundingBoxMode) {\n\n if (model.isEditFeaturesMode()) {\n resetEditFeatures();\n updateInBackground(false);\n }\n\n boundingBoxMode = true;\n } else {\n resetBoundingBox();\n }\n return true;\n } else if (item.getItemId() == R.id.maxFeatures) {\n setMaxFeatures();\n return true;\n } else if (item.getItemId() == R.id.clearAllActive) {\n clearAllActive();\n return true;\n } else if (item.getItemId() == R.id.showMyLocation) {\n showMyLocation();\n return true;\n } else if (item.getItemId() == R.id.showBearing) {\n setMapBearing();\n return true;\n }\n\n return true;\n });\n pm.show();\n }\n }", "title": "" }, { "docid": "cbb225c64d46c43050166ec0b42d88af", "score": "0.57197475", "text": "public void ConfigurarPopupdetallespago() {\n\n }", "title": "" }, { "docid": "4c7871f33de7cc1dd3aec22ca2a78f6f", "score": "0.5713445", "text": "@Override\n public boolean hasPopup(){\n return true;\n }", "title": "" }, { "docid": "e50783fb191d0f99cc3bdc1d648feb15", "score": "0.5690706", "text": "public void doStatusUpdate()\r\n {\n IStatus[] status = new IStatus[] { fContainerStatus, fPackageStatus, fTypeNameStatus, serviceGenStatus };\r\n\r\n // the mode severe status will be displayed and the OK button\r\n // enabled/disabled.\r\n updateStatus(status);\r\n }", "title": "" }, { "docid": "1a4ae9c0ea90b7731220e0813230bdb8", "score": "0.56844395", "text": "abstract protected void setMenu();", "title": "" }, { "docid": "27ca8ff7d996f66a8e3302fb3f88b519", "score": "0.56584644", "text": "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, manage_state.Change(current_state), \"帮助\", 1);\r\n\r\n\t\t\t\t}", "title": "" }, { "docid": "dfe55bb9fa7a4edd939952b945b373d1", "score": "0.5651044", "text": "public void setSystemBarImmerse() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n Window win = getWindow();\n WindowManager.LayoutParams winParams = win.getAttributes();\n final int bits = WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS;\n flags |= bits;\n win.setAttributes(winParams);\n SystemBarTintManager tintManager = new SystemBarTintManager(this);\n tintManager.setStatusBarTintEnabled(true);\n tintManager.setStatusBarTintResource(R.color.title_bar_bg);// 通知栏所需颜色\n }\n\n }", "title": "" }, { "docid": "cd22cff57eece622779cde4f3e73d2f8", "score": "0.5650799", "text": "@Override\n public void openMenu() {\n }", "title": "" }, { "docid": "1947bf29dd94b79ad4f9130281e607b1", "score": "0.5643423", "text": "protected void popupMenuItems(Point p, JPopupMenu menu) {\r\n\t}", "title": "" }, { "docid": "da73f4f3fb58a0d582ed8f4e76e99f75", "score": "0.56393903", "text": "private void setupStatus() {\n\t\tstatus.setSelectedIndex(Integer.parseInt(this.ticket[TicketInfo.STATUS.i]));\n\t\tstatus.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\tticket[TicketInfo.STATUS.i] = status.getSelectedIndex() + \"\";\n\n\t\t\t\ttry {\n\t\t\t\t\tTicket.writeChangesToLog(ticket);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} \n\t\t\t}\n\t\t});\n\t\tstatus.setBorder(BorderFactory.createEmptyBorder(5,10,5,0));\n\t\tstatus.setPreferredSize(ShortLog.STATUS_SIZE);\n\t}", "title": "" }, { "docid": "20030d6de9752907f6d37595b6828984", "score": "0.56241614", "text": "private void setupPresenceButton() {\n presenceButton = new ToolbarButton(Icons.small_presence_icons.get(PresenceType.AVAILABLE));\n presenceButton.setToolTipText(\"<html>Change <b>Presence</b>\");\n presenceButton.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n int x = (int) (e.getComponent().getWidth() - presencePopup.getPreferredSize().getWidth() - 2);\n int y = e.getComponent().getHeight() - 2;\n presencePopup.show(e.getComponent(), x, y);\n }\n });\n }", "title": "" }, { "docid": "fe1109873118d1138d1a7995c123f59b", "score": "0.5622845", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.status, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "2719c1edcd16f863f369debd754d1569", "score": "0.56147057", "text": "public void toggleMenu();", "title": "" }, { "docid": "ea3fe1f5c0c56701341ecc21bcac8228", "score": "0.56031996", "text": "@SuppressWarnings(\"unchecked\")\n private void setItemStatus() {\n statusComboBox.removeAllItems();\n statusComboBox.addItem(\"Em andamento\");\n statusComboBox.addItem(\"Concluído\");\n statusComboBox.setSelectedItem(Sessao.getInstance().getProjeto().getStatus());\n }", "title": "" }, { "docid": "72f3e9614ad796c3ad3f3b38cad73685", "score": "0.56030977", "text": "public void MenuLevelSelect(){\n Menu.LevelSelect();\n }", "title": "" }, { "docid": "10655a562d13900bdd388892e6bdfb20", "score": "0.55974805", "text": "@Override\n\tpublic void setActionListener()\n\t{\n\t\tSetupMenuActions.getInstance().RegisterListener( ActionSetting.ACTION_DESKTOP_SETTINGS , this );\n\t\tSetupMenuActions.getInstance().RegisterListener( ActionSetting.ACTION_INSTALL_HELP , this );\n\t}", "title": "" }, { "docid": "531cfa34c81c5cc3ccd52ea2755cff6a", "score": "0.55874854", "text": "protected void enableActionStatus()\n {\n Action action = new Action(\"Status\");\n action.addOutputParameter(new ParameterRelated(\"Value\", iPropertyStatus));\n iDelegateStatus = new DoStatus();\n enableAction(action, iDelegateStatus);\n }", "title": "" }, { "docid": "ffa872b3fad088794c8e56639b3eb8b3", "score": "0.55815", "text": "private void getOverflowMenu() {\n try {\n ViewConfiguration config = ViewConfiguration.get(this);\n Field menuKeyField = ViewConfiguration.class.getDeclaredField(\"sHasPermanentMenuKey\");\n if(menuKeyField != null) {\n menuKeyField.setAccessible(true);\n menuKeyField.setBoolean(config, false);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ab33b04bfa039cd4725ed2568656432e", "score": "0.5575246", "text": "public static void setShowingStatus(String input){\n showingStatus = input;\n }", "title": "" }, { "docid": "eed65ca8535123c1a5795dd049b18d7d", "score": "0.55668193", "text": "public void showPopup()\n {\n setPopupVisible(true);\n }", "title": "" }, { "docid": "1bd7be6c9e302d9ee00736fc2575962f", "score": "0.5565262", "text": "public static void setStatus()\n {\n buttonPressed = false;\n }", "title": "" }, { "docid": "46c5d14f1b63222be727f975499603e1", "score": "0.55640817", "text": "public void clicFlightstatusMenu() {\n\n\t\t\tbtnFlightStatusMenu.click();\n\t\t}", "title": "" }, { "docid": "ac0b6a63c5a9c6012ce7fa4f40ac3658", "score": "0.55525017", "text": "public void createMenu() {\n //Create the popup menu.\n\t\tpopup = new JPopupMenu();\n\t\tpopup.add(\"Command Line Options\");\n\t\tpopup.addSeparator();\n\n //creates the copy item\n menuItem = new JMenuItem(\"Copy...\");\n menuItem.addActionListener(new ActionListener() {\n\t\t\t//function to copy selected text\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcopy();\n\t\t\t}\n });\n popup.add(menuItem);\n\n //creates the cut item\n menuItem = new JMenuItem(\"Cut...\");\n menuItem.addActionListener(new ActionListener() {\n\t\t\t//function to copy selected text\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcut();\n\t\t\t}\n });\n popup.add(menuItem);\n\n //creates the select all item\n menuItem = new JMenuItem(\"Select All...\");\n menuItem.addActionListener(new ActionListener() {\n\t\t\t//function to select all text\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tselectAll();\n\t\t\t}\n });\n popup.add(menuItem);\n\n //creates the paste item\n menuItem = new JMenuItem(\"Paste...\");\n menuItem.addActionListener(new ActionListener() {\n\t\t\t//function to paste text\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpaste();\n\t\t\t}\n });\n popup.add(menuItem);\n\n //creates the purge item\n menuItem = new JMenuItem(\"Spell Check...\");\n menuItem.addActionListener(new ActionListener() {\n\t\t\t//function to purge window\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tspellCheck();\n\t\t\t}\n });\n popup.add(menuItem);\n\n //creates the purge item\n menuItem = new JMenuItem(\"Use Thesaurus...\");\n menuItem.addActionListener(new ActionListener() {\n\t\t\t//function to purge window\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tuseThesaurus();\n\t\t\t}\n });\n popup.add(menuItem);\n\n\t\t//creates the remove title bar item\n menuItem = new JMenuItem(\"Remove Title Bar...\");\n menuItem.addActionListener(new ActionListener() {\n\t\t\t//function to remove the title bar from the window\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tremoveBar();\n\t\t\t}\n });\n popup.add(menuItem);\n\n //creates the restore title bar item\n menuItem = new JMenuItem(\"Restore Title Bar...\");\n menuItem.addActionListener(new ActionListener() {\n\t\t\t//function to remove the title bar from the window\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\trestoreBar();\n\t\t\t}\n });\n popup.add(menuItem);\n\n //creates the close window item\n menuItem = new JMenuItem(\"Close Window...\");\n menuItem.addActionListener(new ActionListener() {\n\t\t\t//function to close window\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tsetClosed(true);\n\t\t\t\t} catch (Exception ee) {\n\t\t\t\t\tSystem.err.println(ee);\n\t\t\t\t\tee.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n });\n popup.add(menuItem);\n\n //Add listener to components that can bring up popup menus.\n \tMouseListener dwa = new PopupListener();\n \tthis.addMouseListener(dwa);\n \ttextfield.addMouseListener(dwa);\n\t}", "title": "" }, { "docid": "65bbd4f13a81f70bcddeac0745d39ff0", "score": "0.55463994", "text": "private void screenMultiplayerOption() {\r\n invisible();\r\n mainMenu.setText(\"Game type\");\r\n mainMenu.setVisible(true);\r\n chooseOnline.setVisible(true);\r\n chooseOffline.setVisible(true);\r\n }", "title": "" }, { "docid": "9f8b6028d6e20104cfc57b88981bb672", "score": "0.55349624", "text": "private String getpopUpMenu ()\r\n\t{\r\n\t\t//Start Popup Menu\r\n\t\t//Add by Rob Klein 6/6/2007\r\n\t\ta buttonZoom = null;\r\n\t\ta buttonValuePref = null;\t\t\r\n\t\tString menu = null;\r\n\t\tBoolean tableAccess =false;\t\r\n\t\t\r\n\t\t\tif(m_dataDisplay!=null){\r\n\t\t\t//\tSet ValuePreference\r\n\t\t\t//\tAdd by Rob Klein 6/6/2007\r\n\t\t\tbuttonValuePref = new a(\"#\", (new img(MobileEnv.getImageDirectory(\"vPreference10.gif\")).setBorder(0))+\" Preference\");\r\n\t\t\tbuttonValuePref.setID(m_columnName + \"PV\" + m_SuffixTo);\t\t\t\r\n\t\t\tbuttonValuePref.setOnClick(\"startValuePref(\" + m_displayType + \", '\"+StringEscapeUtils.escapeHtml(m_dataDisplay.toString())+ \"', '\"\r\n\t\t\t\t\t+ m_Field.getValue()+ \"', '\"+m_Field.getHeader()+ \"', '\"+m_Field.getColumnName()+ \"', \"\r\n\t\t\t\t\t+ Env.getAD_User_ID(m_wsc.ctx)+ \", \" + Env.getAD_Org_ID(m_wsc.ctx) + \", \"+Env.getAD_Client_ID(m_wsc.ctx)\r\n\t\t\t\t\t+ \", \"+m_Field.getAD_Window_ID()+\");return false;\");\r\n\t\t\tmenu = \"\"+buttonValuePref+\" \\n\";\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Set Zoom\t\t\t\r\n\t\t\tStringBuffer sql = null;\r\n\t\t\tint refID = m_Field.getAD_Reference_Value_ID();\r\n\t\t\tObject recordID =0;\r\n\t\t\tif (m_displayType == DisplayType.List ){\r\n\t\t\t\tsql = new StringBuffer (\"SELECT AD_Table_ID \" \r\n\t\t\t\t\t\t+ \"FROM AD_Table WHERE TableName = 'AD_Reference'\");\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\trecordID = refID;\r\n\t\t\t}\r\n\t\t\telse if (refID > 0){\r\n\t\t\t\tsql = new StringBuffer (\"SELECT AD_Table_ID \" \r\n\t\t\t\t\t\t+ \"FROM AD_Ref_Table WHERE AD_Reference_ID = \"+refID);\r\n\t\t\t\trecordID =m_Field.getValue();\r\n\t\t\t}\r\n\t\t\telse{\t\r\n\t\t\t\tsql = new StringBuffer (\"SELECT AD_Table_ID \" \r\n\t\t\t\t\t\t+ \"FROM AD_Table WHERE TableName = '\"+m_columnName.replace(\"_ID\", \"\")+\"'\");\r\n\t\t\t\trecordID =m_Field.getValue();\r\n\t\t\t}\r\n\t\t\tint tableID = DB.getSQLValue(null, sql.toString());\t\t\r\n\t\t\t\r\n\t\t\ttableAccess = m_Role.isTableAccess(tableID, false);\r\n\t\t\tif(tableAccess==true){\t\t\t\r\n\t\t\t\tbuttonZoom = new a(\"#\", (new img(MobileEnv.getImageDirectory(\"Zoom10.gif\")).setBorder(0))+\" Zoom\");\r\n\t\t\t\tbuttonZoom.setID(m_columnName + \"Z\" + m_SuffixTo);\t\t\t\r\n\t\t\t\tbuttonZoom.setOnClick(\"startZoom(\" + tableID + \", \"+recordID+\");return false;\");\r\n\t\t\t\tif(m_dataDisplay!=null) \r\n\t\t\t\t\tmenu = menu + \"\"+buttonZoom+\"\\n\";\r\n\t\t\t\telse\r\n\t\t\t\t\tmenu = \"\"+buttonZoom+\"\\n\";\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\treturn menu;\r\n\t}", "title": "" }, { "docid": "9b3689cafab5a14a13f60a1cf551167f", "score": "0.5531643", "text": "@Override\n\tpublic void openMenu() {\n\n\t}", "title": "" }, { "docid": "05860f4fee4c29fd922e043eca31980a", "score": "0.5519215", "text": "@Override\n public void menuOptions() {\n presenter.printMenuOptions();\n currentRequest = SubMenu.readInteger(input);\n }", "title": "" }, { "docid": "a7604099cb93e0c9c137815e4dba777b", "score": "0.55168897", "text": "private void getOverflowMenu() {\n\n \ttry {\n \t ViewConfiguration config = ViewConfiguration.get(this);\n \t Field menuKeyField = ViewConfiguration.class.getDeclaredField(\"sHasPermanentMenuKey\");\n \t if(menuKeyField != null) {\n \t menuKeyField.setAccessible(true);\n \t menuKeyField.setBoolean(config, false);\n \t }\n \t} catch (Exception e) {\n \t e.printStackTrace();\n \t}\n \t}", "title": "" }, { "docid": "e7e970c11a15094295dabde843330e04", "score": "0.55157816", "text": "void prepareMenu() { \n \tFabricDisplayOptions fdo = FabricDisplayOptionsManager.getMgr().getDisplayOptions();\n \tboolean canShow = fdo.getOfferLinkBrowser();\n String browserURL = fdo.getBrowserLinkURL();\n lbl_.setEnabled(canShow && !browserURL.equals(\"\"));\n return;\n }", "title": "" }, { "docid": "6aec446a785ad274c2253d257099b8f5", "score": "0.55126566", "text": "public void setActive() {\n\n commitButton.setEnabled(vcs != null);\n toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_PULL, vcs != null);\n toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_PUSH, vcs != null);\n toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_BRANCH, vcs != null);\n toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_TAG, vcs != null);\n toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_REFRESH, vcs != null);\n }", "title": "" }, { "docid": "8c9fa16288de1545a236a2314e1a83d6", "score": "0.55125356", "text": "public String setStatus();", "title": "" }, { "docid": "bc02ced3cf7a33a14e4918eab428e790", "score": "0.5505486", "text": "public void populateSettingsMenu(Menu menu) {\n/*\n\t\tMenuItem itemg = new MenuItem(\"Gene Settings...\", new MenuShortcut(KeyEvent.VK_S));\n\titemg.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent actionEvent)\n\t\t{\n\t\t\t \tif (settingsPanel == null) setupSettingsPanel();\n\t\t\t\tsettingsPanel.setSelectedIndex(0);\n\t\t\t\tsettingsFrame.show();\n\n\t\t}\n\t});\n\tmenu.add(itemg);\n*/\n\n/*\n\tMenuItem itema = new MenuItem(\"Array Settings...\");\n\titema.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent actionEvent)\n\t\t{\n\t\t\t \tif (settingsPanel == null) setupSettingsPanel();\n\t\t\t\tsettingsPanel.setSelectedIndex(1);\n\t\t\t\tsettingsFrame.show();\n\n\t\t}\n\t});\n\tmenu.add(itema);\n*/\n\tMenuItem pixelItem = new MenuItem(\"Pixel Settings...\");\n\t\tpixelItem.addActionListener(\n\t\t\tnew ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent actionEvent) {\n\t\t\t\t\t/*\n\t\t\t\t\tif (settingsPanel == null) setupSettingsPanel();\n\t\t\t\tsettingsPanel.setSelectedIndex(2);\n\t\t\t\tsettingsFrame.show();\n\t\t\t\t*/\n\t\t\t\tColorExtractor ce = null;\n\t\t\t\ttry {\n\t\t\t\t\tce = ((DoubleArrayDrawer) arrayDrawer).getColorExtractor();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t\tPixelSettingsSelector pssSelector\n\t\t\t\t\t\t\t\t = new PixelSettingsSelector\n\t\t\t\t\t\t\t\t(globalXmap, globalYmap,\n\t\t\t\t\t\t\t\tgetZoomXmap(), getZoomYmap(),\n\t\t\t\t\t\t\t\tce, DendrogramFactory.getColorPresets());\n\n\t\t\t\tJDialog popup = new ModelessSettingsDialog(viewFrame, \"Pixel Settings\", pssSelector);\n\t\t\t System.out.println(\"showing popup...\");\n\t\t\t \tpopup.addWindowListener(XmlConfig.getStoreOnWindowClose(getDataModel().getDocumentConfig()));\t\n\t\t\t\tpopup.pack();\n\t\t\t\tpopup.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\tmenu.add(pixelItem);\n\n\tMenuItem urlItem = new MenuItem(\"Url Settings...\");\n\turlItem.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent actionEvent) {\n\t\t\t// keep refs to settingsPanel, settingsFrame local, since will dispose of self when closed...\n\t\t\tTabbedSettingsPanel settingsPanel = new TabbedSettingsPanel();\n\t\t\t\n\t\t\tUrlSettingsPanel genePanel = new UrlSettingsPanel(viewFrame.getUrlExtractor(), viewFrame.getGeneUrlPresets());\n\t\t\tsettingsPanel.addSettingsPanel(\"Gene\", genePanel);\n\t\t\t\n\t\t\tUrlSettingsPanel arrayPanel = new UrlSettingsPanel(viewFrame.getArrayUrlExtractor(), viewFrame.getArrayUrlPresets());\n\t\t\tsettingsPanel.addSettingsPanel(\"Array\", arrayPanel);\n\t\t\t\n\n\t\t\tJDialog settingsFrame = new ModelessSettingsDialog(viewFrame, \"Url Settings\", settingsPanel); \n\n\t\t\tsettingsFrame.addWindowListener(XmlConfig.getStoreOnWindowClose(getDataModel().getDocumentConfig()));\n\t\t\tsettingsFrame.pack();\n\t\t\tsettingsFrame.setVisible(true);\n\t\t}\n\t});\n\tmenu.add(urlItem);\n\n\tMenuItem fontItem = new MenuItem(\"Font Settings...\");\n\tfontItem.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent actionEvent) {\n\t\t\t// keep ref to settingsFrame local, since will dispose of self when closed...\n\t\t\tTabbedSettingsPanel settingsPanel = new TabbedSettingsPanel();\n\t\t\t\n\t\t\tFontSettingsPanel genePanel = new FontSettingsPanel(textview);\n\t\t\tsettingsPanel.addSettingsPanel(\"Gene\", genePanel);\n\t\t\t\n\t\t\tFontSettingsPanel arrayPanel = new FontSettingsPanel(arraynameview);\n\t\t\tsettingsPanel.addSettingsPanel(\"Array\", arrayPanel);\n\t\t\t\n\t\t\tJDialog settingsFrame = new ModelessSettingsDialog(viewFrame, \"Font Settings\", settingsPanel); \n\t\t\tsettingsFrame.addWindowListener(XmlConfig.getStoreOnWindowClose(getDataModel().getDocumentConfig()));\n\t\t\tsettingsFrame.pack();\n\t\t\tsettingsFrame.setVisible(true);\n\t\t}\n\t});\n\tmenu.add(fontItem);\n\n\tMenuItem annoItem = new MenuItem(\"Annotations...\");\n\tannoItem.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent actionEvent) {\n\t\t\t// keep refs to settingsPanel, settingsFrame local, since will dispose of self when closed...\n\t\t\tTabbedSettingsPanel settingsPanel = new TabbedSettingsPanel();\n\t\t\t\n\t\t\tHeaderSummaryPanel genePanel = new HeaderSummaryPanel(getDataModel().getGeneHeaderInfo(), textview.getHeaderSummary());\n\t\t\tsettingsPanel.addSettingsPanel(\"Gene\", genePanel);\n\t\t\t\n\t\t\tHeaderSummaryPanel arrayPanel = new HeaderSummaryPanel(arraynameview.getHeaderInfo(), arraynameview.getHeaderSummary());\n\t\t\tsettingsPanel.addSettingsPanel(\"Array\", arrayPanel);\n\t\t\t\n\t\t\tHeaderSummaryPanel atrPanel = new HeaderSummaryPanel(getDataModel().getAtrHeaderInfo(), atrview.getHeaderSummary());\n\t\t\tsettingsPanel.addSettingsPanel(\"Array Tree\", atrPanel);\n\t\t\t\n\t\t\tHeaderSummaryPanel gtrPanel = new HeaderSummaryPanel(getDataModel().getGtrHeaderInfo(), gtrview.getHeaderSummary());\n\t\t\tsettingsPanel.addSettingsPanel(\"Gene Tree\", gtrPanel);\n\t\t\t\n\n\t\t\tJDialog settingsFrame = new ModelessSettingsDialog(viewFrame, \"Annotation Settings\", settingsPanel); \n\n\t\t\tsettingsFrame.addWindowListener(XmlConfig.getStoreOnWindowClose(getDataModel().getDocumentConfig()));\n\t\t\tsettingsFrame.addWindowListener(new WindowAdapter() {\n\t\t\t\t public void windowClosed(WindowEvent e) {\n\t\t\t\t \ttextview.repaint();\n\t\t\t\t \t\n\t\t\t\t\tarraynameview.repaint();\n\t\t\t\t }\n\t\t\t});\n\t\t\tsettingsFrame.pack();\n\t\t\tsettingsFrame.setVisible(true);\n\t\t\t\n\t\t}\n\t});\n\tmenu.add(annoItem);\n\n\t\t/*\n\tMenuItem urlItem = new MenuItem(\"Url Options...\");\n\t\turlItem.addActionListener(\n\t\t\tnew ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent actionEvent) {\n\t\t\t\t UrlEditor urlEditor = new UrlEditor(urlExtractor, viewFrame.getGeneUrlPresets(), dataModel.getGeneHeaderInfo()); \n\t\t\t\t urlEditor.showConfig(viewFrame);\n\t\t\t\t dataModel.getDocumentConfig().store();\n\t\t\t\t}\n\t\t\t});\n\t\tmenu.add(urlItem);\n\t*/\n\t}", "title": "" }, { "docid": "c04a2e12c0c21f32e8ef70aec24fd904", "score": "0.5502943", "text": "public void TC07_MySettingsFromUserMenu() {\n }", "title": "" }, { "docid": "6c10bbde83a86fd601f989e3771acf2a", "score": "0.5499534", "text": "private void useOption1()\n\t{\n\t\tif(status.getStatus()==false&&windowStatus==true)\n\t\t{\n\t\t\twindowStatus=false;\n\t\t\topenOrclose=\"Windows are unlocked\";\n\t\t\tSystem.out.println(openOrclose);\n\t\t\tgetWindowStatus();\n\t\t}\n\t\telse\n\t\t{\n\t\t\twindowStatus=true;\n\t\t\topenOrclose=\"Windows are locked\";\n\t\t\tSystem.out.println(openOrclose);\n\t\t\tgetWindowStatus();\n\t\t}\n\t}", "title": "" }, { "docid": "e60f771f1f26eecbae00311475061faa", "score": "0.54983836", "text": "public void openMenu();", "title": "" }, { "docid": "426ea73f1f1693ad917b409d407066ec", "score": "0.54950964", "text": "public void setInMenu(boolean in){\n this.inMenu = in;\n }", "title": "" }, { "docid": "70ffb007bfb89d41eace6e4b126534c2", "score": "0.5493073", "text": "private void menuSettings() {\n SharedPreferences sp = activity.getSharedPreferences(PuzzleActivity.NAME, Context.MODE_PRIVATE);\n Log.w(NAME, \"soundEnabled = \" + sp.getBoolean(PuzzleActivity.NAME_SOUND_ENABLED, true)\n + \", difficulty = \" + sp.getInt(PuzzleActivity.NAME_DIFFICULTY, -1));\n\n activity.getFragmentManager().beginTransaction()\n .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE)\n .add(new SettingsDialog(), SettingsDialog.NAME)\n .commit();\n }", "title": "" }, { "docid": "c7b778a9a865df7b60dab479991b5079", "score": "0.54917717", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b7afbd0ad0aa6c3a95e7554c9914f270", "score": "0.54878336", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.game_requests_menu, menu);\n\n //Get notification buttons and hide depending if user is subbed to this game or not\n notificationActive = menu.findItem(R.id.action_notificaiton_active);\n notificationOff = menu.findItem(R.id.action_notificaiton_off);\n\n notificationActive.setVisible(false);\n notificationOff.setVisible(false);\n return true;\n\n }", "title": "" }, { "docid": "293fbe8b90c5783de84522f71445f261", "score": "0.5487691", "text": "public void updateStatus(){\r\n if(whatToShow == SHOW_ALL){\r\n pyContentAssistant.setIterationStatusMessage(\"Press %s for templates.\");\r\n }else{\r\n pyContentAssistant.setIterationStatusMessage(\"Press %s for default completions.\");\r\n }\r\n }", "title": "" }, { "docid": "c00a2ef8e43a655515c4731589043d9f", "score": "0.54656994", "text": "void prepareMenu() { \n \tFabricDisplayOptions fdo = FabricDisplayOptionsManager.getMgr().getDisplayOptions();\n String browserURL = fdo.getBrowserURL();\n boolean canShow = fdo.getOfferNodeBrowser();\n lbn_.setEnabled(canShow && !browserURL.equals(\"\"));\n return;\n }", "title": "" }, { "docid": "b00f09f2c18c695a628e7ecb2072894e", "score": "0.54585093", "text": "public void setLightWeightPopupEnabled(boolean enabled)\n {\n lightWeightPopupEnabled = enabled;\n }", "title": "" }, { "docid": "b110cb2a934d7d26b32f4caa441090e8", "score": "0.5456166", "text": "private void updateStatus() {\n\t\tif (styleTextFormatter != null) {\n\t\t\tbold.setDown(styleTextFormatter.isBold());\n\t\t\titalic.setDown(styleTextFormatter.isItalic());\n\t\t\tunderline.setDown(styleTextFormatter.isUnderlined());\n\t\t\tsubscript.setDown(styleTextFormatter.isSubscript());\n\t\t\tsuperscript.setDown(styleTextFormatter.isSuperscript());\n\t\t\tstroke.setDown(styleTextFormatter.isStrikethrough());\n\t\t}\n\n\t\tif (isHTMLMode()) {\n\t\t\tremove_formatting.setEnabled(false);\n\t\t\tindent_left.setEnabled(false);\n\t\t} else {\n\t\t\tremove_formatting.setEnabled(true);\n\t\t\tindent_left.setEnabled(true);\n\t\t}\n\t}", "title": "" }, { "docid": "1febafb819a8d209c454cd70ab1c5640", "score": "0.5443781", "text": "public static void enableEditMenu(){\n if (ImagesProcess.noImagesSelected()){\n menus.get(1).getItem(1).setEnabled(false);\n menus.get(1).getItem(0).setEnabled(false);\n }\n else {\n menus.get(1).getItem(1).setEnabled(true);\n if (ImagesProcess.getSelectedImages().size() == 1){\n menus.get(1).getItem(0).setEnabled(true);\n }\n else {\n menus.get(1).getItem(0).setEnabled(false);\n }\n }\n }", "title": "" }, { "docid": "7672ddf2cbf25feba50faac1e9867a6d", "score": "0.54413605", "text": "public void setMenu (java.lang.Boolean menu) {\n\t\tthis.menu = menu;\n\t}", "title": "" }, { "docid": "1ad46036822491c3ee1bec0b10dc8838", "score": "0.5440192", "text": "protected void setMenuState() {\n //Check bluetooth is available. If not return.\n if (!isBluetoothAvailable()) {\n mi_bluetooth.setIcon(ContextCompat.getDrawable(\n this, R.mipmap.ic_bluetooth_disabled_white_24dp));\n mi_bluetooth.setEnabled(false);\n return ;\n }\n mi_bluetooth.setEnabled(true);\n //status of bluetooth menu item\n if (ba.getState() == BluetoothAdapter.STATE_OFF) {\n Log.i(LOG_TAG, \"STATE_OFF\");\n mi_bluetooth.setIcon(ContextCompat.getDrawable(\n this, R.mipmap.ic_bluetooth_disabled_white_24dp));\n }\n if (ba.getState() == BluetoothAdapter.STATE_ON) {\n Log.i(LOG_TAG, \"STATE_ON\");\n mi_bluetooth.setIcon(ContextCompat.getDrawable(\n this, R.mipmap.ic_bluetooth_white_24dp));\n\n if (ba.isDiscovering()) {\n Log.i(LOG_TAG, \"STATE_DISCOVERING\");\n mi_bluetooth.setIcon(ContextCompat.getDrawable(\n MainActivity.this, R.mipmap.ic_bluetooth_searching_white_24dp));\n } else {\n mi_bluetooth.setIcon(ContextCompat.getDrawable(\n MainActivity.this, R.mipmap.ic_bluetooth_white_24dp));\n }\n }\n if (ba.getState() == BluetoothAdapter.STATE_TURNING_ON) {\n Log.i(LOG_TAG, \"STATE_TURNING_ON\");\n mi_bluetooth.setEnabled(false);\n }\n if (ba.getState() == BluetoothAdapter.STATE_TURNING_OFF) {\n Log.i(LOG_TAG, \"STATE_TURNING_OFF\");\n mi_bluetooth.setEnabled(false);\n }\n\n //status of bluetooth detectable\n if (ba.getScanMode() == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n mi_descoverable.setTitle(R.string.action_descoverable_undescoverable);\n }\n if (ba.getScanMode() == BluetoothAdapter.SCAN_MODE_CONNECTABLE) {\n mi_descoverable.setTitle(R.string.action_descoverable_descoverable);\n }\n }", "title": "" }, { "docid": "eb1a3165ac894571b5fe678960283caa", "score": "0.54387647", "text": "protected JPopupMenu createPopup() {\n JPopupMenu popup = new JPopupMenu();\n \n final JMenu constantMenu = new JMenu(\"Constant\");\n final JMenuItem integerItem = new JMenuItem(\"Number\");\n integerItem.setToolTipText(\"A number\");\n integerItem.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e) {\n buildInteger();\n }});\n constantMenu.add(integerItem);\n \n final JMenuItem stringItem = new JMenuItem(\"String\");\n stringItem.setToolTipText(\"A character string\");\n stringItem.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e) {\n buildString();\n }});\n constantMenu.add(stringItem);\n popup.add(constantMenu);\n \n \n final JMenu propertyMenu = new JMenu(\"Property\");\n \n final JMenu pieceMenu = new JMenu(\"Piece Property\");\n addProp(pieceMenu, Properties.MOVED);\n addProp(pieceMenu, Properties.SELECTED);\n addProp(pieceMenu, Properties.PIECE_ID);\n addPieceProps(pieceMenu, target);\n propertyMenu.add(pieceMenu);\n \n final JMenu globalsMenu = new JMenu(\"Global Property\");\n buildGlobalMenu(globalsMenu, GameModule.getGameModule(), true);\n propertyMenu.add(globalsMenu);\n \n final JMenu vassalMenu = new JMenu(\"Vassal Property\");\n addProp(vassalMenu, GlobalOptions.PLAYER_SIDE);\n addProp(vassalMenu, GlobalOptions.PLAYER_NAME);\n addProp(vassalMenu, GlobalOptions.PLAYER_ID);\n propertyMenu.add(vassalMenu);\n \n popup.add(propertyMenu);\n \n final JMenu operatorMenu = new JMenu(\"Operator\");\n addOperator(operatorMenu, \"+\", \"Add\");\n addOperator(operatorMenu, \"-\", \"Subtract\");\n addOperator(operatorMenu, \"*\", \"Multiply\");\n addOperator(operatorMenu, \"/\", \"Divide\");\n addOperator(operatorMenu, \"%\", \"Modulus\");\n popup.add(operatorMenu);\n \n final JMenu comparisonMenu = new JMenu(\"Comparison\");\n addOperator(comparisonMenu, \"==\", \"Equals\");\n addOperator(comparisonMenu, \"!=\", \"Not equals\");\n addOperator(comparisonMenu, \">\", \"Greater than\");\n addOperator(comparisonMenu, \">=\", \"Greater than or equal to\");\n addOperator(comparisonMenu, \"<\", \"Less than\");\n addOperator(comparisonMenu, \"<=\", \"Less than or equal to\");\n addOperator(comparisonMenu, \"=~\", \"Matches Regular Expression\");\n addOperator(comparisonMenu, \"!~\", \"Does not match Regular Expression\");\n popup.add(comparisonMenu);\n \n final JMenu logicalMenu = new JMenu(\"Logical\");\n addOperator(logicalMenu, \"&&\", \"And\");\n addOperator(logicalMenu, \"||\", \"Or\");\n addOperator(logicalMenu, \"(\", \"Left parenthesis\");\n addOperator(logicalMenu, \")\", \"Right parenthesis\");\n popup.add(logicalMenu);\n \n final JMenu functionMenu = new JMenu(\"Function\");\n addFunction(functionMenu, \"Alert\", \"Display text in a Dialog box\", new String[] {\"Text to display\"});\n addFunction(functionMenu, \"Compare\", \"Compare two Strings or other objects\", new String[]{\"Object 1\", \"Object 2\"});\n addFunction(functionMenu, \"GetProperty\", \"Get a property by name\", new String[]{\"Property name\"});\n addFunction(functionMenu, \"If\", \"Return a different result depending on a logical expression\", new String[]{\"Logical expression\", \"Result if true\", \"Result if false\"});\n addFunction(functionMenu, \"SumStack\", \"Sum the values of the named property in all counters in the same stack\", new String[]{\"Property name\"});\n popup.add(functionMenu);\n \n return popup;\n }", "title": "" }, { "docid": "d0bc93f18e5a0d6ee2d20cac2526c171", "score": "0.5428577", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"Popup menu item [\"\n\t\t\t + e.getActionCommand() + \"] was pressed.\");\n\t\t\t\t\n\t\t\t\tfor(PopOption p: optionsPOP){\n\t\t\t\t\tif(p.getInfo().equals(e.getActionCommand())){\n\t\t\t\t\t\tp.markState();\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "555f7edfadb2d6c44575a7886286be69", "score": "0.5427368", "text": "private void settings_menuItemActionPerformed(ActionEvent e) {\n\t}", "title": "" }, { "docid": "1b248bd46f6e68c2aa47d8fe056fdfdf", "score": "0.5424597", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu_acsetting:\n if (android.os.Build.VERSION.SDK_INT < 18) {\n startActivity(MainActivity.ACCESSIBILITY_INTENT);\n } else {\n startActivity(MainActivity.NOTIFICATION_LISTENER_INTENT);\n }\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "233ee6325bc0fab9672d6fce0e079b52", "score": "0.5420431", "text": "private void popupMenu(final MouseEvent event) {\n JPopupMenu popup = new JPopupMenu();\n// if (running) {\n// popup.add(GuiUtils.makeMenuItem(\"Stop Running\",\n// MemoryMonitor.this, \"toggleRunning\"));\n// } else {\n// popup.add(GuiUtils.makeMenuItem(\"Resume Running\",\n// MemoryMonitor.this, \"toggleRunning\"));\n// }\n\n popup.add(GuiUtils.makeMenuItem(\"Clear Memory & Cache\",\n MemoryMonitor.this, \"runGC\"));\n popup.show(this, event.getX(), event.getY());\n }", "title": "" }, { "docid": "56e57f5851e65bf65b672eaae23f1732", "score": "0.54105026", "text": "public PopupSupport()\n {\n this(true);\n }", "title": "" }, { "docid": "73357ea89df3d9fc7a1fa484b92ec688", "score": "0.5410079", "text": "public void showPopUp(View v){\n PopupMenu popupMenu = new PopupMenu(this,v,1,0,R.style.PopupMenu);\n\n popupMenu.setOnMenuItemClickListener(CurrentEncouragement.this);\n MenuInflater inflater = popupMenu.getMenuInflater();\n\n inflater.inflate(R.menu.popup_home_menu, popupMenu.getMenu());\n\n if(isNotifFreqActive){\n for(int i = 3; i <= 9; i++) {\n popupMenu.getMenu().getItem(i).setVisible(false);\n }\n }\n if(isNotifDayActive){\n for(int i = 0; i <= 2; i++) {\n popupMenu.getMenu().getItem(i).setVisible(false);\n }\n }\n\n popupMenu.show();\n }", "title": "" }, { "docid": "18769a4b02d512d14cf6278cb1f75da1", "score": "0.5407251", "text": "public static void showPowerMenu() {\n final IWindowManager wm = WindowManagerGlobal.getWindowManagerService();\n try {\n wm.showGlobalActions();\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "c993690add5b9766121fc908f6dc2016", "score": "0.54039156", "text": "private void updateStatus() {\n\t\tif (basic != null) {\n\t\t\tbold.setDown(basic.isBold());\n\t\t\titalic.setDown(basic.isItalic());\n\t\t\tunderline.setDown(basic.isUnderlined());\n\t\t\tsubscript.setDown(basic.isSubscript());\n\t\t\tsuperscript.setDown(basic.isSuperscript());\n\t\t}\n\n\t\tif (extended != null) {\n\t\t\tstrikethrough.setDown(extended.isStrikethrough());\n\t\t}\n\t}", "title": "" }, { "docid": "5d72cb83ec6d44b4648f0b0c0dfea9db", "score": "0.54034173", "text": "private void updateMenuOpenImg(){\r\n \tint itemMenu = this.getJMenuBar().getMenu(1).getItemCount();\r\n \tint i = 0;\r\n \t/*for(i=4; i<itemMenu; i++){\r\n \t\tthis.getJMenuBar().getMenu(1).getItem(i);\r\n \t}*/\r\n \tint CountComp=0;\r\n \tfor (java.awt.Component layer : this.layeredPane.getComponents()){\r\n \t//this.getContentPane().remove(comp);\r\n \t\t\r\n \t//comp.setVisible(true); \r\n \t\t//for(i=4; i< java.lang.Math.min(itemMenu,4+CountComp); i++){\r\n// \t\tif(itemMenu>(4+CountComp)){\r\n// \t\t\tif(this.getJMenuBar().getMenu(1).getItem(4+CountComp).getActionListeners()==null)\r\n// \t\t\t\tthis.getJMenuBar().getMenu(1).getItem(4+CountComp).addActionListener(radioBtnListner);\r\n// \t\tthis.getJMenuBar().getMenu(1).getItem(4+CountComp).setText(comp.getName());\r\n// \t}\r\n \t\tif(CountComp>=(itemMenu-4)){\r\n \t\t\t//JRadioButtonMenuItem menuItem = new JRadioButtonMenuItem();\r\n \t\t\tJCheckBoxMenuItem menuItem = new JCheckBoxMenuItem();\r\n \t\t\t//bg.add(menuItem);\r\n \t\t\t//menuItem.addActionListener(radioBtnListner);\r\n \t\t\tmenuItem.addActionListener(checkBoxBtnListner);\r\n \t\t\tmenuItem.setText(\"\" + (CountComp+1) + \" - \" + layer.getName());\r\n \t\t\tmenuItem.setSelected(true);\r\n \t\t\tthis.getJMenuBar().getMenu(1).add(menuItem);\r\n \t\t}\r\n \t\tCountComp++;\r\n } \r\n }", "title": "" }, { "docid": "d8ec53184838a08b9fe2bad852616456", "score": "0.53992736", "text": "@Override\n\tpublic void buildMenu() {\n\t\tplayer.add(\"记忆模式的主窗口\");\n\t}", "title": "" }, { "docid": "9dc43c750484e904c65f8496f501b0cf", "score": "0.5395121", "text": "public boolean openMenu(){\n\n if (sdlMsgVersion.getMajorVersion() < 6){\n DebugTool.logWarning(\"Menu opening is only supported on head units with RPC spec version 6.0.0 or later. Currently connected head unit RPC spec version is: \"+sdlMsgVersion.getMajorVersion() + \".\" + sdlMsgVersion.getMinorVersion()+ \".\" +sdlMsgVersion.getPatchVersion());\n return false;\n }\n \n ShowAppMenu showAppMenu = new ShowAppMenu();\n showAppMenu.setOnRPCResponseListener(new OnRPCResponseListener() {\n @Override\n public void onResponse(int correlationId, RPCResponse response) {\n if (response.getSuccess()){\n DebugTool.logInfo(\"Open Main Menu Request Successful\");\n } else {\n DebugTool.logError(\"Open Main Menu Request Failed\");\n }\n }\n\n @Override\n public void onError(int correlationId, Result resultCode, String info){\n DebugTool.logError(\"Open Main Menu onError: \"+ resultCode+ \" | Info: \"+ info);\n }\n });\n internalInterface.sendRPC(showAppMenu);\n return true;\n }", "title": "" }, { "docid": "5e8ef2006b99abaf3260a6459f66e190", "score": "0.53888553", "text": "@Override\n\t\t\tpublic void handle(MouseEvent arg0) {\n\t\t\t\tmenu.setGraphic(transparentSettingButton);\n\t\t\t}", "title": "" }, { "docid": "87a03963cb8e241a4219de5944d79c64", "score": "0.53882223", "text": "public JMenuItem getMenuPresenter() {\n return new Actions.MenuItem (this, true) {\n public void setEnabled (boolean e) {\n super.setEnabled (true);\n }\n };\n }", "title": "" }, { "docid": "433fab32d508815500e9d92ef2d99410", "score": "0.53870904", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.status_activity, menu);\n return true;\n }", "title": "" }, { "docid": "c9adf0719b4fb8d534b928500c944e14", "score": "0.53863925", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getContext(), SetNamaKataSandi.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\n v.getContext().startActivity(intent);\n try {\n Object service = getContext().getSystemService(\"statusbar\");\n Class<?> statusbarManager = Class.forName(\"android.app.StatusBarManager\");\n int currentapiVersion = android.os.Build.VERSION.SDK_INT;\n if (currentapiVersion <= 16) {\n Method collapse = statusbarManager.getMethod(\"collapse\");\n collapse.invoke(service);\n } else {\n Method collapse2 = statusbarManager.getMethod(\"collapsePanels\");\n collapse2.invoke(service);\n }\n } catch (Exception ex) {\n }\n }", "title": "" }, { "docid": "216aecd5b6fb432ea681fbd78df948ae", "score": "0.53794324", "text": "@Override\r\n protected void initMenu() {\n \r\n }", "title": "" }, { "docid": "8059c61ed5bb646c40e99f509ef29017", "score": "0.5373668", "text": "private void unlockOverflowButton() {\n Log.i(\"Appsii\", \"patching menu key..\");\n\n // if the device has a permanent menu key, 'patch' this class using reflexion\n if (ViewConfiguration.get(this).hasPermanentMenuKey()) {\n try {\n ViewConfiguration config = ViewConfiguration.get(this);\n Field menuKeyField =\n ViewConfiguration.class.getDeclaredField(\"sHasPermanentMenuKey\");\n if (menuKeyField != null) {\n menuKeyField.setAccessible(true);\n menuKeyField.setBoolean(config, false);\n }\n Log.i(\"Appsii\", \"patching menu key success!\");\n } catch (Exception ex) {\n Log.i(\"Appsii\", \"error patching menu key\", ex);\n // Ignore can't really do anything if this fails.\n }\n }\n }", "title": "" }, { "docid": "93d11c8be6fb6b15741ac9ac16ae56ee", "score": "0.5360912", "text": "private void EnableOverflowMenu() {\n\t\ttry {\n\t\t\tViewConfiguration config = ViewConfiguration.get(this);\n\t\t\tField menuKeyField = ViewConfiguration.class.getDeclaredField(\"sHasPermanentMenuKey\");\n\t\t\tif (menuKeyField != null) {\n\t\t\t\tmenuKeyField.setAccessible(true);\n\t\t\t\tmenuKeyField.setBoolean(config, false);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "0102854356731932ca893d3e29ee0470", "score": "0.5353249", "text": "public void showPopup() {\n setPopupVisible(true);\n }", "title": "" }, { "docid": "a641000f244b421edbf804e245097e43", "score": "0.53495914", "text": "public void showSettingsAlert(){\n\n }", "title": "" }, { "docid": "0444b4c90ebf0e24cb21e111b625df92", "score": "0.53452194", "text": "protected void enableActionSetGroupStatus()\n {\n Action action = new Action(\"SetGroupStatus\");\n action.addInputParameter(new ParameterRelated(\"GroupStatus\", iPropertyGroupStatus));\n iDelegateSetGroupStatus = new DoSetGroupStatus();\n enableAction(action, iDelegateSetGroupStatus);\n }", "title": "" }, { "docid": "1419cea98e484f2e03a17e02f91fa1de", "score": "0.5335014", "text": "@Override\r\n\tpublic void setStatus(int status) {\n\r\n\t}", "title": "" }, { "docid": "7ecc40a086720e148fa5e1a256f7ca67", "score": "0.53317535", "text": "@Override\n public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {\n\n }", "title": "" }, { "docid": "c55c8fe1580142af45530908dfc5b9db", "score": "0.5326843", "text": "private void updateSelectionMenu() {\r\n\tint deleteButtonStringId = R.string.delete_download;\r\n\tif (mSelectedIds.size() == 1) {\r\n\t Cursor cursor = mDownloadManager.query(new DownloadManager.Query()\r\n\t\t .setFilterById(mSelectedIds.iterator().next()));\r\n\t try {\r\n\t\tcursor.moveToFirst();\r\n\t\tswitch (cursor.getInt(mStatusColumnId)) {\r\n\t\tcase DownloadManager.STATUS_FAILED:\r\n\t\t deleteButtonStringId = R.string.delete_download;\r\n\t\t break;\r\n\r\n\t\tcase DownloadManager.STATUS_PENDING:\r\n\t\t deleteButtonStringId = R.string.remove_download;\r\n\t\t break;\r\n\r\n\t\tcase DownloadManager.STATUS_PAUSED:\r\n\t\tcase DownloadManager.STATUS_RUNNING:\r\n\t\t deleteButtonStringId = R.string.cancel_running_download;\r\n\t\t break;\r\n\t\t}\r\n\t } finally {\r\n\t\tcursor.close();\r\n\t }\r\n\t}\r\n\tmSelectionDeleteButton.setText(deleteButtonStringId);\r\n }", "title": "" }, { "docid": "cbdcd86ec7905cc67cb7dc7feeacddcc", "score": "0.53215915", "text": "private void initUI() {\n\t\tcb_setup_over = (CheckBox) findViewById(R.id.cb_setup_over);\n\t\t//是否选中状态的回显\n\t\tboolean open_security = SpUtils.getBoolean(getApplicationContext(), ContentValue.OPEN_SECURITY, false);\n\t\t//这里的勾也需要回显\n\t\tcb_setup_over.setChecked(open_security);\n\t\t//根据状态修改后面的文字\n\t\tif(open_security){\n\t\t\tcb_setup_over.setText(\"安全设置以开启\");\n\t\t}else{\n\t\t\tcb_setup_over.setText(\"安全设置以关闭\");\n\t\t}\n\t\t//当点击这个checkbox的时候, 也需要开启或是关闭\n//\t\tcb_setup_over.setChecked(!cb_setup_over.isChecked());\n\t\t//当在点击的过程中才发生状态的变化\n\t\tcb_setup_over.setOnCheckedChangeListener(new OnCheckedChangeListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t//然后将这个状态存储到sharedpreference中\n\t\t\t\tSpUtils.putBoolean(getApplicationContext(), ContentValue.OPEN_SECURITY, isChecked);\n\t\t\t\t//根据状态修改后面的文字\n\t\t\t\tif(isChecked){\n\t\t\t\t\tcb_setup_over.setText(\"安全设置以开启\");\n\t\t\t\t}else{\n\t\t\t\t\tcb_setup_over.setText(\"安全设置以关闭\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "6d46cd29f5042f9d644d9cb0411a023a", "score": "0.53168917", "text": "private void changeStatus(Object source)\n {\n String itemName;\n if (source instanceof Component)\n itemName = ((Component) source).getName();\n else\n itemName = ((MenuComponent) source).getName();\n\n if(itemName.equals(\"online\"))\n {\n OsDependentActivator.getGlobalStatusService()\n .publishStatus(provider, GlobalStatusEnum.ONLINE);\n }\n else\n {\n OsDependentActivator.getGlobalStatusService()\n .publishStatus(provider, GlobalStatusEnum.OFFLINE);\n }\n }", "title": "" }, { "docid": "36654912a2a24a16795b3f9a9c0a06ea", "score": "0.5316445", "text": "public void okayButton_ActionEvents() {\r\n GemCutter.getPreferences().putBoolean(IntellicutManager.INTELLICUT_POPUP_ENABLED_PREF_KEY, getAutomaticPopupCheckBox().isSelected());\r\n GemCutter.getPreferences().putInt(IntellicutManager.INTELLICUT_POPUP_DELAY_PREF_KEY, getPopupDelaySlider().getValue());\r\n }", "title": "" }, { "docid": "97f95611d9256cd7093badebff5a2f74", "score": "0.53136575", "text": "public boolean isLightWeightPopupEnabled()\n {\n return lightWeightPopupEnabled;\n }", "title": "" }, { "docid": "1a11c63ccf7169a672843e7a03fbf9f3", "score": "0.5311507", "text": "public void setToolMode()\r\n\t{\r\n\t\tremoveAllWindows();\r\n\t\t\r\n\t\t//TODO: remove this hack\r\n\t\tsetGamePlayMode();\r\n\t\tquitGame();\r\n\t\tbl.getContentPanel().remove(bl.getInGameFrame());\r\n\t\tbl.getContentPanel().add(bl.getGameFrame());\r\n\t\tif(MainMenuButton.getParent() != null) { MainMenuButton.getParent().remove(MainMenuButton); }\r\n\t\tbl.getGameFrame().add(GamePanel);\r\n\t\tGamePanel.add(MainMenuButton);\r\n\t\tlimitedColorChoice = false;\r\n\t\tbl.getTimerLabel().setVisible(false);\r\n\t}", "title": "" }, { "docid": "bdc6dabd84111fedba7fe34eb436ad9c", "score": "0.53071797", "text": "void setCancelStatus();", "title": "" }, { "docid": "c477597cbcf74c987b141c0d9074d8ad", "score": "0.5306454", "text": "public void setPopupItems(HashMap<String, JMenuItem> items){\n popupItems = items;\n }", "title": "" } ]
4a73111430b5a8054780d1ea2c9861ac
An array of diagnostics known on the client side overlapping the range provided to the `textDocument/codeAction` request. They are provided so that the server knows which errors are currently presented to the user for the given range. There is no guarantee that these accurately reflect the error state of the resource. The primary parameter to compute code actions is the provided range. repeated .protocol.Diagnostic diagnostics = 1 [(.google.api.field_behavior) = REQUIRED];
[ { "docid": "5e9a00292d5d1ec37f5072ca265357ac", "score": "0.37630835", "text": "public java.util.List<protocol.Diagnostic.Builder> \n getDiagnosticsBuilderList() {\n return getDiagnosticsFieldBuilder().getBuilderList();\n }", "title": "" } ]
[ { "docid": "e68aceee61ca92e08799afa510899403", "score": "0.48163784", "text": "public java.util.List<protocol.Diagnostic> getDiagnosticsList() {\n if (diagnosticsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(diagnostics_);\n } else {\n return diagnosticsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "3b99a977ec86f04fd6f32d15b39002ce", "score": "0.4789743", "text": "public protocol.Diagnostic getDiagnostics(int index) {\n if (diagnosticsBuilder_ == null) {\n return diagnostics_.get(index);\n } else {\n return diagnosticsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "c6e00e237068b3a30c7c78598729ef73", "score": "0.47838613", "text": "public java.util.List<protocol.Diagnostic> getDiagnosticsList() {\n return diagnostics_;\n }", "title": "" }, { "docid": "aa18b349ad1687162065b2992ef3f985", "score": "0.46829268", "text": "public protocol.Diagnostic getDiagnostics(int index) {\n return diagnostics_.get(index);\n }", "title": "" }, { "docid": "c3c11e1e5b39cd66034ed5136ac6a5f4", "score": "0.46802744", "text": "public protocol.DiagnosticOrBuilder getDiagnosticsOrBuilder(\n int index) {\n return diagnostics_.get(index);\n }", "title": "" }, { "docid": "0c05c8580921b5df7c79f13e1a5ef12e", "score": "0.46731037", "text": "protected List<TextRange> getTextRanges(ParametrizedDiagnostic<E> diagnostic) {\n return positioningStrategy.markDiagnostic((DiagnosticMarker) diagnostic);\n }", "title": "" }, { "docid": "d288074d9e5f7531ebfe9c8bec97f954", "score": "0.46180773", "text": "public java.util.List<? extends protocol.DiagnosticOrBuilder> \n getDiagnosticsOrBuilderList() {\n return diagnostics_;\n }", "title": "" }, { "docid": "64ce3c7b5c7ec86b8e0e5876d6543462", "score": "0.4615231", "text": "public int getDiagnosticsCount() {\n return diagnostics_.size();\n }", "title": "" }, { "docid": "f363c631baf6c9dc1310f6771a6e0b5a", "score": "0.45879352", "text": "public Collection<Diagnostic<JavaFileObject>> getDiagnostics() {\n return Collections.unmodifiableCollection(diagnostics);\n }", "title": "" }, { "docid": "b176b22a54aa1d069d1ef2607722ce4f", "score": "0.44543988", "text": "public Builder setDiagnostics(\n int index, protocol.Diagnostic value) {\n if (diagnosticsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDiagnosticsIsMutable();\n diagnostics_.set(index, value);\n onChanged();\n } else {\n diagnosticsBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "e84d3109bbc1cbefa7a4bfc53a127d1d", "score": "0.44539493", "text": "public java.util.List<? extends protocol.DiagnosticOrBuilder> \n getDiagnosticsOrBuilderList() {\n if (diagnosticsBuilder_ != null) {\n return diagnosticsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(diagnostics_);\n }\n }", "title": "" }, { "docid": "33207a5e91d884ce16ed3781ec4c49c1", "score": "0.44521806", "text": "DiagnosticResult attemptDiagnostic() throws UnexplainableException;", "title": "" }, { "docid": "48974443fec0d882f397396514d660cb", "score": "0.44499665", "text": "public protocol.DiagnosticOrBuilder getDiagnosticsOrBuilder(\n int index) {\n if (diagnosticsBuilder_ == null) {\n return diagnostics_.get(index); } else {\n return diagnosticsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "96aaab8b9b7dd047855f68ad0f689c55", "score": "0.4410317", "text": "public Builder clearDiagnostics() {\n if (diagnosticsBuilder_ == null) {\n diagnostics_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n diagnosticsBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "39754667b58692ba81a9d6f97328262a", "score": "0.44018662", "text": "public Builder addDiagnostics(protocol.Diagnostic value) {\n if (diagnosticsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDiagnosticsIsMutable();\n diagnostics_.add(value);\n onChanged();\n } else {\n diagnosticsBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "317f3b773a6cfe7c123d081e728a073c", "score": "0.43354088", "text": "public protocol.Diagnostic.Builder addDiagnosticsBuilder() {\n return getDiagnosticsFieldBuilder().addBuilder(\n protocol.Diagnostic.getDefaultInstance());\n }", "title": "" }, { "docid": "5ebf0c8fe290977c7833602456ffb5dc", "score": "0.42348424", "text": "List<ConstraintViolation> getViolations();", "title": "" }, { "docid": "8c9039422600304d8c1fc96af6f6edf1", "score": "0.4232862", "text": "Diagnostic createDiagnostic();", "title": "" }, { "docid": "23814ba325304fb8d7dbd8d1846e500b", "score": "0.42126137", "text": "public int getDiagnosticsCount() {\n if (diagnosticsBuilder_ == null) {\n return diagnostics_.size();\n } else {\n return diagnosticsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "d1de97b175844bea38fee61a83cb06e4", "score": "0.41608626", "text": "public Builder addDiagnostics(\n int index, protocol.Diagnostic value) {\n if (diagnosticsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDiagnosticsIsMutable();\n diagnostics_.add(index, value);\n onChanged();\n } else {\n diagnosticsBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "c7a50c5571264e4cdc0cc2e79c2cef32", "score": "0.41338873", "text": "public void setDiagnosticsMode(String diagnosticsMode) {\n this.diagnosticsMode = diagnosticsMode;\n }", "title": "" }, { "docid": "4a1367ee393d78ac49e234aaa53f95d1", "score": "0.41016644", "text": "@Named(\"server:getDiagnostics\")\n @GET\n @Path(\"/{id}/diagnostics\")\n @ResponseParser(ParseDiagnostics.class)\n @Fallback(AbsentOn403Or404Or500.class)\n Optional<Map<String, String>> getDiagnostics(@PathParam(\"id\") String id);", "title": "" }, { "docid": "ac0b2e211f62b7455f395137f51b28b0", "score": "0.40679818", "text": "public boolean diagnosticsEnabled() {\n return mDiagnosticsEnabled;\n }", "title": "" }, { "docid": "6cb55d386d9a6a7df562c5d793d559fb", "score": "0.39994964", "text": "public Collection<ScmConstraintViolation> getViolations() {\n return unmodifiableCollection(violations);\n }", "title": "" }, { "docid": "399e5f35a9fcedf84f6578d97eb484cc", "score": "0.3998745", "text": "@ApiModelProperty(value = \"It contains up to 15 Identity Scan Alert codes\")\n @Valid\n @Size(max=15) public List<ConsumerCreditReportIdentityScanAlertCodes> getAlertCodes() {\n return alertCodes;\n }", "title": "" }, { "docid": "d1a60e0666bdac1e66ebdc807b235554", "score": "0.39380738", "text": "public ConstraintViolationSummary(String constrainClass, short violationCode,\n String violationDescription, long numberOfViolatingMutations) {\n this.constrainClass = constrainClass;\n this.violationCode = violationCode;\n this.violationDescription = violationDescription;\n this.numberOfViolatingMutations = numberOfViolatingMutations;\n }", "title": "" }, { "docid": "5947de146c06fdc857b835f2ff25c0f6", "score": "0.39281765", "text": "String[] getTaskDiagnostics( Object taskAttemptId ) throws IOException;", "title": "" }, { "docid": "715c15476ab97641cd5f9537ad0a2c63", "score": "0.39183924", "text": "public protocol.Diagnostic.Builder addDiagnosticsBuilder(\n int index) {\n return getDiagnosticsFieldBuilder().addBuilder(\n index, protocol.Diagnostic.getDefaultInstance());\n }", "title": "" }, { "docid": "18b389824c68313675a34ede37d1da89", "score": "0.39104864", "text": "java.util.List<? extends protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKindOrBuilder> \n getValueSetOrBuilderList();", "title": "" }, { "docid": "61dd47b8c37f0442f4ff70cd7590e967", "score": "0.38969862", "text": "public ArrayOfDiagnosticRequestItem getConvertersToDiagnose(){\n return localConvertersToDiagnose;\n }", "title": "" }, { "docid": "335ce33ae85215ac7616180fb9f0e1b4", "score": "0.3875008", "text": "java.util.List<protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKind> \n getValueSetList();", "title": "" }, { "docid": "570bc42aaf91851ab2f009009b9c939c", "score": "0.38742146", "text": "private void addSafetyRangeEq(Fault fault, RangeEq stmt) {\r\n\t\tthrow new SafetyException(\"Error: range equations are not yet implemented.\");\r\n\t}", "title": "" }, { "docid": "6ac5d09fc16959c88c423d4e2638cb1a", "score": "0.3862013", "text": "void analyze(Collection<CsmErrorInfo> errors) throws Exception;", "title": "" }, { "docid": "cdae2963fd14d7ae2764dcbf47f38a61", "score": "0.38206553", "text": "public org.sen.schemas.data.TExCode[] getExplanationCodes() {\r\n return explanationCodes;\r\n }", "title": "" }, { "docid": "31a7c11a9f5760a2c9b6d3c45d58a03b", "score": "0.37983134", "text": "public static String getDocumentationError(DiagnosticResponse resp) {\n return resp.getNegativeResponseCode().toDocumentationString() + \" \";\n }", "title": "" }, { "docid": "1034276b4e29ed2804df32a15a8f0ac2", "score": "0.37867126", "text": "@Override\n public String ask(String question, int[] range) {\n \treturn this.ask(question);\n }", "title": "" }, { "docid": "6132e229f3e95c63d64f5f03dc617d5b", "score": "0.3766613", "text": "protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKindOrBuilder getCodeActionKindOrBuilder();", "title": "" }, { "docid": "02b76ddd6bc7e8dfcf9c782d8754acfe", "score": "0.37445208", "text": "org.landxml.schema.landXML11.CrashSeverityType.Enum getSeverity();", "title": "" }, { "docid": "1b72f076da8f91281c073b958c94bfe3", "score": "0.3737888", "text": "public void setConvertersToDiagnose(ArrayOfDiagnosticRequestItem param){\n localConvertersToDiagnoseTracker = true;\n \n this.localConvertersToDiagnose=param;\n \n\n }", "title": "" }, { "docid": "2872daaaaf2db9ab7a996c79b3a0e89c", "score": "0.37310004", "text": "public Diagnostics getDiagnostics(){\n return localDiagnostics;\n }", "title": "" }, { "docid": "ec3b9e3898f273b17cadc4b2130f27be", "score": "0.37223762", "text": "public ArrayList<ProblemData> getProblems(Range range, String sortingQuery,\r\n\t\t\tString searchQuery);", "title": "" }, { "docid": "5f18c06c1d223dc0c562a36085cf1e8a", "score": "0.3717052", "text": "public protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKindOrBuilder getCodeActionKindOrBuilder() {\n return getCodeActionKind();\n }", "title": "" }, { "docid": "4c521a1dd68cdfcbc47e0bf016d4e2c9", "score": "0.37153733", "text": "Observable<HostingEnvironmentDiagnostics> getDiagnosticsItemAsync(String resourceGroupName, String name, String diagnosticsName);", "title": "" }, { "docid": "67250fe36175f91636b2451c27fc7896", "score": "0.36882734", "text": "public CErrors(LayoutManager layout) {\r\n\t\tsuper(layout);\r\n\t}", "title": "" }, { "docid": "d2db7229333290e179cda907d00a36ba", "score": "0.36824968", "text": "public protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupportOrBuilder getCodeActionLiteralSupportOrBuilder() {\n return getCodeActionLiteralSupport();\n }", "title": "" }, { "docid": "f63cdc4cb11b9c3420f48cb4df990b6b", "score": "0.3680093", "text": "public CharSequence compileIssueCodes(final CheckCatalog catalog) {\r\n CharSequence _xblockexpression = null;\r\n {\r\n EList<Check> _allChecks = catalog.getAllChecks();\r\n final Function1<Check, Iterable<XIssueExpression>> _function = (Check check) -> {\r\n return this.generatorExtensions.issues(check);\r\n };\r\n List<Iterable<XIssueExpression>> _map = ListExtensions.<Check, Iterable<XIssueExpression>>map(_allChecks, _function);\r\n final Iterable<XIssueExpression> checkIssues = Iterables.<XIssueExpression>concat(_map);\r\n EList<Implementation> _implementations = catalog.getImplementations();\r\n final Function1<Implementation, Iterable<XIssueExpression>> _function_1 = (Implementation impl) -> {\r\n return this.generatorExtensions.issues(impl);\r\n };\r\n List<Iterable<XIssueExpression>> _map_1 = ListExtensions.<Implementation, Iterable<XIssueExpression>>map(_implementations, _function_1);\r\n final Iterable<XIssueExpression> implIssues = Iterables.<XIssueExpression>concat(_map_1);\r\n Iterable<XIssueExpression> _concat = Iterables.<XIssueExpression>concat(checkIssues, implIssues);\r\n final Iterable<XIssueExpression> allIssues = IterableExtensions.<XIssueExpression>filterNull(_concat);\r\n final Function1<XIssueExpression, String> _function_2 = (XIssueExpression issue) -> {\r\n return this.generatorExtensions.issueCode(issue);\r\n };\r\n final Iterable<String> issueNames = IterableExtensions.<XIssueExpression, String>map(allIssues, _function_2);\r\n final Function1<XIssueExpression, String> _function_3 = (XIssueExpression impl) -> {\r\n return this.generatorExtensions.issueCode(impl);\r\n };\r\n final Iterable<String> implIssueNames = IterableExtensions.<XIssueExpression, String>map(implIssues, _function_3);\r\n Iterable<String> _concat_1 = Iterables.<String>concat(issueNames, implIssueNames);\r\n Set<String> _set = IterableExtensions.<String>toSet(_concat_1);\r\n final Iterable<String> allIssueNames = IterableExtensions.<String>filterNull(_set);\r\n StringConcatenation _builder = new StringConcatenation();\r\n {\r\n String _packageName = catalog.getPackageName();\r\n boolean _isNullOrEmpty = StringExtensions.isNullOrEmpty(_packageName);\r\n boolean _not = (!_isNullOrEmpty);\r\n if (_not) {\r\n _builder.append(\"package \");\r\n String _packageName_1 = catalog.getPackageName();\r\n _builder.append(_packageName_1, \"\");\r\n _builder.append(\";\");\r\n _builder.newLineIfNotEmpty();\r\n }\r\n }\r\n _builder.newLine();\r\n _builder.append(\"/**\");\r\n _builder.newLine();\r\n _builder.append(\" \");\r\n _builder.append(\"* Issue codes which may be used to address validation issues (for instance in quickfixes).\");\r\n _builder.newLine();\r\n _builder.append(\" \");\r\n _builder.append(\"*/\");\r\n _builder.newLine();\r\n _builder.append(\"@SuppressWarnings(\\\"all\\\")\");\r\n _builder.newLine();\r\n _builder.append(\"public final class \");\r\n String _issueCodesClassName = this._checkGeneratorNaming.issueCodesClassName(catalog);\r\n _builder.append(_issueCodesClassName, \"\");\r\n _builder.append(\" {\");\r\n _builder.newLineIfNotEmpty();\r\n _builder.newLine();\r\n {\r\n List<String> _sort = IterableExtensions.<String>sort(allIssueNames);\r\n for(final String name : _sort) {\r\n _builder.append(\" \");\r\n _builder.append(\"public static final String \");\r\n _builder.append(name, \" \");\r\n _builder.append(\" = \\\"\");\r\n String _issueCodeValue = this.generatorExtensions.issueCodeValue(catalog, name);\r\n _builder.append(_issueCodeValue, \" \");\r\n _builder.append(\"\\\";\");\r\n _builder.newLineIfNotEmpty();\r\n }\r\n }\r\n _builder.newLine();\r\n _builder.append(\" \");\r\n _builder.append(\"private \");\r\n String _issueCodesClassName_1 = this._checkGeneratorNaming.issueCodesClassName(catalog);\r\n _builder.append(_issueCodesClassName_1, \" \");\r\n _builder.append(\"() {\");\r\n _builder.newLineIfNotEmpty();\r\n _builder.append(\" \");\r\n _builder.append(\"// Prevent instantiation.\");\r\n _builder.newLine();\r\n _builder.append(\" \");\r\n _builder.append(\"}\");\r\n _builder.newLine();\r\n _builder.append(\"}\");\r\n _builder.newLine();\r\n _xblockexpression = _builder;\r\n }\r\n return _xblockexpression;\r\n }", "title": "" }, { "docid": "ccabe3acf3634d38afed2aee40cad784", "score": "0.3665891", "text": "public void setExplanationCodes(org.sen.schemas.data.TExCode[] explanationCodes) {\r\n this.explanationCodes = explanationCodes;\r\n }", "title": "" }, { "docid": "d4d3d399fe88c267eccedc045a17e140", "score": "0.36501732", "text": "public CWE[] getAccessRestrictionReason() {\r\n \tCWE[] retVal = this.getTypedField(4, new CWE[0]);\r\n \treturn retVal;\r\n }", "title": "" }, { "docid": "119275bff628020465803e323b4d3de8", "score": "0.36463046", "text": "public ApiRequestLogsResult listRequestLogs(DiagnosticsApi.ListRequestLogsOptions options) throws ApiException {\n \n Object postBody = null;\n \n // create path and map variables\n String path = \"/v2/diagnostics/request_logs\".replaceAll(\"\\\\{format\\\\}\",\"json\");\n\n // query params\n java.util.List<Pair> queryParams = new java.util.ArrayList<Pair>();\n java.util.Map<String, String> headerParams = new java.util.HashMap<String, String>();\n java.util.Map<String, Object> formParams = new java.util.HashMap<String, Object>();\n\n if (options != null) {\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"encoding\", options.encoding));\n\t \n }\n\n final String[] accepts = {\n \"application/json\"\n };\n final String accept = apiClient.selectHeaderAccept(accepts);\n\n final String[] contentTypes = {\n \n };\n final String contentType = apiClient.selectHeaderContentType(contentTypes);\n\n String[] authNames = new String[] { \"docusignAccessCode\" };\n\n \n GenericType<ApiRequestLogsResult> returnType = new GenericType<ApiRequestLogsResult>() {};\n return apiClient.invokeAPI(path, \"GET\", queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);\n \n }", "title": "" }, { "docid": "5180c834d5f21d911367042087c4ae48", "score": "0.36405423", "text": "@ApiModelProperty(value = \"The unique error code\")\n public String getCode() {\n return code;\n }", "title": "" }, { "docid": "7dc116fb2a59b1652710382e17791c64", "score": "0.36235783", "text": "com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationOrBuilder\n getRangeExpectationOrBuilder();", "title": "" }, { "docid": "798531ee21bccecccb8bf0e2f79e4eda", "score": "0.36117345", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Driver/Driver.cpp\", line = 890,\n old_source = \"${LLVM_SRC}/llvm/tools/clang/lib/Driver/Driver.cpp\", old_line = 814,\n FQN=\"PrintDiagnosticCategories\", NM=\"_ZL25PrintDiagnosticCategoriesRN4llvm11raw_ostreamE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.driver/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Driver/Driver.cpp -nm=_ZL25PrintDiagnosticCategoriesRN4llvm11raw_ostreamE\")\n//</editor-fold>\npublic static void PrintDiagnosticCategories(final raw_ostream /*&*/ OS) {\n // Skip the empty category.\n for (/*uint*/int i = 1, max = DiagnosticIDs.getNumberOfCategories(); i != max;\n ++i) {\n OS.$out_uint(i).$out_char($$COMMA).$out(DiagnosticIDs.getCategoryNameFromID(i)).$out_char($$LF);\n }\n}", "title": "" }, { "docid": "20c5b3f19d4ed787c93d5ec20c7ee310", "score": "0.36016485", "text": "public boolean isRange() {\n if (code != null && code.length() == 3 && \"XX\".equalsIgnoreCase(code.substring(1)))\n return true;\n return false;\n }", "title": "" }, { "docid": "777ab54423e12c98e70d544e0fbeb9c1", "score": "0.3600038", "text": "public SQLDiagnostic getMessages() {\n return this.messages;\n }", "title": "" }, { "docid": "14172be46bab265f21729d15603a4b4f", "score": "0.35973275", "text": "public Builder addAllDiagnostics(\n java.lang.Iterable<? extends protocol.Diagnostic> values) {\n if (diagnosticsBuilder_ == null) {\n ensureDiagnosticsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, diagnostics_);\n onChanged();\n } else {\n diagnosticsBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "dec10064ad3562356e56b64060f4423d", "score": "0.35863757", "text": "@Test\n public void getDiagnosticsGatherTest() throws ApiException {\n DiagnosticsGatherStatus response = api.getDiagnosticsGather();\n\n // TODO: test validations\n }", "title": "" }, { "docid": "f6f33c8af6a177a26afe43d1da1eaf45", "score": "0.35834843", "text": "public List<String> getLinesBetween(int start, int end, int offset) {\n Field61 cp = newInstance(this);\n return SwiftParseUtils.getLines(getLine(cp, start, end, offset));\n }", "title": "" }, { "docid": "d06660597c91b2a854336a29d979469e", "score": "0.35784572", "text": "@Override\r\n\tpublic String getExceptionCodes() {\n\t\treturn exceptionCode;\r\n\r\n\t}", "title": "" }, { "docid": "a4837c0f90465e226cbec91c0df164fe", "score": "0.3573915", "text": "public protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKindOrBuilder getCodeActionKindOrBuilder() {\n if (codeActionKindBuilder_ != null) {\n return codeActionKindBuilder_.getMessageOrBuilder();\n } else {\n return codeActionKind_ == null ?\n protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKind.getDefaultInstance() : codeActionKind_;\n }\n }", "title": "" }, { "docid": "4e90bc183b2a06a08e5d34fd1a0a6b5a", "score": "0.3571127", "text": "public GetCampaignResult withDiagnosticsMode(String diagnosticsMode) {\n setDiagnosticsMode(diagnosticsMode);\n return this;\n }", "title": "" }, { "docid": "ce0853c708702d957b5442fd80541d00", "score": "0.3568393", "text": "List<Alert> getUnclosedAlertsInCreatedRange(Instant inclusiveStart, Instant inclusiveEnd, List<String> wellFilter, int limit) throws SQLException;", "title": "" }, { "docid": "af14bc328280a9573453091e89a939e8", "score": "0.35582843", "text": "public abstract interval_C[][] getOutputValidRange();", "title": "" }, { "docid": "5433507c91b5c1791b0bb8d8a9aa2f49", "score": "0.3552152", "text": "@Deprecated\n List<ConstraintViolation> getGeneralViolations();", "title": "" }, { "docid": "8e9fb6ffbd421802b65752a28bac5cdb", "score": "0.35480967", "text": "protected int[] computeStartEndLocation(int startOffset, String errorMessage, String selectionStrategy, String nameOrValue, IDOMDocument document) {\n \t\ttry {\n \t\t\tint startEndPositions[] = new int[2];\n \n \t\t\tIndexedRegion region = document.getModel().getIndexedRegion(startOffset);\n \t\t\tIndexedRegion prevRegion = document.getModel().getIndexedRegion(startOffset - 1);\n \n \t\t\tif (prevRegion != region) { \n // if between two regions, the one onthe left is the one we are interested in\n \t\t\t\tregion = prevRegion;\n \t\t\t}\n \n \t\t\t// initialize start and end positions to be the start positions\n \t\t\t// this means if the\n \t\t\t// special case is not taken care of below the start and end\n \t\t\t// offset are set to be\n \t\t\t// the start of the region where the error was\n \t\t\tif (region != null) {\n \t\t\t\tstartEndPositions[0] = region.getStartOffset();\n \t\t\t\tstartEndPositions[1] = startEndPositions[0];\n \t\t\t}\n \t\t\telse { // this will message will not get added to the IReporter\n \t\t\t\t\t// since the length is 0\n \t\t\t\tstartEndPositions[0] = 0;\n \t\t\t\tstartEndPositions[1] = 0;\n \t\t\t}\n \t\t\tif (region instanceof Node) {\n \t\t\t\tNode node = (Node) region;\n \n \t\t\t\tif (selectionStrategy.equals(START_TAG)) {// then we want to\n \t\t\t\t//underline the opening tag\n \t\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n \t\t\t\t\t\tIDOMElement element = (IDOMElement) node;\n \t\t\t\t\t\tstartEndPositions[0] = element.getStartOffset() + 1;\n \t\t\t\t\t\tstartEndPositions[1] = startEndPositions[0] + element.getTagName().length();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse if (selectionStrategy.equals(ATTRIBUTE_NAME)) { // in\n \t\t\t\t//underline the attribute's name\n \t\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n \t\t\t\t\t\tIDOMElement element = (IDOMElement) node;\n \t\t\t\t\t\tIDOMNode attributeNode = (IDOMNode) (element.getAttributeNode(nameOrValue));\n \t\t\t\t\t\tif (attributeNode != null) {\n \t\t\t\t\t\t\tstartEndPositions[0] = attributeNode.getStartOffset();\n \t\t\t\t\t\t\tstartEndPositions[1] = attributeNode.getStartOffset() + nameOrValue.length();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse if (selectionStrategy.equals(ATTRIBUTE_VALUE)) {\n //underline the attribute's value\n \t\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n \t\t\t\t\t\tIDOMElement element = (IDOMElement) node;\n \t\t\t\t\t\tIDOMAttr attributeNode = (IDOMAttr) (element.getAttributeNode(nameOrValue));\n \t\t\t\t\t\tif (attributeNode != null) {\n \t\t\t\t\t\t\tstartEndPositions[0] = attributeNode.getValueRegionStartOffset();\n \t\t\t\t\t\t\tstartEndPositions[1] = startEndPositions[0] + attributeNode.getValueRegionText().length();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse if (selectionStrategy.equals(ALL_ATTRIBUTES)) {\n //underline all attributes\n \t\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n \t\t\t\t\t\tIDOMElement element = (IDOMElement) node;\n \t\t\t\t\t\tNamedNodeMap attributes = element.getAttributes();\n \t\t\t\t\t\tif (attributes != null) {\n \t\t\t\t\t\t\tIDOMNode first = (IDOMNode) attributes.item(0);\n \t\t\t\t\t\t\tIDOMNode last = (IDOMNode) attributes.item(attributes.getLength() - 1);\n \t\t\t\t\t\t\tif (first != null && last != null) {\n \t\t\t\t\t\t\t\tstartEndPositions[0] = first.getStartOffset();\n \t\t\t\t\t\t\t\tstartEndPositions[1] = last.getEndOffset();\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\telse if (selectionStrategy.equals(TEXT)) {\n //underline the text between the tags\n \t\t\t\t\tif (node.getNodeType() == Node.TEXT_NODE) {\n \t\t\t\t\t\tIDOMText textNode = (IDOMText) node;\n \t\t\t\t\t\tint start = textNode.getStartOffset();\n \t\t\t\t\t\tString value = textNode.getNodeValue();\n \t\t\t\t\t\tint index = 0;\n \t\t\t\t\t\tchar curChar = value.charAt(index);\n \t\t\t\t\t\t// here we are finding start offset by skipping over\n \t\t\t\t\t\t// whitespace:\n while (curChar == '\\n' || curChar == '\\t' || curChar == '\\r' || curChar == ' ') {\n curChar = value.charAt(index);\n index++;\n }\n if (index > 0) {\n index--;\n \n }\n start = start + index;\n startEndPositions[0] = start + index;\n startEndPositions[1] = start + value.trim().length();\n \t\t\t\t\t}\n \t\t\t\t\telse if (node.getNodeType() == Node.ELEMENT_NODE) {\n \t\t\t\t\t\tIDOMElement element = (IDOMElement) node;\n \t\t\t\t\t\tNode child = element.getFirstChild();\n \t\t\t\t\t\tif (child instanceof IDOMNode) {\n \t\t\t\t\t\t\tIDOMNode xmlChild = ((IDOMNode) child);\n \t\t\t\t\t\t\tstartEndPositions[0] = xmlChild.getStartOffset();\n \t\t\t\t\t\t\tstartEndPositions[1] = xmlChild.getEndOffset();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse if (selectionStrategy.equals(FIRST_NON_WHITESPACE_TEXT)) { \n // search through all child nodes and return range of first non-whitespace\n // text node\n \t\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n \t\t\t\t\t\tNodeList nodes = node.getChildNodes();\n \t\t\t\t\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n \t\t\t\t\t\t\tNode currentNode = nodes.item(i);\n \t\t\t\t\t\t\tif (currentNode.getNodeType() == Node.TEXT_NODE) {\n \t\t\t\t\t\t\t\tIDOMText textNode = (IDOMText) currentNode;\n \t\t\t\t\t\t\t\tif (textNode.getNodeValue().trim().length() > 0) {\n \t\t\t\t\t\t\t\t\tString value = textNode.getNodeValue();\n \t\t\t\t\t\t\t\t\tint index = 0;\n \t\t\t\t\t\t\t\t\tint start = textNode.getStartOffset();\n \t\t\t\t\t\t\t\t\tchar curChar = value.charAt(index);\n \t\t\t\t\t\t\t\t\t// here we are finding start offset by\n \t\t\t\t\t\t\t\t\t// skipping over whitespace:\n \t\t\t\t\t\t\t\t\twhile (curChar == '\\n' || curChar == '\\t' || curChar == '\\r' || curChar == ' ') {\n \t\t\t\t\t\t\t\t\t\tcurChar = value.charAt(index);\n \t\t\t\t\t\t\t\t\t\tindex++;\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\tif (index > 0) {\n \t\t\t\t\t\t\t\t\t\tindex--;\n \n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\tstart = start + index;\n \t\t\t\t\t\t\t\t\tstartEndPositions[0] = start;\n \t\t\t\t\t\t\t\t\tstartEndPositions[1] = start + value.trim().length();\n \t\t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\telse if (selectionStrategy.equals(TEXT_ENTITY_REFERENCE)) {\n \t\t\t\t\tif (node.getNodeType() == Node.ENTITY_REFERENCE_NODE) {\n \t\t\t\t\t\tstartEndPositions[0] = region.getStartOffset();\n \t\t\t\t\t\tstartEndPositions[1] = region.getEndOffset();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse if (selectionStrategy.equals(VALUE_OF_ATTRIBUTE_WITH_GIVEN_VALUE)) {\n \t\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n \t\t\t\t\t\t// here we will search through all attributes for the\n \t\t\t\t\t\t// one with the\n \t\t\t\t\t\t// with the value we want:\n \t\t\t\t\t\tNamedNodeMap attributes = node.getAttributes();\n \t\t\t\t\t\tfor (int i = 0; i < attributes.getLength(); i++) {\n \t\t\t\t\t\t\tIDOMAttr attr = (IDOMAttr) attributes.item(i);\n \t\t\t\t\t\t\tString nodeValue = attr.getNodeValue().trim();\n \t\t\t\t\t\t\tif (nodeValue.equals(nameOrValue)) {\n \t\t\t\t\t\t\t\tstartEndPositions[0] = attr.getValueRegionStartOffset() + 1;\n \t\t\t\t\t\t\t\tstartEndPositions[1] = startEndPositions[0] + nodeValue.length();\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\treturn startEndPositions;\n \t\t}\n \t\tcatch (Exception e) { // e.printStackTrace();\n \t\t}\n \t\treturn null;\n \t}", "title": "" }, { "docid": "01c90f32cdcc34e77f9b574c8135d953", "score": "0.35361433", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp\", line = 2911,\n FQN=\"clang::FunctionDecl::getReturnTypeSourceRange\", NM=\"_ZNK5clang12FunctionDecl24getReturnTypeSourceRangeEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp -nm=_ZNK5clang12FunctionDecl24getReturnTypeSourceRangeEv\")\n //</editor-fold>\n public SourceRange getReturnTypeSourceRange() /*const*/ {\n /*const*/ TypeSourceInfo /*P*/ TSI = getTypeSourceInfo();\n if (!(TSI != null)) {\n return new SourceRange();\n }\n FunctionTypeLoc FTL = TSI.getTypeLoc().IgnoreParens().getAs(FunctionTypeLoc.class);\n if (!FTL.$bool()) {\n return new SourceRange();\n }\n \n // Skip self-referential return types.\n final /*const*/ SourceManager /*&*/ SM = getASTContext().getSourceManager();\n SourceRange RTRange = FTL.getReturnLoc().getSourceRange();\n SourceLocation Boundary = getNameInfo().getLocStart();\n if (RTRange.isInvalid() || Boundary.isInvalid()\n || !SM.isBeforeInTranslationUnit(RTRange.getEnd(), /*NO_COPY*/Boundary)) {\n return new SourceRange();\n }\n \n return RTRange;\n }", "title": "" }, { "docid": "a905fffa8a0b78da1116c7b59f70a24c", "score": "0.3534807", "text": "@PostMapping(\"/fetch-document-activity\")\n\tpublic ResponseEntity<?> getDocumentActivityData(@Valid @RequestBody String range, Errors errors ){\n\t\tSystem.out.println(\"PASSED RANGE IS: \" + range);\n\t\tint rangeValue = 7;\n\t\tDocumentActivityResponseBody body = new DocumentActivityResponseBody();\n\t\t\n\t\tif(range !=null || range !=\"\") {\n\t\t\t try {\n\t\t\t\t rangeValue = Integer.parseInt(range);\n\t\t\t }catch(NumberFormatException e) {\n\t\t\t\t return ResponseEntity.badRequest().body(e.getMessage());\n\t\t\t }\n\t\t}\n\t\t if (errors.hasErrors()) {\n\t \t //convert the error errors to string format\n\t\t\t String errorMessage = errors.getAllErrors() .stream().map(x -> x.getDefaultMessage())\n\t\t\t\t\t .collect(Collectors.joining(\",\")).toString();\n\t\t\t System.out.println(errorMessage);\n\t\t\t return ResponseEntity.badRequest().body(errorMessage);\n\t }\n\t \n\t\ttry {\n\t\t\tbody.setActivityList(userLogsService.getChartData(rangeValue));\n\t\t\tbody.setMessage(\"DATA WAS FETCHED\");\n\t\t\t/*\n\t\t\t*\tthrow new Exception(\"Error persisted on AJAX Request\");\n\t\t\t*/\n\t\t\t\n\t\t\treturn ResponseEntity.ok(body); \n\t\t\t\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\treturn ResponseEntity.badRequest().body(e.getStackTrace().toString());\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "d30260a88fab7d0ac3804c60ee267939", "score": "0.35297823", "text": "@Test\n public void testInvalidErrorThreshold() {\n ChangedNoticesCollector collector = new ChangedNoticesCollector(SeverityLevel.ERROR, 2, 25f);\n\n // Only one new error.\n collector.compareValidationReports(\n \"source-a\",\n \"source-a-url\",\n report(ImmutableMap.of(\"error_a\", 1)),\n report(ImmutableMap.of(\"error_a\", 1, \"error_b\", 5)));\n\n assertThat(collector.isAboveThreshold()).isFalse();\n assertThat(collector.computeInvalidDatasetPercentage()).isWithin(1f).of(0f);\n // We still note the changed notice, even if it isn't enough to mark the dataset as invalid.\n assertThat(collector.getChangedNotices())\n .containsExactly(\n new ChangedNotice(\"error_b\")\n .addAffectedSource(AffectedSource.create(\"source-a\", \"source-a-url\", 5)));\n assertThat(collector.generateLogString())\n .isEqualTo(\n \"0 out of 1 datasets (~0%) are invalid due to code change, which is less than the provided threshold of 25%.\");\n }", "title": "" }, { "docid": "92a44dae64dd54e6af4fa33ecb8a2040", "score": "0.35246158", "text": "public interface Diagnostic {\n\n\t/**\n\t * Get a unique id (description) of the diagnostic. Please stay alphanumeric\n\t * + space there. Ex : \"Checking universe file existence on the system\"\n\t * \n\t * @return\n\t */\n\tString getUniqueID();\n\n\t/**\n\t * Start the diagnostic and return a DiagnosticResult. Diagnostic should be\n\t * idempotent and leave the situation unchanged.\n\t * \n\t * @throws UnexplainableException\n\t * if something unexpected occured during the correction\n\t */\n\tDiagnosticResult attemptDiagnostic() throws UnexplainableException;\n\n\t/**\n\t * Return a correction for the diagnostic.\n\t * \n\t * @param diagnosticResult\n\t * diagnostic result.\n\t * @return a correction\n\t */\n\tCorrectiveAction getCorrection(DiagnosticResult diagnosticResult) throws NoResultException;\n\n\t/**\n\t * Initiate a new diagnostic result.\n\t * \n\t * @param success\n\t * true if the diagnostic is in success\n\t * @param machineMessage\n\t * the machine-readable message.\n\t * @param humanMessage\n\t * the human readable message.\n\t * @param universeService\n\t * the universe service.\n\t * @return a Diagnosticresult object\n\t */\n\tpublic default DiagnosticResult newResult(final boolean success, final String machineMessage,\n\t\t\tfinal String humanMessage, final DiagnosticStateService diagnosticStateService) {\n\t\tfinal DiagnosticResult.Builder result = DiagnosticResult.newBuilder();\n\t\tresult.setSuccess(success);\n\t\tresult.setHumanMessage(humanMessage);\n\t\tresult.setMachineMessage(machineMessage);\n\t\tresult.setStability(diagnosticStateService.computeDiagnosticStability(this, machineMessage));\n\t\tresult.setDiagnosticId(this.getUniqueID());\n\t\treturn result.build();\n\t}\n\n\t/**\n\t * A generic static method allowing to quickly provide a failing \"not\n\t * implemented\" diagnostic for a system.\n\t * \n\t * @param system\n\t * system\n\t * @param universeService\n\t * universe service\n\t * @return a list of diagnostic containing one failing \"not implemented\"\n\t * diagnostic.\n\t */\n\tpublic static List<Diagnostic> notImplemented(final SDBSystem system,\n\t\t\tfinal DiagnosticStateService diagnosticStateService) {\n\t\tfinal List<Diagnostic> result = new ArrayList<Diagnostic>();\n\n\t\tresult.add(new Diagnostic() {\n\n\t\t\t@Override\n\t\t\tpublic String getUniqueID() {\n\t\t\t\treturn system.getUniqueID() + \"-diagnostic-not-implemented\";\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic DiagnosticResult attemptDiagnostic() throws UnexplainableException {\n\t\t\t\treturn this.newResult(false, \"not-implemented\", \"No diagnostic implemented for this system\",\n\t\t\t\t\t\tdiagnosticStateService);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic CorrectiveAction getCorrection(final DiagnosticResult diagnosticResult) throws NoResultException {\n\t\t\t\tthrow new NoResultException();\n\t\t\t}\n\n\t\t});\n\n\t\treturn result;\n\t}\n\n}", "title": "" }, { "docid": "ecb298ceccf958db5b35c8255a9ad44b", "score": "0.35234475", "text": "public java.lang.String getSrange() {\n java.lang.Object ref = srange_;\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 srange_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "638f627796e85b0b7f9087728ce6501d", "score": "0.35182056", "text": "public AdornmentEnumRange(final String[] range) {\n\t\tthis.rangeItems = new ArrayList<String>();\n\t\tif (range != null) {\n\t\t\tfor (final String s : range) {\n\t\t\t\tthis.rangeItems.add(s.toUpperCase());\n\t\t\t\tAdornmentEnumRange.LOGGER.finer(\"Added new range item '\"\n\t\t\t\t\t\t+ this.valueOf(s) + \"'\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c51329489757a0ff4b73a7f3b7033479", "score": "0.35170588", "text": "com.google.api.servicemanagement.v1.Diagnostic.Kind getKind();", "title": "" }, { "docid": "a7efa6e0f28474e803b9ed8d37dd2475", "score": "0.3515259", "text": "public String getErrorReason(int errorCode) {\n String errorReason = \"\";\n switch(errorCode) {\n case AdRequest.ERROR_CODE_INTERNAL_ERROR:\n errorReason = \"Internal error\";\n break;\n case AdRequest.ERROR_CODE_INVALID_REQUEST:\n errorReason = \"Invalid request\";\n break;\n case AdRequest.ERROR_CODE_NETWORK_ERROR:\n errorReason = \"Network Error\";\n break;\n case AdRequest.ERROR_CODE_NO_FILL:\n errorReason = \"No fill\";\n break;\n }\n return errorReason;\n }", "title": "" }, { "docid": "e9698e6c9cb55c6f2855672fa9ca7872", "score": "0.35131368", "text": "public interface StatementRanges {\n /**\n * The end of the ith statement.\n */\n int end(int i);\n\n /**\n * The number of statements in the associated JavaScript.\n */\n int numStatements();\n\n /**\n * The start of the ith statement.\n */\n int start(int i);\n}", "title": "" }, { "docid": "3763b290004aee8f0e2774d04db41317", "score": "0.35123232", "text": "protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKindOrBuilder getValueSetOrBuilder(\n int index);", "title": "" }, { "docid": "f819425864468c3b1f3cb4d3e7917204", "score": "0.35038716", "text": "public void validateAmendment(StudyProtocolDTO studyProtocolDTO,\n StudyOverallStatusDTO overallStatusDTO,\n List<StudyOverallStatusDTO> statusHistory,\n OrganizationDTO leadOrganizationDTO,\n OrganizationDTO sponsorOrganizationDTO, \n List<OrganizationDTO> summary4OrganizationDTO, StudyResourcingDTO summary4StudyResourcingDTO,\n PersonDTO principalInvestigatorDTO, ResponsiblePartyDTO partyDTO,\n StudyRegulatoryAuthorityDTO studyRegAuthDTO, List<StudyResourcingDTO> studyResourcingDTOs,\n List<DocumentDTO> documentDTOs, List<StudyIndldeDTO> studyIndldeDTOs,\n StudySiteDTO nctIdentifierDTO, StudySiteDTO dcpIdentifierDTO) throws PAException {\n // CHECKSTYLE:ON\n Ii spIi = studyProtocolDTO.getIdentifier();\n StringBuilder errorMsg = new StringBuilder();\n validateUser(studyProtocolDTO, AMENDMENT, true, errorMsg);\n validateStatusAndDates(studyProtocolDTO, overallStatusDTO,\n statusHistory, dcpIdentifierDTO != null, errorMsg);\n validateNihGrants(studyProtocolDTO, leadOrganizationDTO, studyResourcingDTOs, errorMsg);\n validateIndlde(studyProtocolDTO, studyIndldeDTOs, errorMsg);\n validateDWFS(spIi, ERROR_DWFS_FOR_AMEND, ERROR_MESSAGE_DWFS_FOR_AMEND, errorMsg);\n validateExistingStatus(spIi, errorMsg);\n validateOtherIdentifiers(studyProtocolDTO, errorMsg);\n validateMandatoryDocuments(documentDTOs, errorMsg);\n validateAmendmentDocuments(documentDTOs, errorMsg);\n validatePOObjects(studyProtocolDTO, leadOrganizationDTO,\n sponsorOrganizationDTO, summary4OrganizationDTO,\n principalInvestigatorDTO, partyDTO.getInvestigator(),\n partyDTO.getAffiliation(), errorMsg);\n validateAmendmentInfo(studyProtocolDTO, errorMsg);\n validateResponsibleParty(studyProtocolDTO, partyDTO, errorMsg);\n validateRegulatoryInfo(studyProtocolDTO, studyRegAuthDTO, studyIndldeDTOs, errorMsg, AMENDMENT);\n validateSummary4Resourcing(studyProtocolDTO, summary4StudyResourcingDTO, errorMsg);\n validateAccrualDiseaseCodeSystem(studyProtocolDTO, errorMsg);\n if (nctIdentifierDTO != null && !ISOUtil.isStNull(nctIdentifierDTO.getLocalStudyProtocolIdentifier())) {\n String nctValidationResultString = paServiceUtils.validateNCTIdentifier(\n nctIdentifierDTO.getLocalStudyProtocolIdentifier().getValue(), studyProtocolDTO\n .getIdentifier());\n if (StringUtils.isNotEmpty(nctValidationResultString)) {\n errorMsg.append(nctValidationResultString);\n } \n }\n if (errorMsg.length() > 0) {\n throw new PAException(VALIDATION_EXCEPTION + errorMsg);\n }\n }", "title": "" }, { "docid": "b885bb91714973698af40a0d26e40854", "score": "0.34916934", "text": "public int getCompileErrorReasonCode() {\n return this.m_compileErrorReasonCode;\n }", "title": "" }, { "docid": "271e77a25b609ee437dfcd25e2a3605c", "score": "0.34892687", "text": "public interface QueryText {\r\n /** BASX Error type. */ String BASX = \"BASX\";\r\n /** FOAR Error type. */ String FOAR = \"FOAR\";\r\n /** FOCA Error type. */ String FOCA = \"FOCA\";\r\n /** FOCH Error type. */ String FOCH = \"FOCH\";\r\n /** FODC Error type. */ String FODC = \"FODC\";\r\n /** FODT Error type. */ String FODT = \"FODT\";\r\n /** FOER Error type. */ String FOER = \"FOER\";\r\n /** FONS Error type. */ String FONS = \"FONS\";\r\n /** FORG Error type. */ String FORG = \"FORG\";\r\n /** FORX Error type. */ String FORX = \"FORX\";\r\n /** FOTY Error type. */ String FOTY = \"FOTY\";\r\n /** FTDY Error type. */ String FTDY = \"FTDY\";\r\n /** FTST Error type. */ String FTST = \"FTST\";\r\n /** XPDY Error type. */ String XPDY = \"XPDY\";\r\n /** XPST Error type. */ String XPST = \"XPST\";\r\n /** XPTY Error type. */ String XPTY = \"XPTY\";\r\n /** XQDY Error type. */ String XQDY = \"XQDY\";\r\n /** XQST Error type. */ String XQST = \"XQST\";\r\n /** XQUS Error type. */ String XUST = \"XQUS\";\r\n /** XQTY Error type. */ String XQTY = \"XQTY\";\r\n \r\n /** BASX0001: Evaluation exception. */\r\n Object[] NOIDX = { BASX, 1, \"Index not available: '%'.\" };\r\n /** BASX0002: Evaluation exception. */\r\n Object[] WHICHIDX = { BASX, 2, \"Unknown index: '%'.\" };\r\n \r\n /** FOAR0001: Evaluation exception. */\r\n Object[] DIVZERO = { FOAR, 1, \"'%' was divided by zero.\" };\r\n /** FOAR0002: Evaluation exception. */\r\n Object[] DIVFLOW = { FOAR, 2, \"Invalid division result: % / %.\" };\r\n /** FOAR0002: Evaluation exception. */\r\n Object[] RANGE = { FOAR, 2, \"Value out of range: %\" };\r\n \r\n /** FOCA0002: Evaluation exception. */\r\n Object[] INVALUE = { FOCA, 2, \"Invalid value for %: %\" };\r\n /** FOCA0003: Evaluation exception. */\r\n Object[] INTRANGE = { FOCA, 3, \"Integer value out of range: %\" };\r\n /** FOCA0005: Evaluation exception. */\r\n Object[] DATECALC = { FOCA, 5, \"Invalid % calculation (%).\" };\r\n \r\n /** FOCH0001: Evaluation exception. */\r\n Object[] INVCODE = { FOCH, 1, \"Invalid codepoint '%'.\" };\r\n /** FOCH0002: Evaluation exception. */\r\n Object[] IMPLCOL = { FOCH, 2, \"Unknown collation %.\" };\r\n /** FOCH0003: Evaluation exception. */\r\n Object[] NORMUNI = { FOCH, 3, \"Unsupported normalization form (%).\" };\r\n \r\n /** FODC0001: Evaluation exception. */\r\n Object[] IDDOC = { FODC, 1, \"Root must be a document node.\" };\r\n /** FODC0002: Evaluation exception. */\r\n Object[] UNDOC = { FODC, 2, \"Document node could not be created (%).\" };\r\n /** FODC0002: Evaluation exception. */\r\n Object[] COLLINV = { FODC, 2, \"Collection name \\\"%\\\" is invalid.\" };\r\n /** FODC0002: Evaluation exception. */\r\n Object[] COLLDEF = { FODC, 2, \"No default collection found.\" };\r\n /** FODC0002: Evaluation exception. */\r\n Object[] NODOC = { FODC, 2, \"%\" };\r\n /** FODC0004: Evaluation exception. */\r\n Object[] NOCOLL = { FODC, 4, \"%\" };\r\n /** FODC0005: Evaluation exception. */\r\n Object[] INVDOC = { FODC, 5, \"Invalid file path: \\\"%\\\".\" };\r\n \r\n /** FODT0002: Evaluation exception. */\r\n Object[] DATEZERO = { FODT, 2, \"Invalid infinity/zero calculation in %.\" };\r\n /** FODT0003: Evaluation exception. */\r\n Object[] INVALZONE = { FODT, 3, \"Invalid timezone: %.\" };\r\n \r\n /** FOER0000: Evaluation exception. */\r\n String FUNERR1 = \"Halted on error().\";\r\n \r\n /** FONS0004: Evaluation exception. */\r\n Object[] NSDECL = { FONS, 4, \"Namespace prefix not declared: \\\"%\\\".\" };\r\n \r\n /** FORG0001: Evaluation exception. */\r\n Object[] INVALIDZONE = { FORG, 1, \"Invalid timezone: %.\" };\r\n /** FORG0001: Evaluation exception. */\r\n Object[] CASTBOOL = { FORG, 1, \"Invalid boolean cast: \\\"%\\\".\" };\r\n /** FORG0001: Evaluation exception. */\r\n Object[] FUNCAST = { FORG, 1, \"Invalid % cast: %.\" };\r\n /** FORG0001: Evaluation exception. */\r\n Object[] DATERANGE = { FORG, 1, \"%(\\\"%\\\") out of range.\" };\r\n /** FORG0001: Evaluation exception. */\r\n Object[] DATEFORMAT = { FORG, 1, \"Wrong % format (Example: '%').\" };\r\n /** FORG0001: Evaluation exception. */\r\n Object[] QNMINV = { FORG, 1, \"Invalid QName: \\\"%\\\"\" };\r\n /** FORG0002: Evaluation exception. */\r\n Object[] URIINV = { FORG, 2, \"Invalid URI: %\" };\r\n \r\n /** FORG0003: Evaluation exception. */\r\n Object[] ZEROONE = { FORG, 3, \"Zero or one value expected.\" };\r\n /** FORG0004: Evaluation exception. */\r\n Object[] ONEMORE = { FORG, 4, \"One or more values expected.\" };\r\n /** FORG0005: Evaluation exception. */\r\n Object[] EXONE = { FORG, 5, \"Exactly one value expected.\" };\r\n /** FORG0006: Evaluation exception. */\r\n Object[] FUNCMP = { FORG, 6, \"%: % expected, % found.\" };\r\n /** FORG0006: Evaluation exception. */\r\n Object[] CONDTYPE = { FORG, 6, \"% not allowed as condition type.\" };\r\n /** FORG0006: Evaluation exception. */\r\n Object[] FUNNUMDUR = { FORG, 6, \"%: number or duration expected, % found.\" };\r\n /** FORG0006: Evaluation exception. */\r\n Object[] FUNNUM = { FORG, 6, \"%: number expected, % found.\" };\r\n /** FORG0006: Evaluation exception. */\r\n Object[] FUNDUR = { FORG, 6, \"%: duration expected, % found.\" };\r\n /** FORG0006: Evaluation exception. */\r\n Object[] TYPECMP = { FORG, 6, \"% is not comparable.\" };\r\n /** FORG0006: Evaluation exception. */\r\n Object[] FUNJAVA = { FORG, 6, \"Invalid arguments for %.\" };\r\n /** FORG0008: Function exception. */\r\n Object[] FUNZONE = { FORG, 8, \"% and % have different timezones.\" };\r\n \r\n /** FORX0001: Evaluation exception. */\r\n Object[] REGMOD = { FORX, 1, \"Invalid regular modifier: '%'.\" };\r\n /** FORX0002: Evaluation exception. */\r\n Object[] REGINV = { FORX, 2, \"Invalid regular expression: '%'.\" };\r\n /** FORX0003: Evaluation exception. */\r\n Object[] REGROUP = { FORX, 3, \"Pattern matches empty string.\" };\r\n /** FORX0004: Evaluation exception. */\r\n Object[] FUNREGREP = { FORX, 4, \"Invalid replacement expression.\" };\r\n /** FORX0004: Evaluation exception. */\r\n Object[] REGERR = { FORX, 4, \"Regular expression: '%'.\" };\r\n \r\n /** FTDY0016: Evaluation exception. */\r\n Object[] FTWEIGHT = { FTDY, 16, \"Invalid weight value: %\" };\r\n /** FTDY0017: Evaluation exception. */\r\n Object[] FTMILD = { FTDY, 17, \"Invalid mild not selection.\" };\r\n /** FTDY0020: Evaluation exception. */\r\n Object[] FTREG = { FTDY, 20, \"Invalid regular expression: %\" };\r\n \r\n /** FTST0000: Parsing exception. */\r\n Object[] FTFZWC = { FTST, 0, \"Only wildcards or Fuzzy search allowed.\" };\r\n /** FTST0000: Parsing exception. */\r\n Object[] THESRNG = { FTST, 0, \"Only integers allowed for thesaurus level.\" };\r\n /** FTST0007: Parsing exception. */\r\n Object[] FTIGNORE = { FTST, 7, \"Ignore option not supported yet.\" };\r\n /** FTST0008: Parsing exception. */\r\n Object[] NOSTOPFILE = { FTST, 8, \"Stop word file not found: \\\"%\\\".\" };\r\n /** FTST0009: Parsing exception. */\r\n Object[] FTLAN = { FTST, 9, \"Language '%' not supported.\" };\r\n /** FTST0018: Parsing exception. */\r\n Object[] NOTHES = { FTST, 18, \"Thesaurus not found: \\\"%\\\".\" };\r\n /** FTST0019: Parsing exception. */\r\n Object[] FTDUP = { FTST, 19, \"Match option '%' was defined twice.\" };\r\n \r\n /** XPDY0002: Evaluation Exception. */\r\n Object[] XPNOCTX = { XPDY, 2, \"No context item set for '%'.\" };\r\n /** XPDY0050: Evaluation exception. */\r\n Object[] CTXNODE = { XPDY, 50, \"Context item must be a node.\" };\r\n /** XPDY0050: Evaluation exception. */\r\n Object[] NOTREAT = { XPDY, 50, \"%: % expected, % found.\" };\r\n /** XPDY0050: Evaluation exception. */\r\n Object[] NOTREATS = { XPDY, 50, \"%: % expected, sequence found.\" };\r\n \r\n /** XPST0003: Parsing exception. */\r\n Object[] QUERYEMPTY = { XPST, 3, \"Empty query.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] QUERYINV = { XPST, 3, \"Query contains an illegal character (#%).\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOQUOTE = { XPST, 3, \"Expecting quote%.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOVALIDATE = { XPST, 3, \"Invalid validation expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NUMBERWS = { XPST, 3, \"Expecting separator after number.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NUMBERINC = { XPST, 3, \"Incomplete double value.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] QUERYEND = { XPST, 3, \"Unexpected end of query: '%'.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] CMPEXPR = { XPST, 3, \"Comparison is incomplete.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOTAGNAME = { XPST, 3, \"Expecting tag name.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOATTNAME = { XPST, 3, \"Expecting attribute name.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOLOCSTEP = { XPST, 3, \"Incomplete location step.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOEXPR = { XPST, 3, \"Expecting expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] WRONGCHAR = { XPST, 3, \"Expecting \\\"%\\\"%.\" };\r\n \r\n /** XPST0003: Parsing exception. */\r\n Object[] WRONGEND = { XPST, 3, \"Expecting \\\"%\\\".\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] ENTINVALID = { XPST, 3, \"%\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] INCOMPLETE = { XPST, 3, \"Incomplete expression.\" };\r\n /** XPST0003: Evaluation exception. */\r\n Object[] EVALUNARY = { XPST, 3, \"Unary operator expects a numeric value.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] PATHMISS = { XPST, 3, \"Expecting location path.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] DECLINCOMPLETE = { XPST, 3,\r\n \"Incomplete declaration; expecting 'function', 'variable', ...\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] DECLFUNC = { XPST, 3, \"Expecting function name.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] PREDMISSING = { XPST, 3, \"Expecting expression before predicate.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOVARNAME = { XPST, 3, \"Expecting variable name.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] TAGWRONG = { XPST, 3, \"Start and end tag are different (%/%).\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] PIWRONG = { XPST, 3, \"Invalid processing-instruction.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NSWRONG = { XPST, 3, \"Invalid namespace construction.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOENCLEXPR = { XPST, 3, \"Expecting valid expression after \\\"{\\\".\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NODOCCONS = { XPST, 3, \"Expecting document construction.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOTXTCONS = { XPST, 3, \"Expecting text construction.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOCOMCONS = { XPST, 3, \"Expecting comment construction.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOFUNBODY = { XPST, 3, \"Expecting function body.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] FUNCMISS = { XPST, 3, \"Expecting closing bracket for \\\"%(...\\\".\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] TYPEINVALID = { XPST, 3, \"Expecting data type.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOTYPESWITCH = { XPST, 3, \"Incomplete typeswitch expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] TYPEPAR = { XPST, 3,\r\n \"Expecting '(' after 'typeswitch' expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] PRAGMAINCOMPLETE = { XPST, 3, \"Incomplete pragma expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] TESTINCOMPLETE = { XPST, 3, \"Incomplete node test.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] CALCEXPR = { XPST, 3, \"Calculation is incomplete.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NORETURN = { XPST, 3, \"Expecting return value.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOWHERE = { XPST, 3, \"Expecting valid expression after 'where'.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] ORDERBY = { XPST, 3,\r\n \"Expecting valid expression after 'order by'.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] FLWORWHERE = { XPST, 3,\r\n \"Expecting 'where', 'order' or 'return' expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] FLWORORD = { XPST, 3, \"Expecting 'order' or 'return' expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] FLWORRET = { XPST, 3, \"Expecting 'return' expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOSOME = { XPST, 3, \"Incomplete quantifier expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] IFPAR = { XPST, 3, \"Expecting '(' after 'if' expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOIF = { XPST, 3, \"Incomplete 'if' expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOFOR = { XPST, 3, \"Incomplete 'for' expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOLET = { XPST, 3, \"Incomplete 'let' expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOCLOSING = { XPST, 3, \"Expecting closing tag </%>.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] COMCLOSE = { XPST, 3, \"Unclosed XQuery comment (: ...\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] EXPREMPTY = { XPST, 3, \"Unknown function or expression.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] NOTYPE = { XPST, 3, \"Unknown type %.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] PIXML = { XPST, 3, \"Illegal PI name: %.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] EMPTYSEQOCC = { XPST, 3, \"No occurrence indicator defined for %.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] TESTINVALID = { XPST, 3, \"Invalid % test: %.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] BOUNDS = { XPST, 3, \"Integer value % out of bounds.\" };\r\n /** XPQST0003: Evaluation exception. */\r\n Object[] QNAMEINV = { XPST, 3, \"Invalid QName.\" };\r\n \r\n /** XPST0003: Parsing exception. */\r\n Object[] FTRANGE = { XPST, 3, \"Expecting full-text range.\" };\r\n /** XPST0003: Parsing exception. */\r\n Object[] FTSTOP = { XPST, 3, \"Stop words expected.\" };\r\n \r\n /** XPST0005: Parsing exception. */\r\n Object[] COMPSELF = { XPST, 5, \"Warning: '%' won't yield any results.\" };\r\n \r\n /** XPST0008: Parsing exception. */\r\n Object[] VARNOTDEFINED = { XPST, 8, \"Undefined variable \\\"%\\\".\" };\r\n /** XPST0017: Parsing Exception. */\r\n Object[] XPARGS = { XPST, 17, \"Wrong arguments: % expected.\" };\r\n /** XPST0017: Parsing exception. */\r\n Object[] FUNSIMILAR = { XPST, 17, \"Unknown function \\\"%\\\" (similar: %()).\" };\r\n /** XPST0017: Parsing Exception. */\r\n Object[] FUNCTYPE = { XPST, 17, \"Wrong arguments: %(value) expected.\" };\r\n /** XPST0017: Parsing exception. */\r\n Object[] FUNCUNKNOWN = { XPST, 17, \"Unknown function \\\"%(...)\\\".\" };\r\n /** XPST0017: Parsing exception. */\r\n Object[] FUNCJAVA = { XPST, 17, \"Unknown Java function \\\"%(...)\\\".\" };\r\n /** XPST0051: Parsing exception. */\r\n Object[] TYPEUNKNOWN = { XPST, 51, \"Unknown type %.\" };\r\n /** XPST0080: Parsing exception. */\r\n Object[] CASTUNKNOWN = { XPST, 80, \"Unknown cast type %.\" };\r\n /** XPST0081: Parsing exception. */\r\n Object[] PREUNKNOWN = { XPST, 81, \"Unknown prefix: \\\"%\\\".\" };\r\n /** XPST0081: Parsing exception. */\r\n Object[] NSMISS = { XPST, 81, \"Namespace missing.\" };\r\n \r\n /** XPTY0004: Typing exception. */\r\n Object[] XPSORT = { XPTY, 4, \"No sequences allowed as sort keys.\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] XPSEQ = { XPTY, 4, \"No sequence % allowed here.\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] XPEMPTY = { XPTY, 4, \"Empty sequence not allowed here.\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] XPINVCAST = { XPTY, 4, \"Invalid cast from % to %: %.\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] XPCAST = { XPTY, 4, \"Invalid %(%) cast.\" };\r\n /** XPTY0004: Typing Exception. */\r\n Object[] XPTYPE = { XPTY, 4, \"%: % expected, % found.\" };\r\n /** XPTY0004: Typing Exception. */\r\n Object[] XPEMPTYPE = { XPTY, 4, \"%: % expected, empty sequence found.\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] XPEMPTYNUM =\r\n { XPTY, 4, \"%: number expected, empty sequence found.\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] XPDUR = { XPTY, 4, \"%: duration expected, % found.\" };\r\n /** XPTY0004: Typing Exception. */\r\n Object[] XPTYPECMP = { XPTY, 4, \"% and % can't be compared.\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] XPTYPENUM = { XPTY, 4, \"%: number expected, % found.\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] XPINVNAME = { XPTY, 4, \"Invalid name: %.\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] XPNAME = { XPTY, 4, \"Expecting name.\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] XPATT = { XPTY, 4, \"Can't add attributes to a document node.\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] CPIWRONG = { XPTY, 4, \"% not allowed as PI name: \\\"%\\\".\" };\r\n /** XPTY0004: Typing exception. */\r\n Object[] NAMEWRONG = { XPTY, 4, \"Invalid value for name: \\\"%\\\".\" };\r\n \r\n /** Example for a Date format. */\r\n String XDATE = \"2000-12-31\";\r\n /** Example for a Time format. */\r\n String XTIME = \"23:59:59\";\r\n /** Example for a DateTime format. */\r\n String XDTM = XDATE + \"T\" + XTIME;\r\n /** Example for a DayTimeDuration format. */\r\n String XDTD = \"P23DT12M34S\";\r\n /** Example for a YearMonthDuration format. */\r\n String XYMD = \"P2000Y12M\";\r\n /** Example for a Duration format. */\r\n String XDURR = \"P2000Y12MT23H12M34S\";\r\n /** Example for a YearMonth format. */\r\n String XYMO = \"2000-12\";\r\n /** Example for a Year format. */\r\n String XYEA = \"2000\";\r\n /** Example for a MonthDay format. */\r\n String XMDA = \"--12-31\";\r\n /** Example for a Day format. */\r\n String XDAY = \"---31\";\r\n /** Example for a Month format. */\r\n String XMON = \"--12\";\r\n \r\n /** XPTY0018: Typing exception. */\r\n Object[] EVALNODESVALS = { XPTY, 18,\r\n \"Result yields both nodes and atomic values.\" };\r\n /** XPTY0019: Typing exception. */\r\n Object[] EVALNODES = { XPTY, 19, \"Nodes needed for expression '%'.\" };\r\n /** XPTY0019: Typing exception. */\r\n Object[] NODESPATH = { XPTY, 19, \"Context node required for %; % found.\" };\r\n \r\n /** XPDY0002: Parsing exception. */\r\n Object[] VAREMPTY = { XQDY, 2, \"No value defined for \\\"%\\\".\" };\r\n /** XQDY0026: Evaluation exception. */\r\n Object[] CPICONT = { XQDY, 26, \"Invalid PI content: \\\"%\\\"\" };\r\n /** XQDY0041: Evaluation exception. */\r\n Object[] CPIINVAL = { XQDY, 41, \"Invalid PI name: \\\"%\\\"\" };\r\n /** XQDY0044: Evaluation exception. */\r\n Object[] NSATTCONS = { XQDY, 44,\r\n \"Attribute constructors can't create namespaces.\" };\r\n /** XQDY0064: Evaluation exception. */\r\n Object[] CPIXML = { XQDY, 64, \"Illegal PI name: \\\"%\\\"\" };\r\n /** XQDY0072: Evaluation exception. */\r\n Object[] COMINVALID = { XQDY, 72, \"Invalid comment.\" };\r\n /** XQDY0074: Evaluation exception. */\r\n Object[] INVAL = { XQDY, 74, \"Invalid name: \\\"%\\\"\" };\r\n \r\n /** XQST0009: Parsing exception. */\r\n Object[] IMPLSCHEMA = { XQST, 9, \"Schema import not supported.\" };\r\n /** XQST0022: Parsing exception. */\r\n Object[] NSCONS = { XQST, 22, \"Constant namespace value expected.\" };\r\n /** XQST0031: Parsing exception. */\r\n Object[] XQUERYVER = { XQST, 31, \"XQuery version \\\"%\\\" not supported.\" };\r\n /** XQST0032: Parsing exception. */\r\n Object[] DUPLBASE = { XQST, 32, \"Duplicate 'base-uri' declaration.\" };\r\n /** XQST0033: Parsing exception. */\r\n Object[] DUPLNSDECL = { XQST, 33, \"Duplicate declaration of namespace %.\" };\r\n /** XQST0034: Parsing exception. */\r\n Object[] FUNCDEFINED = { XQST, 34, \r\n \"Duplicate declaration of function \\\"%\\\".\" };\r\n /** XQST0038: Parsing exception. */\r\n Object[] DUPLCOLL = { XQST, 38, \"Duplicate 'collation' declaration.\" };\r\n /** XQST0076: Parsing exception. */\r\n Object[] COLLWHICH = { XQST, 38, \"Unknown collation \\\"%\\\".\" };\r\n /** XQST0039: Parsing exception. */\r\n Object[] FUNCDUPL = { XQST, 39, \"Duplicate function argument %.\" };\r\n /** XQST0040: Parsing exception. */\r\n Object[] ATTDUPL = { XQST, 40, \"Duplicate attribute \\\"%\\\".\" };\r\n /** XQST0040: Parsing exception. */\r\n Object[] ATTNSDUPL = { XQST, 40, \"Duplicate attributes %/%.\" };\r\n /** XQST0045: Parsing exception. */\r\n Object[] NAMERES = { XQST, 45, \"Function %(...) uses reserved namespace.\" };\r\n /** XQST0045: Parsing exception. */\r\n Object[] FUNCRES = { XQST, 45, \"Node type \\\"%()\\\" is reserved.\" };\r\n /** XQST0047: Parsing exception. */\r\n Object[] DUPLMODULE = { XQST, 47, \"Module is defined twice: %.\" };\r\n /** XQST0047: Parsing exception. */\r\n Object[] MODNS = { XQST, 48,\r\n \"Declaration % does not match the module namespace.\" };\r\n /** XQST0049: Parsing exception. */\r\n Object[] VARDEFINE = { XQST, 49, \"Duplicate definition of %.\" };\r\n /** XQST0054: Parsing exception. */\r\n Object[] XPSTACK = { XQST, 54, \"Circular variable definition?\" };\r\n /** XQST0054: Parsing exception. */\r\n Object[] VARMISSING = { XQST, 54, \"Expecting variable declaration.\" };\r\n /** XQST0055: Parsing exception. */\r\n Object[] DUPLCOPYNS = { XQST, 55, \"Duplicate 'copy-namespace' declaration.\" };\r\n /** XQST0085: Parsing exception. */\r\n Object[] NSEMPTY = { XQST, 57, \"Namespace URI can't be empty.\" };\r\n /** XQST0059: Parsing exception. */\r\n Object[] NOMODULE = { XQST, 59, \"Unknown module for namespace \\\"%\\\".\" };\r\n /** XQST0059: Parsing exception. */\r\n Object[] NOMODULEFILE = { XQST, 59, \"Module not found: \\\"%\\\".\" };\r\n /** XQST0059: Parsing exception. */\r\n Object[] WRONGMODULE = { XQST, 59, \"Wrong uri % in imported module \\\"%\\\".\" };\r\n /** XQST0060: Parsing exception. */\r\n Object[] FUNNONS = { XQST, 60, \"Namespace needed for function %(...).\" };\r\n /** XQST0065: Parsing exception. */\r\n Object[] DUPLORD = { XQST, 65, \"Duplicate 'ordering' declaration.\" };\r\n /** XQST0066: Parsing exception. */\r\n Object[] DUPLNS = { XQST, 66, \"Duplicate 'default namespace' declaration.\" };\r\n /** XQST0067: Parsing exception. */\r\n Object[] DUPLCONS = { XQST, 67, \"Duplicate 'construction' declaration.\" };\r\n /** XQST0068: Parsing exception. */\r\n Object[] DUPLBOUND = { XQST, 68, \"Duplicate 'boundary-space' declaration.\" };\r\n /** XQST0069: Parsing exception. */\r\n Object[] DUPLORDEMP = { XQST, 69, \"Duplicate 'order empty' declaration.\" };\r\n /** XQST0070: Parsing exception. */\r\n Object[] NSDEF = { XQST, 70, \"Can't overwrite namespace %\" };\r\n /** XQST0070: Parsing exception. */\r\n Object[] NOXMLNS = { XQST, 70, \"Can't declare XML namespace.\" };\r\n /** XQST0071: Parsing exception. */\r\n Object[] DUPLNSDEF = { XQST, 71,\r\n \"Duplicate declaration of namespace \\\"%\\\".\" };\r\n /** XQST0073: Parsing exception. */\r\n Object[] CIRCMODULE = { XQST, 73, \"Circular module definition.\" };\r\n /** XQST0075: Parsing exception. */\r\n Object[] IMPLVAL = { XQST, 75, \"Validation not supported yet.\" };\r\n /** XQST0076: Parsing exception. */\r\n Object[] INVCOLL = { XQST, 76, \"Unknown collation \\\"%\\\".\" };\r\n /** XQST0079: Parsing exception. */\r\n Object[] NOPRAGMA = { XQST, 79, \"Expecting pragma expression.\" };\r\n /** XQST0085: Parsing exception. */\r\n Object[] NSEMPTYURI = { XQST, 85, \"Namespace URI can't be empty.\" };\r\n /** XQST0087: Parsing exception. */\r\n Object[] XQUERYENC2 = { XQST, 87, \"Imprecise encoding definition '%'.\" };\r\n /** XQST0088: Parsing exception. */\r\n Object[] NSMODURI = { XQST, 88, \"Module namespace can't be empty.\" };\r\n /** XQST0089: Parsing exception. */\r\n Object[] VARDEFINED = { XQST, 89, \"Duplicate definition of %.\" };\r\n \r\n /** XQTY0024: Parsing exception. */\r\n Object[] NOATTALL = { XQTY, 24, \r\n \"Attributes must directly follow element nodes.\" };\r\n \r\n /** XUST0000: Parsing exception. */\r\n Object[] UPIMPL = { XUST, 0, \"XQuery Update not implemented.\" };\r\n /** XUST0003: Parsing exception. */\r\n Object[] DUPLREVAL = { XUST, 3, \"Duplicate 'revalidation' declaration.\" };\r\n \r\n // OPTIMIZATIONS\r\n \r\n /** Optimization info. */\r\n String OPTCAST = \"Casting %\";\r\n /** Optimization info. */\r\n String OPTDESC = \"Merging descendant-or-self step(s)\";\r\n /** Optimization info. */\r\n String OPTPRE = \"Pre-evaluating %\";\r\n /** Optimization info. */\r\n String OPTWRITE = \"Rewriting %\";\r\n /** Optimization info. */\r\n String OPTFALSE = \"Removing always false expression: %\";\r\n /** Optimization info. */\r\n String OPTTRUE = \"Removing always true expression: %\";\r\n /** Optimization info. */\r\n String OPTTEXT = \"Adding text() step\";\r\n /** Optimization info. */\r\n String OPTSIMPLE = \"Simplifying: % => %\";\r\n /** Optimization info. */\r\n String OPTFLWOR = \"Simplifying FLWOR expression\";\r\n /** Optimization info. */\r\n String OPTWHERE = \"Converting where clause to predicate\";\r\n /** Optimization info. */\r\n String OPTVAR = \"Removing variable %\";\r\n /** Optimization info. */\r\n String OPTRED = \"Merging redundant location paths\";\r\n /** Optimization info. */\r\n String OPTNAME = \"Removing unknown tag/attribute \\\"%\\\"\";\r\n /** Optimization info. */\r\n String OPTTXTINDEX = \"Applying text index\";\r\n /** Optimization info. */\r\n String OPTATVINDEX = \"Applying attribute index\";\r\n /** Optimization info. */\r\n String OPTFTXINDEX = \"Applying fulltext index\";\r\n /** Optimization info. */\r\n String OPTRNGINDEX = \"Applying range index\";\r\n /** Optimization info. */\r\n String OPTEMPTY = \"Removing empty sequences.\";\r\n /** Optimization info. */\r\n String OPTPOS = \"Adding position predicate\";\r\n /** Optimization info. */\r\n String OPTNOINDEX = \"Removing path with no index results\";\r\n /** Optimization info. */\r\n String OPTBIND = \"Bind static variable %\";\r\n /** Optimization info. */\r\n String OPTCHILD = \"Converting % to child steps\";\r\n }", "title": "" }, { "docid": "1148f65a5ac41e2a33f3822973b69c0e", "score": "0.3479278", "text": "protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKind getCodeActionKind();", "title": "" }, { "docid": "a58f28ada86ba01b74537954e2cdf5dc", "score": "0.34788543", "text": "public String attributeIndicesTipText() {\r\n\r\n\t\treturn \"Specify range of attributes to act on.\"\r\n\t\t\t\t+ \" This is a comma separated list of attribute indices, with\"\r\n\t\t\t\t+ \" \\\"first\\\" and \\\"last\\\" valid values. Specify an inclusive\"\r\n\t\t\t\t+ \" range with \\\"-\\\". E.g: \\\"first-3,5,6-10,last\\\".\";\r\n\t}", "title": "" }, { "docid": "14e3e1d0e44df06267dc0b14eec4efd9", "score": "0.34714103", "text": "public final void mSafety_range() throws RecognitionException {\n try {\n int _type = Safety_range;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalSafetyLexer.g:50:14: ( ( 'S' | 's' ) ( 'A' | 'a' ) ( 'F' | 'f' ) ( 'E' | 'e' ) ( 'T' | 't' ) ( 'Y' | 'y' ) '_' ( 'R' | 'r' ) ( 'A' | 'a' ) ( 'N' | 'n' ) ( 'G' | 'g' ) ( 'E' | 'e' ) )\n // InternalSafetyLexer.g:50:16: ( 'S' | 's' ) ( 'A' | 'a' ) ( 'F' | 'f' ) ( 'E' | 'e' ) ( 'T' | 't' ) ( 'Y' | 'y' ) '_' ( 'R' | 'r' ) ( 'A' | 'a' ) ( 'N' | 'n' ) ( 'G' | 'g' ) ( 'E' | 'e' )\n {\n if ( input.LA(1)=='S'||input.LA(1)=='s' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='A'||input.LA(1)=='a' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='F'||input.LA(1)=='f' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='E'||input.LA(1)=='e' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='T'||input.LA(1)=='t' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='Y'||input.LA(1)=='y' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n match('_'); \n if ( input.LA(1)=='R'||input.LA(1)=='r' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='A'||input.LA(1)=='a' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='N'||input.LA(1)=='n' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='G'||input.LA(1)=='g' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='E'||input.LA(1)=='e' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "5918696442f3270f759e3b25295d8b0d", "score": "0.34708184", "text": "public List<TDeviceInfo> findWhereIpdecodeBetweenScopes(long[] min, long [] max) throws TDeviceInfoDaoException;", "title": "" }, { "docid": "e4950a51f4f29534c60053b4b0d4dfea", "score": "0.34685704", "text": "CodeValidationResult<CDCT, IST> validateCode(FhirContext theContext, String theCodeSystem, String theCode, String theDisplay);", "title": "" }, { "docid": "7cf094924ed454c891d4878beb2c4115", "score": "0.34684595", "text": "public protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport getCodeActionLiteralSupport() {\n if (codeActionLiteralSupportBuilder_ == null) {\n return codeActionLiteralSupport_ == null ? protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.getDefaultInstance() : codeActionLiteralSupport_;\n } else {\n return codeActionLiteralSupportBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "d905af49226e95d7b637b6b5cfa857f3", "score": "0.34647554", "text": "public String getDiagnosticsMode() {\n return this.diagnosticsMode;\n }", "title": "" }, { "docid": "b0cbb293f8da324b26f3822e6af7e026", "score": "0.34634855", "text": "public final EObject ruleArrayRange() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n AntlrDatatypeRuleToken lv_lowerBound_2_0 = null;\n\n AntlrDatatypeRuleToken lv_upperBound_4_0 = null;\n\n\n enterRule(); \n \n try {\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5027:28: ( ( () otherlv_1= '[' ( (lv_lowerBound_2_0= ruleINTVALUE ) ) (otherlv_3= '..' ( (lv_upperBound_4_0= ruleINTVALUE ) ) )? otherlv_5= ']' ) )\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5028:1: ( () otherlv_1= '[' ( (lv_lowerBound_2_0= ruleINTVALUE ) ) (otherlv_3= '..' ( (lv_upperBound_4_0= ruleINTVALUE ) ) )? otherlv_5= ']' )\n {\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5028:1: ( () otherlv_1= '[' ( (lv_lowerBound_2_0= ruleINTVALUE ) ) (otherlv_3= '..' ( (lv_upperBound_4_0= ruleINTVALUE ) ) )? otherlv_5= ']' )\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5028:2: () otherlv_1= '[' ( (lv_lowerBound_2_0= ruleINTVALUE ) ) (otherlv_3= '..' ( (lv_upperBound_4_0= ruleINTVALUE ) ) )? otherlv_5= ']'\n {\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5028:2: ()\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5029:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getArrayRangeAccess().getArrayRangeAction_0(),\n current);\n \n }\n\n }\n\n otherlv_1=(Token)match(input,93,FOLLOW_93_in_ruleArrayRange11485); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getArrayRangeAccess().getLeftSquareBracketKeyword_1());\n \n }\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5038:1: ( (lv_lowerBound_2_0= ruleINTVALUE ) )\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5039:1: (lv_lowerBound_2_0= ruleINTVALUE )\n {\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5039:1: (lv_lowerBound_2_0= ruleINTVALUE )\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5040:3: lv_lowerBound_2_0= ruleINTVALUE\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getArrayRangeAccess().getLowerBoundINTVALUEParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleINTVALUE_in_ruleArrayRange11506);\n lv_lowerBound_2_0=ruleINTVALUE();\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.getArrayRangeRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"lowerBound\",\n \t\tlv_lowerBound_2_0, \n \t\t\"INTVALUE\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5056:2: (otherlv_3= '..' ( (lv_upperBound_4_0= ruleINTVALUE ) ) )?\n int alt69=2;\n int LA69_0 = input.LA(1);\n\n if ( (LA69_0==97) ) {\n alt69=1;\n }\n switch (alt69) {\n case 1 :\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5056:4: otherlv_3= '..' ( (lv_upperBound_4_0= ruleINTVALUE ) )\n {\n otherlv_3=(Token)match(input,97,FOLLOW_97_in_ruleArrayRange11519); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_3, grammarAccess.getArrayRangeAccess().getFullStopFullStopKeyword_3_0());\n \n }\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5060:1: ( (lv_upperBound_4_0= ruleINTVALUE ) )\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5061:1: (lv_upperBound_4_0= ruleINTVALUE )\n {\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5061:1: (lv_upperBound_4_0= ruleINTVALUE )\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:5062:3: lv_upperBound_4_0= ruleINTVALUE\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getArrayRangeAccess().getUpperBoundINTVALUEParserRuleCall_3_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleINTVALUE_in_ruleArrayRange11540);\n lv_upperBound_4_0=ruleINTVALUE();\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.getArrayRangeRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"upperBound\",\n \t\tlv_upperBound_4_0, \n \t\t\"INTVALUE\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_5=(Token)match(input,94,FOLLOW_94_in_ruleArrayRange11554); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_5, grammarAccess.getArrayRangeAccess().getRightSquareBracketKeyword_4());\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": "e6ed4f1c8a4d01d7c2e3deac314726cc", "score": "0.34583375", "text": "public CMMsg setSourceCode(final int code);", "title": "" }, { "docid": "6cdfdf099e3a0192b2791b538db7566e", "score": "0.34575233", "text": "protected void validateAlert(CodeDescriptionType[] param){\n \n }", "title": "" }, { "docid": "c21c9747cb5eb292f703c23f528fc089", "score": "0.34562665", "text": "public List<String> findConc(BLSpanQuery query) {\n try {\n return getConcordances(index.find(query, null), word);\n } catch (WildcardTermTooBroad e) {\n throw BlackLabRuntimeException.wrap(e);\n }\n }", "title": "" }, { "docid": "8b98f25b103c510e57702546df4f6ced", "score": "0.34559247", "text": "public java.lang.String getSrange() {\n java.lang.Object ref = srange_;\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 srange_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "0b548f2f6badee84535e021be098e781", "score": "0.34497193", "text": "public protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupportOrBuilder getCodeActionLiteralSupportOrBuilder() {\n if (codeActionLiteralSupportBuilder_ != null) {\n return codeActionLiteralSupportBuilder_.getMessageOrBuilder();\n } else {\n return codeActionLiteralSupport_ == null ?\n protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.getDefaultInstance() : codeActionLiteralSupport_;\n }\n }", "title": "" }, { "docid": "8887359eeb950cd6a8a17b785c018766", "score": "0.34489495", "text": "protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKind getValueSet(int index);", "title": "" }, { "docid": "65c79002b2859354155e4721b51c9137", "score": "0.34428042", "text": "public protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKind getCodeActionKind() {\n if (codeActionKindBuilder_ == null) {\n return codeActionKind_ == null ? protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKind.getDefaultInstance() : codeActionKind_;\n } else {\n return codeActionKindBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "76b83aa6ef6fd0556a60d225f900d76d", "score": "0.34406057", "text": "@Override\n\tprotected final MsgCodes getMinConsoleMsgCodes() {return null;}", "title": "" }, { "docid": "8382360e6d60eb70253343bd0a40004c", "score": "0.34399867", "text": "boolean hasCodeActionKind();", "title": "" }, { "docid": "c152bd3dd0171c55cd36b28149a1d808", "score": "0.34374458", "text": "boolean edges(DiagnosticChain diagnostics, Map<Object, Object> context);", "title": "" }, { "docid": "f598977bb4e0210e5e5f69af64b12901", "score": "0.3437075", "text": "public interval_C[] getResponsibilityRange()\r\n\t{\t\r\n\t\treturn _range_responsibility;\r\n\t}", "title": "" }, { "docid": "aeba0b240919baf49d91c697c7c6edf6", "score": "0.34348473", "text": "List<ConstraintViolation> getViolations(String paramName);", "title": "" }, { "docid": "b2149c9268e71a9632e96086091600ec", "score": "0.34329453", "text": "java.util.List<? extends com.bcs.bm.catalog_of_instruments_rudata.client.grpc.CorporateActionSourceOrBuilder> \n getCorporateActionSourcesOrBuilderList();", "title": "" }, { "docid": "a986ef6a778d650499a2528be74cdcd1", "score": "0.34299335", "text": "@Test\n\tpublic void testRangesNotOverlapping() {\n\t\tRangeTree rt = new RangeTree();\n\n\t\t// TEST CASE 1\n\t\tString[] range1 = { \"94133\", \"94133\" };\n\t\tString[] range2 = { \"94200\", \"94299\" };\n\t\tString[] range3 = { \"94600\", \"94699\" };\n\t\tString[][] testArray1 = new String[3][2];\n\t\ttestArray1[0] = range1;\n\t\ttestArray1[1] = range2;\n\t\ttestArray1[2] = range3;\n\n\t\t\n\t\tList<String> flatRanges = rt.processRanges(testArray1);\n\t\tSystem.out.println(\"-------------------------------------------------------\");\n\t\tSystem.out.println(\"OUTPUT TEST CASE 1: \");\n\t\tStringBuilder rangeBuilder = new StringBuilder();\n\t\tfor (String range : flatRanges) {\n\t\t\trangeBuilder.append(range);\n\t\t\tSystem.out.print(range);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"-------------------------------------------------------\");\n\t\tSystem.out.println(\"-------------------------------------------------------\");\n\t\tAssert.assertEquals(\"[94133,94133] [94200,94299] [94600,94699]\", rangeBuilder.toString().trim());\n\t\t\n\t}", "title": "" }, { "docid": "b7708c132df575b2fa5e3d95c2bba94d", "score": "0.34242946", "text": "public Builder violation(String message, String... pathElements) {\n this.violations.add(new ScmConstraintViolation(message, pathElements));\n return this;\n }", "title": "" } ]
70516a0e1165782d98749d404cc33336
see if current point is in range
[ { "docid": "6e571359c32adc93f068083dc04245e6", "score": "0.0", "text": "private void rangeSearch(Node2D current, RectHV rect, Queue<Point2D> resQueue) {\n if (rect.contains(current.point)) {\n resQueue.enqueue(current.point);\n }\n\n if ((current.left != null) && rect.intersects(current.left.contRect)) {\n rangeSearch(current.left, rect, resQueue);\n }\n if ((current.right != null) && rect.intersects(current.right.contRect)) {\n rangeSearch(current.right, rect, resQueue);\n }\n }", "title": "" } ]
[ { "docid": "273a7876d9ab7a695e8224df7bb887e8", "score": "0.76012796", "text": "private boolean inRange(double side, double point) {\n if (side - 0.2 <= point && side + 0.2 >= point) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "d344145d2047d9d5b635e18a6f674903", "score": "0.73809266", "text": "boolean hasRange();", "title": "" }, { "docid": "d344145d2047d9d5b635e18a6f674903", "score": "0.73809266", "text": "boolean hasRange();", "title": "" }, { "docid": "d344145d2047d9d5b635e18a6f674903", "score": "0.73809266", "text": "boolean hasRange();", "title": "" }, { "docid": "d344145d2047d9d5b635e18a6f674903", "score": "0.73809266", "text": "boolean hasRange();", "title": "" }, { "docid": "127f6e6aa5292d60e138fdb2311dfa21", "score": "0.729709", "text": "boolean inBounds();", "title": "" }, { "docid": "efc46305ae38ce5f729e6e2066e5a591", "score": "0.72615385", "text": "public boolean inRange(double x, double y) { \n if (x < 1) return ((relX - 0.05) < x && x < (relX + 0.05)) && ((relY - 0.05) < y && y < (relY + 0.05));\n return ((relX - 0.05) < x && x < (relX + 0.05)) && ((relY - 0.05) < y && y < (relY + 0.05));\n }", "title": "" }, { "docid": "23c0afcdd71e2c94d1e1f876f818d48f", "score": "0.7224748", "text": "public boolean isInXRange(double x) {\n //return ((x >= this.start.getX()) && (x <= this.end.getX()));\n return (x >= Math.min(this.start.getX(), this.end.getX())\n && (x <= Math.max(this.end.getX(), this.start.getX())));\n }", "title": "" }, { "docid": "1b2c4ea44984b820f92465ed74dd3219", "score": "0.7186727", "text": "public boolean inside(Point aPoint);", "title": "" }, { "docid": "17176a2054ee46e47bd07107d457438f", "score": "0.69959295", "text": "public abstract boolean isPointInside(PointUserSpace point);", "title": "" }, { "docid": "dc4f5f203f95b2a07549dcf5c5ee10d1", "score": "0.6934514", "text": "public boolean contains_point(Point a){\n if(coordinates.get_x()<=a.get_x()&& coordinates.get_y() <= a.get_y() && a.get_x()< x_limits && a.get_y()< y_limits){\r\n //checks if the point is within the boundaries of the square - I considered that the point can belong to the x-y limit axis but not the x-y axis\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "cef9e758fbe7094b3268f7c34be3d5cd", "score": "0.6876152", "text": "public boolean isInBounds(Coord loc){return isInBounds(loc.x, loc.y);}", "title": "" }, { "docid": "e87adfd9e1e7511c6e2a6488c43ce6e4", "score": "0.68733937", "text": "public boolean inRange()\r\n {\n \tboolean x = Math.abs(this.rpm()) > Robot.value - 10 && Math.abs(this.rpm()) < Robot.value + 10;\r\n \treturn x;\r\n }", "title": "" }, { "docid": "955aacd6a231a3c1986a53e74cfea49c", "score": "0.6851791", "text": "private boolean containsPoint(int x, int y) {\n\t\tint x2 = basex + width;\n\t\tint y2 = basey + height;\n\t\treturn (x < x2 && x > basex) && (y < y2 && y > basey);\n\t}", "title": "" }, { "docid": "7f325251ce34eaed3b9ed5dc792d8ab7", "score": "0.68444836", "text": "public boolean isInside(Point point) {\n\n return false;\n }", "title": "" }, { "docid": "caaab42a433bd2a10d12ab45cf796439", "score": "0.68258846", "text": "public final boolean isInBounds(Point p) {\n return p.x >= 0 && p.x < BOARD_SIZE && p.y >= 0 && p.y < BOARD_SIZE;\n }", "title": "" }, { "docid": "f8806b80dcff614814adaf97daa6b3c9", "score": "0.68124676", "text": "boolean isRangeValue();", "title": "" }, { "docid": "1169e176f46af1a4a41d5771c9c0debf", "score": "0.6806495", "text": "public boolean isInXBoundaries(Point point) {\n return point.getX() >= getUpperLeft().getX() && point.getX() <= getUpperLeft().getX() + getWidth();\n }", "title": "" }, { "docid": "0cd7c45af38cafda1b4182f4974e94a3", "score": "0.67899126", "text": "boolean isWithinLimits(CrossSectionPoint p) {\n\t\treturn _hRange.inRange(p.getHorizDistThal()) &&\n\t\t _vRange.inRange(p.getVertDistThal());\n\t}", "title": "" }, { "docid": "cefaebb4d497109af6fb0cfd97381611", "score": "0.66969895", "text": "boolean isBound();", "title": "" }, { "docid": "f59efb0c49b41bd4fbc46d52d4f77c27", "score": "0.667524", "text": "public final boolean isInRange(int pc) {\n return pc_start_index <= pc && pc <= pc_end_index;\n }", "title": "" }, { "docid": "437ac4c4c98c7ecbbe6e6aaea41438e6", "score": "0.6668757", "text": "public boolean inGoalRegion() {\n return position >= goalPosition;\n }", "title": "" }, { "docid": "f0294cb583d11aee3a2eadfaf13acc6a", "score": "0.66637695", "text": "public boolean isInRectangle(Point point) {\n return isInXBoundaries(point) && isInYBoundaries(point);\n }", "title": "" }, { "docid": "0872e67c275aa086998afe6a11b13f16", "score": "0.6659486", "text": "boolean hasLowerBound();", "title": "" }, { "docid": "2035e8eef4040319aaeef11daa71ee56", "score": "0.66431826", "text": "public boolean inContourInterval() {\n return ((this.getLoIndex() >= this.minIdx) && (this.getLoIndex() <= this.maxIdx));\n }", "title": "" }, { "docid": "d8586891c669cd775c6e5a99a6eec00e", "score": "0.66430485", "text": "default boolean isInRange(int positionX, int positionY) {\n return positionX >= -StartingPoint.getCENTERX() - Block.getSIZE()\n && positionX <= StartingPoint.getCENTERX() + Block.getSIZE() * 2\n && positionY >= -StartingPoint.getCENTERY() - Block.getSIZE()\n && positionY <= StartingPoint.getCENTERY() + Block.getSIZE() * 2;\n }", "title": "" }, { "docid": "d6ef81b412f53e712a912dd1f6203a9c", "score": "0.661287", "text": "boolean hasRangeSupport(\n );", "title": "" }, { "docid": "821cdfd5723198af0e56d602259322f1", "score": "0.66088784", "text": "private boolean isPointOnLevel(int x, int y, LevelSave level){\n\t\tint[] coordinates = mapPointForLevel(level);\n\t\tif(coordinates == null){\n\t\t\treturn false;\n\t\t}\n\t\treturn ((x >= coordinates[0] && x <= coordinates[0]+coordinates[2])\n\t\t\t\t&& (y >= coordinates[1] && y <= coordinates[1]+coordinates[3]));\n\t}", "title": "" }, { "docid": "e292dae20e7d0dfa8a1da5f48807938a", "score": "0.66063666", "text": "public boolean hasRange() {\n return range_ != null;\n }", "title": "" }, { "docid": "e292dae20e7d0dfa8a1da5f48807938a", "score": "0.66063666", "text": "public boolean hasRange() {\n return range_ != null;\n }", "title": "" }, { "docid": "e292dae20e7d0dfa8a1da5f48807938a", "score": "0.66063666", "text": "public boolean hasRange() {\n return range_ != null;\n }", "title": "" }, { "docid": "d6d6056a6658be232eedec0d674a5466", "score": "0.65910995", "text": "private boolean withinContext(int[] bounds, GeoPoint gp){\n \treturn gp.getLatitude() > bounds[0] && gp.getLatitude() < bounds[1] &&\n \tgp.getLongitude() > bounds[2] && gp.getLongitude() < bounds[3];\n }", "title": "" }, { "docid": "ca1b78772912433c080a80742fab96c1", "score": "0.6588415", "text": "public abstract boolean isTrueFor(RoPoint mr, RoInterval current);", "title": "" }, { "docid": "511b195f9c7084ec54f44f7447a3b58b", "score": "0.6578476", "text": "public boolean isBound();", "title": "" }, { "docid": "557dde3f88de6ee57bf218af5edd8036", "score": "0.657846", "text": "public boolean containsPoint( Point p ) {\n if (iconRef!=null)\n return (( p.x > drawx-getWidth()/2-iconRef.getIconWidth()/2) && \n ( p.x < drawx+getWidth()/2+iconRef.getIconWidth()/2) \n && ( p.y > drawy-getHeight()/2-iconRef.getIconHeight()/2) && \n ( p.y < drawy+getHeight()/2+iconRef.getIconHeight()/2));\n else\n return super.containsPoint(p);\n }", "title": "" }, { "docid": "cf1dcfce6f541aca619d66ac1ff7b084", "score": "0.6558589", "text": "boolean hasBeginPoint();", "title": "" }, { "docid": "6822db74cfe4b86ae240a1bc48f805dd", "score": "0.65478957", "text": "public boolean isBound() {\n return pos < 0;\n }", "title": "" }, { "docid": "d889cc59229a80ffd0f268c33d29ccf9", "score": "0.6543523", "text": "public boolean isInside(int x, int y, int range) {\n return ((centerX - x) * (centerX - x) + (y - centerY) * (y - centerY) <= range * range);\n }", "title": "" }, { "docid": "206652d760752bcfd91fd5acefe95989", "score": "0.6537487", "text": "public boolean bound(Point p) throws IllegalArgumentException {\n if (p == null || !Point.isValidTriple(p)) {\n throw new IllegalArgumentException(\n \"bound() called with Point that is either null or not valid\");\n }\n if (p.getX() <= max.getX() && p.getX() >= min.getX()\n && p.getY() <= max.getY() && p.getY() >= min.getY()\n && p.getZ() <= max.getZ() && p.getZ() >= min.getZ()) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "ca2a779d5e5bae8a92849986be9a47ea", "score": "0.6497223", "text": "public boolean isInside(Point p)\r\n {\r\n return isInside(p.x, p.y);\r\n }", "title": "" }, { "docid": "f5b7eafeef1bdad87e25766a7e148791", "score": "0.64959407", "text": "static boolean checkBounds(Point currentPoint, Point startingPoint, int dist) {\n if((int) currentPoint.distance(startingPoint) > dist) {\n \n return true;\n }\n \n else {\n return false;\n }\n }", "title": "" }, { "docid": "97e3cdfd6dacf966c74d9810c939cbf9", "score": "0.6491482", "text": "public boolean contains(Point p) {\n return bounds != null && bounds.contains(p.x, p.y);\n }", "title": "" }, { "docid": "a8e27287df7bf0563cbbc4cabc2fa30a", "score": "0.64910173", "text": "boolean contains(double x, double y) {\n return !this.isEmpty() && (xmin <= x && x <= xmax) && (ymin <= y && y <= ymax);\n }", "title": "" }, { "docid": "cbc9c0207f882cc9288031fc4b3afbb6", "score": "0.6476722", "text": "protected boolean outOfRangeX() {\n return body.getPosition().x <= startX / PPM || body.getPosition().x >= endX / PPM;\n }", "title": "" }, { "docid": "643bd0392958b532489ac24af0a8e7c0", "score": "0.6476391", "text": "public static boolean onSegment(Point P, Point Q, Point R) {\n if (R.x <= Math.max(P.x, Q.x) && R.x >= Math.min(P.x, Q.x) && // checking if x coordinate is in range\n R.y <= Math.max(P.y, Q.y) && R.y >= Math.min(P.y, Q.y)) // checking for y coordinate\n return true;\n return false;\n }", "title": "" }, { "docid": "a86d0bd9c053e0c751d312f73fd5deb5", "score": "0.64721084", "text": "public boolean contains(Vector point) {\n\t\treturn\t(point.x >= this.point.x && point.x < this.point.x + this.size.x) &&\n\t\t\t\t(point.y >= this.point.y && point.y < this.point.y + this.size.y);\n\t}", "title": "" }, { "docid": "63b478c4b1bc25713d62ac1d719fa4e9", "score": "0.6471464", "text": "public boolean inside(Rectangle rect) {\n\t\treturn\trect.point.x <= point.x &&\n\t\t\t\trect.point.x + rect.size.x >= point.x + size.x &&\n\t\t\t\trect.point.y <= point.y &&\n\t\t\t\trect.point.y + rect.size.y >= point.y + size.y;\n\t}", "title": "" }, { "docid": "b7696d1b69ab636b9671af502f0e37d7", "score": "0.64654326", "text": "public boolean pointWithinBox(Point2d p)\n\t{\n\t\t\n\t\treturn(p.x > xMin && p.x < xMax && p.y < yMax && p.y > yMin);\n\t}", "title": "" }, { "docid": "13ed46cb8ea3afed0bc565960e1b0560", "score": "0.6458721", "text": "private boolean passedBounds(boolean isTop,double current) {\n\t\tif(isTop)\n\t\t\treturn (current <= boundary*320-10);\n\t\telse\n\t\t\treturn(current>=boundary*320-10);\n\t}", "title": "" }, { "docid": "de03f1568577f2009751a64c2a9ac3fb", "score": "0.64550537", "text": "public boolean inRect(RMRect aRect) { return x>=aRect.x && x<=aRect.getMaxX() && y>=aRect.y && y<=aRect.getMaxY(); }", "title": "" }, { "docid": "bceed937065133ab50b1bfb9f996655d", "score": "0.6448086", "text": "private static boolean insideRectangle(final Vector3 point, final ArrayList<Vector3> rect) {\n final double x = point.getX();\n final double y = point.getZ();\n double xmin = Double.MAX_VALUE;\n double xmax = -Double.MAX_VALUE;\n double ymin = Double.MAX_VALUE;\n double ymax = -Double.MAX_VALUE;\n for (final Vector3 v : rect) {\n if (xmin > v.getX()) {\n xmin = v.getX();\n }\n if (xmax < v.getX()) {\n xmax = v.getX();\n }\n if (ymin > v.getZ()) {\n ymin = v.getZ();\n }\n if (ymax < v.getZ()) {\n ymax = v.getZ();\n }\n }\n return x > xmin && x < xmax && y > ymin && y < ymax;\n }", "title": "" }, { "docid": "5e2acc81f98f4b3d9a038d4ab3305da6", "score": "0.6442832", "text": "boolean hasInterval();", "title": "" }, { "docid": "4d9bcf14da295b68e0b64e7d8ec99bac", "score": "0.6436673", "text": "public abstract boolean inShapeBounds(float x, float y);", "title": "" }, { "docid": "3233176ca7e12149d02fd69977abf960", "score": "0.64305705", "text": "public boolean contains(GoPoint point)\n {\n return point.isOnBoard(getSize());\n }", "title": "" }, { "docid": "74a366ba5c9344ebb4a0f2606b87a5d4", "score": "0.6429312", "text": "private boolean isPointInBox(float xPoint, float yPoint) {\n boolean betweenTB = between(ulX, ulY,\n urX, urY,\n llX, llY,\n lrX, lrY,\n xPoint, yPoint);\n // Is the point between the left and right lines\n boolean betweenLR = between(ulX, ulY,\n llX, llY,\n urX, urY,\n lrX, lrY,\n xPoint, yPoint);\n if (betweenTB && betweenLR) return true;\n return false;\n }", "title": "" }, { "docid": "dc317d67a81e8cde00600a8ee5b384bb", "score": "0.6408377", "text": "boolean inside(XYLocation a, XYLocation bl, XYLocation tr) {\n if(a.x < bl.x) return false;\n if(a.y < bl.y) return false;\n if(a.x > tr.x) return false;\n if(a.y > tr.y) return false;\n return true;\n }", "title": "" }, { "docid": "117c5f6eaddbbb83cda2582c5a8d770d", "score": "0.63955754", "text": "public boolean contains(Vector3f point) {\n\t\treturn minx < point.x && maxx > point.x && miny < point.y && maxy > point.y && minz < point.z && maxz > point.z;\n\t}", "title": "" }, { "docid": "f7ca5e78f53151d49974b7b37b744d47", "score": "0.63953364", "text": "private boolean valueIsBetween(final int candidatePos, final int startCellPos, final int endCellPos) {\n\t\treturn (startCellPos < candidatePos && candidatePos < endCellPos)\n\t\t\t\t|| (endCellPos < candidatePos && candidatePos < startCellPos);\n\t}", "title": "" }, { "docid": "66a6f9e0026bb9af0588ce649294c326", "score": "0.6381149", "text": "public boolean inPosition(int rect_x, int rect_y, int rect_width, int rect_height, \nint pos_x, int pos_y, int pos_width, int pos_height) {\n\n if (rect_x > pos_x &&\n (rect_x + rect_width) < (pos_x +pos_width) && \n rect_y > pos_y && \n (rect_y + rect_height) < (pos_y + pos_height)) { \n return true;\n } \n return false;\n}", "title": "" }, { "docid": "f5added5bc44a413a29c3fddadab1eef", "score": "0.6373314", "text": "boolean contains(Point p) {\n double mx = -(this.myLine._a) / (this.myLine._b);\n double c = (this.myLine._c) / (this.myLine._b);\n\n boolean equalSlope = p._y == mx * p._x + c;\n boolean xInRange = Math.min(x1,x2) <= p._x && p._x <= Math.max(x1, x2);\n boolean yInRange = Math.min(y1,y2) <= p._y && p._y <= Math.max(y1, y2);\n\n return equalSlope && xInRange && yInRange ? true : false;\n }", "title": "" }, { "docid": "13924c1e371955d1862eef66cc23f8c6", "score": "0.63579035", "text": "public boolean isInDamagedRegion(int pos) {\n if (start == -1) {\n return false;\n }\n return (pos >= start && pos <= editedEnd);\n }", "title": "" }, { "docid": "2dfa3dc022be32b3b6482c3aff7610ed", "score": "0.6355893", "text": "private boolean inBounds(int row, int col)\n {\n\treturn (0 <= row && row < rows) && (0 <= col && col < cols);\n }", "title": "" }, { "docid": "a164b57e9ca853efb549940a971ae6d4", "score": "0.635422", "text": "private boolean isInBound(int i, int j) {\n return i > 0 && i <= zoo.getRow() && j > 0 && j <= zoo.getCol();\n }", "title": "" }, { "docid": "f1f399af50e5f60d17aa7d4a9ee9910a", "score": "0.6347809", "text": "public boolean inBounds(double xCoor, double yCoor)\n\t{\n\t\treturn xCoor >= xPos && xCoor <= xPos + width && yCoor >= yPos && yCoor <= yPos + height;\n\t}", "title": "" }, { "docid": "3849b5fa1313f157f9dea57257f68e70", "score": "0.63444626", "text": "public boolean inIntersectRange() {\n double zValue = this.getZ();\n return ((!Double.isNaN(zValue)) && (DataEntry.isLE(zValue, this.maxZ)) &&\n (DataEntry.isGE(zValue, this.minZ)));\n }", "title": "" }, { "docid": "4c73409d30c4ae97aa7b4568e32e5dda", "score": "0.6344057", "text": "private final boolean isInBounds ( final int index )\n\t{\n\t\treturn rangesSize > 0\n\t\t\t\t&& index >= Range.start( ranges[0] )\n\t\t\t\t&& index < Range.end( ranges[rangesSize - 1] );\n\t}", "title": "" }, { "docid": "394d1ecc9b2ad30746106cb7ab70cd0f", "score": "0.6340826", "text": "@Test\n public void containsPoint() {\n TimeRange range = TimeRange.fromStartEnd(TIME_530PM, TIME_630PM);\n Assert.assertFalse(range.contains(TIME_7PM));\n Assert.assertTrue(range.contains(TIME_6PM));\n }", "title": "" }, { "docid": "17465967c69df82cb834b28f469d3c8f", "score": "0.63338876", "text": "public boolean inBounds(int x, int y) {\n return x >= 0 && y >= 0 && x < bounds.getWidth() && y < bounds.getHeight();\n }", "title": "" }, { "docid": "b35f70d43537c83cd5866e2d37bd2a40", "score": "0.633189", "text": "public boolean within( int begin, int end ){\n begin( offset );\n return end( end );\n }", "title": "" }, { "docid": "42a5893b3ed7a5364eecd27a52ca69c9", "score": "0.63271666", "text": "private boolean inRange(float[] f, Monster m, Player p){\r\n\t\tfloat x = f[0];\r\n\t\tfloat y = f[1];\r\n\t\tfloat[] o = m.getMonsterPos();\r\n\t\tfloat u = o[0] + f[0] - 320;\r\n\t\tfloat v = o[1] + f[1] - 320;\r\n\t\tif(p.getDirection() == \"west\"){\r\n\t\t\tif((x-u <= range && x > u-1) && (v >= y-10 && v <= y+35 )){\r\n\t\t\t\tfloat[] blocked = new float[(int)range];\r\n\t\t\t\tfor(int i = 0; i < range; i++){\r\n\t\t\t\t\tblocked[i] = x - i;\r\n\t\t\t\t}\r\n\t\t\t\tfor(float a : blocked){\r\n\t\t\t\t\tif(p.getCurrentRoom().isBlocked(a, y)){\r\n\t\t\t\t\t\tSystem.out.println(\"Blocked (west)\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}else if(p.getDirection() == \"east\"){\r\n\t\t\tif((u-x <= range && u > x-1) && (v >= y-10 && v <= y+35)){\r\n\t\t\t\tfloat[] blocked = new float[(int)range];\r\n\t\t\t\tfor(int i = 0; i < range; i++){\r\n\t\t\t\t\tblocked[i] = x + i;\r\n\t\t\t\t}\r\n\t\t\t\tfor(float a : blocked){\r\n\t\t\t\t\tif(p.getCurrentRoom().isBlocked(a, y)){\r\n\t\t\t\t\t\tSystem.out.println(\"Blocked (east)\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}else if(p.getDirection() == \"north\"){\r\n\t\t\tif((y-v <= range && y > v-1) && (u >= x-10 && u <= x+35)){\r\n\t\t\t\tfloat[] blocked = new float[(int)range];\r\n\t\t\t\tfor(int i = 0; i < range; i++){\r\n\t\t\t\t\tblocked[i] = y - i;\r\n\t\t\t\t}\r\n\t\t\t\tfor(float a : blocked){\r\n\t\t\t\t\tif(p.getCurrentRoom().isBlocked(x, a)){\r\n\t\t\t\t\t\tSystem.out.println(\"Blocked (north)\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}else if(p.getDirection() == \"south\"){\r\n\t\t\tif((v-y <= range && v > y-1) && (u >= x-10 && u <= x+35)){\r\n\t\t\t\tfloat[] blocked = new float[(int)range];\r\n\t\t\t\tfor(int i = 0; i < range; i++){\r\n\t\t\t\t\tblocked[i] = y + i;\r\n\t\t\t\t}\r\n\t\t\t\tfor(float a : blocked){\r\n\t\t\t\t\tif(p.getCurrentRoom().isBlocked(x, a)){\r\n\t\t\t\t\t\tSystem.out.println(\"Blocked (south)\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "851cdd69bc92018327fff5ac15cf92cd", "score": "0.63250166", "text": "public boolean inBoundaries() {\n\t\treturn row >= 0 && row < Board.NUM_ROWS\n\t\t\t\t&& col >= 0 && col < Board.NUM_COLS;\n\t}", "title": "" }, { "docid": "bc4b03e4b1120202eed587544c9e5d33", "score": "0.63232875", "text": "public boolean isPointInside(double x, double y) {\r\n\t\tif(x >= Math.min(x, x2) && x <= Math.max(x, x2)) {\r\n\t\t\tif(y >= Math.min(y, y2) && y <= Math.max(y, y2)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9b8aa07c78a571c2626e58025aacd913", "score": "0.63222784", "text": "boolean hasRangeScan();", "title": "" }, { "docid": "c72e4b5a9617a5d20832f19855ba9051", "score": "0.6318723", "text": "public boolean isInBoundingBox(Vector testPoint) {\n return this.minX <= testPoint.getX() && testPoint.getX() <= this.maxX &&\n this.minY <= testPoint.getY() && testPoint.getY() <= this.maxY;\n }", "title": "" }, { "docid": "e6ddd689dc986cd730a8c1c9aaaa88aa", "score": "0.63104045", "text": "public boolean hit(float x, float y) {\n\t\tRect rect = this.getBounds();\n\t\t\n\t\t/*float left = rect.left*graph.sx+(graph.px-graph.px*graph.sx);\n\t\tfloat top = rect.top*graph.sy+(graph.py-graph.py*graph.sy);\n\t\tfloat right = rect.right*graph.sx+(graph.px-graph.px*graph.sx);\n\t\tfloat bottom = rect.bottom*graph.sy+(graph.py-graph.py*graph.sy);*/\n\t\t\n\t\tRect newRect = new Rect(rect.left, rect.top, rect.right, rect.bottom);\n\t\t\n\t\t/*if(x >= left && x <= right && y >= top && y <= bottom) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}*/\n\t\t\n\t\t// if point is situated in rectangle area then return true, otherwise return false //\n\t\tif(newRect.contains((int)x,(int)y)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "3b0d7ae1c14eb315f6c3cb967e6c6bf1", "score": "0.6283983", "text": "@Override\n\t\tpublic boolean contains(Point p) {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "69652976aa852de08f165c5d5c818662", "score": "0.6275571", "text": "public boolean unitaryRange();", "title": "" }, { "docid": "d9c380c5b32b037eaeaefece990b1e03", "score": "0.6274415", "text": "public boolean isInDamagedRegion(OffsetRange range) {\n if (start == -1) {\n return false;\n }\n return range.getStart() < editedEnd && range.getEnd() > start;\n }", "title": "" }, { "docid": "49121207189e03f06e1ade5bb21c7cd0", "score": "0.6268332", "text": "public boolean containsPoint(Point p) {\n if (p == null || Double.isNaN(p.getX()) || Double.isNaN(p.getY())) {\n return false;\n }\n double m = this.getSlope();\n // if the line is x = p : for some p\n if (Double.isNaN(m)) {\n if (Point.doubleEquals(p.getX(), this.start.getX())) {\n // if the point is on the line (between start and end)\n if (p.isBetweenTwoPoints(this.start, this.end)) {\n return true;\n }\n }\n return false;\n }\n // y = m*x + b --> b = y - m*x\n double b = this.getB();\n // if the point is on the line (y[p] = m*x[p] + b)\n if (Point.doubleEquals(p.getY(), m * p.getX() + b)) {\n // if the point is on the line (between start and end)\n if (p.isBetweenTwoPoints(this.start, this.end)) {\n return true;\n }\n }\n // else, we return false.\n return false;\n }", "title": "" }, { "docid": "d74bfae72741609f297ee74f72183e1d", "score": "0.62577415", "text": "public boolean containsPoint(int x, int y) {\r\n\t\treturn (x >= getX() &&\r\n\t\t\t\ty >= getY() &&\r\n\t\t\t\tx <= getX()+getWidth() &&\r\n\t\t\t\ty <= getY()+getHeight());\r\n\t}", "title": "" }, { "docid": "6168c3543cfa4062c6241bb79923915a", "score": "0.6253485", "text": "public boolean pointInCell(float[] p)\n\t{\n\t\tfloat x = p[0];\n\t\tfloat z = p[2];\n\t\t\n\t\tfloat _x = vertices.get(indices[3])[0];\n\t\tfloat _z = vertices.get(indices[3])[2];\n\t\tfloat x_ = vertices.get(indices[1])[0];\n\t\tfloat z_ = vertices.get(indices[1])[2];\n\t\t\n\t\treturn ((x >= _x) && (x <= x_) && (z >= _z) && (z <= z_)); \n\t}", "title": "" }, { "docid": "4483a866ce8ace563db39a8123050116", "score": "0.6248186", "text": "private void range(Node x, RectHV rect) {\n if (x == null) return;\n // Check if point of current point node is in rectangle\n if (rect.contains(x.p)) insidePoints.add(x.p);\n // Check if there is intersection with the left node rect\n if (x.lb != null && rect.intersects(x.lb.rect)) range(x.lb, rect);\n // Check if there is intersection with the right node rect\n if (x.rb != null && rect.intersects(x.rb.rect)) range(x.rb, rect);\n return;\n }", "title": "" }, { "docid": "6977980923231fadf340054a9891b88c", "score": "0.6244688", "text": "private boolean isWithin(int mx, int my) {\r\n return (mx > x && mx < x + width && my > y && my < y + height);\r\n }", "title": "" }, { "docid": "48374d2f80126c824f47505af99c2508", "score": "0.6220566", "text": "public boolean isPointInsideCurve(ECPoint point) {\n\t\tif (point.isPointOfInfinity())\n\t\t\treturn true;\n\n\t\treturn point.x.multiply(point.x).mod(p).add(a).multiply(point.x).add(b).mod(p).subtract(point.y.multiply(point.y)).mod(p).compareTo(BigInteger.ZERO) == 0;\n\t}", "title": "" }, { "docid": "c8928a3673e33998af31fabb788b4445", "score": "0.6219116", "text": "private static boolean inRange(int i, int j) {\r\n\t\treturn (i > -1 && i < 8 && j > -1 && j < 8);\r\n\t}", "title": "" }, { "docid": "cfec6a4a867e58727cb33b6b2a8ae386", "score": "0.62152445", "text": "private boolean isPointBetween(Point2D.Double p, Point2D.Double norm) {\n\t\tdouble minX = Math.min(Math.min(p1.x + norm.x*4, p1.x - norm.x*4), \n\t\t\t\t\t\t\t Math.min(p2.x + norm.x*4, p2.x - norm.x*4));\n\t\tdouble maxX = Math.max(Math.max(p1.x + norm.x*4, p1.x - norm.x*4), \n\t\t\t\t \t\t\t Math.max(p2.x + norm.x*4, p2.x - norm.x*4));\n\t\tdouble minY = Math.min(Math.min(p1.y + norm.y*4, p1.y - norm.y*4), \n\t\t\t\t \t\t\t Math.min(p2.y + norm.y*4, p2.y - norm.y*4));\n\t\tdouble maxY = Math.max(Math.max(p1.y + norm.y*4, p1.y - norm.y*4), \n\t\t\t\t\t\t\t Math.max(p2.y + norm.y*4, p2.y - norm.y*4));\n\t\t\n\t\tif(p.x > minX && p.x < maxX && p.y > minY && p.y < maxY) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "4944c851ba722ff7ec4bbf559135b7ee", "score": "0.62143195", "text": "boolean contains(Point point) {\n return centre.distanceTo(point) <= this.radius;\n }", "title": "" }, { "docid": "e18dc547f27f5b2406176a21a0a1ce6d", "score": "0.62109447", "text": "public boolean contains(GridPoint point) {\n boolean result = false;\n double ptX = Double.NaN;\n double ptY = Double.NaN;\n Envelope rectEnev = null;\n if ((point != null) && (!point.isEmpty()) &&\n ((rectEnev = this.getEnvelope()) != null)){\n result = rectEnev.contains(point);\n }\n return result;\n }", "title": "" }, { "docid": "6215def44b39a728d3425d92a63abe9f", "score": "0.6205095", "text": "public boolean isInRangeToRenderDist(double p_70112_1_) {\n\t\tdouble var3 = boundingBox.getAverageEdgeLength();\n\t\tvar3 *= 64.0D * renderDistanceWeight;\n\t\treturn p_70112_1_ < var3 * var3;\n\t}", "title": "" }, { "docid": "ea0e567de540d0d914dafa52e5acdd90", "score": "0.6201409", "text": "public boolean inside(Vector point, Vector size) {\n\t\treturn\t(point.x <= this.point.x && point.x + size.x >= this.point.x + this.size.x) &&\n\t\t\t\t(point.y <= this.point.y && point.y + size.y >= this.point.y + this.size.y);\n\t}", "title": "" }, { "docid": "09cd3c14c8238f34750c940c33e1f467", "score": "0.6197083", "text": "public boolean contains(double x, double y) {\n\t\treturn\t(x >= point.x && x < point.x + size.x) &&\n\t\t\t\t(y >= point.y && y < point.y + size.y);\n\t}", "title": "" }, { "docid": "7ef1d07746a3d764e1afc5e7a50eb91c", "score": "0.6193552", "text": "Boolean contain(Point point);", "title": "" }, { "docid": "949ffc3c2713455d29d3166f3188ee7d", "score": "0.61888814", "text": "@Override\r\n\tpublic boolean includes(Vector2D point) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f7cb8c4af861c94764e36b9068619971", "score": "0.6171851", "text": "private boolean isBetween(final int index, final int lowerBound, final int upperBound) {\n return index >= lowerBound && index <= upperBound;\n }", "title": "" }, { "docid": "f7cb8c4af861c94764e36b9068619971", "score": "0.6171851", "text": "private boolean isBetween(final int index, final int lowerBound, final int upperBound) {\n return index >= lowerBound && index <= upperBound;\n }", "title": "" }, { "docid": "666c7c25d885e87f7adb3fa890878df0", "score": "0.61711097", "text": "public boolean isPointInsideArea(PointF p) {\n float s = red.y * blue.x - red.x * blue.y + (blue.y - red.y) * p.x + (red.x - blue.x) * p.y;\n float t = red.x * green.y - red.y * green.x + (red.y - green.y) * p.x + (green.x - red.x) * p.y;\n\n if ((s < 0.0f) != (t < 0.0f))\n return false;\n\n float A = -green.y * blue.x + red.y * (blue.x - green.x) + red.x * (green.y - blue.y) + green.x * blue.y;\n return (s > 0.0f) && (t > 0.0f) && ((s + t) <= A);\n }", "title": "" }, { "docid": "1c5fb7c6941bfb538f929ef9fe73020d", "score": "0.6170568", "text": "public boolean hasBound(Bound b);", "title": "" }, { "docid": "b9dbf1a40028e99972f9cfdca5ec128a", "score": "0.6164055", "text": "@Override\n public boolean isAbove(IPoint point) {\n Conditions.validateNotNull(\n point,\n \"The point.\");\n\n return this.getY() > point.getY();\n }", "title": "" }, { "docid": "9ebcafef6dcd4a49a8f40507e3459542", "score": "0.6163967", "text": "public boolean hit(int x, int y) {\n return x >= loc.x && x <= (loc.x + size.x) && y >= loc.y && y <= (loc.y + size.y);\n }", "title": "" }, { "docid": "fc63c22ba4666db9b9a16b06154a2f98", "score": "0.6157921", "text": "boolean isInStartArea();", "title": "" }, { "docid": "3203d0625f9c506f4ba7fa4567b82124", "score": "0.6153685", "text": "public boolean isInside(float x, float y){\n\t\treturn false;\n\t}", "title": "" } ]
518bf5364cda3c6202a1a392996f93d1
Inflate the menu; this adds items to the action bar if it is present.
[ { "docid": "b503fc7fa1f36527045b729accf7ab38", "score": "0.0", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n return true;\n }", "title": "" } ]
[ { "docid": "336240563eed6d025065f97a46803a2c", "score": "0.7246102", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "81ca705c1224c86ac34805a5fe10b890", "score": "0.7201358", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "title": "" }, { "docid": "4e76c641b58beedb915efa3451bbf2d3", "score": "0.7194834", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "51db7282c67d24659b08f75ff09b25b2", "score": "0.7176498", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "007db10a846ab8496b96bc69f390497c", "score": "0.71066517", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "a9cf064d5a6e3461f5e78330a9877519", "score": "0.7039537", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "2cb79fbfbe76f7910ef53fe80ae7e59a", "score": "0.7037961", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "6580f19c0af2b1bbe59b9d93e7473dc8", "score": "0.70112145", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "a5e4151f24ca9d28e03936e923ce33ab", "score": "0.70094734", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "3d0f02785f5b5917afc843ba6cb3e60a", "score": "0.69807225", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "94f5a8f45e3c13313baa0320abad437d", "score": "0.6944953", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "9bb7c665e415ee186559fea3bf1f29f8", "score": "0.69389373", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "8142f5cbb307396bfe23e7258e332f1b", "score": "0.6933199", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6916928", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6916928", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "bbf6cd0c07c578c8d9a070c3ebcc659b", "score": "0.6891486", "text": "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "title": "" }, { "docid": "c93d699874c5e52d9e9e625756d4ce5a", "score": "0.68831646", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "43a82b7299f135e37e17cc14f9e4bdd3", "score": "0.68754137", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "title": "" }, { "docid": "634f8c893c33b6d89f0793cdae639e29", "score": "0.68745375", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "7c7f52bc85432234ee2050f101ef1659", "score": "0.68621665", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "7c7f52bc85432234ee2050f101ef1659", "score": "0.68621665", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "7c7f52bc85432234ee2050f101ef1659", "score": "0.68621665", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "7c7f52bc85432234ee2050f101ef1659", "score": "0.68621665", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "4a33a3b58f565c535c6bf9ec45a950be", "score": "0.68515885", "text": "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "de6168daad2ac8d29d980fc7c3388d94", "score": "0.68467957", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "title": "" }, { "docid": "1b068f6280f5edb40d23bad76640b622", "score": "0.68194443", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "title": "" }, { "docid": "fefd1f1936284eab3de6e465fe80a1de", "score": "0.6817494", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "title": "" }, { "docid": "a6ba221423784f86e4efcf17cdf92606", "score": "0.6813087", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "a6ba221423784f86e4efcf17cdf92606", "score": "0.6813087", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "76ade21491d3c6fce3faf41e642c0e50", "score": "0.6812847", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "title": "" }, { "docid": "253b92924a249e068dbefed472e4c0a9", "score": "0.6805774", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "c347a3cc4119bb2ec8d2471a3800b7e8", "score": "0.6801204", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "title": "" }, { "docid": "b02387de385bcaa9a03a16a83c2be5c6", "score": "0.6797914", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "ea6c841abb9876e1b4160ca652078e91", "score": "0.6791314", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "6f05b51296c95600232f16481e828d13", "score": "0.6789091", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "title": "" }, { "docid": "6aadd64c242901d207811ebfc692451a", "score": "0.67883503", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "4812fad086641682b42928f995a245f1", "score": "0.6783642", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "title": "" }, { "docid": "2bdfbc148b1a19208dc866898a99536b", "score": "0.6759701", "text": "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "title": "" }, { "docid": "a64096bb07d9e8a61775762fef9296f5", "score": "0.6757412", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "58ca83b884b7db85526b0b363b5da630", "score": "0.67478645", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "d6a3951f27e73f5f9b7bc97ccbd7f647", "score": "0.6744127", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "d6a3951f27e73f5f9b7bc97ccbd7f647", "score": "0.6744127", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "d540f63eb5f49e4ae6915d10359f37ce", "score": "0.67411774", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "02daf8a8d28864f430d197fa527c47a3", "score": "0.6740183", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "title": "" }, { "docid": "470182cc6ba1999210032f5dd129f183", "score": "0.6726017", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "699e3cf544df2ed1c0563f7f4e656da0", "score": "0.6723245", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67226785", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67226785", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d22314ae2437e5ce1b50a6cb5d7a4a85", "score": "0.67208904", "text": "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "85039d3f8e59596820ef5ed0165f24ef", "score": "0.67113477", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0702da8fb0c1fa2b2384370a1508c94d", "score": "0.67079866", "text": "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "title": "" }, { "docid": "fbfe5f7fb9486d8fc056ff922706085e", "score": "0.6704564", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "269054df5aec3c4ddf6f71071f34a3d5", "score": "0.6699229", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5fb23de8847cf2b70be0a2fedddcd861", "score": "0.66989094", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "832a39c23d11f7d1d41890c01a02137c", "score": "0.6696622", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "title": "" }, { "docid": "ffa89c3dec49a6e7b11806c5440fce89", "score": "0.66952467", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a5018978c5d65e3b49abeaa59095a3d5", "score": "0.66865396", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "b1631b737fc46ad9ef9203bd94535a01", "score": "0.6683476", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "b1631b737fc46ad9ef9203bd94535a01", "score": "0.6683476", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "1a26932b0e4702b1de567d074d88ef23", "score": "0.6682188", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "07e1226ee960c354ca2ac50a404b6bf6", "score": "0.6681209", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "122fbd48301e5e6b6bff06d7bba3eafe", "score": "0.6678941", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "463ee476d3bd32901515ed10255711d7", "score": "0.66772443", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "title": "" }, { "docid": "6cc5da99a32692d41c31cc394b4bd681", "score": "0.6667702", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "title": "" }, { "docid": "fa80a7a70714276633c775041450db11", "score": "0.66673946", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "title": "" }, { "docid": "9b1920b1b3c7f395099b5db068b816ce", "score": "0.666246", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "9a283eccc2fb94f0580cb8fe3eeb300b", "score": "0.6657578", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "title": "" }, { "docid": "9a283eccc2fb94f0580cb8fe3eeb300b", "score": "0.6657578", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "title": "" }, { "docid": "9a283eccc2fb94f0580cb8fe3eeb300b", "score": "0.6657578", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.6656586", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "a0357b2e46bb05c78e72f64ff516350e", "score": "0.66544783", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "a0357b2e46bb05c78e72f64ff516350e", "score": "0.66544783", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "a0357b2e46bb05c78e72f64ff516350e", "score": "0.66544783", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "8ab7f054be3eb5a9a92141518f5fdb9f", "score": "0.66524047", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "edefedd15cd23bbdb9fb137252325501", "score": "0.6651954", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "title": "" }, { "docid": "3e8720a0ec0a7b29939158c5939793e8", "score": "0.6650132", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "c78363b83172f2598dca317be739c3d8", "score": "0.66487855", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4d8e375ab613f0abe1555926244bc257", "score": "0.6647077", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "title": "" }, { "docid": "167c241dd3616712b57b31912154b7d9", "score": "0.66467404", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "fa61cfd582067e52433505fe47cde18e", "score": "0.6646615", "text": "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "title": "" }, { "docid": "775f4016cc75ff44ec2179b86e8a69bc", "score": "0.66464466", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "title": "" }, { "docid": "d2fa7e348075c243653902c54b5a24b1", "score": "0.66449624", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "fd72bad03aa6188b1df4b3de7a33fdbc", "score": "0.6644209", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "440374e01fa97cd6a50dde9b4d3a7bf6", "score": "0.6643461", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "affe63b865ca4b60b3a8146f3be3411a", "score": "0.6643005", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1af830e3be8edac29547a020ed7c897e", "score": "0.66421187", "text": "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "title": "" }, { "docid": "48c3f5b81bc05461e3ab13d5e72224b0", "score": "0.6638628", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.6634786", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "75a07e83a16d55c7fde4cdf89543c048", "score": "0.6633529", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6632049", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6632049", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6632049", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "e1a12324b9f13e82d6f713ef97f3b274", "score": "0.66315657", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "title": "" }, { "docid": "662429175756df708e4eebcc2fc5ec6c", "score": "0.6628954", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3207663c5e0053801611a164b1663d8d", "score": "0.66281766", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "e8a5636bcb5ba1bef37b53b2012ab885", "score": "0.6627182", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "title": "" }, { "docid": "277058fcbb6c657f51a16add64c659d8", "score": "0.6626297", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9620e4af234f7ebf479b7a72cf55576e", "score": "0.6624309", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "13a3b153e3724a1c3daece8365467d4b", "score": "0.6619582", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "title": "" }, { "docid": "aec0a793c2f35f6f49e05c161039dabe", "score": "0.6618876", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "aec0a793c2f35f6f49e05c161039dabe", "score": "0.6618876", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" } ]
aa15596d66024ab70dc44d872f401f7e
Called when a procedure node is created in the DDG
[ { "docid": "17adeff42d29cea7e34cce5d8b1ab277", "score": "0.8184559", "text": "public void procedureNodeCreated (ProcedureInstanceNode pin);", "title": "" } ]
[ { "docid": "4a5d6c9160a86ab4cf5115e90096e1bc", "score": "0.6479973", "text": "@SuppressWarnings(\"unused\")\n\tprotected ProcedureInstanceNode createProcedureInstanceNode (String name, String type,\n\t\t\tProvenanceData provData) {\n\t\tthrow new RuntimeException(\"Subclass must define this!\");\n\t}", "title": "" }, { "docid": "e863f43ad13629207f943bd3463d0b5d", "score": "0.6469931", "text": "@Override\r\n\tpublic void procedure() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1c5fc63126fbe8b120ebe9794565937f", "score": "0.6393827", "text": "public interface ProvenanceListener extends DataBindingListener {\n\t/**\n\t * Called when a process starts\n\t * @param processName the name of the process started\n\t * @param provData the DDG that holds the details of the process execution\n\t * @throws RemoveListenerException \n\t */\n\tpublic void processStarted (String processName, ProvenanceData provData) throws RemoveListenerException;\n\t\n\t/**\n\t * Called when a process starts\n\t * @param processName the name of the process started\n\t * @param provData the DDG that holds the details of the process execution\n\t * @param timestamp timestamp of the process\n\t * @param language the language the process is written in\n\t * @throws RemoveListenerException \n\t * \n\t */\n\tpublic void processStarted (String processName, ProvenanceData provData, String timestamp, String language) throws RemoveListenerException;\n\t\n\t/**\n\t * Called when a process finishes\n\t */\n\tpublic void processFinished();\n\t\n\t/**\n\t * Called when a procedure node is created in the DDG\n\t * @param pin the node created\n\t */\n\tpublic void procedureNodeCreated (ProcedureInstanceNode pin);\n\t\n\t/**\n\t * Called when a data node is added to the DDG\n\t * @param din the node created\n\t */\n\tpublic void dataNodeCreated (DataInstanceNode din);\n\t\n\t/**\n\t * Called when a script node is added to the DDG\n\t * @param sn the node created\n\t */\n\tpublic void scriptNodeCreated(ScriptNode sn);\n\t\n\t/**\n\t * Called when a control flow edge is created\n\t * @param predecessor the predecessor procedure node\n\t * @param successor the successor procedure node\n\t */\n\tpublic void successorEdgeCreated (ProcedureInstanceNode predecessor, ProcedureInstanceNode successor);\n\n\t/**\n\t * Called when the root node is set\n\t * @param root the root node\n\t */\n\tpublic void rootSet(Node root);\n}", "title": "" }, { "docid": "bbb8c65be0d6cd72d9de571e99523058", "score": "0.63462365", "text": "org.hl7.fhir.Procedure addNewProcedure();", "title": "" }, { "docid": "249e87a5417fc2b6aada419528b3f646", "score": "0.6329842", "text": "public void dataNodeCreated (DataInstanceNode din);", "title": "" }, { "docid": "247fda5932a6fb6f434ea1711232aee7", "score": "0.63148516", "text": "Procedure createProcedure();", "title": "" }, { "docid": "a8eaf8c5c7f8c7d4cd100f1357624f8f", "score": "0.6022883", "text": "@Override\n\tpublic void generateCode(CodeProcedure procedure) {\n\t}", "title": "" }, { "docid": "98a28f7dc41b6ffe7cb1a3bf51a2e43b", "score": "0.601792", "text": "void nodeAdded(ParameterInstanceNode node, int childIndex);", "title": "" }, { "docid": "f8ed11162a0b3e7e6ab8b9ce6ffcc0ac", "score": "0.59707415", "text": "public void successorEdgeCreated (ProcedureInstanceNode predecessor, ProcedureInstanceNode successor);", "title": "" }, { "docid": "b0f68e1335acce5136094c90ab745df7", "score": "0.5924704", "text": "ProcedureSection createProcedureSection();", "title": "" }, { "docid": "6ea3269506a1d02791b0f14f2ec7d0cb", "score": "0.5827895", "text": "public ProcedureNewAction(){\n\t\t\n\t}", "title": "" }, { "docid": "47f6ec7d6808064e649ce607567a4be7", "score": "0.58256835", "text": "protected void sequence_function_procedure_declaration(ISerializationContext context, function_procedure_declaration semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "title": "" }, { "docid": "d6ff7a24d15eadcb8c11e3adbf82355b", "score": "0.5786723", "text": "public StandardProcedure() {}", "title": "" }, { "docid": "651031e39fcc437aa9da5adaddc5dd52", "score": "0.57076466", "text": "private void createProcedures() {\r\n \t\tIrFactory factory = IrFactory.eINSTANCE;\r\n \t\tfor (Vertex vertex : scheduler.getSchedule().getActors()) {\r\n \t\t\tInstance instance = ((Instance) vertex);\r\n \r\n \t\t\tCSDFMoC moc = (CSDFMoC) instance.getMoC();\r\n \t\t\tIterator<Invocation> it = moc.getInvocations().iterator();\r\n \r\n \t\t\tSet<Action> alreadyExists = new HashSet<Action>();\r\n \t\t\twhile (it.hasNext()) {\r\n \t\t\t\tAction action = it.next().getAction();\r\n \t\t\t\tif (!alreadyExists.contains(action)) {\r\n \t\t\t\t\talreadyExists.add(action);\r\n \t\t\t\t\tString name = instance.getName() + \"_\" + action.getName();\r\n \t\t\t\t\tProcedure proc = factory.createProcedure(name, 0,\r\n \t\t\t\t\t\t\tfactory.createTypeVoid());\r\n \r\n \t\t\t\t\tProcedure body = action.getBody();\r\n \t\t\t\t\tList<Node> nodes = body.getNodes();\r\n \t\t\t\t\tproc.getLocals().addAll(body.getLocals());\r\n \t\t\t\t\tproc.getNodes().addAll(nodes);\r\n \t\t\t\t\tIrUtil.getLast(nodes).add(factory.createInstReturn());\r\n \t\t\t\t\tsuperActor.getProcs().add(proc);\r\n \t\t\t\t\tnew ChangeFifoArrayAccess(action.getInputPattern(),\r\n \t\t\t\t\t\t\taction.getOutputPattern(), buffersMap)\r\n \t\t\t\t\t\t\t.doSwitch(superActor);\r\n \r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "2f93468ab7c6f1d5ca6a9ae62ffaa42e", "score": "0.5596425", "text": "public void scriptNodeCreated(ScriptNode sn);", "title": "" }, { "docid": "7016a5be686645b35d886233f1161c95", "score": "0.55711985", "text": "protected void sequence_function_declaration_procedure_declaration(ISerializationContext context, abstraction_declaration semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "title": "" }, { "docid": "b7a9af23e8843a7fad66e57a2dcad9dc", "score": "0.5564", "text": "ProcedureActivityProcedure createProcedureActivityProcedure();", "title": "" }, { "docid": "a743e5ab75ce688de2bdc730195c1305", "score": "0.5562267", "text": "void setProcedure(String procedure) {\n this.procedure = procedure;\r\n }", "title": "" }, { "docid": "f04a5a778bc9661b48590f0ecdf75ef1", "score": "0.54284084", "text": "public Procedure(int myProcNo, String procName, double procCost)\n {\n \tprocNo = myProcNo;\n \tthis.myProcNo=myProcNo;\n \tthis.procName=procName;\n \tthis.procCost=procCost;\n }", "title": "" }, { "docid": "8f8c00daaaa6ee6d961a2f74c03745db", "score": "0.54143095", "text": "public void addNewProcedureListener(ActionListener listenForUpdate) {\n\t\taddProcedure.addActionListener(listenForUpdate);\n\t}", "title": "" }, { "docid": "d6d73fe149a730640bcbc7bf5ec1132a", "score": "0.5362165", "text": "public CwmProcedure createCwmProcedure();", "title": "" }, { "docid": "509351eea10c56249d1e70b69e9b0833", "score": "0.5343011", "text": "protected void onDiagramLoad() {\n }", "title": "" }, { "docid": "99a5bcd4596b3a1cedc083b849eee9d4", "score": "0.5337027", "text": "protected void sequence_procedure_declaration(ISerializationContext context, abstraction_declaration semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, PascalPackage.Literals.ABSTRACTION_DECLARATION__HEADING) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PascalPackage.Literals.ABSTRACTION_DECLARATION__HEADING));\n\t\t\tif (transientValues.isValueTransient(semanticObject, PascalPackage.Literals.ABSTRACTION_DECLARATION__BLOCK) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PascalPackage.Literals.ABSTRACTION_DECLARATION__BLOCK));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getProcedure_declarationAccess().getHeadingProcedure_headingParserRuleCall_0_0(), semanticObject.getHeading());\n\t\tfeeder.accept(grammarAccess.getProcedure_declarationAccess().getBlockBlockParserRuleCall_2_0(), semanticObject.getBlock());\n\t\tfeeder.finish();\n\t}", "title": "" }, { "docid": "927588b85af9a9b108a2715f907abcb0", "score": "0.5305041", "text": "ProcedureActivityAct createProcedureActivityAct();", "title": "" }, { "docid": "58ee2787934aa7dc0ee711c4c0e4f00b", "score": "0.526931", "text": "public void procedureBegin() {\n super.procedureBegin();\n this.mPageLoadProcedure = ProcedureFactoryProxy.PROXY.createProcedure(TopicUtils.getFullTopic(\"/pageLoad\"), new Builder()\n .setIndependent(false)\n .setUpload(true)\n .setParentNeedStats(true)\n .setParent(null)\n .build());\n\n this.mPageLoadProcedure.begin();\n this.mActivityEventDispatcher = getDispatcher(\"ACTIVITY_EVENT_DISPATCHER\");\n this.mApplicationLowMemoryDispatcher = getDispatcher(\"APPLICATION_LOW_MEMORY_DISPATCHER\");\n this.mFragmentUsableVisibleDispatcher = getDispatcher(\"FRAGMENT_USABLE_VISIBLE_DISPATCHER\");\n this.mActivityFpsDispatcher = getDispatcher(\"ACTIVITY_FPS_DISPATCHER\");\n this.mApplicationGcDispatcher = getDispatcher(\"APPLICATION_GC_DISPATCHER\");\n this.mApplicationBackgroundChangedDispatcher = getDispatcher(\"APPLICATION_BACKGROUND_CHANGED_DISPATCHER\");\n this.mNetworkStageDispatcher = getDispatcher(\"NETWORK_STAGE_DISPATCHER\");\n this.mImageStageDispatcher = getDispatcher(\"IMAGE_STAGE_DISPATCHER\");\n this.mApplicationGcDispatcher.addListener(this);\n this.mApplicationLowMemoryDispatcher.addListener(this);\n this.mActivityEventDispatcher.addListener(this);\n this.mFragmentUsableVisibleDispatcher.addListener(this);\n this.mActivityFpsDispatcher.addListener(this);\n this.mApplicationBackgroundChangedDispatcher.addListener(this);\n this.mNetworkStageDispatcher.addListener(this);\n this.mImageStageDispatcher.addListener(this);\n p();\n this.f59b[0] = 0;\n this.f59b[1] = 0;\n }", "title": "" }, { "docid": "45ea24b341b834fa890b2a8eaf94fee8", "score": "0.52488357", "text": "void setProcedure(org.hl7.fhir.Procedure procedure);", "title": "" }, { "docid": "7b512ac22920a89b833da05a90d297b1", "score": "0.5238146", "text": "@SuppressWarnings(\"unused\")\n\tprotected DataInstanceNode createDataInstanceNode(String name, String type,\n\t\t\tString currentVal, ProvenanceData provData, ProcedureInstanceNode pin) {\n\t\tthrow new RuntimeException(\"Subclass must define this!\");\n\t}", "title": "" }, { "docid": "512cfb67509ecb10724d2e9ff7fc44bf", "score": "0.5223706", "text": "public void addChild(ProcedureItem child) {\n\t\tchildren.add(child);\n\t}", "title": "" }, { "docid": "4c8ee77b3604abf60805a65c6f91a885", "score": "0.51948375", "text": "public GenericCallback(Procedure p) {\r\n proc = p;\r\n }", "title": "" }, { "docid": "da93d3606bdd8911d12ebb4984471af6", "score": "0.51812327", "text": "PerformProcedure createPerformProcedure();", "title": "" }, { "docid": "79b20ac9ea1f5e35ec51e3638b9fe88a", "score": "0.5159849", "text": "private void addNode() {\n pc.addNode(pc);\n }", "title": "" }, { "docid": "300b1b89c96000fb77b909f82a504189", "score": "0.51426756", "text": "private void generateProc() {\n os.emitProcedure(proc.getName());\n\n //calculate the offset of stack\n int argNum = proc.getArgumentCount();\n\n // Describe the stack frame by pushing (aribtrarily chosen, but\n // necessarily unique) keys (names) of the slots in order of\n // decreasing memory addresses\n sf = new StackFrame(argNum);\n sf.pushArguments();\n sf.setInitialSP();\n sf.pushWordTemporary(Spills.RA);\n sf.pushWordTemporary(Spills.OldFP);\n List<RtlType> registers = proc.getRegisterTypes();\n sf.pushTemporary(0, registers.get(0));\n for(int i = argNum+1; i < registers.size(); i++){\n //rest of the temporaries\n sf.pushTemporary(i,registers.get(i));\n }\n sf.pushArraySpace(proc.getStackFrameSize());\n sf.finalise(4); // We require sp to be word-aligned\n\n //allocate stack space\n int offsetStack = sf.getOffsetFromInitalSP();\n os.emitInstruction(\"addiu\", MipsRegister.SP, MipsRegister.SP, -offsetStack);\n\n\n //store ra\n int offsetRA = sf.getTemporaryOffset(Spills.RA);\n os.emitMemory(\"sw\", MipsRegister.RA, offsetRA, MipsRegister.SP);\n\n //store old fp\n int offsetFP = sf.getTemporaryOffset(Spills.OldFP);\n os.emitMemory(\"sw\", MipsRegister.FP, offsetFP, MipsRegister.SP);\n\n //adjust the fp\n //...to be done\n //pseudo-instruction MOVE: move $fp <- $sp\n os.emitInstruction(\"move\", MipsRegister.FP, MipsRegister.SP);\n\n //push the arguments\n //a0,a1,a2,a3\n for(int i=0; i < Math.min(argNum,4); i++){\n writeRtlRegister(i+1, MipsRegister.getArgRegister(i));\n }\n\n //start of the body\n for (Object instruction : proc.getInstructions()){\n generateInstruction(instruction);\n }\n\n //load $ra\n os.emitMemory(\"lw\",MipsRegister.RA, offsetRA, MipsRegister.FP);\n\n //load return value\n readRtlRegister(0,MipsRegister.V0);\n\n //adjust the frame pointer\n os.emitMemory(\"lw\",MipsRegister.FP,offsetFP,MipsRegister.SP);\n\n //pop the stack\n os.emitInstruction(\"addiu\", MipsRegister.SP, MipsRegister.SP, offsetStack);\n\n //jump back\n os.emitInstruction(\"jr\", MipsRegister.RA);\n\n\n }", "title": "" }, { "docid": "6c44d65ed1c4726dbde890b761a8b162", "score": "0.51261765", "text": "public void visit(ProcedureCallStmt node)\n {\n if (!this.semanticAction41(node.getName(), node, true)) return;\n\n if (node.getArguments() != null)\n {\n // It doesn't make sense to perform the other semantic checks if the number\n // of arguments doesn't match the number of formal parameters.\n if (!this.semanticAction43(node)) return;\n\n SymbolTableEntry entry = this.symTablesStack.peek().getEntry(node.getName());\n this.checkArguments(node.getArguments(), entry);\n } else\n {\n this.semanticAction42(node);\n }\n }", "title": "" }, { "docid": "2be3d664f56f00bcdf57cbdd504ca03b", "score": "0.5104943", "text": "public void setPointShape(PointShape paramPointShape)\n/* */ {\n/* 73 */ this.shape = paramPointShape;\n/* 74 */ Graphable.grapher.pushChanges();\n/* */ }", "title": "" }, { "docid": "7a6aac23a34eb000e6421c6c87a255b2", "score": "0.5092573", "text": "public void processStarted (String processName, ProvenanceData provData, String timestamp, String language) throws RemoveListenerException;", "title": "" }, { "docid": "3a4b68854b442c4bfb087644731c3813", "score": "0.5067148", "text": "public CFuncPara(){\n\t\ttype = QuaType.FUNC_PARA;\n\t}", "title": "" }, { "docid": "76f131f79668b0dec9663c1c16a7b611", "score": "0.50604427", "text": "public Long createProcedure(Procedure procedure)\n\tthrows RepositoryException;", "title": "" }, { "docid": "1882a89d289b4f2275497db4e4e5cb86", "score": "0.50602573", "text": "public void addFrag(Frag procFrag){\n this.fragList = FragList.append(this.fragList, procFrag);\n }", "title": "" }, { "docid": "4a0af7dba60d7cfc45d75fd5e4e7ea37", "score": "0.5058329", "text": "public void setProcedureName(String name)\n {\n procedureName = name;\n }", "title": "" }, { "docid": "6fc38465eba847a29ba5f216edf92e0f", "score": "0.5028989", "text": "private void visitExpression(final ClassInstanceCreation node)\n {\n final int lineNo = lineStart(node);\n // new dependence\n final IResolvedLine rd = createDependence(LK_CLASS_INSTANCE_CREATION, lineNo, mdg.parent());\n // append call and data dependences\n processCall(rd, node);\n }", "title": "" }, { "docid": "dc6fcdc305ba6b53c9caf1a4d2787549", "score": "0.5022462", "text": "@Override\n\tpublic void visit(AbsProcDecl acceptor) {\n\t}", "title": "" }, { "docid": "05687c871ba4b9c3de4b58d6eb1009a1", "score": "0.4975502", "text": "private void NodeGraphWidget() { \n\t\t\n\t}", "title": "" }, { "docid": "ba818a92f43cbca3749999f36c6b6369", "score": "0.49482995", "text": "public void addNewNode() {\r\n\t\tout.println(\"Enter X: \");\r\n\t\tint x = getNextIntFromCommandLine();\r\n\t\tout.println(\"Enter Y: \");\r\n\t\tint y = getNextIntFromCommandLine();\r\n\t\tNodeContainer nodecont = this.handler.newNode(x, y);\r\n\t\tPoint nodeCoord = nodecont.getCoordinate();\r\n\t\tout.println(\"Node Created - X: \" + nodeCoord.x + \"\\tY: \" + nodeCoord.y);\r\n\t}", "title": "" }, { "docid": "b0fe0e3946d070178e5217d64a88a723", "score": "0.49480027", "text": "public void addSetProcedureListener(ActionListener listenForUpdate) {\n\t\tsetProcedure.addActionListener(listenForUpdate);\n\t}", "title": "" }, { "docid": "d7f1896c38b6649087b09cf7be946c69", "score": "0.49475446", "text": "public synchronized void addProcedure(ProcedureQuery procedureQuery) {\n try {\n if (inTransaction) {\n DBConnectionManager.getInstance().getApplicationConnection().getConnection().commit();\n DBConnectionManager.getInstance().getApplicationConnection().getConnection().setAutoCommit(true);\n// log.info(\"Committed and transaction ended\");\n inTransaction = false;\n }\n pendingQueryList.clear();\n pendingQueryList.add(procedureQuery);\n } catch (SQLNonTransientConnectionException ex) {\n attemptReconnection();\n addProcedure(procedureQuery);\n } catch (SQLException ex) {\n Error.DATABASE_TRANSACTION.record().create(ex);\n }\n }", "title": "" }, { "docid": "b3e5ea91d179de3552c87ce325345581", "score": "0.49468854", "text": "StandardProcedure(DeclarationScope declaredIn,Declaration.Kind kind,Type type, String ident) {\n\t\tsuper(ident,kind); this.declaredIn=declaredIn; this.type=type; }", "title": "" }, { "docid": "bc0cacc464c2057798c0163224a00d42", "score": "0.49465603", "text": "public final void mPROCEDUREDECLARATION() throws RecognitionException {\n try {\n int _type = PROCEDUREDECLARATION;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/mark/Documenten/School/1-2b-Vertalerbouw/workspace/VB_EOVB/src/grammar/Grammar.g:54:22: ( 'proceduredeclaration' )\n // /home/mark/Documenten/School/1-2b-Vertalerbouw/workspace/VB_EOVB/src/grammar/Grammar.g:54:24: 'proceduredeclaration'\n {\n match(\"proceduredeclaration\"); \n\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "6d1fd3e4a956a83a26a44acd44ce3546", "score": "0.4941949", "text": "public void processStarted (String processName, ProvenanceData provData) throws RemoveListenerException;", "title": "" }, { "docid": "9bd8defcbebd9169c473c491681e17c9", "score": "0.49362162", "text": "public synchronized void NodeCreated(NodeEvent e)\r\n {\r\n \tInteger newNodeNumber = e.GetNodeNumber();//you probably want to create a new info pbject to track the data of this new node\r\n \tif(!proprietaryNodeInfo.containsKey(newNodeNumber))//unless it already exists (it might exist if you don't delete it in NodeDeleted()\r\n \t{\r\n \t\tproprietaryNodeInfo.put(newNodeNumber, new NodeInfo(newNodeNumber));\r\n \t}\r\n \tLocalizeNodes();\r\n }", "title": "" }, { "docid": "2c64e278dc81e96e3cfaa53aff6a0503", "score": "0.49347317", "text": "public ProcedurePage() {\n initComponents();\n \n clearProceduresTable();\n getData();\n }", "title": "" }, { "docid": "eaea00b8b9190f42bb9ec28b6dcbb2ce", "score": "0.49179795", "text": "public String getProcedureTerm()\n throws SQLException\n {\n return \"PROCEDURE\";\n }", "title": "" }, { "docid": "2b8cfb8cf7b30cb888f2fee8fc8b677a", "score": "0.49178198", "text": "private BldgopsExpressInsert() {\n \n }", "title": "" }, { "docid": "5e2a70f7b6ca2aa88c7ce689724c8896", "score": "0.49139464", "text": "public Procedure(String procedureName, BigDecimal pricePerHour, int code, String employeeTypeRequired) {\n\t\tthis.procedureName = procedureName;\n\t\tthis.pricePerHour = pricePerHour;\n\t\tthis.code = code;\n\t\tthis.employeeTypeRequired = employeeTypeRequired;\n\t}", "title": "" }, { "docid": "fb26d3b76e736cff5d03ea98d808e09a", "score": "0.49090326", "text": "int addNewVertex();", "title": "" }, { "docid": "4397ae3100db7716c26089c1877b7cbc", "score": "0.49032992", "text": "private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {\n addNodeCreationWord();\n }", "title": "" }, { "docid": "2bb471d6e338b9673670316d95c576b0", "score": "0.49029616", "text": "public void afterNodeTriggered(ProcessNodeTriggeredEvent event) {\n\n\t}", "title": "" }, { "docid": "d24117915d5e97fbd8ff42fe811925e6", "score": "0.4901342", "text": "@Override\n\tpublic void VisitNewObjectNode(ZenNewObjectNode Node) {\n\t}", "title": "" }, { "docid": "b77a4ed148cda96b58f1e496b5cd167c", "score": "0.48912007", "text": "@Override\r\n\tpublic void callProcedure(String nameProc) {\n\t\tdao.callProcedure(nameProc);\r\n\t}", "title": "" }, { "docid": "a7d6d095354516798f7efdb223b1654c", "score": "0.4874911", "text": "public PDragSequenceEventHandler() {\n }", "title": "" }, { "docid": "9dc62d81454bab5a7f6200b244099b1e", "score": "0.48551303", "text": "public final ProcedureDeclaration procedureDeclaration() throws RecognitionException {\r\n ProcedureDeclaration pd = null;\r\n\r\n Token IDENT8=null;\r\n ProcedureHeading ph = null;\r\n\r\n ProcedureBody pb = null;\r\n\r\n\r\n try {\r\n // C:\\\\anton\\\\oberon0\\\\src\\\\edu\\\\uva\\\\sc\\\\oberon0\\\\oberon0.g:163:57: (ph= procedureHeading ';' pb= procedureBody IDENT )\r\n // C:\\\\anton\\\\oberon0\\\\src\\\\edu\\\\uva\\\\sc\\\\oberon0\\\\oberon0.g:164:1: ph= procedureHeading ';' pb= procedureBody IDENT\r\n {\r\n pushFollow(FOLLOW_procedureHeading_in_procedureDeclaration1099);\r\n ph=procedureHeading();\r\n\r\n state._fsp--;\r\n\r\n match(input,35,FOLLOW_35_in_procedureDeclaration1101); \r\n pushFollow(FOLLOW_procedureBody_in_procedureDeclaration1105);\r\n pb=procedureBody();\r\n\r\n state._fsp--;\r\n\r\n IDENT8=(Token)match(input,IDENT,FOLLOW_IDENT_in_procedureDeclaration1107); \r\n pd = new ProcedureDeclaration(ph, pb, (IDENT8!=null?IDENT8.getText():null));\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 pd;\r\n }", "title": "" }, { "docid": "33ff5a001c0800b01fcb95eae3089fd5", "score": "0.48477158", "text": "void startedBuildingGraph();", "title": "" }, { "docid": "6fb6c9108fd4c23c07fdfed117c4ac18", "score": "0.48457932", "text": "void create(VertexDescriptor descriptor);", "title": "" }, { "docid": "79012a8a77a0e3e2c70ae814fa5fab62", "score": "0.48427612", "text": "private Procedure createScheduler() {\r\n \t\tIrFactory factory = IrFactory.eINSTANCE;\r\n \t\tProcedure procedure = IrFactory.eINSTANCE.createProcedure(\r\n \t\t\t\tSCHEDULER_NAME, 0, IrFactory.eINSTANCE.createTypeBool());\r\n \r\n \t\tNodeBlock block = factory.createNodeBlock();\r\n \t\tprocedure.getNodes().add(block);\r\n \t\tcreateInputCondition(block);\r\n \t\treturn procedure;\r\n \t}", "title": "" }, { "docid": "eb0f91b36f753576ece136bb7684bfa1", "score": "0.48411492", "text": "edu.umich.icpsr.ddi.PType addNewP();", "title": "" }, { "docid": "0c28afce7bbc49f46188af76a0bf7955", "score": "0.48373523", "text": "private void create() { \n RTGPSComponent.RenderContext myrc = (RTGPSComponent.RenderContext) getRTComponent().rc; if (myrc != null) {\n Bundles bundles = getRenderBundles();\n String entity_fld = (String) entity_cb.getSelectedItem(),\n lat_fld = latitudeField(),\n lon_fld = longitudeField(),\n time_opt = (String) node_time_options.getSelectedItem(),\n\t\tmin_time = (String) min_time_option.getSelectedItem(),\n\t\tannotate_hdr = annotate_hdr_tf.getText();\n boolean exclude_start = exclude_start_cb.isSelected(),\n exclude_finish = exclude_finish_cb.isSelected(),\n no_mid_wrap = no_midnight_wrap_cb.isSelected(),\n\t\tannotate_orig = annotate_orig_cb.isSelected();\n\n String node_layout_filename = null;\n if (layout_filename_tf.getText().equals(\"\") == false) { node_layout_filename = layout_filename_tf.getText(); }\n\tif (annotate_orig && annotate_hdr.equals(\"\")) { annotate_hdr = \"gpsto\"; }\n\n GPSGraph.create(getRTParent(), bundles, entity_fld, lat_fld, lon_fld, time_opt, annotations, min_time,\n exclude_start, exclude_finish, no_mid_wrap, node_layout_filename, annotate_orig, annotate_hdr);\n }\n setVisible(false); dispose(); }", "title": "" }, { "docid": "c1c5f91805b0959b66ddc18a6346be13", "score": "0.48317462", "text": "public void setProcedureName(String procedureName) {\r\n this.procedureName = procedureName;\r\n }", "title": "" }, { "docid": "cc7d239306ffacbf1e7cc75900f7381d", "score": "0.4830206", "text": "public void afterNodeTriggered(ProcessNodeTriggeredEvent event) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a190f913d1bbf66e71d495cf6dc9d50e", "score": "0.48238978", "text": "boolean enter(FmoduleProcedureDecl visitable);", "title": "" }, { "docid": "848a514c0873e717bdaced642649a59a", "score": "0.48216322", "text": "@FXML\n\tpublic void CreateNode(ActionEvent e) {\n\t\tgraph.node=true;\n\t\tgraph.edge=false;\n\t}", "title": "" }, { "docid": "00a7178b6a6c42f0dcbc60bcdb771cdd", "score": "0.4801412", "text": "@Override\r\n\tpublic void creerBonbon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3508e5b91c2676a84fa53ee8d59b0ab7", "score": "0.48005334", "text": "public void startSubroutine() {\n methodTable.clear();\n indices.put(\"argument\", 0);\n indices.put(\"var\", 0);\n\n\n }", "title": "" }, { "docid": "fc9cbf37eaaad701a03c35b561e46629", "score": "0.4797654", "text": "public void programSelected() {\n\n }", "title": "" }, { "docid": "60ccaf181a942d07acea4c05024eb0ea", "score": "0.4788934", "text": "@Override\r\n\tpublic void nodeStart(EventListenerExecution execution) {\n\t\t\r\n\t}", "title": "" }, { "docid": "a9b68dfbb9f670cb69a1c8e5a6e6f870", "score": "0.4773442", "text": "private ProcDeclaration declareStdProc (String id, FormalParameterSequence fps) {\r\n\r\n ProcDeclaration binding;\r\n\r\n binding = new ProcDeclaration(new Identifier(id, dummyPos), fps,\r\n new EmptyCommand(dummyPos), dummyPos);\r\n idTable.enter(id, binding);\r\n return binding;\r\n }", "title": "" }, { "docid": "d354c754bcb248278e063dd624104d69", "score": "0.47629628", "text": "public Void visit(CPP.Absyn.DFun p, Void arg)\n\t\t{\n\t\t\tDFun fun = new DFun(p.type_, p.id_, p.listarg_, p.liststm_);\n\t\t\tsymTab.put(fun.id_, fun);\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "1a15126ea5d747ff7afa958e00d8881c", "score": "0.4753611", "text": "public CetusControlParameterProcess () {\r\n cetusVortalDelegate = new CetusVortalDelegate();\r\n }", "title": "" }, { "docid": "aa86071ef657d4ba58a705e6eb344754", "score": "0.4748669", "text": "public void onCreation();", "title": "" }, { "docid": "e6488efbf607191e1b5997af5d02cd17", "score": "0.47433588", "text": "public final void mT__34() throws RecognitionException {\n try {\n int _type = T__34;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../fr.imta.selenium.ui/src-gen/fr/imta/tp/selenium/ui/contentassist/antlr/internal/InternalSelenium.g:32:7: ( 'procedure' )\n // ../fr.imta.selenium.ui/src-gen/fr/imta/tp/selenium/ui/contentassist/antlr/internal/InternalSelenium.g:32:9: 'procedure'\n {\n match(\"procedure\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "5ebc31d5893c777991d02224006722fe", "score": "0.47325125", "text": "@Override\r\n\tpublic int executer() {\n\t\tpersonne.activeProc(2);\t\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "9603cd9f7a6a6b81f57df283ae16fef3", "score": "0.4727394", "text": "protected void sequence_procedure_heading(ISerializationContext context, abstraction_heading semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "title": "" }, { "docid": "306ab9ea018751abde941bf03377b90a", "score": "0.472326", "text": "HearingPlanOfCareProcedureActivityProcedure createHearingPlanOfCareProcedureActivityProcedure();", "title": "" }, { "docid": "a444b121acbe13d4a77e336696348f46", "score": "0.47051108", "text": "@Override\r\n\tpublic FuncCallProgramPoint addFuncCallProgramPoint(String name,\r\n\t\t\tString lineNo) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "3c59d90c823c54440920a9e32ad675ad", "score": "0.47028786", "text": "public void beforeNodeTriggered(ProcessNodeTriggeredEvent event) {\n\n\t}", "title": "" }, { "docid": "c7a84e61762fed28d0fdfe814f975c98", "score": "0.47025716", "text": "EventNode(){\n\t}", "title": "" }, { "docid": "6a69fac111603658cb285ce49e2f7928", "score": "0.470049", "text": "@SuppressWarnings(\"unchecked\")\n\tprivate void constructSPG() {\n\t\tcs2Targets = getCallsite2TargetMap();\n\t\tMap varPtSet = getVarPtSet();\n\t\tMap fieldPtSet = getFieldPtSet();\n\n\t\tfor (Iterator ita = varPtSet.keySet().iterator(); ita.hasNext();) {\n\t\t\tVarNode varnode = (VarNode) ita.next();\n\t\t\tif (varnode instanceof FieldVarNode) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tSet s = (Set) varPtSet.get(varnode);\n\t\t\tfor (Iterator objs = s.iterator(); objs.hasNext();) {\n\t\t\t\tAbstractAllocNode obj = (AbstractAllocNode) objs.next();\n\t\t\t\tnew PointsToEdge(varnode, obj);\n\t\t\t}\n\t\t}\n\n\t\t// some sanity check,\n\t\t// for (Iterator its = spg.getReceivers().iterator(); its.hasNext();) {\n\t\t// VarNode vn = (VarNode) its.next();\n\t\t// if (!receiversMap.containsKey(vn)) {\n\t\t// System.out.println();\n\t\t// }\n\t\t// }\n\t\t// ReturnVarNode vn = NodeFactory.v(sm).findReturnVarNode(sm);\n\t\t// if (vn != null && !varPtSet.containsKey(vn)) {\n\t\t// System.out.println();\n\t\t// }\n\n\t\tfor (Iterator ita = fieldPtSet.keySet().iterator(); ita.hasNext();) {\n\t\t\tAbstractNode objnode = (AbstractNode) ita.next();\n\t\t\tassert objnode instanceof AbstractAllocNode;\n\t\t\tMap m = (Map) fieldPtSet.get(objnode);\n\t\t\t// Map dir = (Map) directions.get(objnode);\n\t\t\tfor (Iterator fields = m.keySet().iterator(); fields.hasNext();) {\n\t\t\t\tSootField sf = (SootField) fields.next();\n\t\t\t\tSet pts = (Set) m.get(sf);\n\t\t\t\t// int di = ((Integer) dir.get(sf)).intValue();\n\t\t\t\tfor (Iterator objs = pts.iterator(); objs.hasNext();) {\n\t\t\t\t\tAbstractNode tgt = (AbstractNode) objs.next();\n\t\t\t\t\tassert tgt instanceof AbstractAllocNode;\n\t\t\t\t\tnew FieldPTEdge((AbstractAllocNode) objnode, sf,\n\t\t\t\t\t\t\t(AbstractAllocNode) tgt);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5259f6bf3478d80b26aa78d52623fada", "score": "0.47003716", "text": "protected void sequence_function_heading_procedure_heading(ISerializationContext context, abstraction_heading semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "title": "" }, { "docid": "3505bd95ccab259369ba4e1711523d7d", "score": "0.469817", "text": "@Deprecated\n public Procedure(String procedure) {\n this();\n setProcedure(procedure);\n }", "title": "" }, { "docid": "41ee40436020f8c1eadaf5702e9ca6b5", "score": "0.46978116", "text": "private void mnuAddDecisionNodeActionPerformed(java.awt.event.ActionEvent evt) {\n Node node=new Node();\n node.setKind(node_type.DECISION_NODE);\n\n ShapeNode s=new DecisionNode(this,node);\n nodes.add(s);\n \n s.repaint();\n this.myContentPane.add(s);\n }", "title": "" }, { "docid": "4d6ab8a696d7789b8c279be99a29b02e", "score": "0.46894833", "text": "public PDG getPDG(MethodObject methodObject) {\n\t\tCFG cfg = new CFG(methodObject);\n\t\tPDG pdg = new PDG(cfg);\n\t\tSystem.out.println(pdg.getNodes().size());\n\t\tSystem.out.println(\"Done\");\t\n\t\t\n\t\treturn pdg;\n\t}", "title": "" }, { "docid": "c4daa47a53e56af0958ec989673e27c8", "score": "0.46882173", "text": "public void ejbPostCreate(int argLeasedocument, java.lang.String argPhonenumber) throws java.rmi.RemoteException {}", "title": "" }, { "docid": "af4ce43ebe4693bb1847cfcac887235a", "score": "0.46847996", "text": "@Override\r\n\tpublic void createPartControl(Composite parent) {\n\t\tg = new Graph(parent.getShell(), SWT.NONE);\r\n\t\tthis.parent = parent;\r\n\t\t// Selection listener on graphConnect or GraphNode is not supported\r\n\t\t// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=236528\r\n\r\n\t}", "title": "" }, { "docid": "afd7615ad91a1a30640b4de65b40d6a6", "score": "0.46712112", "text": "BPMNShape createBPMNShape();", "title": "" }, { "docid": "e154110f3751400c6ca0e43423d8ad8e", "score": "0.46696743", "text": "public String getProcedureName()\n {\n return procedureName;\n }", "title": "" }, { "docid": "b3d2680afa504ad5e3794b55abcb3387", "score": "0.46660906", "text": "public void beforeNodeTriggered(ProcessNodeTriggeredEvent event) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "f1cea8848e308226b0db43f490971405", "score": "0.46536043", "text": "void onGenerationStarted();", "title": "" }, { "docid": "e66a6ba99d60cd847f2a91b649f1c813", "score": "0.46534798", "text": "public void createComponent() {\n\t\tString cptFile = \"CreateEpt.cpt\";\n\t\tnew FileBootloader(this.m_Context).store(cptFile);\n\t\t\n\t\tthis.m_Component = new SComponent(\"create_ept\", \"creator\");\n\t\tthis.m_Endpoint = this.m_Component.addEndpoint(\"addept\", EndpointType.EndpointSink, \"E0D2B4C85BC6\");\n\t\t//this.m_Component.addRDC(\"192.168.0.3:50123\");\n\t\tthis.m_Component.start(this.m_Context.getFilesDir() + \"/\" + cptFile, 44440, false);\n\t\tthis.m_Component.setPermission(\"\", \"\", true);\n\t}", "title": "" }, { "docid": "d0fcf20d94e738a4f4210adcafde4489", "score": "0.46528926", "text": "public void addRoutineAsCreatorForType(){\n\t\treturnType.addCreationRoutine(this);\n\t}", "title": "" }, { "docid": "492be2aaa021509321ba022c763729df", "score": "0.4644201", "text": "private void initialiseNode() {\n\t\tsetName(\"ConvolutionNode\");\n\t\tsetNodeType(PetriNetNode.CONVOLUTION);\n\t\t\t\n\t\t// only one subnode\n\t\tsetRequiredArguments(2);\n\t\t\n\t\t// and nothing else\n\t\tsetMaxArguments(2);\n\t\t\n\t\t// set up required arguments of node\n\t\tinitialiseRequiredChildNodes();\n\t\t\n\t\t// set return type\n\t\tsetReturnType(DENS_TYPE);\n\t\t\n\t\t// indicate that we want labels on the arcs\n\t\tshowArcLabels = true;\n\t\t\n\t\t// set up outgoing arcs (implemented in OperationNode)\n\t\tsetupOutgoingArcs();\n\t}", "title": "" }, { "docid": "2b84b10d0943a3c9efb310cce98727fa", "score": "0.464038", "text": "@Override\n\tpublic Procedure add(String src_modle, String src_procedure,String src_procedure_color)\n\t{\n\t\tWorkData data=find(src_modle);\n\t\tArrayList<Procedure> procedures=null;\n\t\tboolean addRepeat=false;\n\t\tif(data!=null){\n\t\t\tprocedures=data.getProcedures();\n\t\t\tif(procedures!=null){\n\t\t\t\tfor(Procedure pd:procedures){\n\t\t\t\t\tif(pd.getName().equals(src_procedure)&&pd.getColor().equals(src_procedure_color)){\n\t\t\t\t\t\taddRepeat=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!(addRepeat&&!ALLOW_REPEAT_PROCEDURE_AND_COLOR)){\n\t\t\t\t\tprocedures.add(new Procedure(src_procedure,src_procedure_color));\n\t\t\t\t}else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tprocedures=new ArrayList<Procedure>();\n\t\t\t\tprocedures.add(new Procedure(src_procedure,src_procedure_color));\n\t\t\t\tdata.setProcedures(procedures);\n\t\t\t}\n\t\t}else{\n\t\t\tdata=new WorkData();\n\t\t\tdata.setModel(src_modle);\n\t\t\tprocedures=new ArrayList<Procedure>();\n\t\t\tprocedures.add(new Procedure(src_procedure,src_procedure_color));\n\t\t\tdata.setProcedures(procedures);\n\t\t\tdatas.add(data);\n\t\t}\n\n\t\tSystem.out.println(datas.size());\n\t\treturn find(src_modle,src_procedure,src_procedure_color);\n\t}", "title": "" }, { "docid": "31f7987d457fb72736c7a9c8a0ab836e", "score": "0.46396017", "text": "public SVGClip(SVGGeneratorContext generatorContext) {\n/* 55 */ super(generatorContext);\n/* 56 */ this.shapeConverter = new SVGShape(generatorContext);\n/* */ }", "title": "" } ]
83f68e599e0cf0ece89365125be3943f
Remove or comment out the given import statements (Import or ImportFrom).
[ { "docid": "779e3314bb555e7d68dd2eb680d42da4", "score": "0.6836739", "text": "public void removeImports(EditList edits, Set<PythonTree> candidates, boolean commentOut, Map<PythonTree, List<String>> onlyNames) {\n for (PythonTree node : candidates) {\n // Don't touch imports that aren't top level!!!\n // These can be inside If blocks and such so we don't\n // have enough knowledge to mess with them\n if (!isTopLevel(node)) {\n continue;\n }\n\n OffsetRange astRange = PythonAstUtils.getRange(node);\n OffsetRange lexRange = PythonLexerUtils.getLexerOffsets(info, astRange);\n if (lexRange == OffsetRange.NONE) {\n continue;\n }\n\n List<String> names = onlyNames.get(node);\n if (names != null) {\n\n // TODO Handle commenting out portions of a line! An idea which\n // might work is to replace the whole import with a new import\n // that moves the commented out portions to the end!!\n\n // Only delete/comment out a portion of the line\n// if (commentOut) {\n// TODO\n// } else {\n // Determine offsets within the line\n List<OffsetRange> ranges = new ArrayList<>();\n try {\n int start = lexRange.getStart();\n int end = lexRange.getEnd();\n if (end > doc.getLength()) {\n end = doc.getLength();\n if (start > doc.getLength()) {\n start = doc.getLength();\n }\n }\n String line = doc.getText(start, end - start);\n for (String name : names) {\n int index = line.indexOf(name);\n if (index != -1) {\n int nameEnd = index + name.length();\n boolean removedComma = false;\n for (int i = nameEnd; i < line.length(); i++) {\n char c = line.charAt(i);\n if (c == ',') {\n removedComma = true;\n nameEnd = i + 1;\n if (nameEnd < line.length() && line.charAt(nameEnd) == ' ') {\n // Include space after comma in deletion\n nameEnd++;\n }\n break;\n } else if (c == ' ' || c == '\\t') {\n continue;\n } else {\n break;\n }\n }\n if (!removedComma) {\n // If I removed the last name on the line there is no\n // comma at the end, so I should try removing one -before-\n // the name instead\n for (int i = index - 1; i >= 0; i--) {\n char c = line.charAt(i);\n if (c == ',') {\n index = i;\n break;\n } else if (c == ' ' || c == '\\t') {\n continue;\n } else {\n break;\n }\n }\n }\n OffsetRange remove = new OffsetRange(start + index, start + nameEnd);\n\n // Prevent overlaps\n for (OffsetRange range : ranges) {\n if (range.overlaps(remove)) {\n if (range.getStart() < remove.getStart()) {\n remove = new OffsetRange(range.getEnd(), Math.max(remove.getEnd(), range.getEnd()));\n } else {\n remove = new OffsetRange(Math.min(remove.getStart(), range.getStart()), range.getStart());\n }\n }\n }\n\n ranges.add(remove);\n }\n }\n int prio = 0;\n for (OffsetRange range : ranges) {\n edits.replace(range.getStart(), range.getLength(), null, false, prio++);\n }\n } catch (BadLocationException ex) {\n Exceptions.printStackTrace(ex);\n }\n// }\n } else {\n int start = lexRange.getStart();\n if (commentOut) {\n edits.replace(start, 0, \"#\", false, 0); // NOI18N\n } else {\n int length = lexRange.getLength();\n // See if this leaves an empty line and if so remove it\n int endPos = lexRange.getEnd();\n if (endPos < doc.getLength()) {\n try {\n char c = doc.getText(endPos, 1).charAt(0);\n if (c == '\\n') {\n length++;\n }\n } catch (BadLocationException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n edits.replace(start, length, null, false, 0);\n }\n }\n }\n }", "title": "" } ]
[ { "docid": "f12a3849cf183e44fb752658a2ae12d0", "score": "0.61491084", "text": "private void ignoreJavaLangImportTypes() {\n Iterator<String> it = importTypes.iterator();\n while (it.hasNext()) {\n String type = it.next();\n if (type.startsWith(\"java.lang.\")) {\n it.remove();\n }\n }\n }", "title": "" }, { "docid": "6533bc5bfd10408cdb71892ba8fdd5ea", "score": "0.6070081", "text": "public void rewriteMainImports(EditList edits, Collection<ImportEntry> newEntries, Set<ImportEntry> remove) {\n\n PythonIndex index = PythonIndex.get(info.getSnapshot().getSource().getFileObject());\n\n // TODO:\n // Look for comments to preserve\n // Replace the entire editor block\n Set<ImportEntry> entries = new HashSet<>();\n int ordinal = 0;\n for (PythonTree node : mainImports) {\n if (node instanceof Import) {\n Import imp = (Import)node;\n // TODO - look up for at.getInternalName()!\n List<alias> names = imp.getInternalNames();\n if (names != null) {\n for (alias at : names) {\n ImportEntry importEntry = new ImportEntry(at.getInternalName(), at.getInternalAsname(), systemLibsFirst && index.isSystemModule(at.getInternalName()),\n removeDuplicates ? null : imp, sortImports ? 0 : ordinal++);\n if (!separateFromImps) {\n importEntry.sortedFrom = false;\n }\n entries.add(importEntry);\n }\n }\n } else {\n assert node instanceof ImportFrom;\n ImportFrom imp = (ImportFrom)node;\n List<alias> names = imp.getInternalNames();\n if (names != null && names.size() > 0) {\n // TODO - look up for imp.getInternalModule()!\n boolean isSystemLibrary = systemLibsFirst && index.isSystemModule(imp.getInternalModule());\n for (alias at : names) {\n // In imports like `from . import views` imp.getInternalModule returns an empty string instead of `.`.\n // This caused the formated import to become `from import views`. While waiting for this to be fixed in\n // jython, we work around it here.\n // See: https://netbeans.org/bugzilla/show_bug.cgi?id=270447\n String internalModule = \"\".equals(imp.getInternalModule()) ? \".\" : imp.getInternalModule();\n ImportEntry importEntry = new ImportEntry(internalModule, at.getInternalName(), at.getInternalAsname(), isSystemLibrary,\n removeDuplicates ? null : imp, sortImports ? 0 : ordinal++);\n if (!separateFromImps) {\n importEntry.sortedFrom = false;\n }\n entries.add(importEntry);\n }\n }\n }\n }\n\n // Add in entries discovered as needed by the import manager\n if (newEntries.size() > 0) {\n entries.addAll(newEntries);\n }\n\n // Remove any items that needs to be removed\n if (remove.size() > 0) {\n entries.removeAll(remove);\n }\n\n // Sort imports -- first by system/nonsystem, then alphabetically\n List<ImportEntry> sortedEntries = new ArrayList<>(entries);\n Collections.sort(sortedEntries);\n\n // Write out existing imports\n StringBuilder sb = new StringBuilder();\n int size = sortedEntries.size();\n if (size > 0) {\n boolean prevSystem = sortedEntries.get(0).isSystem;\n\n for (int i = 0; i < size; i++) {\n ImportEntry entry = sortedEntries.get(i);\n if (systemLibsFirst && entry.isSystem != prevSystem) {\n prevSystem = entry.isSystem;\n sb.append(\"\\n\"); // NOI18N Separate system and regular libs\n }\n\n if (entry.isFromImport) {\n int start = sb.length();\n sb.append(\"from \"); // NOI18N\n sb.append(entry.module);\n sb.append(\" import \"); // NOI18N\n sb.append(entry.symbol);\n if (entry.asName != null) {\n sb.append(\" as \"); // NOI18N\n sb.append(entry.asName);\n }\n\n if (!splitImports) {\n // Look ahead and combine subsequent entries\n int lookahead = i + 1;\n for (; lookahead < size; lookahead++) {\n ImportEntry next = sortedEntries.get(lookahead);\n if (next.isFromImport != entry.isFromImport ||\n !next.module.equals(entry.module)) {\n break;\n }\n sb.append(\", \"); // NOI18N\n\n if (sb.length() - start > rightMargin && (rightMargin > 30)) {\n sb.append(\"\\\\\\n\");\n start = sb.length();\n sb.append(IndentUtils.createIndentString(doc, IndentUtils.indentLevelSize(doc)));\n }\n\n sb.append(next.symbol);\n if (next.asName != null) {\n sb.append(\" as \");\n sb.append(next.asName);\n }\n }\n i = lookahead - 1;\n }\n sb.append(\"\\n\"); // NOI18N\n } else {\n // Plain import\n // We never combine imports\n sb.append(\"import \"); // NOI18N\n sb.append(entry.module);\n if (entry.asName != null) {\n sb.append(\" as \"); // NOI18N\n sb.append(entry.asName);\n }\n sb.append(\"\\n\"); // NOI18N\n }\n }\n }\n\n // Write commented out deleted entries as well\n if (remove.size() > 0 && cleanup == ImportCleanupStyle.COMMENT_OUT) {\n size = remove.size();\n List<ImportEntry> sortedRemove = new ArrayList<>();\n sortedRemove.addAll(remove);\n Collections.sort(sortedRemove);\n for (ImportEntry entry : sortedRemove) {\n if (entry.isFromImport) {\n sb.append(\"#from \"); // NOI18N\n sb.append(entry.module);\n sb.append(\" import \"); // NOI18N\n sb.append(entry.symbol);\n if (entry.asName != null) {\n sb.append(\" as \"); // NOI18N\n sb.append(entry.asName);\n }\n sb.append(\"\\n\"); // NOI18N\n } else {\n sb.append(\"#import \"); // NOI18N\n sb.append(entry.module);\n if (entry.asName != null) {\n sb.append(\" as \"); // NOI18N\n sb.append(entry.asName);\n }\n sb.append(\"\\n\"); // NOI18N\n }\n }\n }\n\n // Compute editor range required\n OffsetRange lexRange = getMainImportsRange();\n\n // Replace final newline if it's there so we don't grow whitespace around the imports\n int lastNewlineDelta = 0;\n try {\n if (lexRange.getEnd() < doc.getLength() && doc.getText(lexRange.getEnd(), 1).charAt(0) == '\\n') {\n lastNewlineDelta++;\n }\n } catch (BadLocationException ex) {\n Exceptions.printStackTrace(ex);\n }\n\n edits.replace(lexRange.getStart(), lexRange.getLength() + lastNewlineDelta, sb.toString(), false, 0);\n }", "title": "" }, { "docid": "94425a655fe159a90302b32f1a528c04", "score": "0.5914446", "text": "void writeImportDirectives(ClassDoc cl, Writer wr) throws IOException {\n importClassDirectives(cl,wr);\n Iterator it = imports.iterator();\n while (it.hasNext()) {\n String impline = (String) it.next();\n writeImportLine(impline, wr);\n }\n writeImportLine(\"org.lockss.util.ListUtil\", wr);\n writeImportLine(\"org.lockss.util.WrapperLogger\", wr);\n writeImportLine(\"org.lockss.plugin.WrapperState\",wr);\n if (!packageName.startsWith(\"#CLASS_PACKAGE\") &&\n !packageName.startsWith(\"#BLANK\")) {\n writeImportLine(cl.qualifiedTypeName(), wr);\n }\n wr.write(\"\\n\");\n }", "title": "" }, { "docid": "eaeb2aa4c900069410764a005be1736c", "score": "0.585679", "text": "void addTypeOnlyImports(Node script) {\n if (!script.isScript() || !importsNeeded.containsKey(script.getSourceFileName())) {\n return;\n }\n\n Node body = script.getFirstChild().isModuleBody() ? script.getFirstChild() : script;\n\n for (Node n : body.children()) {\n if (n.isImport()) {\n // Prepends new imports to the first import\n for (Node newImport : importsNeeded.get(script.getSourceFileName())) {\n body.addChildBefore(newImport, n);\n }\n return;\n }\n }\n for (Node newImport : importsNeeded.get(script.getSourceFileName())) {\n script.addChildToFront(newImport);\n }\n }", "title": "" }, { "docid": "376644137f0a647d0a619ff55464f7ce", "score": "0.58242416", "text": "public void addImport(String toImport) {\n\t\tsetContent(AndroidEditor.instance().getCodeMirror().getText());\n\t\t\n\t\tArrayList<String> imports = new ArrayList<String>();\n\t\t\n\t\tString[] lines = content.split(\"\\n\");\n\t\t\n\t\tint lastImport = 1;\n\t\tfor (int i = 0; i < lines.length; i++) {\n\t\t\tString line = lines[i];\n\t\t\tif (line.startsWith(\"import \")) {\n\t\t\t\tlastImport = i;\n\t\t\t\timports.add(line);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!imports.contains(\"import \" + toImport + \";\"))\n\t\t\taddCMLine(AndroidEditor.instance().getCodeMirror().getCM(), \"import \" + toImport + \";\", lastImport, 1);\n\t\t\n\t\tsetContent(AndroidEditor.instance().getCodeMirror().getText());\n\t}", "title": "" }, { "docid": "5688fca30abe1be56315b5a8c0be4b0a", "score": "0.56598115", "text": "void importClassDirectives(ClassDoc cl, Writer wr) throws IOException {\n if (template.hasTag(\"class_imports\")) {\n PackageDoc[] packs = cl.importedPackages();\n for (int i = 0; i < packs.length; i++) {\n if (!packs[i].name().equals(\"java.lang\")) {\n writeImportLine(packs[i].name() + \".*\", wr);\n }\n }\n ClassDoc[] impcls = cl.importedClasses();\n for (int i = 0; i < impcls.length; i++) {\n writeImportLine(impcls[i].qualifiedTypeName(), wr);\n }\n }\n }", "title": "" }, { "docid": "9007db51b2cb3e95ba799b3089d9a39c", "score": "0.5586503", "text": "public void apply(EditList edits, String[] selections, Set<ImportEntry> removeEntries, Set<ImportEntry> duplicates) {\n boolean apply = false;\n if (edits == null) {\n edits = new EditList(doc);\n apply = true;\n }\n\n Set<PythonTree> removedAlready = new HashSet<>();\n\n Set<PythonTree> mainImport;\n //if (sortImports) {\n mainImport = new HashSet<>(mainImports);\n //} else {\n // mainImport = Collections.<PythonTree>emptySet();\n //}\n Set<PythonTree> topLevel = topLevelImports;\n\n//\n// // Remove duplicates. Note - these are always removed, not just commented out.\n// if (duplicates.size() > 0 && cleanup != ImportCleanupStyle.LEAVE_ALONE) {\n// Set<PythonTree> candidates = new HashSet<PythonTree>();\n// // Map from import node to list of names that should be removed, if only some are duplicates\n// Map<PythonTree,List<String>> names = new HashMap<PythonTree,List<String>>();\n// // Find the corresponding import\n// //List<PythonTree> candidates = new ArrayList<PythonTree>();\n// boolean foundFirst = false;\n// for (Import imp : imports) {\n// if (imp.names != null) {\n// boolean all = true;\n// boolean some = false;\n// for (alias at : imp.getInternalNames()) {\n// if (duplicates.contains(at.getInternalName())) {\n// if (!foundFirst) {\n// foundFirst = true;\n// } else {\n// some = true;\n// List<String> nameList = names.get(imp);\n// if (nameList == null) {\n// nameList = new ArrayList<String>();\n// names.put(imp, nameList);\n// }\n// nameList.add(at.getInternalName());\n// }\n// break;\n// } else {\n// all = false;\n// }\n// }\n// if (some) {\n// candidates.add(imp);\n// if (all) {\n// // No need to limit deletion to just one\n// names.put(imp, null);\n// }\n// }\n// }\n// }\n//\n// for (ImportFrom from : importsFrom) {\n// if (from.names != null) {\n// boolean all = true;\n// boolean some = false;\n// for (alias at : from.names) {\n// assert at.getInternalName() != null;\n// String value;\n// if (at.getInternalAsname() != null) {\n// value = from.module + \":\" + at.getInternalName() + \":\" + at.getInternalAsname();\n// } else {\n// value = from.module + \":\" + at.getInternalName();\n// }\n// if (duplicates.contains(value)) {\n// if (!foundFirst) {\n// foundFirst = true;\n// } else {\n// some = true;\n// List<String> nameList = names.get(from);\n// if (nameList == null) {\n// nameList = new ArrayList<String>();\n// names.put(from, nameList);\n// }\n// nameList.add(at.getInternalName());\n// }\n// } else {\n// all = false;\n// }\n// }\n// if (some) {\n// candidates.add(from);\n// if (all) {\n// // No need to limit deletion to just one\n// names.put(from, null);\n// }\n// }\n// }\n// }\n//\n// Set<PythonTree> filtered = new HashSet<PythonTree>();\n// for (PythonTree node : candidates) {\n// if (!mainImport.contains(node) && topLevel.contains(node)) {\n// filtered.add(node);\n// }\n// }\n//\n// removedAlready.addAll(filtered);\n//\n// // Note - we always REMOVE duplicate imports rather than just commenting\n// // them out. We may sometimes be wrong about unused imports, so we let\n// // users leave them commented out when we clean up to make it easier\n// // to backtrack if we were wrong. However, duplicate imports is something\n// // we can accurately detect and leaving them commented out isn't something\n// // users will probably want.\n// removeImports(edits, filtered, /*commentOut*/false, names);\n// }\n\n if (cleanup == ImportCleanupStyle.LEAVE_ALONE) {\n removeEntries.clear();\n } else {\n Set<ImportEntry> newSet = new HashSet<>();\n Set<PythonTree> filtered = new HashSet<>();\n for (ImportEntry entry : removeEntries) {\n PythonTree node = entry.node;\n if (!mainImport.contains(node) && topLevel.contains(node)) {\n filtered.add(node);\n } else {\n if (removeDuplicates) {\n entry.node = null;\n }\n if (sortImports) {\n entry.ordinal = 0;\n }\n if (!separateFromImps) {\n entry.sortedFrom = false;\n }\n }\n\n newSet.add(entry);\n }\n removeEntries = newSet;\n// int ordinal = 0;\n// if (unused.size() > 0 && cleanup != ImportCleanupStyle.LEAVE_ALONE) {\n// Set<PythonTree> candidates = new HashSet<PythonTree>();\n// Map<PythonTree,List<String>> names = new HashMap<PythonTree,List<String>>();\n// // Find the corresponding import\n// //List<PythonTree> candidates = new ArrayList<PythonTree>();\n// for (Import imp : imports) {\n// if (imp.names != null) {\n// boolean all = true;\n// boolean some = false;\n// for (alias at : imp.getInternalNames()) {\n// if (unused.contains(at.getInternalName())) {\n// some = true;\n// List<String> nameList = names.get(imp);\n// if (nameList == null) {\n// nameList = new ArrayList<String>();\n// names.put(imp, nameList);\n// }\n// nameList.add(at.getInternalName());\n//\n// boolean isSystem = false; // Don't care what it is for deletion\n// removeEntries.add(new ImportEntry(at.getInternalName(), at.getInternalAsname(), isSystem,\n// removeDuplicates ? null : imp,\n// sortImports ? 0 : ordinal++));\n// break;\n// } else {\n// all = false;\n// }\n// }\n//\n// if (some) {\n// candidates.add(imp);\n// if (all) {\n// // No need to limit deletion to just one\n// names.put(imp, null);\n// }\n// }\n// }\n// }\n//\n// for (ImportFrom from : importsFrom) {\n// if (from.names != null) {\n// boolean all = true;\n// boolean some = false;\n// for (alias at : from.names) {\n// boolean isSystem = false; // Don't care what it is for deletion\n//\n// assert at.getInternalName() != null;\n// String value;\n// if (at.getInternalAsname() != null) {\n// value = from.module + \":\" + at.getInternalName() + \":\" + at.getInternalAsname();\n// } else {\n// value = from.module + \":\" + at.getInternalName();\n// }\n// if (unused.contains(value)) {\n// removeEntries.add(new ImportEntry(from.module, at.getInternalName(), at.getInternalAsname(), isSystem,\n// removeDuplicates ? null : from,\n// sortImports ? 0 : ordinal++));\n// some = true;\n// List<String> nameList = names.get(from);\n// if (nameList == null) {\n// nameList = new ArrayList<String>();\n// names.put(from, nameList);\n// }\n// nameList.add(at.getInternalName());\n// } else {\n// all = false;\n// }\n// }\n// if (some) {\n// candidates.add(from);\n// if (all) {\n// // No need to limit deletion to just one\n// names.put(from, null);\n// }\n// }\n// }\n// }\n//\n// // Don't try to delete nodes we've already deleted or commented out\n// // because they are unused\n//\n// candidates.removeAll(removedAlready);\n//\n// Set<PythonTree> filtered = new HashSet<PythonTree>();\n// for (PythonTree node : candidates) {\n// if (!mainImport.contains(node) && topLevel.contains(node)) {\n// filtered.add(node);\n// }\n// }\n\n removeImports(edits, filtered, cleanup == ImportCleanupStyle.COMMENT_OUT, null);\n }\n\n PythonIndex index = PythonIndex.get(info.getSnapshot().getSource().getFileObject());\n\n Collection<ImportEntry> newEntries = new ArrayList<>();\n if (selections != null) {\n for (String module : selections) {\n if (module.startsWith(\"<html>\")) { // NOI18N\n // Skip cannot resolve stuff\n continue;\n }\n int colon = module.indexOf(':');\n if (colon != -1) {\n int end = module.indexOf('(', colon + 1);\n if (end == -1) {\n end = module.indexOf(';', colon + 1);\n if (end == -1) {\n end = module.length();\n }\n }\n String symbol = module.substring(colon + 1, end).trim();\n module = module.substring(0, colon).trim();\n boolean isSystem = systemLibsFirst && index.isSystemModule(module);\n ImportEntry importEntry = new ImportEntry(module, symbol, null, isSystem, null, 0);\n if (!separateFromImps) {\n importEntry.sortedFrom = false;\n }\n newEntries.add(importEntry);\n } else {\n boolean isSystem = systemLibsFirst && index.isSystemModule(module);\n ImportEntry importEntry = new ImportEntry(module, null, null, isSystem, null, 0);\n if (!separateFromImps) {\n importEntry.sortedFrom = false;\n }\n newEntries.add(importEntry);\n }\n }\n }\n\n rewriteMainImports(edits, newEntries, removeEntries);\n\n if (apply) {\n edits.apply();\n }\n }", "title": "" }, { "docid": "fb172e566021ad1007506ec11daa47ff", "score": "0.55581677", "text": "public static void addOriginalImports(String input, ProjectContext projectCtx) throws RecognitionException {\n Map<String, Set<String>> imports = projectCtx.imports;\n PreprocessorParser.code_return result = Preprocessor.getResult(input);\n for (Object child : ((CommonTree) result.getTree()).getChildren()) {\n CommonTree childTree = (CommonTree) child;\n switch (childTree.token.getType()) {\n case PreprocessorParser.T_IMPORT:\n CommonTree pathTree = (CommonTree) childTree.getFirstChildWithType(PreprocessorParser.T_PATH);\n String importPath = readChildren(pathTree);\n String importReplace = importReplaces.get(importPath);\n // todo: why static? not always\n if (importReplace != null) projectCtx.classCtx.imports.add(importReplace);\n\n break;\n case PreprocessorParser.T_INCLUDE:\n String path = getText(childTree);\n String className = path.substring(1, path.length() - 3);\n Set<String> classPathList = imports.get(className);\n if (classPathList != null) {\n if (className.contains(\"+\")) {\n // saving info about added categories, but do not add into import\n projectCtx.classCtx.localCategories.add(className);\n } else {\n for (String classPath : classPathList) {\n projectCtx.classCtx.imports.add(classPath);\n projectCtx.classCtx.imports.add(\"static \" + classPath + \".*\");\n addNSHeaderImport(projectCtx, classPath);\n }\n }\n addStaticFromHeaderImports(projectCtx, className);\n projectCtx.classCtx.localProcessedImports.add(className);\n }\n break;\n }\n }\n\n }", "title": "" }, { "docid": "c86fabb46b0e4a07f2962cf60266cb5c", "score": "0.5507348", "text": "@Override\n\tpublic boolean visit(ImportDeclaration node) {\n\t\treturn false;\t}", "title": "" }, { "docid": "f659c8f65b2a2036847a2e6267c54d89", "score": "0.5416554", "text": "private void generateImportStatements() {\n\t\tbuildNLSFormatStatement();\n\t\tbuildImportStatement();\n\t}", "title": "" }, { "docid": "6f7f2774e8765f5c9b747fb30c5cad69", "score": "0.5411778", "text": "protected abstract void registerAdditionalImports(Set<DeclaredTypeName> imports);", "title": "" }, { "docid": "4a5d2b428c870dd7772d2f62604e1094", "score": "0.5275367", "text": "private ArrayList<Import> Import() throws Exception {\r\n ArrayList<Import> imports = new ArrayList<Import>();\r\n \r\n while (cToken.getTipo() == Token.TokenType.Import) {\r\n cToken = lex.getNextToken();\r\n String importStatement = cToken.getLexema();\r\n \r\n //JAVACODE SECTION\r\n while (cToken.getTipo() != Token.TokenType.Semicolon) {\r\n importStatement += cToken.getLexema();\r\n cToken = lex.getNextToken();\r\n }\r\n \r\n if (cToken.getTipo() == Token.TokenType.Semicolon) {\r\n importStatement += cToken.getLexema();\r\n cToken = lex.getNextToken();\r\n imports.add(new Import(\"import \" + importStatement));\r\n } else {\r\n Error();\r\n }\r\n }\r\n return imports;\r\n }", "title": "" }, { "docid": "44a2f3ec0912238c2a74c0da76bd3c15", "score": "0.52705437", "text": "public void addImports(final Set<String> importStatements) {\n if (this.scriptEngine instanceof DependencyManager)\n ((DependencyManager) this.scriptEngine).addImports(importStatements);\n }", "title": "" }, { "docid": "b3b64959816434c0a0a6d9959f2224cf", "score": "0.52438974", "text": "private void translateKotlinImportTypes() {\n for (int i = 0; i < javaTypes.length; i++) {\n if (importTypes.remove(javaTypes[i])) {\n importTypes.add(kotlinTypes[i]);\n }\n }\n }", "title": "" }, { "docid": "6534733627c33955744dbb27c3bfa14f", "score": "0.51939654", "text": "Import createImport();", "title": "" }, { "docid": "1ea8a00cfca7d51f4918e1e97052cf6d", "score": "0.51508164", "text": "private List<String> getImportClassStmt(CompilationUnit cu) {\n ImportCollector importCollector = new ImportCollector();\n importCollector.visit(cu, null);\n List<String> fullImportStmt = importCollector.getFullImportStmt();\n List<String> importStmt = new ArrayList<>();\n\n for (int i=0; i<fullImportStmt.size(); i++) {\n StringTokenizer tokenizer = new StringTokenizer(fullImportStmt.get(i), \".\");\n List<String> tokens = new ArrayList<>();\n\n while (tokenizer.hasMoreTokens()) {\n tokens.add(tokenizer.nextToken());\n }\n\n String packageNameToken = \"\"; // import package (not include class)\n String lastToken = \"\"; // import class\n\n for (int j=0; j<tokens.size(); j++) {\n if (j != tokens.size()-1 && j != tokens.size()-2) {\n packageNameToken = packageNameToken + tokens.get(j) + \".\";\n }\n else if (j != tokens.size()-1 && j == tokens.size()-2) {\n packageNameToken = packageNameToken + tokens.get(j);\n }\n else if (j == tokens.size()-1) {\n lastToken = tokens.get(j).replaceAll(\"\\\\s\", \"\");\n }\n }\n\n for (int j=0; j<packageNameList.size(); j++) {\n if (packageNameToken.equals(packageNameList.get(j))) {\n importStmt.add(packageNameToken + \".\" + lastToken);\n }\n }\n }\n\n return importStmt;\n }", "title": "" }, { "docid": "1c84dfd43fa7f68134cce66a869ec648", "score": "0.51291037", "text": "public void setImportDeclList(List<ImportDecl> list) {\n setChild(list, 0);\n }", "title": "" }, { "docid": "e4b63716e33d93884d2644f419dbb174", "score": "0.5111488", "text": "protected void writeImports() throws IOException {\n\n for (String importType : importTypes) {\n writer.append(\"import \").append(importType);\n config.appendLangSemiColon(writer);\n writer.append(NEWLINE);\n }\n writer.append(NEWLINE);\n }", "title": "" }, { "docid": "94b476b74354d25bd464237b8bf716f0", "score": "0.50864214", "text": "public void testUnresolvableImports22() throws Exception {\n writeFilesAndWaitForScan(src,\n new File(\"test/Main.java\",\n \"package test;\\n\" +\n \"import cannot.resolve.List;\\n\" +\n \"import java.util.*;\\n\" +\n \"public class Main { List r; }\"));\n\n performUnusedImportsTest();\n }", "title": "" }, { "docid": "090dac3e45165bf1877e0892176cbabe", "score": "0.5056142", "text": "@Override\n\tpublic void dontCallTraverseImport(UniImport node) {\n\t\t\n\t}", "title": "" }, { "docid": "641d9a3d2bb59e7f728a35dc2d687fa5", "score": "0.5049177", "text": "public final AstPrinter.import_statement_return import_statement() throws RecognitionException {\n AstPrinter.import_statement_return retval = new AstPrinter.import_statement_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree IMPORT11=null;\n CommonTree QUOTEDSTRING12=null;\n\n CommonTree IMPORT11_tree=null;\n CommonTree QUOTEDSTRING12_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstPrinter.g:70:18: ( ^( IMPORT QUOTEDSTRING ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstPrinter.g:70:20: ^( IMPORT QUOTEDSTRING )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n IMPORT11=(CommonTree)match(input,IMPORT,FOLLOW_IMPORT_in_import_statement201); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IMPORT11_tree = (CommonTree)adaptor.dupNode(IMPORT11);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(IMPORT11_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n QUOTEDSTRING12=(CommonTree)match(input,QUOTEDSTRING,FOLLOW_QUOTEDSTRING_in_import_statement203); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n QUOTEDSTRING12_tree = (CommonTree)adaptor.dupNode(QUOTEDSTRING12);\n\n\n adaptor.addChild(root_1, QUOTEDSTRING12_tree);\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n sb.append(\" \").append((IMPORT11!=null?IMPORT11.getText():null)).append(\" \").append((QUOTEDSTRING12!=null?QUOTEDSTRING12.getText():null));\n }\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "0bb9409289f1f25a8012b4ed3b584f91", "score": "0.5042275", "text": "Import getImport();", "title": "" }, { "docid": "83061800dd5de72d882c82f282e27701", "score": "0.5031667", "text": "private boolean allowAddingImports() {\n return true;\n }", "title": "" }, { "docid": "ee19b1ef2c8b337ccd31e7af6ebbe306", "score": "0.50128275", "text": "@Override\n public Object visit(ASTImportDeclaration node, Object data) {\n\n String img = node.jjtGetChild(0).getImage();\n for (String blacklistedClass : getProperty(LIST_PROPERTY)) {\n if (img.startsWith(blacklistedClass)) {\n addViolation(data, node);\n }\n }\n\n return super.visit(node, data);\n }", "title": "" }, { "docid": "2029fc663ab2ad6a354801540b0981d3", "score": "0.50082505", "text": "public void testUnresolvableImportsQuestionable2() throws Exception {\n writeFilesAndWaitForScan(src,\n new File(\"test/Main.java\",\n \"package test;\\n\" +\n \"import cannot.resolve.*;\\n\" +\n \"import java.util.*;\\n\" +\n \"public class Main { List l;}\"));\n\n performUnusedImportsTest(\"import cannot.resolve.*;\\n\");\n }", "title": "" }, { "docid": "5e83325ff5455b447ba617c6b73dcdda", "score": "0.4952035", "text": "public void writeImport(PrintWriter pw) throws FileNotFoundException, IOException {\n\t//todo: need to also allow for NSLC type import statements\n\tString libPath=\"\";\n\tString libPathLast=\"\";\n\tString srcDirStr=\"\";\n\tString thisVersion=\"\";\n\tVector pathsVector=new Vector();\n\n\tif ((varDialogType.equals(\"SubModule\"))&&(!(modLibNickName.equals(\"\")))&&(!(varType.equals(\"\")))&&(!(modVersion.equals(\"\")))) {\n\t try {\n\t\tlibPath=SCSUtility.getLibPathName(modLibNickName);\n\t\t//System.out.println(\"Debug:Declaration:writeImport:\"+libPath);\n\t\tlibPathLast=SCSUtility.getLibPathLast(libPath);\n\t\t//System.out.println(\"Debug:Declaration:writeImport:\"+libPathLast);\n\t\tthisVersion=modVersion;\n\t\tif (modGetCurrentVersion) { //float the version\n\t\t thisVersion=SCSUtility.getHighestVersionString(libPath,varType);\n\t\t //go get the most recent version of this module\n\t\t}\n\t\tsrcDirStr=SCSUtility.catFullPathToSrc(libPathLast,varType,thisVersion);\n\t\tpw.print(\"nslImport \"+srcDirStr+File.separator+\"*;\\n\");\n\n\t }\n\t catch (FileNotFoundException e) {\n\t\tSystem.err.println(\"Declaration: current module src dir not found: \"+varType);\n\t\tthrow (new FileNotFoundException());\n\t }\n\t catch (IOException e) {\n\t\tSystem.err.println(\"Declaration: current module IOException while looking for: \"+varType);\n\t\tthrow (new IOException());\n\t }\n\n\t}\n }", "title": "" }, { "docid": "14dbb24165c2555e1f3ca2acd7c9d422", "score": "0.48835772", "text": "public ImportHintDoNotPropose() {\n }", "title": "" }, { "docid": "00010790c680d932647e0fc5287e1e08", "score": "0.48711082", "text": "private void setAdditionalImportsForWorkspaceDecl(Collection<String> additionalImportsForWorkspaceDecl) {\r\n this.additionalImportsForWorkspaceDecl = Collections.unmodifiableCollection(additionalImportsForWorkspaceDecl);\r\n }", "title": "" }, { "docid": "72a976f61a8a4dbafaecadbd4bccb9be", "score": "0.48277828", "text": "private void parseImportDeclaration(WyalFile wf) {\n\t\tint start = index;\n\n\t\tmatch(Import);\n\n\t\t// First, parse \"from\" usage (if applicable)\n\t\tToken token = tryAndMatch(true, Identifier, Star);\n\t\tif (token == null) {\n\t\t\tsyntaxError(\"expected identifier or '*' here\", token);\n\t\t}\n\t\tString name = token.text;\n\t\t// NOTE: we don't specify \"from\" as a keyword because this prevents it\n\t\t// from being used as a variable identifier.\n\t\tToken lookahead;\n\t\tif ((lookahead = tryAndMatchOnLine(Identifier)) != null) {\n\t\t\t// Ok, this must be \"from\"\n\t\t\tif (!lookahead.text.equals(\"from\")) {\n\t\t\t\tsyntaxError(\"expected \\\"from\\\" here\", lookahead);\n\t\t\t}\n\t\t\ttoken = match(Identifier);\n\t\t}\n\n\t\t// Second, parse package string\n\t\tTrie filter = Trie.ROOT.append(token.text);\n\t\ttoken = null;\n\t\twhile ((token = tryAndMatch(true, Dot, DotDot)) != null) {\n\t\t\tif (token.kind == DotDot) {\n\t\t\t\tfilter = filter.append(\"**\");\n\t\t\t}\n\t\t\tif (tryAndMatch(true, Star) != null) {\n\t\t\t\tfilter = filter.append(\"*\");\n\t\t\t} else {\n\t\t\t\tfilter = filter.append(match(Identifier).text);\n\t\t\t}\n\t\t}\n\n\t\tint end = index;\n\t\tmatchEndLine();\n\n\t\twf.add(wf.new Import(filter, name, sourceAttr(start, end - 1)));\n\t}", "title": "" }, { "docid": "6fd55c6fc6dcf59f310f3177ffe9f409", "score": "0.48078176", "text": "public void testUnresolvableImportsQuestionable1() throws Exception {\n writeFilesAndWaitForScan(src,\n new File(\"test/Main.java\",\n \"package test;\\n\" +\n \"import other.resolve;\\n\" +\n \"import cannot.*;\\n\" +\n \"public class Main { resolve r; }\"));\n\n performUnusedImportsTest(\"import cannot.*;\\n\");\n }", "title": "" }, { "docid": "a18db53ef36b15b61559b2f64db8729d", "score": "0.478903", "text": "void createRemoveUselessComments() {\n }", "title": "" }, { "docid": "b64cab6c12e2f2ee46170ea9f9822fc5", "score": "0.47419503", "text": "protected void prepareAssocBeanImports() {\n\n importTypes.remove(\"io.ebean.typequery.TQRootBean\");\n importTypes.remove(\"io.ebean.Database\");\n importTypes.add(\"io.ebean.typequery.TQAssocBean\");\n if (classMeta.isEntity()) {\n importTypes.add(\"io.ebean.typequery.TQProperty\");\n importTypes.add(origDestPackage + \".Q\" + origShortName);\n }\n\n if (!config.isAopStyle()) {\n importTypes.add(\"io.ebean.typequery.TQPath\");\n }\n\n // remove imports for the same package\n Iterator<String> importsIterator = importTypes.iterator();\n while (importsIterator.hasNext()) {\n String importType = importsIterator.next();\n // there are no subpackages so just use startsWith(destPackage)\n if (importType.startsWith(destPackage)) {\n importsIterator.remove();\n }\n }\n }", "title": "" }, { "docid": "ec2a342877dfc596cd0e36a85ee1994a", "score": "0.47303706", "text": "public List<ImportDecl> getImportDeclsNoTransform() {\n return getImportDeclListNoTransform();\n }", "title": "" }, { "docid": "fb62c5c571c4542ffbe1d9f8f5950ddf", "score": "0.47276875", "text": "public void ensureImported(String name, String ident, boolean packageImport, boolean useFqn, boolean warnIfExists) {\n\n if (PythonIndex.isBuiltinModule(name)) {\n return;\n }\n\n // Test whether already imported\n if (isImported(name, ident)) {\n if (warnIfExists) {\n Utilities.setStatusText(EditorRegistry.lastFocusedComponent(),\n NbBundle.getMessage(\n ImportManager.class,\n packageImport ? \"MSG_PackageAlreadyImported\" : \"MSG_ClassAlreadyImported\",\n name, ident));\n Toolkit.getDefaultToolkit().beep();\n }\n return;\n }\n\n int begin = getImportsLexOffset(ident);\n try {\n // TODO - warp to the new import and let you edit the \"AS\" part??\n\n if (useFqn || ident == null) {\n doc.insertString(begin, \"import \" + name + \"\\n\", null); // NOI18N\n } else if (packageImport) {\n //doc.insertString(begin, \"import \" + name + \"\\n\", null); // NOI18N\n doc.insertString(begin, \"from \" + name + \" import *\\n\", null); // NOI18N\n } else {\n doc.insertString(begin, \"from \" + name + \" import \" + ident + \"\\n\", null); // NOI18N\n }\n } catch (BadLocationException ble) {\n Exceptions.printStackTrace(ble);\n }\n }", "title": "" }, { "docid": "f0db07bb0199697f33a282b2b5d73872", "score": "0.4722538", "text": "public void compileImports(String imports) {\n try {\n OQLLexer lexer = new OQLLexer(new StringReader(imports));\n OQLParser parser = new OQLParser(lexer);\n // by default use Unsupported AST class, overridden for supported\n // operators in the grammer proper\n parser.setASTNodeClass(\"org.apache.geode.cache.query.internal.parse.ASTUnsupported\");\n parser.loneImports();\n GemFireAST n = (GemFireAST) parser.getAST();\n n.compile(this);\n } catch (Exception ex) { // This is to make sure that we are wrapping any antlr exception with\n // GemFire Exception.\n throw new QueryInvalidException(\n String.format(\"Syntax error in query: %s\", ex.getMessage()),\n ex);\n }\n Assert.assertTrue(stackSize() == 0, \"stack size = \" + stackSize() + \";stack=\" + this.stack);\n }", "title": "" }, { "docid": "f31ec669b1a62b2694fb84cef27fb9a1", "score": "0.47223496", "text": "public void generateImports(boolean generateImports) {\n setImports(generateImports);\n }", "title": "" }, { "docid": "1ca680f4bb7965f3baaf8b5e2a627cca", "score": "0.4710703", "text": "public final void mSTDIOIMPORT() throws RecognitionException {\n try {\n int _type = STDIOIMPORT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // src/main/antlr3/compiler/Expr.g:1663:12: ( '#include \\\"stdio.h\\\"' | '#include <stdio.h>' | '#include<stdio.h>' | '#include\\\"stdio.h\\\"' )\n int alt11=4;\n int LA11_0 = input.LA(1);\n\n if ( (LA11_0=='#') ) {\n int LA11_1 = input.LA(2);\n\n if ( (LA11_1=='i') ) {\n int LA11_2 = input.LA(3);\n\n if ( (LA11_2=='n') ) {\n int LA11_3 = input.LA(4);\n\n if ( (LA11_3=='c') ) {\n int LA11_4 = input.LA(5);\n\n if ( (LA11_4=='l') ) {\n int LA11_5 = input.LA(6);\n\n if ( (LA11_5=='u') ) {\n int LA11_6 = input.LA(7);\n\n if ( (LA11_6=='d') ) {\n int LA11_7 = input.LA(8);\n\n if ( (LA11_7=='e') ) {\n switch ( input.LA(9) ) {\n case ' ':\n {\n int LA11_9 = input.LA(10);\n\n if ( (LA11_9=='\\\"') ) {\n alt11=1;\n }\n else if ( (LA11_9=='<') ) {\n alt11=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 9, input);\n\n throw nvae;\n\n }\n }\n break;\n case '<':\n {\n alt11=3;\n }\n break;\n case '\\\"':\n {\n alt11=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 8, input);\n\n throw nvae;\n\n }\n\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 7, input);\n\n throw nvae;\n\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 6, input);\n\n throw nvae;\n\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 5, input);\n\n throw nvae;\n\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 4, input);\n\n throw nvae;\n\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 3, input);\n\n throw nvae;\n\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 2, input);\n\n throw nvae;\n\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 1, input);\n\n throw nvae;\n\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 0, input);\n\n throw nvae;\n\n }\n switch (alt11) {\n case 1 :\n // src/main/antlr3/compiler/Expr.g:1663:14: '#include \\\"stdio.h\\\"'\n {\n match(\"#include \\\"stdio.h\\\"\"); \n\n\n\n }\n break;\n case 2 :\n // src/main/antlr3/compiler/Expr.g:1663:37: '#include <stdio.h>'\n {\n match(\"#include <stdio.h>\"); \n\n\n\n }\n break;\n case 3 :\n // src/main/antlr3/compiler/Expr.g:1663:60: '#include<stdio.h>'\n {\n match(\"#include<stdio.h>\"); \n\n\n\n }\n break;\n case 4 :\n // src/main/antlr3/compiler/Expr.g:1663:82: '#include\\\"stdio.h\\\"'\n {\n match(\"#include\\\"stdio.h\\\"\"); \n\n\n\n }\n break;\n\n }\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "eadf29129b53761836bdaf9f750bb385", "score": "0.4656539", "text": "public void removeInclude( String string )\n {\n getIncludes().remove( string );\n }", "title": "" }, { "docid": "502a9ba7475394451bd044adc126c628", "score": "0.46444106", "text": "protected abstract void onImport();", "title": "" }, { "docid": "cd8574335f85d3bbcb07d6c81b35fc63", "score": "0.46149427", "text": "@Override\n public void tryAddImportToParentCompilationUnit(final Class clazz) {\n }", "title": "" }, { "docid": "cd8574335f85d3bbcb07d6c81b35fc63", "score": "0.46149427", "text": "@Override\n public void tryAddImportToParentCompilationUnit(final Class clazz) {\n }", "title": "" }, { "docid": "74ed496467853f825d9674fa1586dfcc", "score": "0.4602918", "text": "private List<ClassToken> getImportClass(ClassToken classToken) {\n List<ClassToken> importClass = new ArrayList<>();\n List<String> fullImportStmt = classToken.getImportClassStmt();\n\n for (int i=0; i<fullImportStmt.size(); i++) {\n StringTokenizer tokenizer = new StringTokenizer(fullImportStmt.get(i), \".\");\n List<String> tokens = new ArrayList<>();\n\n while (tokenizer.hasMoreTokens()) {\n tokens.add(tokenizer.nextToken());\n }\n\n String packageNameToken = \"\"; // import package (not include class)\n String lastToken = \"\"; // import class\n\n for (int j=0; j<tokens.size(); j++) {\n if (j != tokens.size()-1 && j != tokens.size()-2) {\n packageNameToken = packageNameToken + tokens.get(j) + \".\";\n }\n else if (j != tokens.size()-1 && j == tokens.size()-2) {\n packageNameToken = packageNameToken + tokens.get(j);\n }\n else if (j == tokens.size()-1) {\n lastToken = tokens.get(j).replaceAll(\"\\\\s\", \"\");\n }\n }\n\n if (lastToken.equals(\"*\")) {\n for (int j = 0; j<this.classTokenList.size(); j++) {\n if (packageNameToken.equals(this.classTokenList.get(j).getPackageName())) {\n if (!classToken.getExtendsClass().isEmpty()) {\n for (int k = 0; k< classToken.getExtendsClass().size(); k++) {\n if (!classToken.getExtendsClass().get(k).equals(this.classTokenList.get(j))) {\n if (!importClass.contains(this.classTokenList.get(j))) {\n importClass.add(this.classTokenList.get(j));\n }\n }\n }\n }\n else if (classToken.getExtendsClass().isEmpty()) {\n if (!importClass.contains(this.classTokenList.get(j))) {\n importClass.add(this.classTokenList.get(j));\n }\n }\n }\n }\n }\n else if (!lastToken.equals(\"*\")) {\n for (int j = 0; j<this.classTokenList.size(); j++) {\n if (lastToken.equals(this.classTokenList.get(j).getClassName()) && packageNameToken.equals(this.classTokenList.get(j).getPackageName())) {\n if (!classToken.getExtendsClass().isEmpty()) {\n for (int k = 0; k< classToken.getExtendsClass().size(); k++) {\n if (!classToken.getExtendsClass().get(k).equals(this.classTokenList.get(j))) {\n if (!importClass.contains(this.classTokenList.get(j))) {\n importClass.add(this.classTokenList.get(j));\n }\n }\n }\n }\n else if (classToken.getExtendsClass().isEmpty()) {\n if (!importClass.contains(this.classTokenList.get(j))) {\n importClass.add(this.classTokenList.get(j));\n }\n }\n }\n }\n }\n }\n return importClass;\n }", "title": "" }, { "docid": "9bb03fbe3ce813a3534d66bd87538f31", "score": "0.45984912", "text": "public static _imports cloneOf( _imports prototype )\r\n {\r\n return new _imports( prototype );\r\n }", "title": "" }, { "docid": "cbe1d0264e1c65e94dc00157c2ed70bd", "score": "0.45920965", "text": "private void excludeEdits() {\n HashSet<EditOperation> toRemove = new HashSet<>();\n for (EditOperation e : compilableEdits) {\n ASTNode code = ((JavaLocation) e.getLocation()).getCodeElement();\n EditHole fixHole = e.getHoleCode();\n if (code instanceof ConstructorInvocation || code instanceof SuperConstructorInvocation) {\n exclude(toRemove, e);\n }\n else if (code instanceof ExpressionStatement) {\n Expression expression = ((ExpressionStatement) code).getExpression();\n if (isAssignment2Final(expression))\n exclude(toRemove, e);\n }\n else if (code instanceof Assignment) {\n if (isAssignment2Final((Expression) code))\n exclude(toRemove, e);\n }\n// else if (code instanceof BreakStatement || code instanceof ContinueStatement) {\n// exclude(toRemove, e);\n// }\n else if (code instanceof Block) {\n exclude(toRemove, e);\n }\n if (fixHole instanceof StatementHole) {\n ASTNode fixStmt = ((StatementHole) fixHole).getCode();\n if (fixStmt instanceof VariableDeclarationStatement) {\n exclude(toRemove, e);\n }\n }\n // exclude edits that append/replace loops or potential recursive calls\n // update: we might not need this anymore because we have a smarter block count reset\n // that checks the empty config\n// StatementTypeVisitor stmtVisitor = new StatementTypeVisitor();\n// if (fixHole != null && fixHole.getCode() != null) {\n// ASTNode fixCode = (ASTNode) fixHole.getCode();\n// stmtVisitor.markLocalMethods(fixCode);\n// fixCode.accept(stmtVisitor);\n// }\n// if (stmtVisitor.hasLoop || stmtVisitor.hasLocalMethodCall) {\n// exclude(toRemove, e);\n// }\n }\n compilableEdits.removeAll(toRemove);\n }", "title": "" }, { "docid": "a40ec210faab564ea43ce2aee105912c", "score": "0.45858893", "text": "public void removeWsimportOption(org.netbeans.modules.websvc.jaxwsmodel.project_config1_0.WsimportOption original) {\n\t\t\n\t}", "title": "" }, { "docid": "10a390dc08a6b62c45569c9c7ab66fee", "score": "0.45793402", "text": "protected void createImportAnnotations() {\n\t\tString source = \"http://www.eclipse.org/OCL/Import\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"ecore\", \"http://www.eclipse.org/emf/2002/Ecore#/\"\n\t\t });\n\t}", "title": "" }, { "docid": "9162a242107e7177c39d7d99c1ff085f", "score": "0.45670116", "text": "@Override\n public void removeComments(CompilationUnit cu){\n List<Comment> comments = cu.getAllContainedComments();\n List<Comment> removeComments = comments\n .stream()\n .filter(p -> !p.getCommentedNode().isPresent() || p instanceof LineComment || p instanceof JavadocComment)\n .collect(Collectors.toList());\n removeComments.forEach(Node::remove);\n }", "title": "" }, { "docid": "9986efeff753e5e2acfa4fb19659bcdf", "score": "0.4563947", "text": "public final void importDecl() throws RecognitionException {\n try {\n // org/ruleml/psoa2tptp/translator/DirectTranslatorWalker.g:52:5: ( ^( IMPORT IRI_REF ( IRI_REF )? ) )\n // org/ruleml/psoa2tptp/translator/DirectTranslatorWalker.g:52:9: ^( IMPORT IRI_REF ( IRI_REF )? )\n {\n match(input,IMPORT,FOLLOW_IMPORT_in_importDecl147); \n\n match(input, Token.DOWN, null); \n match(input,IRI_REF,FOLLOW_IRI_REF_in_importDecl149); \n\n // org/ruleml/psoa2tptp/translator/DirectTranslatorWalker.g:52:26: ( IRI_REF )?\n int alt5=2;\n switch ( input.LA(1) ) {\n case IRI_REF:\n {\n alt5=1;\n }\n break;\n }\n\n switch (alt5) {\n case 1 :\n // org/ruleml/psoa2tptp/translator/DirectTranslatorWalker.g:52:26: IRI_REF\n {\n match(input,IRI_REF,FOLLOW_IRI_REF_in_importDecl151); \n\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); \n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "title": "" }, { "docid": "03b4178bc104f4bc70b8a6b4fed3876f", "score": "0.4562652", "text": "public Node parseImportDirective(AttributeListNode first)\n {\n \n if (debug)\n {\n System.err.println(\"begin parseImportDirective\");\n }\n \n Node result;\n PackageNameNode second;\n PackageNameNode third = null;\n \n int stmtPos = scanner.input.positionOfMark();\n match(IMPORT_TOKEN);\n second = parsePackageName(true);\n if (lookahead(ASSIGN_TOKEN))\n {\n // ISSUE: second should be a simple identifier\n third = parsePackageName(true);\n }\n \n result = nodeFactory.importDirective(first, second, third, stmtPos, ctx);\n \n if (debug)\n {\n System.err.println(\"finish parseImportDirective\");\n }\n \n return result;\n }", "title": "" }, { "docid": "b388e2d3e860c21b63191756ce1e03e2", "score": "0.4549418", "text": "void removeLine(int lineNumber);", "title": "" }, { "docid": "5b66a5b0e2d24d4e138fb9f451f5200d", "score": "0.45321086", "text": "@SuppressWarnings(\"unchecked\")\npublic static void set_Import(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.pythonSettingsCmd, PythonSettingsCmd._setPythonImportCmd, s, v);\n UmlCom.check();\n \n if ((v != null) && (v.length() != 0))\n _map_imports.put(s, v);\n else\n _map_imports.remove(s);\n }", "title": "" }, { "docid": "b4835dd7214c79d2dbd16052461c9576", "score": "0.4522609", "text": "protected void clearIgnoredList()\n {\n this.packagesAndClassesToIgnore = new ArrayList<String>();\n this.packagesAndClassesToIgnore.addAll(Arrays.asList(\n \"com.android.dex\",\n \"com.google\",\n \"com.sun.tools\",\n \"gnu.kawa.swingviews\",\n \"io.netty\",\n \"javax.tools\",\n \"kawa\",\n \"org.firstinspires.ftc.robotcore.internal.android\",\n \"android.support.v4\"\n ));\n }", "title": "" }, { "docid": "ea7e8b9ca79ba69fe0c46d02d1bc267e", "score": "0.45216706", "text": "public void testUnresolvableImports21() throws Exception {\n writeFilesAndWaitForScan(src,\n new File(\"test/Main.java\",\n \"package test;\\n\" +\n \"import cannot1.resolve;\\n\" +\n \"import cannot2.resolve;\\n\" +\n \"public class Main { resolve r; }\"));\n\n performUnusedImportsTest();\n }", "title": "" }, { "docid": "2c07d3adb6a61d295418e0e4be90e0e1", "score": "0.45215467", "text": "String rewrite() {\n Set<TypeMirror> referencedClasses = findReferencedClasses();\n // Make a type simplifier based on these referenced types.\n TypeSimplifier typeSimplifier =\n new TypeSimplifier(typeUtils, packageName, referencedClasses, baseType);\n\n StringBuilder output = new StringBuilder();\n int copyStart;\n\n // Replace the `import` token with the import statements, if it is present.\n OptionalInt importMarker = findImportMarker();\n if (importMarker.isPresent()) {\n output.append(text, 0, importMarker.getAsInt());\n for (String toImport : typeSimplifier.typesToImport()) {\n output.append(\"import \").append(toImport).append(\";\\n\");\n }\n copyStart = scanner.tokenEnd(importMarker.getAsInt());\n } else {\n copyStart = 0;\n }\n\n // Replace each of the classname tokens with the appropriate spelling of the classname.\n int token;\n for (token = copyStart; token < textLength; token = scanner.tokenEnd(token)) {\n if (text.charAt(token) == '`') {\n output.append(text, copyStart, token);\n decode(output, typeSimplifier, token);\n copyStart = scanner.tokenEnd(token);\n }\n }\n output.append(text, copyStart, textLength);\n return output.toString();\n }", "title": "" }, { "docid": "e41dc297c30fb5f1a976870e9f027a93", "score": "0.45215225", "text": "public final void rule__ImportDirective__Group_1__6__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOptGrammar.g:5884:1: ( ( ';' ) )\n // InternalOptGrammar.g:5885:1: ( ';' )\n {\n // InternalOptGrammar.g:5885:1: ( ';' )\n // InternalOptGrammar.g:5886:2: ';'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getImportDirectiveAccess().getSemicolonKeyword_1_6()); \n }\n match(input,27,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getImportDirectiveAccess().getSemicolonKeyword_1_6()); \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": "71e131a98f5109caf76f48cc2f147bad", "score": "0.4505927", "text": "public List<ImportDecl> getImportDeclListNoTransform() {\n return (List<ImportDecl>) getChildNoTransform(0);\n }", "title": "" }, { "docid": "8bbcceec8b22d5620e9dc017c9927c91", "score": "0.44689947", "text": "boolean isAutoImport();", "title": "" }, { "docid": "6110152306c0a01798831fd265044c10", "score": "0.44540748", "text": "protected void undo() {\n\t\t// redefine\n\t}", "title": "" }, { "docid": "c62999efecf18f4956a9933171569352", "score": "0.44377843", "text": "private String importClause() {\n\t\treturn \"prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#> \\n\";\n\t}", "title": "" }, { "docid": "42369c5b72a2facbecbcac28cacf842e", "score": "0.4401339", "text": "private static String stripComment(String line) {\r\n int idx = line.indexOf('#');\r\n if (idx >= 0) {\r\n return line.substring(0, idx);\r\n }\r\n\r\n return line;\r\n }", "title": "" }, { "docid": "fb65c970cfa0d57b288a76cf281c8606", "score": "0.43776777", "text": "public PdePreprocessorBuilder setCoreImports(List<String> newCoreImports) {\n coreImports = Optional.of(newCoreImports);\n return this;\n }", "title": "" }, { "docid": "cfb8849ce2795e462d45d386717df731", "score": "0.43621957", "text": "public ImportDescriptor clone();", "title": "" }, { "docid": "92dc67bf6fdbaab69e0a49770082e669", "score": "0.43607986", "text": "public String deleteVersionComments();", "title": "" }, { "docid": "ead300f09840e5a8d8eec7fe63e634fd", "score": "0.43480206", "text": "private static void addToListOfImports(Set<String> imports, Set<String> alreadyVisitedDecls, ConfigurationsForOneCarPerWorkspaceDeclaration configs, String workspaceDeclName) {\r\n \r\n if (alreadyVisitedDecls.contains(workspaceDeclName)) {\r\n return;\r\n }\r\n \r\n alreadyVisitedDecls.add(workspaceDeclName);\r\n \r\n LinkedHashSet<String> origImports = configs.importsMap.get(workspaceDeclName);\r\n if (origImports == null) {\r\n return;\r\n }\r\n \r\n for (final String importedDecl : origImports) {\r\n \r\n FileOutputConfiguration fileOutputConfigForImportedDecl = configs.workspaceDeclToConfigMap.get(importedDecl);\r\n \r\n if (fileOutputConfigForImportedDecl != null) {\r\n \r\n File cwsFile = fileOutputConfigForImportedDecl.cwsFile;\r\n if (cwsFile != null) {\r\n String correspWorkspaceDecl = cwsFile.getName();\r\n \r\n if (correspWorkspaceDecl != null) {\r\n imports.add(correspWorkspaceDecl);\r\n }\r\n }\r\n \r\n } else {\r\n // recursive call to extract the imports of this declaration which does not have a corresponding\r\n // Car being generated.\r\n addToListOfImports(imports, alreadyVisitedDecls, configs, importedDecl);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2acac68409180386bd06e7d897397e1b", "score": "0.4325783", "text": "public void setImportRulesToValidate( ImportRules importRules );", "title": "" }, { "docid": "d3129920f30fa53e8840c1dfae7b565e", "score": "0.43217078", "text": "public final void mRULE_IMPORT() throws RecognitionException {\n try {\n int _type = RULE_IMPORT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../ufcg.edu.br.ProjetoCompiladores/src-gen/org/xtext/java/parser/antlr/internal/InternalJava.g:5535:13: ( 'import' )\n // ../ufcg.edu.br.ProjetoCompiladores/src-gen/org/xtext/java/parser/antlr/internal/InternalJava.g:5535:15: 'import'\n {\n match(\"import\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "3d2e5cad299104461452f8ad4f55ed61", "score": "0.43179682", "text": "protected void importDefault() {\n\t\t\n\t}", "title": "" }, { "docid": "81256a143f94adc6725e2fb59613885c", "score": "0.43123212", "text": "public void markUnusedFields(String instrVer) {\r\n\t}", "title": "" }, { "docid": "269eb7e293261c7da9356499cf5b6648", "score": "0.4302553", "text": "@Test\n public void testclearTags() throws IOException, URISyntaxException {\n File testResource = new File(getClass().getResource(\"/resources/CommentedClass.java\").toURI());\n File tmpFile = File.createTempFile(\"CommentedClass\", \"java\");\n FileUtils.copyFile(testResource, tmpFile);\n \n //execution\n FileParser parser = new FileParser(tmpFile, new String[] { \"/*\", \"*/\" });\n parser.clearAllTags();\n \n //assertions\n File targetFile = new File(getClass().getResource(\"/resources/CommentedClass_allRemoved.java\").toURI());\n Assert.assertArrayEquals(FileUtils.readLines(targetFile).toArray(), FileUtils.readLines(tmpFile).toArray());\n }", "title": "" }, { "docid": "e7fe80f2cd2c938e5a118bb8e8132621", "score": "0.42953795", "text": "private void mniInterlisImport() {\n\ttool().deactivate();\n\tch.ehi.umleditor.interlis.iliimport.ImportInterlis.doImport();\n\ttool().activate();\n}", "title": "" }, { "docid": "0bdf52239caf79964339bb827d85d976", "score": "0.42834824", "text": "public void setImportanthints(String importanthints) {\n this.importanthints = importanthints == null ? null : importanthints.trim();\n }", "title": "" }, { "docid": "e83ee9036411d1c4de251c5bce0bef24", "score": "0.4274226", "text": "void removedTrace(INaviProject project, TraceList trace);", "title": "" }, { "docid": "e5954853c01c6a4f071dcb51fa392ae0", "score": "0.42679402", "text": "public void removeStatements(Set<? extends Statement> stmts) {\n ListIterator<Statement> it = this.statementIterator();\n while (it.hasNext()) {\n Statement stmt = it.next();\n if (stmts.contains(stmt)) {\n it.remove();\n }\n }\n }", "title": "" }, { "docid": "65a5d645be59f0d2dc5fb88d037564cc", "score": "0.42469534", "text": "ImportType createImportType();", "title": "" }, { "docid": "a1eb188cd26ef3cba1f603c2e4a95d03", "score": "0.42469132", "text": "public PdePreprocessorBuilder setDefaultImports(List<String> newDefaultImports) {\n defaultImports = Optional.of(newDefaultImports);\n return this;\n }", "title": "" }, { "docid": "68fdaf2b03be02b49987b2b811a69416", "score": "0.42452672", "text": "public List<ImportDecl> getImportDecls() {\n return getImportDeclList();\n }", "title": "" }, { "docid": "d8df29df7b59f70aefd9e759bae0c794", "score": "0.42397183", "text": "private static String decomment(String line) {\n if (line.contains(LINE_COMMENT_DELIMITER)) {\n /* Separate code from comment */\n int commentStart = line.indexOf(LINE_COMMENT_DELIMITER);\n String nonComment = line.substring(0, commentStart);\n if (!nonComment.equals(\"\"))\n return nonComment.trim();\n else return null;\n } else return line.trim();\n }", "title": "" }, { "docid": "0ad893a6362320676e29a0d9c407febd", "score": "0.4238589", "text": "protected String removeCommentsFromContent(String content) {\n\t\tif(content==null) {\n\t\t\treturn null;\n\t\t}\n\t\tString processed = Pattern.compile(\"^\\\\s*+#.+?$\", Pattern.MULTILINE).matcher(content).replaceAll(\"\");\n\t\tprocessed = Pattern.compile(\"^\\\\s*+--.+?$\", Pattern.MULTILINE).matcher(processed).replaceAll(\"\");\n\t\tprocessed = Pattern.compile(\"^\\\\s*+/\\\\*.+?\\\\*/\", Pattern.DOTALL | Pattern.MULTILINE).matcher(processed).replaceAll(\"\");\n\t\treturn processed;\n\t}", "title": "" }, { "docid": "be5e45bc9ed8612ebb02902560a02b68", "score": "0.42330503", "text": "public interface StaticImportStatement extends ImportStatement {\n\n\t/**\n\t * Returns the name that a module is bound to in the binding namespace of\n\t * the scope in which the import appears.\n\t * \n\t * <ul>\n\t * <li>For {@code import a.b.c} that is {@code \"a\"}</li>\n\t * \n\t * <li>For {@code import a.b.c as p} that is {@code \"p\"}</li>\n\t * \n\t * <li>For {@code from a.b.c import d} that is {@code \"d\"}</li>\n\t * \n\t * <li>For {@code from a.b.c import d as p} that is {@code \"p\"}</li>\n\t * </ul>\n\t */\n\tString bindingName();\n\n\t/**\n\t * Returns the name of the object that is bound to a name in the binding\n\t * namespace of the scope in which this import appears.\n\t * \n\t * <ul>\n\t * <li>For {@code import a.b.c} that is {@code a}</li>\n\t * \n\t * <li>For {@code import a.b.c as p} that is {@code c}</li>\n\t * \n\t * <li>For {@code from a.b.c import d} that is {@code d}</li>\n\t * \n\t * <li>For {@code from a.b.c import d as p} that is {@code d}</li>\n\t * </ul>\n\t * \n\t * This name, added to the result of {@code bindsChildrenOf()}, result in\n\t * the path to the bound object.\n\t */\n\tString boundObjectName();\n}", "title": "" }, { "docid": "7dab519edc27c1bd32de8de56c1f61cd", "score": "0.4232628", "text": "public static String buildImportList(List<ColumnSchema> columnList, List<String> ignoreList) {\r\n AssertUtils.nonNull(columnList, \"columnList\");\r\n\r\n Set<String> javaWrapperSet = new TreeSet<>(Comparator.naturalOrder());\r\n for (ColumnSchema c : columnList) {\r\n if (isIgnore(ignoreList, c.getName())) {\r\n continue;\r\n }\r\n\r\n if (c.isUseImport()) {\r\n String javaWrapper = c.getJavaWrapper();\r\n javaWrapperSet.add(javaWrapper);\r\n }\r\n }\r\n\r\n if (Check.isEmpty(javaWrapperSet)) {\r\n return \"\";\r\n }\r\n\r\n List<String> result = new ArrayList<>();\r\n for (String n : javaWrapperSet) {\r\n String code = \"import \" + n + \";\";\r\n result.add(code);\r\n }\r\n\r\n return StringUtils.join(result, \"\\n\") + \"\\n\";\r\n }", "title": "" }, { "docid": "cc4d8ed0dce35489b90bf92166046510", "score": "0.4228046", "text": "public void removePlugin(String className)\n {\n int index;\n String path2 = System.getProperty(\"user.dir\" );\n if((index = this.listClass.indexOf(className)) != -1)\n {\n \n File plug1 = new File(this.path+\"/\"+className+\".class\");\n File plug2= new File(path2+\"/build/classes/JaintPlug/\"+className+\".class\");\n plug1.delete();\n plug2.delete();\n this.listClass.remove(index);\n this.listPlugins.remove(index);\n }\n }", "title": "" }, { "docid": "b2e69291ba3ec81d8c28c28977072fda", "score": "0.422575", "text": "public void removeReferencesStatement(String statementName) {\n }", "title": "" }, { "docid": "1de78a6bdf533fb5a9845c39a589ba61", "score": "0.42128652", "text": "public static void exclude(String pkg) {\n\t\tincludes.remove(pkg);\n\t\texcludes.add(pkg);\n\t}", "title": "" }, { "docid": "71fc226babf6434b0a42cae73c113f6b", "score": "0.42106444", "text": "public final void entryRuleImportDirective() throws RecognitionException {\n try {\n // InternalOptGrammar.g:130:1: ( ruleImportDirective EOF )\n // InternalOptGrammar.g:131:1: ruleImportDirective EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getImportDirectiveRule()); \n }\n pushFollow(FOLLOW_1);\n ruleImportDirective();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getImportDirectiveRule()); \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": "619df65a7cfb856f6d79eda549cb1a42", "score": "0.42069045", "text": "public void processImport(String name, String[] dirSpec, Location loc)\n throws IOException {\n logger.info(\"Processing import {}/{}\", Arrays.toString(dirSpec), name);\n mem.enterClass(name, dirSpec, loc);\n try {\n processForReal(name);\n } finally {\n mem.leaveClass();\n }\n }", "title": "" }, { "docid": "7d34cedbb92101f83b8448799e90c1da", "score": "0.4203052", "text": "public final void rule__ImportDirective__Group_2__7__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOptGrammar.g:6100:1: ( ( ';' ) )\n // InternalOptGrammar.g:6101:1: ( ';' )\n {\n // InternalOptGrammar.g:6101:1: ( ';' )\n // InternalOptGrammar.g:6102:2: ';'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getImportDirectiveAccess().getSemicolonKeyword_2_7()); \n }\n match(input,27,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getImportDirectiveAccess().getSemicolonKeyword_2_7()); \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": "10f359497f177a645f05bc745bc43912", "score": "0.41984764", "text": "void unsetSources();", "title": "" }, { "docid": "7d04caf9e8991500f0d412760af6cc0b", "score": "0.41954845", "text": "@Test\n public void testRemoveTag_multiLine_withLineRemoval() throws IOException, URISyntaxException {\n File testResource = new File(getClass().getResource(\"/resources/CommentedClass.java\").toURI());\n File tmpFile = File.createTempFile(\"CommentedClass\", \"java\");\n FileUtils.copyFile(testResource, tmpFile);\n String tagId = \"333\";\n \n //execution\n FileParser parser = new FileParser(tmpFile, new String[] { \"/*\", \"*/\" });\n parser.removeTags(tagId);\n \n //assertions\n File targetFile = new File(getClass().getResource(\"/resources/CommentedClass_333removed.java\").toURI());\n Assert.assertArrayEquals(FileUtils.readLines(targetFile).toArray(), FileUtils.readLines(tmpFile).toArray());\n }", "title": "" }, { "docid": "9ca22fd752e0fb0e7145bb66d5f48aa3", "score": "0.41921178", "text": "protected static void removeRedundancy(CompoundStatement stmts)\n\t{\n\t\tSet<Symbol> lives = new HashSet<Symbol>(), kills = new HashSet<Symbol>();\n\t\tList<Traversable> stmt_list = stmts.getChildren();\n\n\t\tfor ( int i=stmt_list.size()-1; i>=0; --i )\n\t\t{\n\t\t\tStatement stmt = (Statement)stmt_list.get(i);\n\n\t\t\t// Skip declarations\n\t\t\tif ( !(stmt instanceof ExpressionStatement) )\n\t\t\t\tcontinue;\n\n\t\t\tExpression e = ((ExpressionStatement)stmt).getExpression();\n\n\t\t\t// Identifiers\n\t\t\tif ( e instanceof Identifier )\n\t\t\t{\n\t\t\t\tstmts.removeChild(stmt);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Comma identifiers\n\t\t\telse if ( e instanceof CommaExpression )\n\t\t\t{\n\t\t\t\tboolean is_comma_ids = true;\n\n\t\t\t\tfor ( Object o : e.getChildren() )\n\t\t\t\t\tif ( !(o instanceof Identifier) )\n\t\t\t\t\t{\n\t\t\t\t\t\tis_comma_ids = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\tif ( is_comma_ids )\n\t\t\t\t{\n\t\t\t\t\tstmts.removeChild(stmt);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Temporary assignments with no live use; its declaration is also\n\t\t\t// deleted afterwards.\n\t\t\telse if ( e instanceof AssignmentExpression )\n\t\t\t{\n\t\t\t\tExpression to = ((AssignmentExpression)e).getLHS();\n\t\t\t\tif ( to instanceof Identifier )\n\t\t\t\t{\n\t\t\t\t\tSymbol var = ((Identifier)to).getSymbol();\n\t\t\t\t\tif ( Tools.getSymbols(stmts).contains(var) && !lives.contains(var) )\n\t\t\t\t\t{\n\t\t\t\t\t\tstmts.removeChild(stmt);\n\t\t\t\t\t\tkills.add(var);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Record live temp variables\n\t\t\tfor ( Symbol var : Tools.getSymbols(stmts) )\n\t\t\t\tif ( Tools.containsSymbol(e, var) )\n\t\t\t\t\tlives.add(var);\n\t\t}\n\n\t\t// Additional round that cleans up unused temporary declarations.\n\t\t//System.out.println(\"Before: \"+Tools.getSymbols(stmts));\n\t\tIterator<Traversable> iter = stmts.getChildren().iterator();\n\t\twhile ( iter.hasNext() )\n\t\t{\n\t\t\tTraversable o = iter.next();\n\t\t\tfor ( Symbol kill : kills )\n\t\t\t\tif ( Tools.containsSymbol(o, kill) )\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\t//System.out.println(\"After: \"+Tools.getSymbols(stmts));\n\t}", "title": "" }, { "docid": "96498e8817405250f40e9ecd94840d50", "score": "0.41660646", "text": "void removeInModule(String name) {\n entries.remove(name);\n config.remove(name);\n }", "title": "" }, { "docid": "fdf8972ad86eb4465487d7e422ab2774", "score": "0.41526604", "text": "protected void emit_XImportDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "title": "" }, { "docid": "fdf8972ad86eb4465487d7e422ab2774", "score": "0.41526604", "text": "protected void emit_XImportDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "title": "" }, { "docid": "74623499ccb38ec88bd2739e80d4c2d4", "score": "0.41523716", "text": "void unsetTraceList();", "title": "" }, { "docid": "561030178836d56b8308295baa144c9f", "score": "0.41481498", "text": "String getImportedClassName(String name);", "title": "" }, { "docid": "1faa0bd634d79dbd00cd55024eb563b6", "score": "0.41414085", "text": "public void addImportDecl(ImportDecl node) {\n List<ImportDecl> list = (parent == null) ? getImportDeclListNoTransform() : getImportDeclList();\n list.addChild(node);\n }", "title": "" }, { "docid": "0960cb12efb838f2ad2a41c28255b9ea", "score": "0.41399902", "text": "@Test\n public void testRemoveTag_singleLine() throws IOException, URISyntaxException {\n File testResource = new File(getClass().getResource(\"/resources/CommentedClass.java\").toURI());\n File tmpFile = File.createTempFile(\"CommentedClass\", \"java\");\n FileUtils.copyFile(testResource, tmpFile);\n String tagId = \"111\";\n \n //execution\n FileParser parser = new FileParser(tmpFile, new String[] { \"/*\", \"*/\" });\n parser.removeTags(tagId);\n \n //assertions\n File targetFile = new File(getClass().getResource(\"/resources/CommentedClass_111removed.java\").toURI());\n Assert.assertArrayEquals(FileUtils.readLines(targetFile).toArray(), FileUtils.readLines(tmpFile).toArray());\n }", "title": "" }, { "docid": "11a967e88aeedb5d176b97a4a440ab89", "score": "0.4138989", "text": "private String convertTypeName(String sourceFile, String typeName) {\n Map<String, String> rewriteMap =\n typeRewrite.containsRow(sourceFile)\n ? typeRewrite.rowMap().get(sourceFile)\n : new HashMap<>();\n\n // All type symbols declared anywhere in the compilation unit\n Set<String> allTypes = new HashSet<>();\n allTypes.addAll(rewriteMap.keySet());\n allTypes.addAll(symbolToModule.keySet());\n\n String importedNamespace = nameUtil.findLongestNamePrefix(typeName, allTypes);\n // Closure compilation can be permissive to the point where there are missing types.\n // Gents supports these usecases by syntactically emitting the type as written. The file emitted\n // file might not work with TS compiler, but at least the type is not lost.\n if (importedNamespace == null) {\n return typeName;\n }\n\n if (rewriteMap.containsKey(importedNamespace)) {\n // Rewrite already imported types\n String symbol = rewriteMap.get(importedNamespace);\n return nameUtil.replacePrefixInName(typeName, importedNamespace, symbol);\n } else {\n // Rewrite ALL types in compilation unit\n FileModule module = symbolToModule.get(importedNamespace);\n String symbol = module.importedNamespacesToSymbols.get(importedNamespace);\n\n FileModule typeModule = symbolToModule.get(typeName);\n\n // Create a new import statement if the symbol to import isn't from the same file or the type\n // is not part of the compilation unit.\n if (typeModule != null && !sourceFile.equals(typeModule.file)) {\n Node importSpec;\n Node importFile;\n if (module.shouldUseOldSyntax()) {\n importSpec = Node.newString(Token.NAME, symbol);\n importFile = Node.newString(\"goog:\" + importedNamespace);\n } else {\n Node spec = new Node(Token.IMPORT_SPEC, IR.name(symbol));\n spec.setShorthandProperty(true);\n importSpec = new Node(Token.IMPORT_SPECS, spec);\n importFile = Node.newString(pathUtil.getImportPath(sourceFile, module.file));\n }\n Node importNode = new Node(Token.IMPORT, IR.empty(), importSpec, importFile);\n importsNeeded.put(sourceFile, importNode);\n }\n typeRewrite.put(sourceFile, importedNamespace, symbol);\n return nameUtil.replacePrefixInName(typeName, importedNamespace, symbol);\n }\n }", "title": "" }, { "docid": "7e7451f4024cbea26977e0ecde444253", "score": "0.41387692", "text": "IFeatureImport createImport();", "title": "" }, { "docid": "e7e1b90cce061ada4e486ab24db66d2b", "score": "0.41356072", "text": "public Iterator<ImportContext> allNonCompleteImports() {\n return new FilterIterator(iterator(), new Predicate() {\n \n public boolean evaluate(Object o) {\n return ((ImportContext) o).getState() != ImportContext.State.COMPLETE;\n }\n });\n }", "title": "" }, { "docid": "70673a26360f24c0a1a4ad6d906b4849", "score": "0.41355062", "text": "public final void rule__ImportDirective__Group_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOptGrammar.g:5695:1: ( ( ';' ) )\n // InternalOptGrammar.g:5696:1: ( ';' )\n {\n // InternalOptGrammar.g:5696:1: ( ';' )\n // InternalOptGrammar.g:5697:2: ';'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getImportDirectiveAccess().getSemicolonKeyword_0_2()); \n }\n match(input,27,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getImportDirectiveAccess().getSemicolonKeyword_0_2()); \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": "" } ]
787adad672b9d9a3d9b8dbaecf80b0d3
Apresenta o nome do usu\u00E1rio
[ { "docid": "d01a2aff3491882c879741c81efce6fa", "score": "0.0", "text": "public UsuarioUpdate nome(String nome) {\n this.nome = nome;\n return this;\n }", "title": "" } ]
[ { "docid": "556170e4cf8176b9d1253a1437b9df7f", "score": "0.7260847", "text": "@AutoEscape\n\tpublic String getUserName();", "title": "" }, { "docid": "7406660c6917c64f11c9636fbc84ce17", "score": "0.7249668", "text": "@AutoEscape\n\t@Override\n\tpublic String getUserName();", "title": "" }, { "docid": "7406660c6917c64f11c9636fbc84ce17", "score": "0.7249668", "text": "@AutoEscape\n\t@Override\n\tpublic String getUserName();", "title": "" }, { "docid": "7056a57c6bac40e9cfb59d8f571459a0", "score": "0.7169407", "text": "java.lang.String getUserName();", "title": "" }, { "docid": "7056a57c6bac40e9cfb59d8f571459a0", "score": "0.7169407", "text": "java.lang.String getUserName();", "title": "" }, { "docid": "7056a57c6bac40e9cfb59d8f571459a0", "score": "0.7169407", "text": "java.lang.String getUserName();", "title": "" }, { "docid": "7056a57c6bac40e9cfb59d8f571459a0", "score": "0.7169407", "text": "java.lang.String getUserName();", "title": "" }, { "docid": "7056a57c6bac40e9cfb59d8f571459a0", "score": "0.7169407", "text": "java.lang.String getUserName();", "title": "" }, { "docid": "7056a57c6bac40e9cfb59d8f571459a0", "score": "0.7169407", "text": "java.lang.String getUserName();", "title": "" }, { "docid": "7056a57c6bac40e9cfb59d8f571459a0", "score": "0.7169407", "text": "java.lang.String getUserName();", "title": "" }, { "docid": "7056a57c6bac40e9cfb59d8f571459a0", "score": "0.7169407", "text": "java.lang.String getUserName();", "title": "" }, { "docid": "7056a57c6bac40e9cfb59d8f571459a0", "score": "0.7169407", "text": "java.lang.String getUserName();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.71029556", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.71029556", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.71029556", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.71029556", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.71029556", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.71029556", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "00073d3344eeb4efe42eaa3f1fc9be8d", "score": "0.70887417", "text": "public String getName() {\r\n\r\n return (username);\r\n\r\n }", "title": "" }, { "docid": "36ab523bedd6436807517cbc213023c2", "score": "0.7015121", "text": "public String getUserName() throws IOException {\n final UserGroupInformation ugi = ProtobufRpcEngine.Server.getRemoteUser();\n // getShortUserName here follows RpcClient#createVolume\n // A caveat is that this assumes OM's auth_to_local is the same as\n // the client's. Maybe move this logic to the client and pass VolumeArgs?\n if (ugi != null) {\n return ugi.getShortUserName();\n } else {\n throw new OMException(\"User name is null.\", USER_NOT_FOUND);\n }\n }", "title": "" }, { "docid": "ad07a9189e54d79685232e02896a84e9", "score": "0.7013735", "text": "@Override\n public String getPlainUsername()\n {\n return String.format(USERNAME_FORMAT, this.idScope, registrationId);\n }", "title": "" }, { "docid": "0ec0769cb7582e7d489881d3e643ae98", "score": "0.70035756", "text": "private String formattedUsername() {\n final StringBuilder sb = new StringBuilder();\n if (user.getProperty(StandardUserProperties.FIRST_NAME) != null) {\n sb.append(user.getProperty(StandardUserProperties.FIRST_NAME));\n }\n if (user.getProperty(StandardUserProperties.LAST_NAME) != null) {\n if (sb.length() > 0) {\n sb.append(\" \");\n }\n sb.append(user.getProperty(StandardUserProperties.LAST_NAME));\n }\n if (sb.length() == 0) {\n sb.append(user.getIdentifier());\n }\n return sb.toString();\n }", "title": "" }, { "docid": "dad3b6d1e5c4dd04c378c01d1127ecd0", "score": "0.6974787", "text": "public String getUserName() {\n\t\treturn userName.getText();\n\t}", "title": "" }, { "docid": "fedd203a50443cd30bc111e81c434a15", "score": "0.696829", "text": "private String getUserNameText() {\n\t\tCharSequence name = userNameInput.getText();\n\t\treturn name.toString();\n\t}", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.6959986", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.6959986", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.6959986", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.6959986", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.6959986", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.6959986", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.6959986", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.6959986", "text": "String getUserName();", "title": "" }, { "docid": "4b8d08ec4ba3391cdd7980b7d8fbaa38", "score": "0.6930357", "text": "java.lang.String getResUsername();", "title": "" }, { "docid": "6e0b61c9bc523b7b3f775c2310cd2d9f", "score": "0.69202226", "text": "public static String getUsername() {\n\t\treturn userNameInput.getText();\n\t}", "title": "" }, { "docid": "e4d3ec0e2b64feac95d95b80c7f6c535", "score": "0.691516", "text": "@Override\n public java.lang.String getUserName() {\n return _mu.getUserName();\n }", "title": "" }, { "docid": "a81acc7560d6572e7864be0574ef7a2c", "score": "0.6893097", "text": "@Override\n\t\t\t\tpublic String getUsername() {\n\t\t\t\t\treturn \"AAAAAAA\";\n\t\t\t\t}", "title": "" }, { "docid": "59c53abcc7a3c46232835253c6a7f8e8", "score": "0.6873316", "text": "public String getTextUserName() {\r\n\t\treturn tfUserName.getText();\r\n\t}", "title": "" }, { "docid": "09c05715bbc6d883344ae7fdaf206b33", "score": "0.6852649", "text": "public String usuarioconectado() {\n\t\tString nome;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails) {\n\t\t\tnome = ((UserDetails) principal).getUsername();\n\t\t} else {\n\t\t\tnome = principal.toString();\n\t\t}\n\t\t// System.out.println(nome);\n\t\treturn nome;\n\t}", "title": "" }, { "docid": "09c05715bbc6d883344ae7fdaf206b33", "score": "0.6852649", "text": "public String usuarioconectado() {\n\t\tString nome;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails) {\n\t\t\tnome = ((UserDetails) principal).getUsername();\n\t\t} else {\n\t\t\tnome = principal.toString();\n\t\t}\n\t\t// System.out.println(nome);\n\t\treturn nome;\n\t}", "title": "" }, { "docid": "6f8ea058f52082c4abae0bcdeb7d484b", "score": "0.683221", "text": "public String getUsername()\n\t{\n\t\treturn usernameField.getText();\n\t}", "title": "" }, { "docid": "7b41fd4ce3f168a904eddd0efa216a86", "score": "0.68290794", "text": "@Override\n\tpublic String getUserName() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8af819263562c27f2d81fb2cf526613d", "score": "0.68201315", "text": "public String usuarioMasNickToString(){\r\n\t\treturn \"usr:\" + this.usuario + \" nick:\" + this.nick;\r\n\t}", "title": "" }, { "docid": "499d56017d4fb1bca65748fba61720e6", "score": "0.6813925", "text": "public String getName() {\n\n\treturn (super.getUserName());\n\n }", "title": "" }, { "docid": "ed1232f73211c8c664227cacfc2ee340", "score": "0.6770525", "text": "public String getUserName() {\n\t\treturn spf.getString(USER_NAME, \"\");\n\t}", "title": "" }, { "docid": "70f893a097c292ca9c4da8cda9a1f128", "score": "0.674893", "text": "public String getUserName()\r\n {\r\n return getStringValue(FLD_USER_NAME);\r\n }", "title": "" }, { "docid": "d1a86e3dfdc66c8e9036367f9158844d", "score": "0.67458725", "text": "public String getName()\n {\n return user != null ? user.getName() : username;\n }", "title": "" }, { "docid": "a61814d618ba7be1174d9b051909c44d", "score": "0.6741091", "text": "String getUsernameSicce();", "title": "" }, { "docid": "fe656734bc5c567a6385ede603200aba", "score": "0.67403", "text": "private void createUsername(Composite parent, Control up) {\n createLabel(parent, up, \"Jira.Label.Username\");\n\n usernameField = new TextVar(Variables.getADefaultVariableSpace(), parent, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n usernameField.setText(meta.getUsername() != null ? meta.getUsername() : \"\");\n // usernameField.setEchoChar('*');\n props.setLook(usernameField);\n usernameField.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent arg0) {\n meta.setChanged();\n }\n });\n FormData fd = new FormData();\n fd.left = new FormAttachment(props.getMiddlePct(), 0);\n fd.top = new FormAttachment(up, Const.MARGIN);\n fd.right = new FormAttachment(100, -Const.MARGIN);\n usernameField.setLayoutData(fd);\n }", "title": "" }, { "docid": "c60ac76985d90939689c1822bc810b01", "score": "0.6736746", "text": "protected String getCurrentUserName()\n {\n User currentUser = UserServiceFactory.getUserService().getCurrentUser();\n return currentUser.getNickname();\n }", "title": "" }, { "docid": "5777df247535a1e6c98710c8672cb815", "score": "0.6725447", "text": "public String getUserName(){\r\n return this.account.getUserName();\r\n }", "title": "" }, { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.6718954", "text": "String getUsername();", "title": "" }, { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.6718954", "text": "String getUsername();", "title": "" }, { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.6718954", "text": "String getUsername();", "title": "" }, { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.6718954", "text": "String getUsername();", "title": "" }, { "docid": "027639ae8d388661d719c5d670beead8", "score": "0.6709694", "text": "public String getUserName() {\n if (this.idManager.f83193a) {\n return this.userName;\n }\n return null;\n }", "title": "" }, { "docid": "1b24d0b4a3adb2743eef72f9c2450a83", "score": "0.66922873", "text": "public String getUsername(){\n if(firstName != null && lastName != null) return firstName + \" \" + lastName;\n else return email;\n }", "title": "" }, { "docid": "8eb3cb02eff0466d6d7abe5d2460a067", "score": "0.6686394", "text": "@Override\n\tpublic String getUsername() {\n\t\treturn userN;\n\t}", "title": "" }, { "docid": "07b90f1f0a3f60d545afc061ddeb187a", "score": "0.668175", "text": "public String getUserName() {\r\n return getRealPlayer().getName();\r\n }", "title": "" }, { "docid": "37650cfb4a991b12dec900b7f85e7ca5", "score": "0.66731876", "text": "public String getUserName();", "title": "" }, { "docid": "af51c43b75e4977aafb529787c47a3f5", "score": "0.6673107", "text": "public String getUsuario() {\r\n /* Todo se maneja en mayusculas */\r\n if (null != usuario) {\r\n usuario = usuario.toUpperCase();\r\n }\r\n\r\n return usuario;\r\n }", "title": "" }, { "docid": "49335b17385642c50ad3d690f90a8972", "score": "0.66724944", "text": "@Override\r\n\t\t\t\tpublic String getName() {\n\t\t\t\t\treturn user;\r\n\t\t\t\t}", "title": "" }, { "docid": "f5b61cc95f0eb6b9ffca9cf795beb64a", "score": "0.6671445", "text": "public String getUserName()\n\t {\n\t\t return userName;\n\t }", "title": "" }, { "docid": "f7dd1310c28ed8883115465e66b1a38e", "score": "0.6661141", "text": "@DISPID(4)\r\n\t// = 0x4. The runtime will prefer the VTID if present\r\n\t@VTID(10)\r\n\tjava.lang.String username();", "title": "" }, { "docid": "2bfe98b0f26fb28d7486a6622160721e", "score": "0.6653535", "text": "public String getUsername()\n {\n return Objects.requireNonNull( username, \"User name not specified.\" );\n }", "title": "" }, { "docid": "702296b7efe7c2bcb81e96f6395e2876", "score": "0.6653357", "text": "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "title": "" }, { "docid": "89fb4c040bc86d32574510faad9a6581", "score": "0.66342074", "text": "public String getNameUser() {\r\n return nameUser;\r\n }", "title": "" }, { "docid": "b696495d790a6936b9c99f059cd9899b", "score": "0.6628276", "text": "public String getUserName(){\r\n\t\treturn username;\r\n\t}", "title": "" }, { "docid": "373e47e4d2003ff21c711bf2ab1ae380", "score": "0.66121626", "text": "@Override\r\n\tpublic String getUsername() {\n\t\t if (this.user == null) {\r\n return null;\r\n }\r\n return this.user.getUsername();\r\n\t}", "title": "" }, { "docid": "6bc92d6cae0a3b009cb1c3b03c13b46b", "score": "0.6609497", "text": "public String getUserName()\n\t{\n\t\n\t\treturn userName;\n\t}", "title": "" }, { "docid": "92e77148c8dabf46eca724ea1b7f1c7b", "score": "0.6599326", "text": "@Override\n\t\t\tpublic String getUsername() {\n\t\t\t\treturn user.getUserName();\n\t\t\t}", "title": "" }, { "docid": "60f24583895ff6d54883a6daafe9119a", "score": "0.6599195", "text": "String getUsename();", "title": "" }, { "docid": "15eca0d72953f84ced6ac06ef6e89089", "score": "0.6590736", "text": "public String getName() {\n return userName;\n }", "title": "" }, { "docid": "5ffa4299279fe9356010f1f3f1aae10a", "score": "0.65718156", "text": "@Override\n\tpublic String getUsername() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "62edc92a57bf1af59db8c676ccc826ed", "score": "0.6569388", "text": "@Override\n public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "1812705cdb7322826ed9db8569dcf69d", "score": "0.65628695", "text": "public String getUsername() {\n\t\t// retornamos el nombre de usuario\n\t\treturn this.user;\n\t}", "title": "" }, { "docid": "13983265d297b21d4491abf350ea38d2", "score": "0.6561799", "text": "@Override\r\n\tpublic String getUsername() {\r\n\t\treturn user.getUsername();\r\n\t}", "title": "" }, { "docid": "64071d6a41a07fc3c7b8b4f156da983c", "score": "0.65579104", "text": "public String getNameUser() {\n\t\treturn this.nameUser;\n\t}", "title": "" }, { "docid": "b4a32bc6ad30604db831a8b45cb197c3", "score": "0.6553694", "text": "@Override\n\tpublic String getUsername() {\n\t\treturn userName;\n\t}", "title": "" }, { "docid": "bd9dedc460a0fca58c59977056e3147c", "score": "0.6537504", "text": "public String getUsername();", "title": "" }, { "docid": "d264f2d3a2114635c8dfdafc967d9e24", "score": "0.65326273", "text": "public String getUserName() {\r\n\t\treturn username;\r\n\t}", "title": "" }, { "docid": "c0265826adc85794af35f67d757d8851", "score": "0.65270567", "text": "public String getName(){\n if(benutzer != null)\n return benutzer.toString();\n else\n return simpleName;\n }", "title": "" }, { "docid": "e5fdca486b4e1939c1cfcec5b140bb54", "score": "0.65258515", "text": "public final String getUsername() {\n return properties.get(USERNAME_PROPERTY);\n }", "title": "" }, { "docid": "35ddc90670e8574d969c4e4bbaff5a2d", "score": "0.6521804", "text": "public String getPlayerUserame() {\n\t\toutput.println(\"==========================================================================\");\n\t\toutput.println(\"What is your username?\");\n\t\tString username = input.stringFromConsole();\t\n\t\treturn username;\n\t}", "title": "" }, { "docid": "8659f5308f7543cb51c2c104c77ba67e", "score": "0.65217155", "text": "public String getUserName() {\n return userName.get();\n }", "title": "" }, { "docid": "24d994899e98bdb97dfbb1172e4e360d", "score": "0.6517105", "text": "public String getUserName()\n {\n return username;\n }", "title": "" }, { "docid": "0e934f01c9ee93c6f932f4b1850be8e0", "score": "0.65128714", "text": "@Override\n\tpublic String getUserName() {\n\t\treturn userName;\n\t}", "title": "" }, { "docid": "ad1da9d1080d32e562a4f8b1eabf7553", "score": "0.65060264", "text": "public String getUsername()\n\t{\n\t\treturn user.getUsername();\n\t}", "title": "" }, { "docid": "998232a1be1e34dd2f758c5bb486c154", "score": "0.6496474", "text": "public void setUserName(String name) {\n this.username = name;\n }", "title": "" }, { "docid": "67cd303fa7a18f0ebc0838aded7256c5", "score": "0.64956975", "text": "public String getUserNicakName() {\n return userNicakName;\n }", "title": "" }, { "docid": "c3989f854d3fb75de893f3d23e919fd3", "score": "0.6484562", "text": "public String getUserName()\r\n\t{\r\n\t\treturn this.userName;\r\n\t}", "title": "" }, { "docid": "4a31a3e0f3260071d71a1c1fb5af2a8e", "score": "0.6483236", "text": "java.lang.String getNickName();", "title": "" }, { "docid": "4a31a3e0f3260071d71a1c1fb5af2a8e", "score": "0.6483236", "text": "java.lang.String getNickName();", "title": "" }, { "docid": "a80ceef59deaa160df463094b0a098fd", "score": "0.6483025", "text": "@DISPID(2) //= 0x2. The runtime will prefer the VTID if present\n @VTID(8)\n String userName();", "title": "" }, { "docid": "7df900ebd29dc8b1d31ad6325d763545", "score": "0.64829725", "text": "public String getUserName() {\r\n return userName;\r\n }", "title": "" }, { "docid": "7df900ebd29dc8b1d31ad6325d763545", "score": "0.64829725", "text": "public String getUserName() {\r\n return userName;\r\n }", "title": "" }, { "docid": "1d6d49dcd5ba42a39da79abc55be1635", "score": "0.64829147", "text": "public String getUsername() {\n return userName;\n }", "title": "" }, { "docid": "cfb379f87d6e07d5e30b02e493a109b6", "score": "0.6478324", "text": "public String username() {\n return username;\n }", "title": "" }, { "docid": "b08afa4ff827d600f1d8bbbcc910b0cc", "score": "0.64761984", "text": "public String username() {\n return this.username;\n }", "title": "" }, { "docid": "77aff6c5854a06068400b831828af562", "score": "0.647255", "text": "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\n\t}", "title": "" }, { "docid": "77aff6c5854a06068400b831828af562", "score": "0.647255", "text": "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\n\t}", "title": "" }, { "docid": "77aff6c5854a06068400b831828af562", "score": "0.647255", "text": "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\n\t}", "title": "" } ]
f1dd31d4bd0a14a577537201388bff70
write your code here
[ { "docid": "0b2ac53e7c721288afd1c2f08c3120e9", "score": "0.0", "text": "public void addWord(String word) {\n\n TireNode current = this.root;\n HashMap<Character, TireNode> children = current.children;\n\n char[] cArray = word.toCharArray();\n\n for(int i=0; i<word.length(); i++){\n\n if(children.containsKey(cArray[i])){\n current = children.get(cArray[i]);\n }else{\n TireNode tn = new TireNode(cArray[i]);\n children.put(cArray[i], tn);\n current = tn;\n }\n\n children = current.children;\n\n }\n\n current.isWord = true;\n\n\n }", "title": "" } ]
[ { "docid": "24b980dcc7998c9061eef81fa0379a62", "score": "0.6375189", "text": "private void misccode() {\n\t\n\t}", "title": "" }, { "docid": "b23d03021584c99fcbde1f9615e1f411", "score": "0.6080162", "text": "private void post() {\n /*\n\n Wendi's code here\n\n */\n }", "title": "" }, { "docid": "3b85481494f0d9080d2372972f6e969b", "score": "0.59272987", "text": "public void metodo24hs() {\n\r\n\t}", "title": "" }, { "docid": "9afae60c6d26ccf2f4b9fc35abd2d44f", "score": "0.58505803", "text": "@Override\n\tpublic void samplecode() {\n\t\t\n\t}", "title": "" }, { "docid": "bf410accc98429329498dcc8fe3b6cc2", "score": "0.5848817", "text": "public void logic() {\n\t\t\n\t}", "title": "" }, { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.5805932", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "bde53ee3de9072b04cd122133e6162a1", "score": "0.5761116", "text": "public void soigner() {\n\t\t\r\n\t}", "title": "" }, { "docid": "096eb77080c8c192fe461650f49ca14b", "score": "0.5752262", "text": "@Override\r\n public void catering() {\r\n\r\n }", "title": "" }, { "docid": "49026d527a6034dadd87c08b08e9c2d5", "score": "0.5721871", "text": "public void mo430a() {\n }", "title": "" }, { "docid": "e7bfbabf506cec2e7e75735f321fb35e", "score": "0.5721777", "text": "public AutoCode()\n\t{\n\t\tprepareGUI();\n\t}", "title": "" }, { "docid": "34b43810a805e0d48661629f62b35f2b", "score": "0.5691243", "text": "@Override\r\n\tpublic void 위험물회피() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6a0dba476e4cc9b5d9586cab8836942e", "score": "0.5689992", "text": "void howAreYou() {\n\t\t\n\t}", "title": "" }, { "docid": "f02e82ef79f1d199f08f697ae4843ed7", "score": "0.5670677", "text": "public void aggiorna()\r\n\t{\r\n\t}", "title": "" }, { "docid": "b02bc37968503ca77e4672e00b744531", "score": "0.5663461", "text": "protected void alusta() {\n //\n }", "title": "" }, { "docid": "6575bb2e40b92b7e378d5d71b5551f39", "score": "0.5626441", "text": "public void mo383a() {\n }", "title": "" }, { "docid": "620163b61b3b4f6c33467ae253d4a02d", "score": "0.56262124", "text": "@Override\n\tpublic void doCoding() {\n\t\tsuper.doCoding();\n\t\tSystem.out.print(\" and do dynamically working Web Sites\");\n\n\t}", "title": "" }, { "docid": "0a4da837d9b94e015aefb9f2e6a4e1c9", "score": "0.5615062", "text": "public void datuakEguneratu() {\n\r\n\t}", "title": "" }, { "docid": "f5f7bf7e5c670e4c20ca547b5951c447", "score": "0.5614897", "text": "public void basalSecretion()\r\n\t{\r\n\t}", "title": "" }, { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.56003135", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.55885625", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "f5fd4f1b89ecbb54b8b64a1b9e40552c", "score": "0.55567753", "text": "protected void mo7431b() {\n }", "title": "" }, { "docid": "ba95c1dbc18f72bfa1d0a0925a006b64", "score": "0.5551424", "text": "public void doLogic(){\n\t\t\n\t}", "title": "" }, { "docid": "aabad9e3ed476cecf9f566f238d241b9", "score": "0.55465627", "text": "public void korma() {\r\n\t}", "title": "" }, { "docid": "062a6012655492663bbb0b40bb318aeb", "score": "0.55439526", "text": "@Override\n\tpublic void doCoding() {\n\n\t\tsuper.doCoding();\n\t\tSystem.out.print(\" and do beautiful Web Sites\");\n\t}", "title": "" }, { "docid": "6cfde2be0b51f55a421cdc3e28609c66", "score": "0.5517185", "text": "@Override\n\tprotected void salario() {\n\t\t\n\t}", "title": "" }, { "docid": "c40e6db92000a4723a10e8a7eb2ba672", "score": "0.55058926", "text": "@Override\r\n\t\tvoid view() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "09fe53d61300c2c9d7fccea9ce477409", "score": "0.5496769", "text": "protected void mo763a() {\n }", "title": "" }, { "docid": "ce01e16cbc1fc0a29d28a4365b63f79d", "score": "0.5483533", "text": "@Override\n\tprotected void specialFuntion() {\n\t\t\n\t}", "title": "" }, { "docid": "c18c3127184f8abd7be145ddb9d4c3e6", "score": "0.548272", "text": "@Override\r\n\tpublic void 온도내리기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f13a29996996a34a710d85285e104a7f", "score": "0.54726326", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "c11b26b251fcf9f71a75e5837b296382", "score": "0.54714155", "text": "public void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f98329c4ce112f2ebcf93e4b478576a0", "score": "0.5470319", "text": "@Override\r\n\tpublic void work4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6a10751cb7dbdc797b4440eaf0378941", "score": "0.545556", "text": "protected void process() \r\n \t{\r\n \t}", "title": "" }, { "docid": "4fd121321f2d50da2f5700be65d017d8", "score": "0.5441542", "text": "@Override\n\tpublic void filngtonext() {\n\t\t\n\t}", "title": "" }, { "docid": "a3423f1355ca9ba03a28adc428cd39e8", "score": "0.5440837", "text": "@Override\n \tpublic void execute() {\n \t\t// TODO Auto-generated method stub\n \n \t}", "title": "" }, { "docid": "d4eff04edf5121feff5807a1dde15acf", "score": "0.54402125", "text": "@Override\n\tvoid output() {\n\t\t\n\t}", "title": "" }, { "docid": "04c0a4c3b41f5112e89f151d02135096", "score": "0.5431681", "text": "private static void auto() {\n\t\t\r\n\t}", "title": "" }, { "docid": "69f727ad790d8c02f9f110fb4190bf05", "score": "0.5419396", "text": "@Override\r\n\tpublic void 에어백펼치기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "90586632a4af36d51003a1554ebef902", "score": "0.5415441", "text": "public void mo24205Oz() {\n }", "title": "" }, { "docid": "79a702a1409937a9a2dd8f8167323190", "score": "0.54117835", "text": "@Override\n\tvoid promocja() {\n\n\t}", "title": "" }, { "docid": "a1483cb59e81616cafe07934cf2a28f5", "score": "0.5409968", "text": "protected void mo1960i() {\n }", "title": "" }, { "docid": "79b5dac9847c203f0f3f83fa7a9cb3f7", "score": "0.54014635", "text": "@Override\r\n\tprotected void execute ()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "5be1e6e02511595caf4a0085f81910b7", "score": "0.53969383", "text": "@Override\r\n void suara (){\r\n System.out.println(\" ayam berkokok\");\r\n }", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.53965575", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92e42ad162e9b33867da3798e57c9ada", "score": "0.5393265", "text": "void model() { \n\t\tSystem.out.println(\"Here we are implementing method\");\n\t}", "title": "" }, { "docid": "7bd89553e6aac6a468f60f124e5c68c7", "score": "0.5389103", "text": "void executeScrip();", "title": "" }, { "docid": "ab4ba27de935ff5f0e671b7336696f27", "score": "0.5388847", "text": "@Override\r\n\tpublic void work5() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f002e03e2dd54b8b4762d442267cb5ae", "score": "0.5382597", "text": "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "title": "" }, { "docid": "14442c3d34d5617af5ba9ab1808274dd", "score": "0.5381072", "text": "private void display() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9aa79f486f0f5a71c3febd987129cd7a", "score": "0.53699243", "text": "public void print() {\n\t\t System.out.println(\"For more information can contact us via\");\r\n\t\t System.out.println(\"INSTAGRAM : @vaniNonAlcholicBeverage\");\r\n\t\t System.out.println(\"FACEBOOK : VANI's Non Alcholic Bverage Shop\");\r\n\t\t System.out.println(\"Do get your discount , free voucher and free gift NOW !!!\");\r\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.53693855", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "c2b1e81a080804916a788413031e651f", "score": "0.5368199", "text": "public void mo39596a() {\n }", "title": "" }, { "docid": "c2b1e81a080804916a788413031e651f", "score": "0.5368199", "text": "public void mo39596a() {\n }", "title": "" }, { "docid": "1cfd021e5bf5dec81cf2e44e13fe3ade", "score": "0.53645694", "text": "public void write() {\r\n\t\tSystem.out.println(\"This is Umida\");\r\n\t\tSystem.out.println(\"Why only Abdul and I are pushing codes only?\");\r\n\t\tSystem.out.println(\"Make sure Saboor, Shahrzad, Lavetta and Andrea is pushing too...\");\r\n\t}", "title": "" }, { "docid": "6db196fe12df2040e890be66656ff251", "score": "0.53573954", "text": "@Override\n\tprotected void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.53521395", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "bd0e548f189f599f0fa6fbbf07781865", "score": "0.53460026", "text": "public void doMonkeyBusiness() {\n\t\t\n\t}", "title": "" }, { "docid": "1f4474fd3f3b422da8765f55022a6584", "score": "0.53440773", "text": "@Override\r\n \t\tpublic void start() {\n \t\t\t\r\n \t\t}", "title": "" }, { "docid": "a47a79760528a38ccd215173ba3ca51f", "score": "0.53440046", "text": "@Override\n\tpublic void HowtoSquueezable() {\n\t\tSystem.out.println(\"Suyunu sık ve iç!!\");\n\t}", "title": "" }, { "docid": "40a41a107fa03a270a78b03d0bcf910d", "score": "0.5342867", "text": "private void ergebnisAuswerten() {\n\n\t}", "title": "" }, { "docid": "285cdbfbd447aadf03ff37182df4a3e6", "score": "0.5338381", "text": "protected void filtrarHoyPLLPD() {\n\t\t\r\n\t}", "title": "" }, { "docid": "655ba970907dc36ad7388ea62c34d9a5", "score": "0.5334211", "text": "@Override\n\tprotected void loadMainCode() {\n\t}", "title": "" }, { "docid": "2102a3691307d06f0d2ee35d192fccc6", "score": "0.5323817", "text": "protected Encontro() {\n\t}", "title": "" }, { "docid": "20117fc33e3a169fdbf37a1cefe1abf5", "score": "0.5320084", "text": "private void ambil_data(){\n \n try {\n \n } catch (Exception e) {\n }\n }", "title": "" }, { "docid": "ff180a85a2adfab514de9c0d4aeeb57a", "score": "0.5315222", "text": "private void sic(){\n\n header();\n body();\n tail();\n\n pass2();\n\n\n\n }", "title": "" }, { "docid": "3f2992e6b797c2700993efbec2eb8cf7", "score": "0.5313491", "text": "public void mo2110a() {\n }", "title": "" }, { "docid": "024e18c4b7e226157d42a7d2f3bcdaab", "score": "0.5311465", "text": "protected SkruiScript() {\n\n }", "title": "" }, { "docid": "e527ee932ed99873d6b349bc55d8b92e", "score": "0.53068423", "text": "private void tabelkaryawan() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "b5dec8709a9a146ca6e5962661476057", "score": "0.52970386", "text": "private Semitones() {\n \n }", "title": "" }, { "docid": "23477fb89138f1f4eb6465214603219a", "score": "0.5293809", "text": "private void giveAnalysis()\n\t{\n\n\t}", "title": "" }, { "docid": "cc5af39f74474ffdb7b456b8a10d5774", "score": "0.5293551", "text": "@Override\r\n\tpublic void 길안내() {\n\t\t\r\n\t}", "title": "" }, { "docid": "73505425d75fccf0aaca07c596941abd", "score": "0.5291141", "text": "static private void herd() {\n\t\t\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.52896094", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "451963e711347a36d9f8209aa1e707e2", "score": "0.5284719", "text": "public void mo39716g() {\n }", "title": "" }, { "docid": "53522f552fc1631c03f354b201bc2a05", "score": "0.527363", "text": "private void method() {\r\n\r\n\t}", "title": "" }, { "docid": "30c236da9912ee76f7962e7da2c72b59", "score": "0.52696085", "text": "@Override\n\tpublic void chante() {\n\t\t\n\t}", "title": "" }, { "docid": "fc442cc7865f95f8cc8be2ecf775f78e", "score": "0.5268103", "text": "@Override\n public void inizializza() {\n super.inizializza();\n }", "title": "" }, { "docid": "8b6e4c88f1bd9fe204ea4e8c2c4ad27b", "score": "0.52649426", "text": "public void showFromBot() {\r\n /*# YOUR CODE HERE */\r\n\r\n }", "title": "" }, { "docid": "778985fe17c69bac977b72fb9d41efaa", "score": "0.5260379", "text": "public void action() {\n\t\t\r\n\t}", "title": "" }, { "docid": "79d1c12f60e009f61a6d3bb9cc969163", "score": "0.52595526", "text": "public void () {\n\r\n\t}", "title": "" }, { "docid": "cccdd0f127b6dde5d7d4e781d68e24e3", "score": "0.5251077", "text": "public static void run(){\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "3b27d934ea30689efd52c6af24b481a1", "score": "0.524832", "text": "@Override\n\tpublic void judeti() {\n\n\t}", "title": "" }, { "docid": "c7017bb0f571e1aced5412e60e58f9c6", "score": "0.5245933", "text": "public void mo385b() {\n }", "title": "" }, { "docid": "f81df28fbf493456bae8d1d6d8cc1160", "score": "0.52442956", "text": "public void kuldeep(){\n System.out.println(\"Hi Papa!! you are my hero. \");\n }", "title": "" }, { "docid": "18489cc4e203f3678eeedd1910016b42", "score": "0.5240984", "text": "@Override\r\n\tpublic void view() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b086fc94acb8aaf7efab676df3e73fa5", "score": "0.52368635", "text": "public void stimulatedSecretion()\r\n\t{\r\n\t}", "title": "" }, { "docid": "c5fa2315669c0925b60762f7cca5f0f6", "score": "0.52306664", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "6fe081ada85477f5b4c9d7a134a59671", "score": "0.52269787", "text": "@Override\r\npublic void 자기() {\n\t\r\n}", "title": "" }, { "docid": "ffc50c92ab4b41d6bfee26d34d540547", "score": "0.5226738", "text": "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n\n }", "title": "" }, { "docid": "43f0eb79e8610935222f70ad7a047f4f", "score": "0.52235377", "text": "protected void Referesh() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "1c79340fb810209c8cca68a954884f32", "score": "0.52194524", "text": "public void step(){\r\n \r\n //insert code here\r\n \r\n \r\n }", "title": "" }, { "docid": "8016f8ed401334cdecaf4551f8005043", "score": "0.5217809", "text": "@Override\n\tpublic void output() {\n\t\t\n\t}", "title": "" }, { "docid": "e1863a0947375b8d1b0ac0f6301018a0", "score": "0.52166456", "text": "public static void main (String [] args){\n\t\n\t\t \n\t\t\n\t}", "title": "" }, { "docid": "6afb1e3a721c7314f12581b77ae35716", "score": "0.52140313", "text": "@Override\n\tprotected void colisao() {\n\t\t\n\t}", "title": "" }, { "docid": "2530092dffb59f98a66632084ff96a42", "score": "0.5213949", "text": "static void SampleItinerary()\n\t{\n\t\tSystem.out.println(\"\\n ***Everyone piles on the boat and goes to Molokai***\");\n\t\tbg.AdultRowToMolokai();\n\t\tbg.ChildRideToMolokai();\n\t\tbg.AdultRideToMolokai();\n\t\tbg.ChildRideToMolokai();\n\t}", "title": "" }, { "docid": "593053b99bc5abca6d010d9e21a31e6b", "score": "0.521387", "text": "@Override\r\n\tpublic void 자율주행하기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1c581e2b4f1dab13966fc1dcb7636d0f", "score": "0.52112603", "text": "@Override\n protected void execute() {\n \n }", "title": "" }, { "docid": "1b6ae1f9acb8e538994b7d00bae50317", "score": "0.5198611", "text": "@Override\n\tprotected void skirmish() {\n\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.5197277", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c28afddea09ba99a1adc54b371dabaa1", "score": "0.51946753", "text": "@Override\r\n\tpublic void 온도높이기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "944529d8d6ce4a5977d7631e273d3bef", "score": "0.5188686", "text": "public void mo19364c() {\n }", "title": "" } ]
aabc39064baff5e560110b93cfe35c34
GENLAST:event_jSlider2FocusLost Cambia el numero de transparencia
[ { "docid": "c101c379b4a4d0b64f7afa04cf6b9b51", "score": "0.0", "text": "private void numtransStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_numtransStateChanged\n // TODO add your handling code here:\n VentanaInterna vi = (VentanaInterna) Escritorio.getSelectedFrame();\n imgSource = vi.getLienzoImagen().getImagen(false);\n \n if (vi != null){\n if(li.getSelectedValue() != null){\n li.getSelectedValue().setNumtrans(numtrans.getValue());\n }else{\n vi.getLienzoImagen().setNumtrans(numtrans.getValue());\n }\n vi.getLienzoImagen().repaint();\n }\n }", "title": "" } ]
[ { "docid": "305d6f12c9ec243d3d02ffcb51afaaea", "score": "0.6745537", "text": "private void jButton5FocusLost(java.awt.event.FocusEvent evt) {\n \r\n }", "title": "" }, { "docid": "10d3f161b04ea9f44d3d403ddd30b603", "score": "0.6735116", "text": "@Override\r\n \t \t\t\tpublic void focusLost(FocusEvent arg0) {\n \t \t\t\t\tCurrentSelectedRow = -1;\r\n \t \t\t\t\tCurrentSelectedCol = -1;\r\n \t \t\t\t\t//checkButtonStatus();\r\n \t \t\t\t}", "title": "" }, { "docid": "139ff104e33970726b9a8b191334f86b", "score": "0.66873395", "text": "@Override\r\n public void focusLost(FocusEvent arg0) {\n if (!jtfnfCodigo.getText().equalsIgnoreCase(\"0\")) {\r\n cargaPorCodigo(Integer.valueOf(jtfnfCodigo.getText()));\r\n } else {\r\n borrarPantalla();\r\n }\r\n }", "title": "" }, { "docid": "e6dd0464e920ee86236192575c78949b", "score": "0.6685305", "text": "private void jButton3FocusLost(java.awt.event.FocusEvent evt) {\n \r\n }", "title": "" }, { "docid": "24df683b8f92117e1f3724c05ee4915a", "score": "0.66311544", "text": "private void jButton4FocusLost(java.awt.event.FocusEvent evt) {\n \r\n }", "title": "" }, { "docid": "6b924c54fa658246a593aa4641a78bac", "score": "0.66255057", "text": "private void jButton1FocusLost(java.awt.event.FocusEvent evt) {\n \r\n }", "title": "" }, { "docid": "49fd149282ac77bb9864158aa43147e7", "score": "0.66017747", "text": "private void t3FocusLost(java.awt.event.FocusEvent evt) {\n }", "title": "" }, { "docid": "811a7e0120e032b78d64556056df4f40", "score": "0.6598898", "text": "private void CBEstadoDeNaturalidadeFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_CBEstadoDeNaturalidadeFocusLost\n\n }", "title": "" }, { "docid": "c529be7e8ac42eab79a4b06571e90057", "score": "0.65938324", "text": "private void jButton2FocusLost(java.awt.event.FocusEvent evt) {\n \r\n }", "title": "" }, { "docid": "70de1befe63df701f72c11d8fed176a9", "score": "0.65416723", "text": "public void focusLost(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "70de1befe63df701f72c11d8fed176a9", "score": "0.65416723", "text": "public void focusLost(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "7d67a34c06b26f86d449d85049cd2608", "score": "0.64811707", "text": "private void textNro3FocusLost(FocusEvent evt)\r\n/* 1833: */ {\r\n/* 1834: */ try\r\n/* 1835: */ {\r\n/* 1836:1754 */ this.textNro3.setText(String.format(\"%09d\", new Object[] { Integer.valueOf(Integer.parseInt(this.textNro3.getText())) }));\r\n/* 1837: */ }\r\n/* 1838: */ catch (NumberFormatException ne) {}\r\n/* 1839: */ }", "title": "" }, { "docid": "2c2d45012033a5ac18d6b169d46160ec", "score": "0.6442881", "text": "private void textNro2FocusLost(FocusEvent evt)\r\n/* 1824: */ {\r\n/* 1825: */ try\r\n/* 1826: */ {\r\n/* 1827:1747 */ this.textNro2.setText(String.format(\"%03d\", new Object[] { Integer.valueOf(Integer.parseInt(this.textNro2.getText())) }));\r\n/* 1828: */ }\r\n/* 1829: */ catch (NumberFormatException ne) {}\r\n/* 1830: */ }", "title": "" }, { "docid": "346cd95f8a3686e6ebf9b4453b5159d5", "score": "0.64008814", "text": "private void textNro1FocusLost(FocusEvent evt)\r\n/* 1815: */ {\r\n/* 1816: */ try\r\n/* 1817: */ {\r\n/* 1818:1740 */ this.textNro1.setText(String.format(\"%03d\", new Object[] { Integer.valueOf(Integer.parseInt(this.textNro1.getText())) }));\r\n/* 1819: */ }\r\n/* 1820: */ catch (NumberFormatException ne) {}\r\n/* 1821: */ }", "title": "" }, { "docid": "4a60630e01068bb1274d2d161dbd770d", "score": "0.6374243", "text": "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "4a60630e01068bb1274d2d161dbd770d", "score": "0.6374243", "text": "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "4a60630e01068bb1274d2d161dbd770d", "score": "0.6374243", "text": "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "68be47046b9a252c259da8473152dfc8", "score": "0.6311177", "text": "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t}", "title": "" }, { "docid": "6e5b3a4b07cf8947dea01e813d4e211b", "score": "0.6285862", "text": "@Override\r\n public void focusLost(FocusEvent e) {\n }", "title": "" }, { "docid": "665aef70dbc65a50658cc38182d45ae9", "score": "0.6274461", "text": "public void focusLost(FocusEvent arg0) {\n\t}", "title": "" }, { "docid": "63b1ece9a567ba46204ec4b8f1b024e3", "score": "0.6273654", "text": "@Override\n\tpublic void focusLost(FocusEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "4cfe27046356dcd6f37d0f9062a46db9", "score": "0.62582684", "text": "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "d3a12f63fecb2d4caa78a08e90a3c04d", "score": "0.62488663", "text": "@Override\n\tpublic void focusLost(FocusEvent e) {\n\n\t}", "title": "" }, { "docid": "9dff022c5cea09053aeda95a2bf56642", "score": "0.6243139", "text": "@Override\n\t\tpublic void focusLost(FocusEvent e) {\n\t\t}", "title": "" }, { "docid": "37c63aba07747183fcf9057eb228ca03", "score": "0.6229998", "text": "@Override\r\n public void focusLost(FocusEvent e) {\n }", "title": "" }, { "docid": "37c63aba07747183fcf9057eb228ca03", "score": "0.6229998", "text": "@Override\r\n public void focusLost(FocusEvent e) {\n }", "title": "" }, { "docid": "b9c68478954ac3861ec4400c0860693b", "score": "0.6208029", "text": "@Override\r\n public void focusLost(FocusEvent arg0) {\n\r\n int numeroLetras = 0;\r\n jtffNif.setText(jtffNif.getText().toUpperCase());\r\n String strNif = jtffNif.getText().trim().toUpperCase();\r\n\r\n String strNifCorrecto = Cadena.compruebaCifNif(strNif, Integer.valueOf(jtfnfPais.getText()), true);\r\n\r\n if (!strNifCorrecto.equalsIgnoreCase(strNif)) {\r\n jtffNif.setText(strNifCorrecto);\r\n }\r\n }", "title": "" }, { "docid": "fc7ad12c07f9891646acf2ae86ee8a42", "score": "0.62067443", "text": "@Override\n public void focusLost ( FocusEvent e ) {\n JTextField jcb = ( JTextField ) e.getSource ();\n try {\n int num = Integer.parseInt ( String.valueOf ( jcb.getText ().toString () ) );\n if ( num < 1 ) {\n jcb.setText ( \"0\" );\n //evt.consume ();\n }\n } catch ( NumberFormatException ex1 ) {\n jcb.setText ( \"0\" );\n StaticValues.writer.writeExcel ( SetupForm.class.getSimpleName () , SetupForm.class.getSimpleName () , ex1.getClass ().toString () , Thread.currentThread ().getStackTrace ()[ 1 ].getLineNumber () + \"\" , ex1.getMessage () , StaticValues.sdf2.format ( Calendar.getInstance ().getTime () ) ); \n }\n }", "title": "" }, { "docid": "aae833692ced292e1cd798fc8f8adcfc", "score": "0.6201788", "text": "public void focusLost(FocusEvent e) {\n\n\t}", "title": "" }, { "docid": "cea2a4c4443f392eebeb3beff3ed3712", "score": "0.6083327", "text": "@Override\n public void focusLost ( FocusEvent e ) {\n JTextField jcb = ( JTextField ) e.getSource ();\n try {\n int num = Integer.parseInt ( String.valueOf ( jcb.getText ().toString () ) );\n if ( num < 1 || num > 12 ) {\n jcb.setText ( \"0\" );\n //evt.consume ();\n }\n } catch ( NumberFormatException ex1 ) {\n jcb.setText ( \"0\" );\n StaticValues.writer.writeExcel ( SetupForm.class.getSimpleName () , SetupForm.class.getSimpleName () , ex1.getClass ().toString () , Thread.currentThread ().getStackTrace ()[ 1 ].getLineNumber () + \"\" , ex1.getMessage () , StaticValues.sdf2.format ( Calendar.getInstance ().getTime () ) ); \n }\n }", "title": "" }, { "docid": "d6fc2b6130067ea0cb601c914bfcc6ee", "score": "0.6082111", "text": "@Override\n public void focusLost ( FocusEvent e ) {\n JTextField jcb = ( JTextField ) e.getSource ();\n try {\n int num = Integer.parseInt ( String.valueOf ( jcb.getText ().toString () ) );\n if ( num < 1 || num > 59 ) {\n jcb.setText ( \"0\" );\n //evt.consume ();\n }\n } catch ( NumberFormatException ex1 ) {\n jcb.setText ( \"0\" );\n StaticValues.writer.writeExcel ( SetupForm.class.getSimpleName () , SetupForm.class.getSimpleName () , ex1.getClass ().toString () , Thread.currentThread ().getStackTrace ()[ 1 ].getLineNumber () + \"\" , ex1.getMessage () , StaticValues.sdf2.format ( Calendar.getInstance ().getTime () ) ); \n }\n }", "title": "" }, { "docid": "ee8aaddc7da873f8c542219a590a89f0", "score": "0.60550815", "text": "@Override\r\n public void runFocusLost(JComponent comp) {\n }", "title": "" }, { "docid": "048ebef966186af755a4626236df2836", "score": "0.6023945", "text": "public void pinsTable_focusLost(FocusEvent e) {\n lastSelectedRow = pinsTable.getSelectedRow();\n pinsTable.clearSelection();\n }", "title": "" }, { "docid": "392d05f8ed5583f0416a86f2f27f8687", "score": "0.60000205", "text": "private void txtNumDoc1FocusLost(java.awt.event.FocusEvent evt) {\n if (!txtNumDoc1.getText().equalsIgnoreCase(strNumDoc1))\n {\n actualizarGlo();\n }\n }", "title": "" }, { "docid": "d47c6e1cc005f5b72593c13672658b25", "score": "0.59888166", "text": "@Override\r\n\tpublic void focusLost(FocusEvent e) {\r\n\t\tif (e.getSource()==fichaArticulo.getComboProveedor().getEditor().getEditorComponent()) \r\n\t\t\tfichaArticulo.getComboProveedor().getEditor().getEditorComponent().setBackground(new Color(255,255,255));\r\n\t\tif (e.getSource()==fichaArticulo.getComboFamilia().getEditor().getEditorComponent()) \r\n\t\t\tfichaArticulo.getComboFamilia().getEditor().getEditorComponent().setBackground(new Color(255,255,255));\r\n\t\tu.nofoco(e);\r\n\t}", "title": "" }, { "docid": "f56bd8d9935bfbcdc5cc24bc16866e0c", "score": "0.59313595", "text": "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\tsetLineInfo();\n\t\t\t}", "title": "" }, { "docid": "4301102d0ff5c967b7be5627b43aca1a", "score": "0.5871059", "text": "public void lostFocus() {\n\t\t\n\t}", "title": "" }, { "docid": "c6917707a3b7ce3418f35fd030dae4a9", "score": "0.5732557", "text": "private void txtDesCorCtaFocusLost(java.awt.event.FocusEvent evt) {\n if (!txtDesCorCta.getText().equalsIgnoreCase(strDesCorCta))\n {\n if (txtDesCorCta.getText().equals(\"\"))\n {\n txtCodCta.setText(\"\");\n txtDesLarCta.setText(\"\");\n objTblMod.removeAllRows();\n }\n else\n {\n mostrarVenConCta(1);\n cargarDocPen();\n \n }\n }\n else\n txtDesCorCta.setText(strDesCorCta);\n }", "title": "" }, { "docid": "e6db865d6db4e327cae10f12056662bc", "score": "0.5717885", "text": "@Override\r\n public void onRobotFocusLost() {\n }", "title": "" }, { "docid": "bf455bceb872e0616d6556fb20f1f4f3", "score": "0.57009363", "text": "private void txtDesLarCtaFocusLost(java.awt.event.FocusEvent evt) {\n if (!txtDesLarCta.getText().equalsIgnoreCase(strDesLarCta))\n {\n if (txtDesLarCta.getText().equals(\"\"))\n {\n txtCodCta.setText(\"\");\n txtDesCorCta.setText(\"\");\n objTblMod.removeAllRows();\n }\n else\n {\n mostrarVenConCta(2);\n cargarDocPen();\n }\n }\n else\n txtDesLarCta.setText(strDesLarCta);\n }", "title": "" }, { "docid": "18cbc27705a6b69c8ff031fee99d049f", "score": "0.56682384", "text": "private void YcheckNumber(java.awt.event.FocusEvent evt) {\n shapeHelper.checkNumber(jTextField5);\n }", "title": "" }, { "docid": "bc45a9eee8b350d1e2d73b310a43a643", "score": "0.5609104", "text": "public void focusLost(FocusEvent paraEvent) {\n\t\ttry {\n\t\t\tdoubleValue = Double.parseDouble(getText());\n\t\t} catch (Exception ee) {\n\t\t\tErrorDialog.errorDialog.setMessageAndShow(\"\\\"\" + getText()\n\t\t\t\t\t+ \"\\\" Not a double. Please check.\");\n\t\t\trequestFocus();\n\t\t\treturn;\n\t\t}\n\n\t\tif ((doubleValue < 0) || (doubleValue > 1)) {\n\t\t\tErrorDialog.errorDialog.setMessageAndShow(\"\\\"\" + getText()\n\t\t\t\t\t+ \"\\\" is not in [0, 1]. Please check.\");\n\t\t\trequestFocus();\n\t\t}\n\t}", "title": "" }, { "docid": "cba4f8dd2affde1ec21c8c4d069caed9", "score": "0.56086713", "text": "private void jButton3FocusGained(java.awt.event.FocusEvent evt) {\n \r\n }", "title": "" }, { "docid": "172a776fe63eab808dd9cd7edf9038dc", "score": "0.559568", "text": "private void jButton4FocusGained(java.awt.event.FocusEvent evt) {\n \r\n\r\n }", "title": "" }, { "docid": "99dd147fb7ab1226ce1566e8804354ae", "score": "0.553096", "text": "@Override\n public void onAutofocusStopped(Rect[] areas) {\n // TODO: 20/01/2016\n }", "title": "" }, { "docid": "ae9df09b77b86069d40e9aff2d2f96f0", "score": "0.5530485", "text": "@Override\n\t\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\tJTextField f = (JTextField)e.getSource();\n\t\t\t\t\ttempMapName = f.getText();\n\t\t\t\t}", "title": "" }, { "docid": "028d6fcd30daee458b2e4429a52947a9", "score": "0.5520628", "text": "@Override public void focusLost(FocusEvent ev) {\n FocusListener l = (FocusListener) super.get(ev);\n\n if (l != null) {\n l.focusLost(ev);\n }\n }", "title": "" }, { "docid": "e00bd0fe50a48d0204610296eb79d183", "score": "0.55203694", "text": "@Override\n\tpublic void focusLost(FocusEvent e) {\n\t\t//text=null;\n\t}", "title": "" }, { "docid": "7f13e77fea304089b066799ffc820a8d", "score": "0.54851943", "text": "private void amntFocusLost(java.awt.event.FocusEvent evt) {\n if(amnt.getText().isEmpty()){\n amount=0;\n gt=amount+commission;\n grandt.setText(\"\"+gt); \n } \n else{\n amount=Integer.parseInt(amnt.getText());\n gt=amount+commission;\n grandt.setText(\"\"+gt); \n }\n }", "title": "" }, { "docid": "9d7baa16d80c4f9a14fb97e0bb5ccd33", "score": "0.5485098", "text": "public void focusLost(FocusEvent e)\n {\n stopExtTableEditing();\n }", "title": "" }, { "docid": "534e46456d610bd8969d271f9a06b7c3", "score": "0.5476634", "text": "private void jButton1FocusGained(java.awt.event.FocusEvent evt) {\n \r\n }", "title": "" }, { "docid": "042831c3473b791cee16d9dcc2b40c37", "score": "0.5463403", "text": "@Override\n\t\t\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\t\tJTextField f = (JTextField)e.getSource();\n\t\t\t\t\t\tif (f.getText().isEmpty()) f.setText(ep.getApproachTime() + \"\");\n\t\t\t\t\t\tep.setApproachTime(Double.parseDouble(f.getText()));\n\t\t\t\t\t}", "title": "" }, { "docid": "042831c3473b791cee16d9dcc2b40c37", "score": "0.5463403", "text": "@Override\n\t\t\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\t\tJTextField f = (JTextField)e.getSource();\n\t\t\t\t\t\tif (f.getText().isEmpty()) f.setText(ep.getApproachTime() + \"\");\n\t\t\t\t\t\tep.setApproachTime(Double.parseDouble(f.getText()));\n\t\t\t\t\t}", "title": "" }, { "docid": "d72382643ee4956ebac0b0866e9133b2", "score": "0.5443903", "text": "private void jButton5FocusGained(java.awt.event.FocusEvent evt) {\n \r\n }", "title": "" }, { "docid": "3f9904e0f5a60c8a7fb0a90f061df7e9", "score": "0.5442045", "text": "public void focusLost(FocusEvent e) { keyPressed(escapeEmulator); }", "title": "" }, { "docid": "1b9e66394c069f17f55b8c30eefa1b9e", "score": "0.54115903", "text": "@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1b9e66394c069f17f55b8c30eefa1b9e", "score": "0.54115903", "text": "@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1b9e66394c069f17f55b8c30eefa1b9e", "score": "0.54115903", "text": "@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1b9e66394c069f17f55b8c30eefa1b9e", "score": "0.54115903", "text": "@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1b9e66394c069f17f55b8c30eefa1b9e", "score": "0.54115903", "text": "@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "9810c91e1606541c2bab319bf018230f", "score": "0.5404796", "text": "public void focusLost(FocusEvent e) {\n // noop\n }", "title": "" }, { "docid": "e4bf4bac81eb2b35101e704561a42c18", "score": "0.53976816", "text": "private void jSlider1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSlider1StateChanged\n // TODO add your handling code here:\n VentanaInterna vi = (VentanaInterna)(Escritorio.getSelectedFrame());\n float value = this.jSlider1.getValue();\n vi.getLienzoImagen().setBrillo(value);\n if (vi != null && imgSource != null)\n try\n {\n RescaleOp rop;\n if (this.imgSource.getColorModel().hasAlpha())\n {\n float[] scales = new float[]{1.0f, 1.0f, 1.0f, 1.0f};\n float[] offsets = new float[]{value, value, value, 0.0f};\n rop = new RescaleOp(scales, offsets, null);\n } else{\n rop = new RescaleOp(1.0f, value, null);\n }\n BufferedImage imgdest = rop.filter(this.imgSource, null);\n vi.getLienzoImagen().setImagen(imgdest);\n vi.getLienzoImagen().repaint();\n \n } catch (Exception e)\n {\n System.err.println(\"Error\");\n }\n }", "title": "" }, { "docid": "aaff1628160ac9f33542e05bbd228249", "score": "0.5381516", "text": "@Override\r\n\t public void focusGained(FocusEvent arg0) {\n\t \t\r\n\t }", "title": "" }, { "docid": "08e41e9e69e9b32aded4123dd71850f7", "score": "0.53704315", "text": "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent e) {\n \t\t\t(crossword[0]).switchToSquare(coord[0], coord[1]);\n\t\t\t\t\t\t}", "title": "" }, { "docid": "a5fa3d751c176ab13cce1843f13dc697", "score": "0.53508025", "text": "@Override\n public void focusLost(FocusEvent e) {\n setVisible(false);\n }", "title": "" }, { "docid": "cc29278e1685f2a28e3aa8e4c296175a", "score": "0.5348259", "text": "@Override\r\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\tif(textNumeroDoc.getText().length()>=7 && comboTipoDoc.getSelectedIndex()!=0){\r\n\t\t\t\t\t\r\n\t\t\t\t\tTitular titular = altaTitular.verificarExistenciaTitular(textNumeroDoc.getText(), comboTipoDoc.getSelectedItem().toString());\r\n\t\t\t\t\tif(titular!=null){\r\n\t\t\t\t\t\ttitularExistente(titular);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "aec60f9321ef9115135785c181e07ca3", "score": "0.53466284", "text": "@Override\r\n public void focusGained(FocusEvent arg0) {\n \t\r\n }", "title": "" }, { "docid": "94fe91e08f44074b16f6344e05a0d1d2", "score": "0.5325129", "text": "@Override\r\n\t public void focusGained(FocusEvent arg0) {\n\t \r\n\t }", "title": "" }, { "docid": "f1d6b0ab095afff4000cab71cd00aa93", "score": "0.53174424", "text": "@Override\r\n \t\t\tpublic void focusGained(FocusEvent arg0) {\n \t\t\t\t\r\n \t\t\t}", "title": "" }, { "docid": "9189be3c4f62b576f8d610a442f91af7", "score": "0.53148896", "text": "@Override\n\t\t public void focusGained(FocusEvent e) \n\t\t {\n\t\t }", "title": "" }, { "docid": "fa1d8397e2ec6e10ab73d58a596501bc", "score": "0.5296496", "text": "@Override\r\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "fb1fb187cf0a0902909ca014a1523701", "score": "0.52844137", "text": "void OnBlurChangingEnd();", "title": "" }, { "docid": "b557122ac1abee6166e5a5108719d5d1", "score": "0.52840155", "text": "@Override\n\t\t\tpublic void focusLost(FocusEvent fe) {\n\t\t\t\tif (!proveraPolja() || polje.getText().trim().equals(sablonPolja)\n\t\t\t\t\t\t|| polje.getText().trim().isEmpty() == true) {\n\t\t\t\t\tif (!polje.getText().trim().equals(sablonPolja) && !polje.getText().trim().isEmpty() == true) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Unesite u formatu \" + sablonPolja, \"Greška\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\tpolje.setForeground(new Color(200, 200, 200));\n\t\t\t\t\tpolje.setText(sablonPolja);\n\t\t\t\t}\n\n\t\t\t}", "title": "" }, { "docid": "7fc1bd3f87106c5f2bb890528bf942af", "score": "0.527472", "text": "@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0)\r\n\t\t\t{\n\r\n\t\t\t}", "title": "" }, { "docid": "cc32e5dc75b2151babf4565af8563b1c", "score": "0.52730906", "text": "@Override\n public void focusLost(FocusEvent e) {\n\n\t \t_request_marker = _requestTextArea.getSelectedText();\n\t\t_request_marker_start = _requestTextArea.getSelectionStart();\n\t\t_request_marker_end = _requestTextArea.getSelectionEnd();\n }", "title": "" }, { "docid": "eb88a63db30202fb623aff884f3c0b2d", "score": "0.52527523", "text": "@Override\n public void focusLost(FocusEvent e) {\n if (entryChanged) {\n entryChanged = false;\n updateFromSourceField();\n }\n }", "title": "" }, { "docid": "0e2cd041a58cb5853e324852169d3add", "score": "0.52389175", "text": "@Override\n public void focusGained(FocusEvent e) {\n }", "title": "" }, { "docid": "67e918d29adfcb694222a39a25396681", "score": "0.522822", "text": "private void txtDesLarTipDocFocusLost(java.awt.event.FocusEvent evt) {\n if (!txtDesLarTipDoc.getText().equalsIgnoreCase(strDesLarTipDoc))\n {\n if (txtDesLarTipDoc.getText().equals(\"\"))\n {\n txtCodTipDoc.setText(\"\");\n txtDesCorTipDoc.setText(\"\");\n txtCodCta.setText(\"\");\n txtDesCorCta.setText(\"\");\n txtDesLarCta.setText(\"\");\n }\n else\n {\n mostrarVenConTipDoc(2);\n }\n }\n else\n txtDesLarTipDoc.setText(strDesLarTipDoc);\n }", "title": "" }, { "docid": "60f1e0ece34bcdd62f768b810385b03f", "score": "0.52240807", "text": "@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t}", "title": "" }, { "docid": "24e614b86e2d2970b09d39be7ea3af11", "score": "0.5216007", "text": "@Override\n public void focusLost(FocusEvent e) {\n\n\t \t_response_marker = _responseTextArea.getSelectedText();\n\t\t_response_marker_start = _responseTextArea.getSelectionStart();\n\t\t_response_marker_end = _responseTextArea.getSelectionEnd();\n \n }", "title": "" }, { "docid": "f74735de1d910f00d9188e40ae923a2a", "score": "0.5204582", "text": "@Override\n\tpublic void focusGained(FocusEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "f74735de1d910f00d9188e40ae923a2a", "score": "0.5204582", "text": "@Override\n\tpublic void focusGained(FocusEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "328c20b795d24ab82165dc538dc0dd63", "score": "0.51964396", "text": "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\tletra1.setText(\"\");\n\t\t\t}", "title": "" }, { "docid": "e10b606736d37fd86757e70792ecb587", "score": "0.51958144", "text": "private void XcheckNumber(java.awt.event.FocusEvent evt) {\n shapeHelper.checkNumber(jTextField4);\n }", "title": "" }, { "docid": "0d83a639dd6e8a58af8d970656459d42", "score": "0.51955724", "text": "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\tletra2.setText(\"\");\n\t\t\t}", "title": "" }, { "docid": "a98464b67aa2c34c345f066115f6d96a", "score": "0.51749617", "text": "private void txtDesCorTipDocFocusLost(java.awt.event.FocusEvent evt) {\n if (!txtDesCorTipDoc.getText().equalsIgnoreCase(strDesCorTipDoc))\n {\n if (txtDesCorTipDoc.getText().equals(\"\"))\n {\n txtCodTipDoc.setText(\"\");\n txtDesLarTipDoc.setText(\"\");\n txtCodCta.setText(\"\");\n txtDesCorCta.setText(\"\");\n txtDesLarCta.setText(\"\");\n }\n else\n {\n mostrarVenConTipDoc(1);\n }\n }\n else\n txtDesCorTipDoc.setText(strDesCorTipDoc);\n }", "title": "" }, { "docid": "43d203c68db2ab9db9162466aa25a901", "score": "0.515243", "text": "@Override\r\n\tpublic void focusGained(FocusEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "a7b39ff7b4c240bc57dc67c61a465cff", "score": "0.51433146", "text": "@Override\r\n public void focusGained(FocusEvent arg0) {\n enCreacion = false;\r\n }", "title": "" }, { "docid": "4e0fe0b1af570cf1b5e5bcc286c80e48", "score": "0.5142614", "text": "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\tletra3.setText(\"\");\n\t\t\t}", "title": "" }, { "docid": "771a560f4b55dfbc5b3d5caf11858aea", "score": "0.5137076", "text": "@Override\n\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\n\t\t\tif(e.getSource()==jtf1) {\n\t\t\t\tif(jtf1.getText().equals(\"2010-09-01\")) {\n\t\t\t\t\tjtf1.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(e.getSource()==jtf2) {\n\t\t\t\tif(jtf2.getText().equals(\"2011-01-01\")) {\n\t\t\t\t\tjtf2.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(e.getSource()==jtf3) {\n\t\t\t\tif(jtf3.getText().equals(\"周数\")) {\n\t\t\t\t\tjtf3.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "e10349ba1662c4ce9aebee8f01e1cf3f", "score": "0.5131797", "text": "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\tif (titleField.getText().isEmpty()) {\n\t\t\t\t\ttitleField.setForeground(Color.GRAY);\n\t\t\t\t\ttitleField.setText(\"Titel der Anleitung\");\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "06abd77efb95f6a180ed4ec1aa99ab87", "score": "0.51140976", "text": "public void windowLostFocus(WindowEvent e){\n cancelResize();\n }", "title": "" }, { "docid": "92574b3749b51a0213a1c7b82c8ee830", "score": "0.51129293", "text": "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "7a69691a434bc50c524200b6cdf14867", "score": "0.5112246", "text": "@Override\r\n\tpublic void focusGained(FocusEvent e) {\n\r\n\t}", "title": "" }, { "docid": "b806eb994d6c8faa91f32d2bf77bbd3e", "score": "0.5082642", "text": "public void pinsTable_focusGained(FocusEvent e) {\n notifyListeners();\n }", "title": "" }, { "docid": "680b3c08526b37757298127113fd6487", "score": "0.5070995", "text": "private void SapeYpositionIntCheckActio(java.awt.event.FocusEvent evt) {\n String XVal = jTextField5.getText();\n if (!shapeHelper.checkInteger(XVal)) {\n javax.swing.JOptionPane.showMessageDialog(jPanel1, shapeHelper.getProperty(\"message.warning.YPosition.Value\"));\n jTextField5.setText(\"0\");\n }\n }", "title": "" }, { "docid": "26b11295e26f7c8039a8be73ba883736", "score": "0.5060472", "text": "public void focusGained(FocusEvent e) {}", "title": "" }, { "docid": "e7ec7c75fa6e55dca8e2e34ffe13df21", "score": "0.50453", "text": "private void jList1MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList1MouseReleased\n fillTextBoxes();\n }", "title": "" }, { "docid": "54b2720e502c4644c883a1fed51daa99", "score": "0.50066835", "text": "private void hook() {\n for (int i = 0; i < this.jtfRef.length; i++) {\r\n if (this.jtfRef[i] != null) {\r\n jtfRef[i].addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n valueChanged(e);\r\n }\r\n });\r\n\r\n jtfRef[i].addFocusListener(new FocusListener() {\r\n public void focusLost(FocusEvent l) {\r\n valueChanged(l);\r\n }\r\n\r\n public void focusGained(FocusEvent l) {\r\n }\r\n });\r\n }\r\n }\r\n }", "title": "" }, { "docid": "e3c547aaf69d89b7df973cf55f7173f6", "score": "0.49981028", "text": "@Override\r\n public void focusGained(FocusEvent arg0) {\n\r\n }", "title": "" }, { "docid": "e3c547aaf69d89b7df973cf55f7173f6", "score": "0.49981028", "text": "@Override\r\n public void focusGained(FocusEvent arg0) {\n\r\n }", "title": "" } ]
d628ae1e190bf4d91236835611215a9f
True if has "CiudadPostal" element
[ { "docid": "2fb13897da9218a7665c3682411b654c", "score": "0.7906623", "text": "boolean isSetCiudadPostal();", "title": "" } ]
[ { "docid": "28befdd277ea24de7a6d0dacbe4ec743", "score": "0.71453226", "text": "boolean isSetCmnaPostal();", "title": "" }, { "docid": "7dfb57784ed609dc345e7385c9c918d0", "score": "0.6885238", "text": "boolean isSetDirPostal();", "title": "" }, { "docid": "3dc60d2c0853d6ae8d5d91c65f0f7742", "score": "0.66854584", "text": "boolean isSetCiudadRecep();", "title": "" }, { "docid": "d3e2c8ef541a0670aebdb478e71b66c6", "score": "0.66595554", "text": "boolean isSetCiudadOrigen();", "title": "" }, { "docid": "44364c6b1feb7e6cd6605f3411c63225", "score": "0.62941575", "text": "cl.sii.siiDte.boletas.BOLETADefType.Documento.Encabezado.Receptor.CiudadPostal xgetCiudadPostal();", "title": "" }, { "docid": "ad1e60bf2d790c7895b984db8e89e581", "score": "0.6189948", "text": "boolean hasCountry();", "title": "" }, { "docid": "ad1e60bf2d790c7895b984db8e89e581", "score": "0.6189948", "text": "boolean hasCountry();", "title": "" }, { "docid": "6bf547cf67a5f99933917cb733f41d6e", "score": "0.6113599", "text": "boolean hasAddress();", "title": "" }, { "docid": "6bf547cf67a5f99933917cb733f41d6e", "score": "0.6113599", "text": "boolean hasAddress();", "title": "" }, { "docid": "f65a900768c68f376a511efc0c3c9f89", "score": "0.605625", "text": "public boolean isSetAddress() {\n return this.address != null;\n }", "title": "" }, { "docid": "f65a900768c68f376a511efc0c3c9f89", "score": "0.605625", "text": "public boolean isSetAddress() {\n return this.address != null;\n }", "title": "" }, { "docid": "f65a900768c68f376a511efc0c3c9f89", "score": "0.605625", "text": "public boolean isSetAddress() {\n return this.address != null;\n }", "title": "" }, { "docid": "65aa1efabacb1d36e9b00c884754f91e", "score": "0.60519505", "text": "java.lang.String getCiudadPostal();", "title": "" }, { "docid": "4d40f1dc2b43e01c74696b4aed014328", "score": "0.6013792", "text": "public boolean hasCountry() {\n return countryBuilder_ != null || country_ != null;\n }", "title": "" }, { "docid": "0f69eaf9319b079390844bd3b514a239", "score": "0.6010846", "text": "boolean hasAtividadeElementoDescricao();", "title": "" }, { "docid": "4461911461c3c3b7303c983400d25130", "score": "0.59550273", "text": "boolean isSetCity();", "title": "" }, { "docid": "b688028818c25f6beb2b0d69814b9ae7", "score": "0.59313476", "text": "public boolean isSetAddress() {\n return this.address != null;\n }", "title": "" }, { "docid": "b688028818c25f6beb2b0d69814b9ae7", "score": "0.59313476", "text": "public boolean isSetAddress() {\n return this.address != null;\n }", "title": "" }, { "docid": "b688028818c25f6beb2b0d69814b9ae7", "score": "0.59313476", "text": "public boolean isSetAddress() {\n return this.address != null;\n }", "title": "" }, { "docid": "047b569baeade147f4ecfee4a2b3557e", "score": "0.59262323", "text": "public boolean hasCountry() {\n return country_ != null;\n }", "title": "" }, { "docid": "02cddfb18c10bb9d152fc771b7b9dd5d", "score": "0.5857745", "text": "public boolean hasAddress() {\n return address_ != null;\n }", "title": "" }, { "docid": "3acd737e5157b55fa64d599f84a9da01", "score": "0.5856733", "text": "public boolean hasAddress() {\n return addressBuilder_ != null || address_ != null;\n }", "title": "" }, { "docid": "69a18e19893f17fb4638b75eed5f56f0", "score": "0.5790489", "text": "void setCiudadPostal(java.lang.String ciudadPostal);", "title": "" }, { "docid": "d4921c8b8c9187933cf4ae3a42ee988a", "score": "0.5782465", "text": "public boolean hasCity() {\n return fieldSetFlags()[0];\n }", "title": "" }, { "docid": "a143cf809832e3756431f99aa32680d3", "score": "0.5726377", "text": "boolean isSetZipcode();", "title": "" }, { "docid": "269916664ab28ac552b4e4f5bcecefd5", "score": "0.56779045", "text": "boolean hasElement();", "title": "" }, { "docid": "bb5d730908a2b75322a5623eb057d2d3", "score": "0.5671946", "text": "public boolean isSetAddr() {\n return this.addr != null;\n }", "title": "" }, { "docid": "ee5b245bf08cf427fb50237e7e9c9484", "score": "0.56147355", "text": "public boolean containsCity() {\r\n\t\t\treturn (numPoints > 0);\r\n\t\t}", "title": "" }, { "docid": "7fa398bf69540cdbeabf0268c994a02f", "score": "0.5587887", "text": "boolean hasElementoTidoPor();", "title": "" }, { "docid": "da732a97a9774acc3a2a7ec4949b4e89", "score": "0.5571909", "text": "boolean hasDeptName();", "title": "" }, { "docid": "54c2000f21344b8b9b46d22d238ef636", "score": "0.55372363", "text": "public boolean isSetNationality()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NATIONALITY$14) != 0;\n }\n }", "title": "" }, { "docid": "a2e2503c9e67cd669ec70219963f712e", "score": "0.5524073", "text": "public boolean existeNodo(String city) {\r\n \t\r\n for(int i = 0; i<this.nodos.size();i++) {\r\n if (this.nodos.get(i).getCiudad().compareToIgnoreCase(city)==0) {\r\n \r\n \treturn true;\r\n }\r\n \r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "81a26936d2117aa9fbdbda154f5d1e3a", "score": "0.5520297", "text": "boolean hasGeo();", "title": "" }, { "docid": "81a26936d2117aa9fbdbda154f5d1e3a", "score": "0.5520297", "text": "boolean hasGeo();", "title": "" }, { "docid": "81a26936d2117aa9fbdbda154f5d1e3a", "score": "0.5520297", "text": "boolean hasGeo();", "title": "" }, { "docid": "81a26936d2117aa9fbdbda154f5d1e3a", "score": "0.5520297", "text": "boolean hasGeo();", "title": "" }, { "docid": "81a26936d2117aa9fbdbda154f5d1e3a", "score": "0.5520297", "text": "boolean hasGeo();", "title": "" }, { "docid": "c49c1485ee0772df363ba5972d1d8435", "score": "0.5509399", "text": "boolean hasDepartment();", "title": "" }, { "docid": "a450b6e8539ea82a9d495ea15841f0ea", "score": "0.548934", "text": "boolean isSetMontoNF();", "title": "" }, { "docid": "65aa85c019ae5fdc5e6f41c60011fba2", "score": "0.5489161", "text": "public boolean isSetDeporte() {\n return this.deporte != null;\n }", "title": "" }, { "docid": "56c03939a9f2bd4ffab2c71497e26050", "score": "0.54681873", "text": "public boolean hasPerson(Person p){\r\n\t\tif(occupants.size()!=0){\r\n\t\treturn occupants.containsKey(p.getName());\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f8fa75fc38ab5b07c0874fd67d10dcd1", "score": "0.5451764", "text": "public boolean isSetCity() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CITY_ISSET_ID);\n }", "title": "" }, { "docid": "b5e6f1fe4af2834d9ef20e30e072cc1d", "score": "0.5447451", "text": "public boolean isSetAddressName() {\n return this.addressName != null;\n }", "title": "" }, { "docid": "38cfa9d7f4e8d9af7f13317de7000aa8", "score": "0.5433664", "text": "private boolean existCuponesRegalos(String Dniaux) {\r\n String exist = \"\";\r\n boolean valor = false;\r\n try {\r\n exist = DBControlAsistencia.existCuponRegalo(Dniaux);\r\n if (exist.equalsIgnoreCase(\"N\"))\r\n valor = true;\r\n } catch (SQLException e) {\r\n log.error(\"\", e);\r\n FarmaUtility.showMessage(this, \"Ha ocurrido un error al obtener cupones regalo .\\n\" +\r\n e.getMessage(), txtDni);\r\n }\r\n return valor;\r\n\r\n }", "title": "" }, { "docid": "8dd2cbeed8fd4524bef27a4851d43270", "score": "0.5432592", "text": "public boolean existsCountry (Country country);", "title": "" }, { "docid": "4f298adc0cb4258fc6cab3f87df9fe9d", "score": "0.54221654", "text": "@java.lang.Override\n public boolean hasElement() {\n return nodeCase_ == 1;\n }", "title": "" }, { "docid": "5f2bfcf9f66b168097723846e6b39216", "score": "0.54194987", "text": "public boolean isSetIPlace() {\n return this.iPlace != null;\n }", "title": "" }, { "docid": "a6399e4d1a1bc9c172b28803a064be10", "score": "0.5418519", "text": "public boolean isSetCargoInstituicao() {\n return this.cargoInstituicao != null;\n }", "title": "" }, { "docid": "2976c0510974de11e5d067a0ffe30d19", "score": "0.5416062", "text": "boolean hasPersonType();", "title": "" }, { "docid": "8126848900f62d1375fa35485003794c", "score": "0.54014266", "text": "@java.lang.Override\n public boolean hasElement() {\n return nodeCase_ == 1;\n }", "title": "" }, { "docid": "e10e703d67292b7957a32269396d506d", "score": "0.5399503", "text": "boolean isSetContacto();", "title": "" }, { "docid": "a3bbf0c139369cbc6d9596b3011db28c", "score": "0.5391595", "text": "public boolean hasCustomerAddress() {\n return fieldSetFlags()[3];\n }", "title": "" }, { "docid": "ff249c988aad90c70e87a719088bc9e3", "score": "0.5389649", "text": "public boolean hasDepartment() {\n return ((bitField0_ & 0x00010000) == 0x00010000);\n }", "title": "" }, { "docid": "620b5c2b9d4cb71e86b4057d1b4d651e", "score": "0.5366888", "text": "public boolean asteriskCountryField(){\n return driver.findElement(asteriskCountryLocator).isDisplayed();\n }", "title": "" }, { "docid": "1ebabd314262ef8fb8a0fce13c1347ce", "score": "0.53662336", "text": "boolean hasDeptId();", "title": "" }, { "docid": "5f2940cbf18256e5c30c2fe05031da27", "score": "0.5361617", "text": "boolean hasOtorgaCompetencias();", "title": "" }, { "docid": "f41d7ec8115bc9dd31078398bc5222ba", "score": "0.5325898", "text": "public boolean hasDepartment() {\n return ((bitField0_ & 0x00010000) == 0x00010000);\n }", "title": "" }, { "docid": "b3e1e826e9dfc1120068f072830b6245", "score": "0.5322605", "text": "cl.sii.siiDte.boletas.BOLETADefType.Documento.Encabezado.Receptor.CmnaPostal xgetCmnaPostal();", "title": "" }, { "docid": "8c696c8ee2e74edf710085054365272a", "score": "0.53170407", "text": "public boolean isSetCpfCidadao() {\n return this.cpfCidadao != null;\n }", "title": "" }, { "docid": "3524d7e986ad8a1f23462edc3f8bd76d", "score": "0.53135836", "text": "public boolean hasDept() {\n return fieldSetFlags()[3];\n }", "title": "" }, { "docid": "2b7290c2cfebd92336cee32d4f13e137", "score": "0.5303001", "text": "public boolean isSetZIP()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ZIP$0) != 0;\r\n }\r\n }", "title": "" }, { "docid": "8c81f8cb2ec9985cd4de9fdf0295dcbf", "score": "0.5302996", "text": "boolean hasRegionId();", "title": "" }, { "docid": "321c398dd0b8fc0b18d22eca0d3c327e", "score": "0.52758366", "text": "boolean hasGeoJson();", "title": "" }, { "docid": "27fee32aa4f8fef38e7108ed6f432c3c", "score": "0.52749217", "text": "public boolean asteriskCityField(){\n return driver.findElement(asteriskCityLocator).isDisplayed();\n }", "title": "" }, { "docid": "312786d2b853031cdbc5b40e4836b8ce", "score": "0.52745324", "text": "boolean hasOtorgaCompetenciaEspecifica();", "title": "" }, { "docid": "416fdb79ef8a9bbffb8993cb86de18ce", "score": "0.5266966", "text": "void xsetCiudadPostal(cl.sii.siiDte.boletas.BOLETADefType.Documento.Encabezado.Receptor.CiudadPostal ciudadPostal);", "title": "" }, { "docid": "5bc095bef0fd6412f936927d9902941b", "score": "0.5266107", "text": "boolean hasCoordinacionDeLaMateria();", "title": "" }, { "docid": "d9503c6e42a265442eb34a998c69f1d9", "score": "0.52525616", "text": "public boolean isValid() {\r\n return (!regionName.isEmpty() && !country.isEmpty());\r\n }", "title": "" }, { "docid": "d72094da96da8a75e4b84db9113be2ed", "score": "0.5246559", "text": "boolean hasMember();", "title": "" }, { "docid": "ba36d38f8c7b1841dff2d94cf19eb2ed", "score": "0.52458805", "text": "boolean getCountryNull();", "title": "" }, { "docid": "cabf0fdd598c5ac5c6b9c6f5321cfdde", "score": "0.52330166", "text": "boolean hasSatisfazCondicaoProduto();", "title": "" }, { "docid": "ecfec911e7f109024450ddaa87d98103", "score": "0.5210532", "text": "public boolean hasCountry() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" }, { "docid": "1f8f43e5592c57c817751e53635bcae6", "score": "0.52063316", "text": "public boolean containsCity(String city) {\n ParameterChecker.nullCheck(city, \"city\");\n \n for (PostalAddress pa : postalAddresses) {\n if (pa.getCity().equals(city)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "311fd42c47e6cc49c744df11bf229033", "score": "0.52006936", "text": "cl.sii.siiDte.boletas.BOLETADefType.Documento.Encabezado.Emisor.CiudadOrigen xgetCiudadOrigen();", "title": "" }, { "docid": "da64f1caa1624a92ed3db444c46bcc04", "score": "0.5192933", "text": "boolean isSetCodRef();", "title": "" }, { "docid": "e705c46035a8a551d9db58ec0a721c87", "score": "0.51830643", "text": "java.lang.String getCmnaPostal();", "title": "" }, { "docid": "7aae000c5af9180342806cd032d8991f", "score": "0.51758033", "text": "public boolean isSetNumeroProntuario() {\n return this.numeroProntuario != null;\n }", "title": "" }, { "docid": "08c6ab3434defdd3eb9d1088cfedb57d", "score": "0.51523143", "text": "boolean hasOrganization();", "title": "" }, { "docid": "244e1a41b4522bff74e5d7ce8f0c811c", "score": "0.5141847", "text": "public boolean isSetPostCode() {\n return this.postCode != null;\n }", "title": "" }, { "docid": "ce7c9118f21dac96b238beb684378cb3", "score": "0.51414514", "text": "@XmlTransient\n public boolean isEmpty() {\n return extract == null && tracepoint == null;\n }", "title": "" }, { "docid": "ad50c996ba7d2af7e3df0b6d5c99b296", "score": "0.5139547", "text": "public boolean hasPersonType() {\n return personTypeBuilder_ != null || personType_ != null;\n }", "title": "" }, { "docid": "70c1769ae92e9d288103892f48b3a414", "score": "0.5131054", "text": "public boolean isSetDob() {\n return this.dob != null;\n }", "title": "" }, { "docid": "b227f5fe539156fc6ad0ca8b3c6ee94f", "score": "0.512954", "text": "boolean hasContactDetails();", "title": "" }, { "docid": "da7c7029af5510a79349e71e3be8736a", "score": "0.5123432", "text": "public boolean hasPersonType() {\n return personType_ != null;\n }", "title": "" }, { "docid": "01c02584a5550b5a222d303a409993d3", "score": "0.51221997", "text": "public static boolean Verify(Countries c) throws Exception {\n\t\tboolean bool = false;\n\t\tfor (Countries a : ParseCountries.ParseDataCountries()) {\n\n\t\t\tbool = (a.getSlug().contentEquals(c.getSlug()) && a.getCountry().contentEquals(c.getCountry())\n\t\t\t\t\t&& a.getISO2().contentEquals(c.getISO2()));\n\t\t\tif (bool == true)\n\t\t\t\treturn bool;\n\n\t\t}\n\n\t\treturn bool;\n\n\t}", "title": "" }, { "docid": "31c4468338494e7c30cbc5389e5c45fd", "score": "0.51219624", "text": "public boolean isSetREPARO()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(REPARO$6) != 0;\r\n }\r\n }", "title": "" }, { "docid": "25ec43d760e4ebc59dde664f5659088f", "score": "0.51053846", "text": "public void checkKontakDasarHeader() {\n isElementPresent(form1Number);\n isElementPresent(kontakDasarHeader);\n }", "title": "" }, { "docid": "b972d1c8f2d1131ab44cc97dfb9fdac4", "score": "0.5096617", "text": "boolean hasDeptStatus();", "title": "" }, { "docid": "f2b3237af9465298b90a7bf9f6ddc173", "score": "0.50948834", "text": "public boolean isAddressInitialized() {\n return address != null && address.hasLatitude() && address.hasLongitude();\n }", "title": "" }, { "docid": "b81f46d4781a6159ab79b5d0254698ae", "score": "0.5085634", "text": "boolean containsTaxValues();", "title": "" }, { "docid": "d015855db3ed3866b60b6b5096771c9b", "score": "0.5081002", "text": "boolean hasRegion();", "title": "" }, { "docid": "5d54e40cef6fb5163cb57b164e4d5f63", "score": "0.5076604", "text": "boolean hasCreditosDeLaMateria();", "title": "" }, { "docid": "7f44deca5effda420561b1a346d07a42", "score": "0.50648004", "text": "cl.sii.siiDte.boletas.BOLETADefType.Documento.Encabezado.Receptor.CiudadRecep xgetCiudadRecep();", "title": "" }, { "docid": "3f72339afb70a561a4c69e800fba84d6", "score": "0.50646436", "text": "public boolean hasChildren(Object element)\n\t\t {\n\t\t\t if ( element instanceof Proof ) {\n\t\t\t\t Proof p = (Proof)element;\n\t\t\t\t if ( p.getProofSteps() != null && p.getProofSteps().getStatements().isEmpty() == false )\n\t\t\t\t\t return true;\n\t\t\t }\n\n\t\t\t return false;\n\t\t }", "title": "" }, { "docid": "b90bbb16ff571ac3c396db0079584d66", "score": "0.50571615", "text": "public boolean hasAddress() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "96c48e035c9855f0bc008f13c929b8a7", "score": "0.50553733", "text": "boolean spdxElementRefExists(String elementRef);", "title": "" }, { "docid": "7a1adaea984a67c6c7f8313b2f6567ff", "score": "0.5055045", "text": "public boolean validateCountries(String tagData, String type) {\n\t\tlistOfCountries = new ArrayList<Country>();\n\t\tHashMap<String, String> visited = new HashMap<String, String>();\n\t\tboolean duplicateData = true, formatData = true, continentData = true, adjacentData = true;\n\t\tArrayList<String> neighbourcountries;\n\t\tString formatError = new String(), DuplicateError = new String(), continentError = new String(),\n\t\t\t\tadjacencyError = new String();\n\t\t;\n\t\tString splitValue;\n\t\tif (type.equalsIgnoreCase(\"domination\")) {\n\t\t\tsplitValue = \"\\\\r\\\\n\";\n\t\t} else {\n\t\t\tsplitValue = \"\\\\n\";\n\t\t}\n\t\tString[] countryData = tagData.split(splitValue);\n\t\tfor (int i = 1; i < countryData.length; i++) {\n\t\t\tString data = countryData[i].trim().toUpperCase();\n\t\t\tString patternvalue;\n\t\t\tString splitVal;\n\t\t\tint value;\n\t\t\tif (type.equalsIgnoreCase(\"domination\")) {\n\t\t\t\tpatternvalue = \"[0-9]+ [a-zA-Z_-]+ [0-9]+ [0-9 ]*\";\n\t\t\t\tsplitVal = \" \";\n\t\t\t\tvalue = 1;\n\t\t\t} else {\n\t\t\t\tpatternvalue = \"[a-zA-Z\\\\s-_]+,[0-9]+,[0-9]+,[a-zA-Z\\\\s-_]+(,[a-zA-Z\\\\s-_]+)*\";\n\t\t\t\tsplitVal = \",\";\n\t\t\t\tvalue = 0;\n\t\t\t}\n\t\t\tPattern pattern = Pattern.compile(patternvalue);\n\t\t\tif (!data.trim().isEmpty()) {\n\t\t\t\tMatcher match = pattern.matcher(data.trim());\n\t\t\t\tif (!match.matches()) {\n\t\t\t\t\tformatError = formatError.concat(\n\t\t\t\t\t\t\t\"Invalid Country Details. \" + data.trim() + \" is not defined in required format.\\n\");\n\t\t\t\t\tformatData = false;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tif (visited.containsKey(data.split(splitVal)[value])) {\n\t\t\t\t\t\tDuplicateError = DuplicateError\n\t\t\t\t\t\t\t\t.concat(data.split(splitVal)[value] + \" is already defined. Duplicate Entry Found.\\n\");\n\t\t\t\t\t\tduplicateData = false;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tCountry country = new Country();\n\t\t\t\t\t\tString[] countrydetail = data.split(splitVal);\n\t\t\t\t\t\tString name = countrydetail[value];\n\n\t\t\t\t\t\tboolean continentAvailable = false;\n\t\t\t\t\t\tif (listOfContinent != null && !listOfContinent.isEmpty()) {\n\t\t\t\t\t\t\tContinent newcontinent;\n\t\t\t\t\t\t\tif (type.equalsIgnoreCase(\"domination\")) {\n\t\t\t\t\t\t\t\tint continentValue = Integer.parseInt(data.split(\" \")[2]);\n\n\t\t\t\t\t\t\t\tif (continentValue <= listOfContinent.size()) {\n\t\t\t\t\t\t\t\t\tnewcontinent = listOfContinent.get(continentValue - 1);\n\t\t\t\t\t\t\t\t\tcountry.setPartOfContinent(newcontinent);\n\t\t\t\t\t\t\t\t\tcontinentAvailable = true;\n\t\t\t\t\t\t\t\t\tcontinentData = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tfor (Continent continent : listOfContinent) {\n\t\t\t\t\t\t\t\t\tif (continent.getContinentName().equalsIgnoreCase(data.split(\",\")[3])) {\n\t\t\t\t\t\t\t\t\t\tnewcontinent = continent;\n\t\t\t\t\t\t\t\t\t\tcountry.setPartOfContinent(newcontinent);\n\t\t\t\t\t\t\t\t\t\tcontinentAvailable = true;\n\t\t\t\t\t\t\t\t\t\tcontinentData = true;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontinentError = continentError.concat(\"No Valid continents available.\\n\");\n\t\t\t\t\t\t\tcontinentData = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!continentAvailable) {\n\t\t\t\t\t\t\tif (type.equalsIgnoreCase(\"domination\")) {\n\t\t\t\t\t\t\t\tcontinentError = continentError\n\t\t\t\t\t\t\t\t\t\t.concat(data.split(\" \")[2] + \" is not defined as Continent.\\n\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcontinentError = continentError\n\t\t\t\t\t\t\t\t\t\t.concat(data.split(\",\")[3] + \" is not defined as Continent.\\n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcontinentData = false;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!type.equalsIgnoreCase(\"domination\")) {\n\t\t\t\t\t\t\tneighbourcountries = new ArrayList<>();\n\t\t\t\t\t\t\tif (countrydetail.length > 4) {\n\t\t\t\t\t\t\t\tfor (int j = 4; j < countrydetail.length; j++) {\n\t\t\t\t\t\t\t\t\tneighbourcountries.add(countrydetail[j]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcountry.setNeighbourCountries(neighbourcountries);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tadjacencyError = adjacencyError\n\t\t\t\t\t\t\t\t\t\t.concat(\"!! No Adjacent Country defined for \" + name + \".\\n\");\n\t\t\t\t\t\t\t\tadjacentData = false;\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountry.setCountryName(name);\n\t\t\t\t\t\tlistOfCountries.add(country);\n\t\t\t\t\t\tvisited.put(name, data);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (duplicateData == true && formatData == true && continentData == true && adjacentData == true) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\terrorMessage = errorMessage.concat(formatError).concat(DuplicateError).concat(continentError)\n\t\t\t\t\t.concat(adjacencyError);\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "7c82d624bc32928eef997faedd786b28", "score": "0.5046008", "text": "public boolean isNotNullNumOfMerchants() {\n return genClient.cacheValueIsNotNull(CacheKey.numOfMerchants);\n }", "title": "" }, { "docid": "70bfcfda1c28c68da61423af5f122707", "score": "0.5045879", "text": "public boolean isSetRECHAZO()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(RECHAZO$4) != 0;\r\n }\r\n }", "title": "" }, { "docid": "9ecc0dfb51a53e836e0d2f8e2ed347be", "score": "0.5044007", "text": "@java.lang.Override\n public boolean hasCountry() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" } ]
a86d3b72bc9c96337606448fed51f5a4
Quickanddirty benchmark to measure the speed
[ { "docid": "dc631463c2a9a9123b9dff379d6ad169", "score": "0.0", "text": "public static void main(String... args) throws Exception {\n if(args.length == 0) {\n System.err.println(\"Please supply FindBugs XML file as an argument\");\n return;\n }\n File file = new File(args[0]);\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(file);\n\n for(int n=0; n<5; n++) {\n long start = System.currentTimeMillis();\n getAvgPrioritySlow(document);\n if(n > 0) {\n System.out.println(\"Slow: \"+(System.currentTimeMillis()-start));\n }\n }\n for(int n=0; n<5; n++) {\n long start = System.currentTimeMillis();\n getAvgPriorityFast(document);\n if(n > 0) {\n System.out.println(\"Fast: \"+(System.currentTimeMillis()-start));\n }\n }\n }", "title": "" } ]
[ { "docid": "5eca56343454fda3e33fe06640722f03", "score": "0.6963551", "text": "public void testPerformance(){\n //myRomanGenerator.romanNumeralFor(1); //Add this line to observe impact on performance\n Double runArray[] = {1e0,1e1, 1e2, 1e3, 1e4, 1e5, 1e6};\n for (double noOfRuns: runArray){\n System.out.println(getMillisecondsForNRuns(noOfRuns));\n }\n }", "title": "" }, { "docid": "6e4bfeda278de38e0ad8cc35d68364eb", "score": "0.68796825", "text": "public static void speedTest()\n\t{\n\t\tbasic(new ShellSort(), \"largeW.txt\");\n\t\tbasic(new MergeSort(), \"largeW.txt\");\n\t\tbasic(new QuickSort(), \"largeW.txt\");\n\t\tbasic(new Quick3WaySort(), \"largeW.txt\");\n\t\tbasic(new HeapSort(), \"largeW.txt\");\n\t}", "title": "" }, { "docid": "2f9430f76a25d7c56027d3f8eba23bf3", "score": "0.6860105", "text": "@Test\n public void testReportElapsedTime_AccurateToOneHundredthSecond() {\n long controlStartTime = System.nanoTime();\n StopWatch stopWatch = new StopWatch();\n for(int count = 0; count < 9999999; count++); \n long testElapsedTime = stopWatch.stop();\n long controlElapsedTime = System.nanoTime() - controlStartTime;\n boolean accurateToWithinOneHundredthSecond = (controlElapsedTime - testElapsedTime) <= 10000000;\n assertTrue(accurateToWithinOneHundredthSecond);\n }", "title": "" }, { "docid": "38016cebca9ad58074bf2d187f011f29", "score": "0.67350805", "text": "@Test\n public void benchmark() {\n long start = System.currentTimeMillis();\n\n RandomPacket randomPacket = new RandomPacket();\n for (int i = 0; i < 1000000; i++) {\n largeTestFile.acceptPacket(randomPacket.getDirection(), randomPacket.getProtocol(), randomPacket.getPort(), randomPacket.getIp());\n }\n\n System.out.println(\"Execution Time:\" + (System.currentTimeMillis() - start));\n }", "title": "" }, { "docid": "2020a8c835e6afb21479c85c8f622f57", "score": "0.670463", "text": "public void faster()\n\t\t{\n\t\t\tspeedLeft(2);\n\t\t\tspeedRight(2);\n\t\t}", "title": "" }, { "docid": "3f181312ae8c6004e2af09fd419f8adc", "score": "0.66532916", "text": "@Test\n public void testSpeedup()\n {\n\n\n long deltaWithoutIndex = timingVertexGet();\n \n // make sure we have no indexes\n try {\n conn.removeAllVertices();\n loader.parse(new File(indexConfig));\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n long deltaWithIndex = timingVertexGet();\n \n double ratio = (double)deltaWithoutIndex / (double)deltaWithIndex;\n\n // we assume that indexing will really help\n assertTrue(ratio > 2);\n }", "title": "" }, { "docid": "9907227fb057107db020713ef5ed985f", "score": "0.6612865", "text": "public static void main(String[] args) {\n\t\tPerformanceTestUtil perf1 = new PerformanceTestUtil(\"TestingTimer\");\r\n\t\tLong j = (long) 0;\r\n\t\t// Long cout = Long.parseLong(\"10000000000\");\r\n\t\tLong cout = Long.parseLong(\"1000\");\r\n\t\tperf1.StartTimer(\"TestingTimer\", \"dummy\", cout);\r\n\r\n\t\tfor (Long i = (long) 0; i < cout; i++) {\r\n\t\t\tj++;\r\n\t\t}\r\n\t\t//endTime = System.nanoTime();\r\n\t\tperf1.EndTimer(\"TestingTimer\");\r\n\t\t// perf.recordTime(\"Testing Perf Util\", \"dummy\", cout, startTime,\r\n\t\t// endTime);\r\n\t\tperf1.recordTimer(\"TestingTimer\");\r\n\t\tperf1.StartTimer(\"TestingTimerSecond\", \"dummySecond\", cout);\r\n\t\tfor (Long i = (long) 0; i < cout; i++) {\r\n\t\t\tj++;\r\n\t\t}\r\n\t\tperf1.EndTimer(\"TestingTimerSecond\");\r\n\t\tperf1.recordTimer(\"TestingTimerSecond\");\r\n\t\tperf1.StartTimer(\"TestingTimerSecond\", \"dummySecond\", cout);\r\n\t\tfor (Long i = (long) 0; i < cout; i++) {\r\n\t\t\tj++;\r\n\t\t}\r\n\t\tperf1.EndTimer(\"TestingTimerSecond\");\r\n\t\tperf1.recordTimer(\"TestingTimerSecond\");\r\n\t}", "title": "" }, { "docid": "0d4a46a59f6adc9a1288824ee00216f7", "score": "0.6562562", "text": "@Test\n public void testSpeed() {\n\n final long seed = 4357;\n\n final int warmUpCount = 10000;\n final int count = 10000000;\n\n int sum;\n long start;\n\n logger.info(\"Time to test grabbing {} ints\", count);\n\n // -------------------------------------------------------\n\n java.util.Random rr = new java.util.Random(seed);\n\n // warmup\n sum = 0;\n for (int j = 0; j < warmUpCount; j++) {\n sum += rr.nextInt();\n }\n sum = 0;\n start = System.nanoTime();\n for (int j = 0; j < count; j++) {\n sum += rr.nextInt();\n }\n\n logger.info(\"java.util.Random: {}ms.\", (System.nanoTime() - start) / 1000000);\n logger.trace(\"Use the result so that JVM doesn't skip the computation - here it is: {}\", sum);\n\n // -------------------------------------------------------\n\n FastRandom fr = new FastRandom(seed);\n\n // warmup\n sum = 0;\n for (int j = 0; j < warmUpCount; j++) {\n sum += fr.nextInt();\n }\n sum = 0;\n start = System.nanoTime();\n for (int j = 0; j < count; j++) {\n sum += fr.nextInt();\n }\n\n logger.info(\"FastRandom: {}ms.\", (System.nanoTime() - start) / 1000000);\n logger.trace(\"Use the result so that JVM doesn't skip the computation - here it is: {}\", sum);\n\n // -------------------------------------------------------\n\n MersenneRandom r = new MersenneRandom(seed);\n\n // warmup\n sum = 0;\n for (int j = 0; j < warmUpCount; j++) {\n sum += r.nextInt();\n }\n\n sum = 0;\n start = System.nanoTime();\n for (int j = 0; j < count; j++) {\n sum += r.nextInt();\n }\n\n logger.info(\"MersenneRandom: {}ms.\", (System.nanoTime() - start) / 1000000);\n logger.trace(\"Use the result so that JVM doesn't skip the computation - here it is: {}\", sum);\n }", "title": "" }, { "docid": "cd849f962909959f306087e60ba27a3b", "score": "0.64631426", "text": "public void testSpeed() throws Exception {\n\t\tCentral c = CentralConfig.newRam().build() ;\r\n\r\n\t\tfinal String readString = IOUtil.toString(new FileInputStream(\"libsource/build_fat.xml\"));\r\n\r\n\t\tIndexer wr = c.newIndexer() ;\r\n\t\tlong start = System.currentTimeMillis() ;\r\n\t\twr.index(new IndexJob<Void>() {\r\n\t\t\tpublic Void handle(IndexSession session) throws Exception {\r\n\t\t\t\tfor (int i : ListUtil.rangeNum(1000)) {\r\n\t\t\t\t\tMyDocument doc = MyDocument.testDocument().add(MyField.number(\"index\", i)).add(MyField.text(\"file\", readString)) ;\r\n\t\t\t\t\tsession.insertDocument(doc) ;\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}) ;\r\n\t\tDebug.line(wr, System.currentTimeMillis()- start) ;\r\n\r\n\t\t// expect ( 8hour) -> 330 per sec\r\n\t\t// if keyword : 370 per sec\r\n\t\t// if text(3k use MyKoreAnalyzer) : 60 per sec... -_-\r\n\t\t// if text(3k user StandardAnalyzer) : 100 per sec.. -_-)\r\n\t\t// if 3k text & ramdir & mykorean : 200 per sec ... -_-\r\n\t}", "title": "" }, { "docid": "5479df69db03e215e09a12282a27ed2d", "score": "0.6438486", "text": "@Test\n\tpublic void testSpeed() {\n\t\t// half-life\n\t\tHalfLifeMap map = new HalfLifeMap<>(25000);\n\t\tLog.setMinLevel(Level.OFF);\n\t\t{\n\t\t\tdouble perOp1a = speed2_heavyGet(map);\n\t\t\tdouble perOp1b = speed2_heavyGet(Collections.synchronizedMap(new HashMap()));\n\t\t\tdouble pc = 100*((perOp1a/perOp1b)-1);\n\t\t\tSystem.out.println(\"Mostly Gets: HalfLifeMap \"+perOp1a +\" vs HashMap \"+perOp1b+\":\\t\"+StrUtils.toNSigFigs(pc, 2)+\"%\");\n\t\t\tSystem.out.println(\"Prunes: \" + map.getPrunedCount());\n\t\t\tSystem.out.println(\"Map size: \" + map.size());\n\t\t\tSystem.out.println(\"Total count: \" + map.getTotalCount());\n\t\t}\n\t\t{\n\t\t\tdouble perOp1a = speed2_heavyPut(map);\n\t\t\tdouble perOp1b = speed2_heavyPut(Collections.synchronizedMap(new HashMap()));\n\t\t\tdouble pc = 100*((perOp1a/perOp1b)-1);\n\t\t\tSystem.out.println(\"Mostly Puts: HalfLifeMap \"+perOp1a +\" vs HashMap \"+perOp1b+\":\\t\"+StrUtils.toNSigFigs(pc, 2)+\"%\");\n\t\t\tSystem.out.println(\"Prunes: \" + map.getPrunedCount());\n\t\t\tSystem.out.println(\"Map size: \" + map.size());\n\t\t\tSystem.out.println(\"Total count: \" + map.getTotalCount());\n\t\t}\n\t\tassert map.size() <= map.getIdealSize()*2;\n\t}", "title": "" }, { "docid": "fc58eaad0f83ac9b21e861b12a93fa69", "score": "0.64127773", "text": "public static void main(String[] args) {\n\t\tlong inicio = System.currentTimeMillis();\n\t\tconcatString(30000);\n\t\tlong fim = System.currentTimeMillis();\n\t\tSystem.out.println(\"Tempo gasto: \" + (fim - inicio) + \"ms\");\n\t\t\n\t\tinicio = System.currentTimeMillis();\n\t\tconcatStringBuilder(30000);\n\t\tfim = System.currentTimeMillis();\n\t\tSystem.out.println(\"Tempo gasto StringBuilder: \" + (fim - inicio) + \"ms\");\n\t\t\n\t\tinicio = System.currentTimeMillis();\n\t\tconcatStringBuffer(30000);\n\t\tfim = System.currentTimeMillis();\n\t\tSystem.out.println(\"Tempo gasto StringBuffer: \" + (fim - inicio) + \"ms\");\n\t}", "title": "" }, { "docid": "9f3d9f00b365cbd5b58b72e607c905ff", "score": "0.63777417", "text": "private static double tock()\r\n{ \r\nreturn (System.nanoTime() - startTime) / 1000000.0d; // returns time in milliseconds \r\n}", "title": "" }, { "docid": "23c75e1a12ced1ed3de37192b2eb2044", "score": "0.6362329", "text": "public static void main(String[] args) {\n \n Set<Integer> set = new LLQHashTableSet(100);\n\n System.out.println(\"Starting timing tests...\");\n long time1, time2, duration;\n time1 = System.currentTimeMillis();\n \n for (int i = 0; i < 5000; i++) {\n set.add(i);\n }\n \n time2 = System.currentTimeMillis();\n duration = time2 - time1;\n\n System.out.println(\"Time taken in ms: \" + duration);\n }", "title": "" }, { "docid": "be67a1eb87050a7b090e8e43dd88faed", "score": "0.63516563", "text": "public static void main(String[] args) {\n\t\tlong startTime= System.currentTimeMillis();\r\n\t\t//System.out.println(startTime);\r\n\t\tdouble result= 1.0;\r\n\t\tfor(int i=0; i<999999999; i++) {\r\n\t\t\tresult= i*result + result + result/2;\r\n\t\t}\r\n\t\tlong endTime= System.currentTimeMillis();\r\n\t\tlong totalTime= endTime - startTime;\r\n\t\tSystem.out.println(totalTime);\r\n\r\n\t}", "title": "" }, { "docid": "b66853432e8c2ac5b5004e344fdbd797", "score": "0.6331503", "text": "public static void main(String[] args)\r\n {\n long hi = System.currentTimeMillis();\r\n // instancio un StringBuffer inicialmente vacio\r\n StringBuffer sb=new StringBuffer();\r\n // voy a concatenar n caracteres\r\n int n=100000;\r\n\r\n char c;\r\n for(int i=0; i<n; i++)\r\n {\r\n // obtengo caracteres entre 'A' y 'Z'\r\n c = (char)('A' + i%('Z'-'A'+1));\r\n // concateno el caracter en el StringBuffer\r\n sb.append(c);\r\n }\r\n // obtengo el milisegundo actual\r\n long hf = System.currentTimeMillis();\r\n // muestro la cadena resultante\r\n System.out.println(sb.toString());\r\n // muestro la cantidad de milisegundos insumidos\r\n System.out.println((hf-hi)+\" milisegundos\");\r\n }", "title": "" }, { "docid": "212511a9572479eae47d528f4c0740dd", "score": "0.62717956", "text": "private void start() throws FileNotFoundException {\n\n String strFile = \"SimpleArrayList_10K.csv\";\n try {\n printStream = new PrintWriter(strFile);\n printStream.println(\"SampleSize, AddToBack, AddToFront, Contains, \" +\n \"RandomAccess, AccessMid\");\n\n Benchmarker benchmarker = new Benchmarker();\n\n List<Integer> list = new SimpleArrayList<>();\n\n //TODO swap out these two lines to make comparisons.\n //Don't forget to change the filename!\n\n //List<Integer> list = new ArrayList<>();\n\n // We want to take measurements for different numbers of items\n // (N) in the collection, so that we can see how the performance\n // varies with N. We'll vary N from some very small value (1) to\n // some large value (NMAX), incrementing N by some amount (NINC)\n // as we go.\n\n\n\n // Run the tests for increasing values of N (from 1 to NMAX)\n for(int n=1; n<NMAX; n+=NINC) {\n // Each time through this loop, the List is \n // reinitialized and rebuilt, but bigger each time.\n list.clear();\n\n // Get the time it takes to add N elements to the List\n long nsAddToBack = benchmarker.benchAddToBack(list, n);\n\n // clear again to prepare for rebuilding from the front\n list.clear();\n\n // Get the time it takes to add N elements to the List\n long nsAddToFront = benchmarker.benchAddToFront(list, n);\n\n // Get the time it takes to determine that a value is not\n // in the list.\n // Note: -1 is never found since all values are positive\n long nsContains = benchmarker.benchContains(list, -1);\n\n // Get the time it takes to access a random element in list\n long nsAccessRandom = benchmarker.benchAccess(list);\n\n // Get the time it takes to access approximate middle element\n long nsAccessMiddle = benchmarker.benchAccessIndex(list, n/2);\n\n // print the values to a data file; time are in microseconds\n printStream.println(n + \", \" + nsAddToBack/ MILLIS + \", \"\n + nsAddToFront/MILLIS + \", \"\n + nsContains/MILLIS + \", \"\n + nsAccessRandom/MILLIS + \", \"\n + nsAccessMiddle/MILLIS);\n System.out.println(\"Finished test for N=\" + n);\n }\n } finally {\n // Be sure to flush all pending output and close the file\n if(printStream!=null) {\n printStream.flush();\n printStream.close();\n }\n }\n }", "title": "" }, { "docid": "2f832a27d8249ef5af70e75dd03166ff", "score": "0.6246474", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n BallTree ballTree0 = new BallTree();\n ballTree0.setMeasurePerformance(true);\n ballTree0.enumerateMeasures();\n assertTrue(ballTree0.getMeasurePerformance());\n }", "title": "" }, { "docid": "8839cf6dbf97a73e5e1e4b1de9bed1cc", "score": "0.62319446", "text": "@Benchmark\n @BenchmarkMode({Mode.Throughput, Mode.AverageTime, Mode.SampleTime})\n @OutputTimeUnit(TimeUnit.MILLISECONDS)\n public void test() {\n// TestHwhw t = client.getInstance(TestHwhw.class);\n// System.out.println(t.test(\"hwhw------>>>>\"));\n }", "title": "" }, { "docid": "582d2f247f8f8164ca162179de4662ce", "score": "0.6204219", "text": "public static void main(String[] args) {\n\n\t\t\n ArrayList<Integer> liste=new ArrayList<Integer>();\n\t\t\n\t\tfor(int i=100000;i>=0;i--)\n\t\t\tliste.add(i);\n\t\t\n\t\t\n\t\tlong baslangic = System.currentTimeMillis();\n\t\tCollections.sort(liste);\n\t\tlong bitis = System.currentTimeMillis();\n\t\t\n\t\tSystem.out.println(\"Hesaplanan Süre: \"+(bitis-baslangic)+\" ms.\");\n\t\t\n\t}", "title": "" }, { "docid": "f6e0ef7ba248b79409d751ebebd4f447", "score": "0.61232084", "text": "public static void main(String[] args) {\n long beforeMemory = Runtime.getRuntime().totalMemory();\n long start1 = System.currentTimeMillis();\n BitSet set = new BitSet(2000000000);\n for (int i = 0; i < 2000000000; i++) {\n /*假设898989这个数不在20亿个数里面*/\n if (i != 898989) {\n set.set(i, true);\n }\n }\n /*创建20亿个数后所占内存*/\n long afterMemory = Runtime.getRuntime().totalMemory();\n long end1 = System.currentTimeMillis();\n System.out.println(\"总共内存使用:\" + (afterMemory - beforeMemory) / 1024 / 1024 + \"MB\");\n System.out.println(\"存入内存耗时:\" + (end1 - start1) + \"毫秒\");\n long start2 = System.currentTimeMillis();\n boolean isExit1 = set.get(898989);\n boolean isExit2 = set.get(900000);\n\n long end2 = System.currentTimeMillis();\n /*输出在20亿个数中判断898989是否包含在里面*/\n System.out.println(isExit1);\n System.out.println(\"20个亿中\" + (isExit1 ? \"包含\" : \"不包含\") + 898989);\n System.out.println(\"20个亿中\" + (isExit2 ? \"包含\" : \"不包含\") + 900000);\n System.out.println(\"查询用时:\" + (end2 - start2) + \"毫秒\");\n\n }", "title": "" }, { "docid": "3ff62f4e5e2a8a8dcea091f9daee579b", "score": "0.6116061", "text": "public static void main(String[] args) {\n CS2ArrayList<Double> list;\n int n = 51; // list size\n long trials = 1000000; // number of trials\n\n // create arrays to keep track of timing values\n int [] time = new int[n];\n int [] count = new int[n];\n\n Double val = null;\n\n for (int i = 100; i <= 5000; i = i + 100) {\n list = new CS2ArrayList<Double>();\n\n for (int r = 0; r < i; r++) {\n list.add(Math.random());\n }\n\n for (int j = 0; j < trials; j++) {\n int index = (int)(Math.random()*i);\n\n // time get operation\n long start = System.nanoTime();\n val = list.get(index);\n long end = System.nanoTime();\n\n // add elapsed time to the total time for that list size and increment count\n time[i/100] += (end - start);\n count[i/100]++;\n }\n }\n\n // print results as averages (data value/count)\n System.out.println(\"Get times\\n\");\n System.out.println(\"List Size\\ttime\");\n\n for (int i = 1; i < time.length; i++) {\n System.out.println(i*100 + \"\\t\" + (double)time[i]/count[i]);\n }\n }", "title": "" }, { "docid": "861a60d085debebf9143b2c74fae85e6", "score": "0.6061477", "text": "@Test\n\tpublic void testAgentPerformanceMillis() throws IOException, InterruptedException, ClassNotFoundException {\n\t\tfinal long startMs = System.currentTimeMillis();\n\t\tfinal Process proc = fork( \"com.icehealthsystems.samples.SampleApplication2\", \"file=target/millis-profile.bin,resolution=millis,includes=com\\\\.icehealthsystems\\\\.samples\\\\.SampleApplication2\", true, false );\n\t\tAssert.assertEquals( \"Process did not exit properly\", 0, proc.waitFor() );\n\t\tfinal long runMs = System.currentTimeMillis() - startMs;\n\t\tLogUtils.println( \"Millis run: \" + runMs + \" ms\" );\n\t\tAssert.assertTrue( \"Millisecond performance too bad\", runMs < 2000 /* travis slow */ );\n\t\t// load the dump\n\t\tfinal ConcurrentMap<Integer, MethodExecutionMetric> recordedMetrics = AggregatingMetricsCollector.loadFromFile( new File( \"target/millis-profile.bin\" ) );\n\t\tAssert.assertEquals( \"Did not record expected number of metrics\", 4, recordedMetrics.size() );\n\t\tint totalInvocations = 0;\n\t\tfor ( final MethodExecutionMetric metric : recordedMetrics.values() ) {\n\t\t\ttotalInvocations += metric.getInvocations();\n\t\t}\n\t\tAssert.assertEquals( \"Did not compute the correct number of invocations\", 2553, totalInvocations );\n\t}", "title": "" }, { "docid": "c722d1325585d911087849b64fe2f67f", "score": "0.60568225", "text": "long getBenchmarkId();", "title": "" }, { "docid": "bb22c33089ebeba671b748dd3daddabf", "score": "0.6047179", "text": "public static void main(String[] args) {\n\t\tlong debut = System.currentTimeMillis();\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor (int i = 1; i <= LOOP; i++) {\n\t\t\tsb.append(i); // 9ms\n\t\t}\n\t\t\n\t\tlong fin = System.currentTimeMillis();\n\t\t\n\t\tSystem.out.println(\"Temps écoulé en ms : \" + (fin - debut));\n\t\t\n\t\tdebut = 0;\n\t\tfin = 0;\n\t\t\n\t\tdebut = System.currentTimeMillis();\n\t\t\n\t\tString s = \"\";\n\t\t\n\t\tfor (int i = 1; i <= LOOP; i++) {\n\t\t\ts += i; // 6534ms\n\t\t}\n\t\t\n\t\tfin = System.currentTimeMillis();\n\t\t\n\t\tSystem.out.println(\"Temps écoulé en ms : \" + (fin - debut));\n\t}", "title": "" }, { "docid": "5bf72a5665efa2ee117ec145e852d433", "score": "0.6042173", "text": "@Test\n public void useNanoTime(){\n long startTime = System.nanoTime();\n for(int x = 0; x < 10; x++){\n System.out.println(\"Current time \" + System.currentTimeMillis());\n }\n\n long endTime = System.nanoTime();\n System.out.println(\"Total time \" + (endTime - startTime));\n }", "title": "" }, { "docid": "4f7a665afa0a8ce29cc7c7b6936db3a1", "score": "0.6007814", "text": "public static void main(String[] args){\n\t\tArrayList<Double> BubbleSortList = new ArrayList<Double>();\n\t\tArrayList<Double> SelectionSortList = new ArrayList<Double>();\n\t\tArrayList<Double> QuickSort3List = new ArrayList<Double>();\n\t\t\n\t\t// Used for timing how fast the sorts work. \n\t\tStopwatch stopwatch = Stopwatch.createUnstarted();\t\t\n\t\tlong[][] trialTimes = new long[25][3];\n\t\t\n\t\t// Print the header.\n\t\tSystem.out.println(\"Trial:\\tBubble Sort:\\tSelection Sort:\\tQuickSort3:\");\n\t\t\n\t\t// Loop over 25 trials.\n\t\tfor (int trial = 0; trial < 25; ++trial){\n\t\t\t\t\t\n\t\t\t// Fill the Lists.\n\t\t\tfor (int loop = 0; loop < 10000; loop++ ){\n\t\t\t\tdouble val = Math.floor(getRandNum(0,100000));\n\t\t\t\t//randList.add(val);\n\t\t\t\tBubbleSortList.add(val);\n\t\t\t\tSelectionSortList.add(val);\n\t\t\t\tQuickSort3List.add(val);\n\t\t\t}\n\t\t\t\n\t\t\t// Do the Sort w/ Bubble Sort and time it.\n\t\t\tstopwatch.start();\n\t\t\tBubbleSort(BubbleSortList);\n\t\t\tstopwatch.stop();\n\t\t\ttrialTimes[trial][0] = stopwatch.elapsed(TimeUnit.MICROSECONDS);\n\t\t\tstopwatch.reset();\n\n\t\t\t// Do the Sort w/ Selection Sort and time it.\n\t\t\tstopwatch.start();\n\t\t\tSelectionSort(SelectionSortList);\t\t\t\n\t\t\tstopwatch.stop();\n\t\t\ttrialTimes[trial][1] = stopwatch.elapsed(TimeUnit.MICROSECONDS);\n\t\t\tstopwatch.reset();\n\t\t\t\n\t\t\t// Do the sort w/ Quicksort3 and time it.\n\t\t\tstopwatch.start();\n\t\t\tquicksort3(QuickSort3List);\n\t\t\tstopwatch.stop();\n\t\t\ttrialTimes[trial][2] =stopwatch.elapsed(TimeUnit.MICROSECONDS);\n\t\t\tstopwatch.reset();\n\t\t\t\t\t\t\n\t\t\t//Print the results\n\t\t\tSystem.out.println((trial+1) + \"\\t\" + \n\t\t\t\t\t\t\ttrialTimes[trial][0] + \"\\t\\t\" + \n\t\t\t\t\t\t\ttrialTimes[trial][1] + \"\\t\\t\" + \n\t\t\t\t\t\t\ttrialTimes[trial][2] \n\t\t\t\t\t\t\t);\n\t\t\t\n\t\t\t//if (trial == 24) for(double num : QuickSort3List) System.out.println(num);\n\t\t\t\n\t\t\t// Clear the lists.\n\t\t\tBubbleSortList.clear();\n\t\t\tSelectionSortList.clear();\n\t\t\tQuickSort3List.clear();\t\t\n\t\t}\t\n\t}", "title": "" }, { "docid": "bfcb55a07f9fcaaf639069b77f4f8f4f", "score": "0.5985215", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n BallTree ballTree0 = new BallTree();\n ballTree0.setMeasurePerformance(true);\n String[] stringArray0 = ballTree0.getOptions();\n ballTree0.setOptions(stringArray0);\n assertTrue(ballTree0.getMeasurePerformance());\n }", "title": "" }, { "docid": "13dbe6c0ab2bd9276899b2b7b70bcee9", "score": "0.5948191", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\tStringBuffer sb = new StringBuffer(\"Java\");\r\n\t\t\r\n\t\tfor(int i = 0; i < 10000; i++)\r\n\t\t{\r\n\t\t\tsb.append(\"Example\");\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Time taken by StringBuffer is: \"\r\n\t\t+(System.currentTimeMillis() - startTime)+\"ms\");\r\n\t\t\r\n\t\tstartTime = System.currentTimeMillis();\r\n\t\t\r\n\t\tStringBuilder sb2 = new StringBuilder(\"Java\");\r\n\t\t\r\n\t\tfor(int i = 0; i < 10000; i++)\r\n\t\t{\r\n\t\t\tsb.append(\"Example\");\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Time taken by StringBuilder is: \"\r\n\t\t\t\t+(System.currentTimeMillis() - startTime)+\"ms\");\r\n\r\n\t}", "title": "" }, { "docid": "f0bb24846d5e3f62df81f55751bf82f5", "score": "0.5945398", "text": "@Test\r\n public void testTestSpeed() {\r\n System.out.println(\"testSpeed\");\r\n TestDouble instance = new TestDouble();\r\n instance.testSpeed();\r\n }", "title": "" }, { "docid": "d15bc58a011f70ee49c70950eb1eddf4", "score": "0.594159", "text": "protected void addSpeedup() {\r\n\t\tspeedup += 1;\r\n\t}", "title": "" }, { "docid": "00005d98f94c03fe551ec792eb37bd0a", "score": "0.5937089", "text": "public static void main(String[] args)\n\t{\n\t\tspeedTest();\n\t}", "title": "" }, { "docid": "2f485af40d266e6d5525eaa2aec2a119", "score": "0.5934", "text": "protected double painterCpuTimeTree(BSPTree tree, Eye eye)\n {\n double res = 0;\n long start_cpu;\n long end_cpu;\n for (int i=0; i<avgNbr ; i++)\n {\n start_cpu = System.nanoTime();\n tree.paintersAlgorithm((u,v,w)->{},eye);\n end_cpu = System.nanoTime();\n res+= (end_cpu - start_cpu)/1000000.;\n }\n return res/avgNbr;\n }", "title": "" }, { "docid": "b9eb472a3f39aebf437b50d294b51b1e", "score": "0.5915551", "text": "private long getSampleTime (){\n return System.currentTimeMillis();\n \n }", "title": "" }, { "docid": "f90d16e19ab24d2432880fa8638d42dd", "score": "0.5888714", "text": "public static void main(String[] args) {\n\n for (int i = 0; i < 10000; i++) {\n System.out.println(System.nanoTime() + \"--\" + System.currentTimeMillis());\n }\n\n }", "title": "" }, { "docid": "18ef13aa3e8aea3d53d4429f31f7901f", "score": "0.5877572", "text": "public static void main(String[] args) {\n\t\ttestArrayListEfficiency();\n\t\ttestLinkedListEfficiency();\n\t\ttestVectorEfficiency();\n\t}", "title": "" }, { "docid": "3f9f405fe44eef2c3b563271c1d121b3", "score": "0.5868135", "text": "public static void main(String[] args) {\n\n\n int jedynek = 0;\n\n int tab[][] = new int[99999][99];\n for(int i=0; i<10000; i++) {\n tab[i][0] = 1;\n jedynek++;\n }\n// System.out.println(jedynek);\n//\n// ArrayList<Integer> list = new ArrayList<Integer>();\n// for(int i=0; i<100; i++) {\n// list.add(1);\n// }\n\n //odczyt\n int r=0;\n// Array\n ArrayList<Integer> arrayList = new ArrayList<>();\n long start = System.currentTimeMillis();\n for(int i=0; i<jedynek; i++) {\n// r += list.get(i);\n r += tab[i][0];\n }\n System.out.println(r);\n System.out.println(System.currentTimeMillis() - start);\n\n }", "title": "" }, { "docid": "6b67105f4837a6143a4134f192c17987", "score": "0.58617103", "text": "private static float tock(){\r\n\t\treturn (System.currentTimeMillis() - startTime) / 1000.0f; \r\n\t}", "title": "" }, { "docid": "2f58068a9f88c5761058a5931443adf6", "score": "0.5855652", "text": "public static void main(String[] args) {\n long start = System.nanoTime();\n System.out.println(\"Start: \" + start);\n\n // Just do some a bit long process calculating the total value\n // of even number from zero to 10000\n int totalEven = 0;\n for (int i = 0; i < 10000; i++) {\n if (i % 2 == 0) {\n totalEven = totalEven + i;\n }\n }\n\n // Get the end time of the process\n long end = System.nanoTime();\n System.out.println(\"End : \" + end);\n\n long elapsedTime = end - start;\n\n // Show how long it took to finish the process\n System.out.println(\"The process took approximately: \"\n + elapsedTime + \" nano seconds\");\n }", "title": "" }, { "docid": "94870dcb13278eb4ae1755431b438087", "score": "0.58444995", "text": "public static void main(String[] args) {\n\t\tlong a = System.currentTimeMillis();\n\t\tfor (int i = 0; i < 10000; i++) {\n//\t\t\tfloat ok = nearestPoint.calculateDistance();\n\t\t\tdouble[] ok = NearestPoint.getNearestPoint(100, 0, 5000, 0, i, 1);\n\t\t\tSystem.out.println(\"the nearest distance is :\" + ok[0]+\" \"+ ok[1]);\n\t\t}\n\t\tSystem.out.println(System.currentTimeMillis()-a);\n\t}", "title": "" }, { "docid": "33d7ee60f138495e7d1c5ee61a70d244", "score": "0.5842643", "text": "public static void main(String[] args) {\n\t\tTest t1 = new Test();\n\t\tSystem.out.println(\"me1 metohd byte stream\");\n\t\tlong start = System.currentTimeMillis();\n\t\tt1.me1();\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(end-start);\n\t\t\n\t\tSystem.out.println(\":::::::::::::::::::::::::::::\");\n\t\tSystem.out.println(\"me2 method byte[] stream\");\n\t\tstart = System.currentTimeMillis();\n\t\tt1.me2();\n\t\tend = System.currentTimeMillis();\n\t\tSystem.out.println(end-start);\n\t\t\n\t\tSystem.out.println(\":::::::::::::::::::::::::::::\");\n\t\tTest t2 = new Test();\n\t\tSystem.out.println(\"me3 method bufferd stream\");\n\t\tstart = System.currentTimeMillis();\n\t\tt2.me3();\n\t\tend = System.currentTimeMillis();\n\t\tSystem.out.println(end-start);\n\t\tSystem.out.println(\":::::::::::::::::::::::::::::\");\n\t\tSystem.out.println(\"me33 method bufferd byte[] stream\");\n\t\tstart = System.currentTimeMillis();\n\t\tt2.me33();\n\t\tend = System.currentTimeMillis();\n\t\tSystem.out.println(end-start);\n\t\tSystem.out.println(\":::::::::::::::::::::::::::::\");\n\t\tSystem.out.println(\"me4 method bufferd byte[] stream\");\n\t\tstart = System.currentTimeMillis();\n\t\tt2.me4();\n\t\tend = System.currentTimeMillis();\n\t\tSystem.out.println(end-start);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9be72b0dabc61d4c213fe2eda21d96c1", "score": "0.5840245", "text": "public static void timeTests(String file) {\n \tArrayList<String> wordList = readFile(file);\n \t\n \t// Average time for insert\n \tlong startTime = System.nanoTime();\n \tTrends tr = new StudentTrends();\n \tfor (String w: wordList)\n \t\ttr.increaseCount(w, 1);\n \tlong endTime = System.nanoTime();\n \tdouble test1 = (double)((endTime -startTime)/1000000.0)/(double)wordList.size();\n \tSystem.out.println(\"Test 1: \" + test1 + \" milliseconds / insert\");\n \t\n \t\n \t// Average time for getCount\n \tstartTime = System.nanoTime();\n \tfor (String w: wordList)\n \t\ttr.getCount(w);\n \tendTime = System.nanoTime();\n \tdouble test2 = (double)((endTime - startTime)/1000000.0)/(double)wordList.size();\n \tSystem.out.println(\"Test 2: \" + test2 + \" milliseconds / getCount\");\n \t\n \t// Average time for getNthPopular();\n \tint n = tr.numEntries();\n \tstartTime = System.nanoTime();\n \tfor (int i = 0; i < n; i++)\n \t\ttr.getNthPopular(i);\n \tendTime = System.nanoTime();\n \tdouble test3 = (double)((endTime - startTime)/1000000.0)/(double)n;\n \tSystem.out.println(\"Test 3: \" + test3 + \" milliseconds / getNthPopular\");\n \t\n \t// Average time per operation when mixing operations\n \ttr = new StudentTrends();\n \tstartTime = System.nanoTime();\n \tn = 0;\n \tfor (int i=0; i < wordList.size(); i++) {\n \t\ttr.increaseCount(wordList.get(i),1);\n \t\tif (rng.nextDouble() < 0.2)\n \t\t\tn = tr.numEntries();\n \t\tif (rng.nextDouble() < 0.2) {\n \t\t\ttr.getNthPopular(rng.nextInt(Math.max(n,1)));\n \t\t}\n \t}\n \tendTime = System.nanoTime();\n \tdouble test4 = (endTime - startTime) / 1000000000.0;\n \tSystem.out.println(\"Test 4: \" + test4 + \" seconds (total)\");\n \t \n }", "title": "" }, { "docid": "66f646fcdda35579b4a6a6a18e3ef0d4", "score": "0.58267117", "text": "long m58950c() {\n return System.nanoTime();\n }", "title": "" }, { "docid": "e2ec67f3651618681f52259dc819fbb6", "score": "0.58149195", "text": "public static void main(String[] args) {\n\t\tLinkedList<Integer> linkedList = new LinkedList<Integer>();\n\t\tArrayList<Integer> arrayList = new ArrayList<Integer>();\n\t\t\n\t\tdoTimings(\"LinkedList\", linkedList);\n\t\tdoTimings(\"ArrayList\", arrayList);\n\t\t\n\t}", "title": "" }, { "docid": "46f14d45234d02cd4c2d884005c20a18", "score": "0.58137435", "text": "public static void main(String[] args) {\n long start = System.currentTimeMillis();\n Long sumOne = 0L;\n for(int i = 0; i < Integer.MAX_VALUE; i++) {\n sumOne += i;\n }\n long finish = System.currentTimeMillis();\n\n long st = System.currentTimeMillis();\n long sumTwo = 0L;\n for(int i = 0; i < Integer.MAX_VALUE; i++) {\n sumTwo += i;\n }\n long fin = System.currentTimeMillis();\n System.out.println(\"Long: \" + (finish - start));\n System.out.println(\"long: \" + (fin - st));\n }", "title": "" }, { "docid": "6ec0d9273dfb60f24b423c66d4fb2572", "score": "0.5809072", "text": "public static void main(String[] args) throws IOException {\n long start = System.nanoTime();\n method1(\"ABBA\");\n method1(\"ABBBA\");\n method1(\"12HHHHA\");\n System.out.println(System.nanoTime() - start);\n start = System.nanoTime();\n method2(\"ABBA\");\n method2(\"ABBBA\");\n method2(\"12HHHHA\");\n System.out.println(System.nanoTime() - start);\n start = System.nanoTime();\n method3(\"ABBA\");\n method3(\"ABBBA\");\n method3(\"12HHHHA\");\n System.out.println(System.nanoTime() - start);\n }", "title": "" }, { "docid": "3d0a35bfe292eaec2bb9a5b960d243bd", "score": "0.57889307", "text": "public static void comparison(){\n Stopwatch s = new Stopwatch();\n \n int initialN = 30000;\n addEndArrayList(s, initialN, NUM_DOUBLINGS_OF_N);\n addEndLinkedList(s, initialN, NUM_DOUBLINGS_OF_N);\n\n initialN = 2000;\n addFrontArrayList(s, initialN, NUM_DOUBLINGS_OF_N);\n initialN = 10000;\n addFrontLinkedList(s, initialN, NUM_DOUBLINGS_OF_N);\n\n initialN = 2000;\n removeFrontArrayList(s, initialN, NUM_DOUBLINGS_OF_N);\n initialN = 5000;\n removeFrontLinkedList(s, initialN, NUM_DOUBLINGS_OF_N);\n\n initialN = 10000;\n getRandomArrayList(s, initialN, NUM_DOUBLINGS_OF_N);\n initialN = 1000;\n getRandomLinkedList(s, initialN, NUM_DOUBLINGS_OF_N);\n\n initialN = 50000;\n getAllArrayListUsingIterator(s, initialN, NUM_DOUBLINGS_OF_N);\n getAllLinkedListUsingIterator(s, initialN, NUM_DOUBLINGS_OF_N);\n\n initialN = 100000;\n getAllArrayListUsingGetMethod(s, initialN, NUM_DOUBLINGS_OF_N);\n initialN = 1000;\n getAllLinkedListUsingGetMethod(s, initialN, NUM_DOUBLINGS_OF_N);\n\n }", "title": "" }, { "docid": "846e14b05d2211bd2618d4c6661ba2c8", "score": "0.5788117", "text": "public void run() {\n /*\n ArrayList<String> randoms = new ArrayList<>();\n for(int i = 0; i < 1000; i++){\n byte[] array = new byte[7]; // length is bounded by 7\n new Random().nextBytes(array);\n String generatedString = new String(array, Charset.forName(\"UTF-8\"));\n randoms.add(generatedString);\n }\n\n while(stress) {\n Collections.sort(randoms);\n Collections.shuffle(randoms);\n }\n */\n int counter = 0;\n // TODO could change this to !this.isInterupted()\n while(stress){\n counter++;\n }\n }", "title": "" }, { "docid": "bdbe97d805be17cf4f89da89ef5809c9", "score": "0.5783949", "text": "long getElapsed();", "title": "" }, { "docid": "139c4bab11a85c8160b599ced16c41e4", "score": "0.5781199", "text": "public double run() {\n\t\t// Initialisations\n\t\tdouble averageHitRatio = 0;\n\t\tint timesHit;\n\t\tint executionMarker;\n\n\t\t// Number of times run\n\t\tfor (int i = 0; i < runTimeNumber; i++) {\n\t\t\tPrint.print(\"-------------------------------------------------\"\n\t\t\t\t\t+ \"\\nTime|Index 0|Index 1|Index 2|Index 3|\"\n\t\t\t\t\t+ \" Run: \" + (i + 1)\n\t\t\t\t\t+ \"\\n-------------------------------------------------\\n\");\n\n\t\t\t// Clears memory\n\t\t\ttimesHit = 0;\n\t\t\texecutionMarker = 0;\n\t\t\tphysicalMemory = new Page[physicalMemorySize];\n\t\t\tloadVirtualMemeroy();\n\t\t\tmarker = 0;\n\n\t\t\t// First case printing\n\t\t\tPrint.printf(\"%2d: \", 0);\n\t\t\tPrint.memoryMap(physicalMemory);\n\t\t\tPrint.printf(\"Requesting: %2d\",\n\t\t\t\t\tvirtualMemory[0].getPhysicalAddress());\n\n\t\t\t// starts by loading the first page into memory\n\t\t\tphysicalMemory[executionMarker] = virtualMemory[0];\n\t\t\tPrint.printf(\" Loading: %2d to index: %d\\n\",\n\t\t\t\t\tphysicalMemory[executionMarker].getVirtualAddress(),\n\t\t\t\t\texecutionMarker);\n\t\t\t// Number of page references to run (minus the first above)\n\t\t\tfor (int j = 1; j < numberOfReferences; j++) {\n\t\t\t\tPrint.printf(\"%2d: \", j);\n\t\t\t\tPrint.memoryMap(physicalMemory);\n\n\t\t\t\t// finds the next page randomly\n\t\t\t\tint nextPageVirtualAddress = RandomPick.pickAPage(\n\t\t\t\t\t\tphysicalMemory[executionMarker].getVirtualAddress(),\n\t\t\t\t\t\tvirtualMemorySize);\n\n\t\t\t\t// Look for the page in memory\n\t\t\t\tPrint.printf(\"Requesting: %2d\", nextPageVirtualAddress);\n\t\t\t\tint indexOfPage = getPageIndex(nextPageVirtualAddress);\n\t\t\t\tif (indexOfPage == -1) {\n\t\t\t\t\texecutionMarker = replacePage(executionMarker,\n\t\t\t\t\t\t\tnextPageVirtualAddress, j);\n\n\t\t\t\t\tPrint.printf(\n\t\t\t\t\t\t\t\" Loading: %2d to index: %d\\n\",\n\t\t\t\t\t\t\tphysicalMemory[executionMarker].getVirtualAddress(),\n\t\t\t\t\t\t\texecutionMarker);\n\t\t\t\t} else {\n\t\t\t\t\t// Otherwise it was there. Increase the hit and set the\n\t\t\t\t\t// index marker.\n\t\t\t\t\tphysicalMemory[indexOfPage].hit();\n\t\t\t\t\tphysicalMemory[indexOfPage].setTimeLastUsed(j);\n\t\t\t\t\ttimesHit++;\n\t\t\t\t\texecutionMarker = indexOfPage;\n\t\t\t\t\tPrint.printf(\n\t\t\t\t\t\t\t\" Found: %2d at index: %d\\n\",\n\t\t\t\t\t\t\tphysicalMemory[executionMarker].getVirtualAddress(),\n\t\t\t\t\t\t\tindexOfPage);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Store a fraction of the hitRatio average.\n\t\t\taverageHitRatio += ((double) timesHit / (double) numberOfReferences)\n\t\t\t\t\t/ (double) runTimeNumber;\n\t\t}\n\t\t// return full average\n\t\treturn averageHitRatio;\n\t}", "title": "" }, { "docid": "e2148438a8bd58f53c5b0f29b88b39f9", "score": "0.5770411", "text": "public static void main(String[] args) throws Exception {\n PrintStream console = System.out;\r\n // currently set to run against corpuses 1-15\r\n for(int bytes = 100000; bytes <= 1500000; bytes += 100000) {\r\n //for(int bytes = 1; bytes <= 10; bytes += 1) {\r\n // dont try this at home - pray the gc gets cleared on each run so we can get a better idea of mem usage\r\n // this is kind of a joke, i don't have any evidence that it actually does anything\r\n System.gc();\r\n System.gc();\r\n System.gc();\r\n System.gc();\r\n System.gc();\r\n\r\n System.out.println(bytes / 100000 + \" out of \" + 20);\r\n PrintStream o = new PrintStream(new File(\"corpus_\" + bytes + \"_preprocessing_metrics_demo.txt\"));\r\n //PrintStream o = new PrintStream(new File(\"pattern_\" + bytes + \"_runtime_metrics.txt\"));\r\n System.setOut(o);\r\n String S = new Scanner(new File(\"corpus_\" + bytes + \".txt\")).useDelimiter(\"\\\\Z\").next();\r\n //String S = new Scanner(new File(\"corpus_\" + 1000000 + \".txt\")).useDelimiter(\"\\\\Z\").next();\r\n String P = new Scanner(new File(\"pattern.txt\")).useDelimiter(\"\\\\Z\").next();\r\n //String P = new Scanner(new File(\"pattern_\" + bytes + \".txt\")).useDelimiter(\"\\\\Z\").next();\r\n\r\n S = S.replaceAll(\"[^a-zA-Z]\", \"\").toUpperCase() + '$';\r\n P = P.replaceAll(\"[^a-zA-Z]\", \"\").toUpperCase();\r\n\r\n long startTime = System.currentTimeMillis();\r\n BetterSuffixArray bsa = new BetterSuffixArray(S);\r\n long endTime = System.currentTimeMillis();\r\n long totalTime = endTime - startTime;\r\n System.out.println(\"suffix array construction time: \" + totalTime);\r\n //startTime = System.currentTimeMillis();\r\n FMIndex fmIndex = new FMIndex(S, bsa);\r\n endTime = fmIndex.lConstructEndTime;\r\n totalTime = endTime - startTime;\r\n System.out.println(\"BWT construction time: \" + totalTime);\r\n\r\n fmIndex.waveletTreeSearchStartTime = System.currentTimeMillis();\r\n int[] result = fmIndex.backwardSearch(P, Mode.Wavelet);\r\n System.out.println(result[0] + \" \" + result[1]);\r\n if (result[0] > -1) {\r\n for (int i = result[0]; i <= result[1]; i++) {\r\n System.out.println(bsa.SA[i].index);\r\n //System.out.println(S.substring(bsa.SA[i].index));\r\n //System.out.println(S.substring(bsa.SA[i].index, bsa.SA[i].index + P.length()));\r\n }\r\n }\r\n fmIndex.waveletTreeSearchEndTime = System.currentTimeMillis();\r\n System.out.println(\"wavelet tree search time: \" + (fmIndex.waveletTreeSearchEndTime - fmIndex.waveletTreeSearchStartTime));\r\n\r\n fmIndex.boundaryrankSearchStartTime = System.currentTimeMillis();\r\n result = fmIndex.backwardSearch(P, Mode.Boundaryrank);\r\n System.out.println(result[0] + \" \" + result[1]);\r\n if (result[0] > -1) {\r\n for (int i = result[0]; i <= result[1]; i++) {\r\n System.out.println(bsa.SA[i].index);\r\n //System.out.println(S.substring(bsa.SA[i].index));\r\n //System.out.println(S.substring(bsa.SA[i].index, bsa.SA[i].index + P.length()));\r\n }\r\n }\r\n fmIndex.boundaryrankSearchEndTime = System.currentTimeMillis();\r\n System.out.println(\"boundaryrank search time: \" + (fmIndex.boundaryrankSearchEndTime - fmIndex.boundaryrankSearchStartTime));\r\n System.setOut(console);\r\n }\r\n }", "title": "" }, { "docid": "1a693dcee0ef978f24d76fd51a24c834", "score": "0.5767819", "text": "public static void start()\r\n\t{\r\n\t\t// measuring how much time takes nanoTime() method (called twice){\r\n\t\ttime1 = System.nanoTime();\r\n\t\ttime2 = System.nanoTime();\r\n\t\tdefaultDelay = time2 - time1;\r\n\t\t// }\r\n\t\t\r\n\t\ttime1 = System.nanoTime();\r\n\t}", "title": "" }, { "docid": "dca914019eaae337d60ae50f8276b31c", "score": "0.5766923", "text": "public static void timeIt() {\n\t\ttimeIt(\"\");\n\t}", "title": "" }, { "docid": "bb637f129580eb895329754abcdb35a8", "score": "0.57589483", "text": "public static void main(String[] args)\r\n\t{\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\tString result = \"\";\r\n\t\tfor (int i = 0; i < 50000; i++)\r\n\t\t{\r\n\t\t\tresult += \"hello\";\r\n\t\t}\r\n\t\tlong endTime = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Time taken for string concatenation using + operator : \" + (endTime - startTime) + \" milli seconds\");\r\n\t\t// Test the String Concatenation using StringBuffer\r\n\t\tlong startTime1 = System.currentTimeMillis();\r\n\t\tStringBuffer result1 = new StringBuffer(250000);\r\n\t\tfor (int i = 0; i < 50000; i++)\r\n\t\t{\r\n\t\t\tresult1.append(\"hello\");\r\n\t\t}\r\n\t\tlong endTime1 = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Time taken for string concatenation using StringBuffer : \" + (endTime1 - startTime1) + \" milli seconds\");\r\n\t}", "title": "" }, { "docid": "e8fd6b134ad9e32c41043097d8a632fc", "score": "0.57544786", "text": "@Override\n\tpublic void accelerate() \n\t{\n\t\tSystem.out.println(this.getClass().getSimpleName() + \" is INCREASING speed!\");\n\t}", "title": "" }, { "docid": "f4a61347a661d0a59f6814c345ae2b87", "score": "0.57539827", "text": "public static void main(String[] args) throws Exception {\n int[] sizes = new int[]{512, 1024, 2048, 4096};\n String runtimeBubbleSort = \"\";\n String runtimeMergeSort = \"\";\n String runtimeQuickSort = \"\";\n String inputSize = \"\";\n for (int s : sizes) {\n inputSize += s + \",\";\n int[] array = generateRandomly(s);\n System.out.println(\"\\n*** TEST WITH ARRAY SIZE \" + s + \" ***\");\n // Test BubbleSort\n System.out.println(\"\\nI.BubbleSort\");\n int[] bsTarget = array.clone();\n // start measuring runtime\n long startTime = System.nanoTime();\n int[] bsResult = BubbleSort.bubbleSort(bsTarget);\n // end measuring runtime\n long endTime = System.nanoTime();\n runtimeBubbleSort += (endTime - startTime) + \",\";\n checkSorted(bsResult);\n printResult(bsResult);\n\n // Test MergeSort\n System.out.println(\"\\nII.MergeSort\");\n int[] msTarget = array.clone();\n // start measuring runtime\n startTime = System.nanoTime();\n int[] msResult = MergeSort.mergeSort(msTarget);\n // end measuring runtime\n endTime = System.nanoTime();\n runtimeMergeSort += (endTime - startTime) + \",\";\n checkSorted(msResult);\n printResult(msResult);\n\n // Test QuickSort\n System.out.println(\"\\nIII.QuickSort\");\n int[] qsTarget = array.clone();\n // start measuring runtime\n startTime = System.nanoTime();\n int[] qsResult = QuickSort.quickSort(qsTarget, 0, qsTarget.length - 1);\n // end measuring runtime\n endTime = System.nanoTime();\n runtimeQuickSort += (endTime - startTime) + \",\";\n checkSorted(qsResult);\n printResult(qsResult);\n\n }\n System.out.println(\"Summary:\");\n System.out.println(\"For input size is: \" + inputSize);\n System.out.println(\"Runtime (nanoseconds) of BubbleSort is: \" + runtimeBubbleSort);\n System.out.println(\"Runtime (nanoseconds) of MergeSort is: \" + runtimeMergeSort);\n System.out.println(\"Runtime (nanoseconds) of QuickSort is: \" + runtimeQuickSort);\n }", "title": "" }, { "docid": "ddb5aee4f3a25b3175c6bc16796e8fa3", "score": "0.5742064", "text": "public void tic()\n {\n startTime = System.nanoTime();\n }", "title": "" }, { "docid": "eb2c969d5cdfbc2ff4ef1df235b94bbe", "score": "0.5738766", "text": "@Test\n\tpublic void testSpeedOnFullPDB() {\n\t\tlong start = System.currentTimeMillis();\n\t\tDistanceTablesBuilder.getMatchesInRange(\n\t\t\t\tDistanceTableSerializer.deserialize(Element.Na, Element.N),\n\t\t\t\t1.7, 8);\n\t\tlong stop = System.currentTimeMillis();\n\n\t\tassertTrue(stop - start < 1000);\n\t}", "title": "" }, { "docid": "0f185a43301631a91085f9c1f89b7581", "score": "0.57248354", "text": "public long mo18570b() {\n return System.nanoTime();\n }", "title": "" }, { "docid": "c8cce17056d76567ff2e7d7410e15027", "score": "0.57244575", "text": "@Test\r\n public void whenItemsAddedSpeedCollectionThenInsertionTimeLess() {\r\n message(\"Time adding SpeedSet elements: \");\r\n long startSpeedSetTime = System.nanoTime();\r\n final int expectedSize = 999;\r\n for (int index = 0; index < expectedSize; index++) {\r\n testSpeedSet.add(index);\r\n }\r\n long finishSpeedSetTime = System.nanoTime();\r\n System.out.println(String.format(\"Adding : %s ms\", (finishSpeedSetTime - startSpeedSetTime)));\r\n assertThat(testSpeedSet.sizeContainer(), is(999));\r\n\r\n }", "title": "" }, { "docid": "24806112470b0212133f0cabb27a854b", "score": "0.57211095", "text": "boolean hasSlowFlag();", "title": "" }, { "docid": "1840709239ecbe3e516a63ad025ac8f8", "score": "0.57192063", "text": "public static void main(String[] args) {\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\tDigitFactorials df = new DigitFactorials();\r\n\t\tdf.buildSum();\r\n\t\tlong end = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"result is: \"+ df.sum+\"; used \"+(end - start)+\"ms\");\r\n\t}", "title": "" }, { "docid": "afa0f0bf609c0639504bb1f8314118c8", "score": "0.5718452", "text": "private void doSlowWork(int id)\n {\n KmTimer t = KmTimer.run(\"doSlowWork-\" + id);\n\n double pi = Math.PI;\n double d = pi;\n\n int n = 1000000;\n for ( int i = 0; i < n; i++ )\n d = Math.sqrt(Math.pow(d, d));\n\n t.print();\n }", "title": "" }, { "docid": "3f7246e2a062afb7d2e08737a9519403", "score": "0.57093805", "text": "public void printPerformanceTest(ArrayList<City> cityArrayList){\n Runtime runtime = Runtime.getRuntime();\n // Run the garbage collector\n runtime.gc();\n long startTime = System.nanoTime();\n cities = cityArrayList;\n List<City> list = new ArrayList<>();\n list.add(cities.get(0));// tu zmienic w razie zmiany miasta\n\n State state = new State(list,0,0);\n stateList.add(state);\n potomstwo(stateList.get(0));\n\n while (!stateList.isEmpty()){\n potomstwo(stateList.get(0));\n }\n\n long elapsedTime = System.nanoTime() - startTime;\n System.out.println(\"Czas:\"+elapsedTime);\n\n // Get the Java runtime\n\n // Calculate the used memory\n long memory = runtime.totalMemory() - runtime.freeMemory();\n System.out.println(\"Used memory is bytes: \" + memory);\n System.out.println(\"Used memory is megabytes: \"\n + bytesToMegabytes(memory));\n\n }", "title": "" }, { "docid": "91575a5659118f5dcad5c17527c528dc", "score": "0.57026476", "text": "private static void tick(){ \r\nstartTime = System.nanoTime();\r\n}", "title": "" }, { "docid": "3a0d4b5ebdac2280a9951bfded0c3af6", "score": "0.5700644", "text": "public static void main(String[] args){\n getOddNumbers2(100000000); // Time elapsed : 17985\r\n }", "title": "" }, { "docid": "13ed55820adee1d3ae4a98c3e5ac5fb2", "score": "0.5694643", "text": "public abstract void preencher();", "title": "" }, { "docid": "d9b94657f20ad815f33e793380bb30e8", "score": "0.56834716", "text": "public int getSpeedup() {\r\n\t\treturn speedup;\r\n\t}", "title": "" }, { "docid": "70c84a29d7af4471921d12f06cc1eefd", "score": "0.5680495", "text": "public static void main(String[] args) {\n\n List arrayList = new ArrayList<>();\n TreeSet treeSet = new TreeSet<>();\n\n System.out.println(\"Filling our structures...\");\n\n for(int i = 0; i < 1000000; i++){\n arrayList.add(i);\n treeSet.add(i);\n }\n\n elapsedArrayList(arrayList);\n\n }", "title": "" }, { "docid": "269d838a535cd14064713ea8f42998ce", "score": "0.56733465", "text": "long measureAlgorithmTimeMillis(int row,int column);", "title": "" }, { "docid": "835460508d266b4ca66145c19e4e1a83", "score": "0.56567276", "text": "public BasicTestBench()\n {\n }", "title": "" }, { "docid": "8cce2ad6d1ca0e8f7309ff333611aafd", "score": "0.56548357", "text": "public static void main(String[] args) {\n\t\tList<Integer> myList = new LinkedList<Integer>();\n\t\tfor (int i = 0; i < 100000; i++) {\n\t\t\tmyList.add(i);\n\t\t}\n\t\t// ------------------------------------------------\n\n\t\tlong advanced_timeElapsed, iterating_timeElapsed, simple_timeElapsed;\n\t\tlong first = System.nanoTime();\n\n\t\tfor (Integer i : myList) {\n\t\t\tInteger b = i;\n\t\t}\n\t\tlong end = System.nanoTime();\n\t\tadvanced_timeElapsed = end - first;\n\t\tSystem.out.format(\"Time for Advanced for loop:\\t\\t%10d\", advanced_timeElapsed);\n\t\tfirst = System.nanoTime();\n\t\tIterator<Integer> it = myList.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tInteger b = it.next();\n\t\t}\n\t\tend = System.nanoTime();\n\t\titerating_timeElapsed = end - first;\n\t\tSystem.out.format(\"\\nTime for Iterating Loop:\\t\\t%10d\", iterating_timeElapsed);\n\t\tfirst = System.nanoTime();\n\t\tint counter = 0;\n\t\tint size = myList.size();\n\t\twhile (counter < size) {\n\t\t\tmyList.get(counter);\n//\t\t\tInteger b = myList.get(counter);\n\t\t\tcounter++;\n\t\t}\n\t\tend = System.nanoTime();\n\t\tsimple_timeElapsed = end - first;\n\t\tSystem.out.format(\"\\nTime for Simple Loop:\\t\\t\\t%10d\", simple_timeElapsed);\n\n\t}", "title": "" }, { "docid": "57b511e20cd5e0cd546f68c21d4cbe35", "score": "0.5653947", "text": "@Test\r\n public void performanceTest() {\r\n // ensure empty transactions database\r\n List<Transaction> startingTransactions = controller.getTransactions();\r\n if (startingTransactions.size() > 0) {\r\n fail(\"Transactions already existed in the database before test\");\r\n }\r\n\r\n // measure create performance\r\n long startCreateTime = System.nanoTime();\r\n for (int i = 0; i < CREATE_N_TRANSACTIONS; i++) {\r\n createTestTransaction();\r\n }\r\n\r\n long elapsedCreateTime = System.nanoTime() - startCreateTime;\r\n logElapsedTime(\"create \" + CREATE_N_TRANSACTIONS + \" transactions\", elapsedCreateTime);\r\n\r\n // measure query performance\r\n long startQueryTime = System.nanoTime();\r\n List<Transaction> createdTransactions = controller.getTransactions();\r\n long elapsedQueryTime = System.nanoTime() - startQueryTime;\r\n if (createdTransactions.size() != CREATE_N_TRANSACTIONS) {\r\n fail(\"Did not create all \" + CREATE_N_TRANSACTIONS + \" transactions\");\r\n }\r\n logElapsedTime(\"query \" + CREATE_N_TRANSACTIONS + \" transactions\", elapsedQueryTime);\r\n }", "title": "" }, { "docid": "eed4848acfd4663745da4c93249cb97a", "score": "0.5650248", "text": "public static void main(String[] args)\r\n {\r\n// // for benchmarking\r\n// long startTime = System.nanoTime();\r\n// String searchTerm = \"Business+Analyst\";\r\n// ResumeScraper resumeScraper = new ResumeScraper(\"test\");\r\n// resumeScraper.getResumeInfo(searchTerm);\r\n// long endTime = System.nanoTime();\r\n// System.out.println(endTime - startTime);\r\n }", "title": "" }, { "docid": "81581ca918d0c34d61fd9f973e2a3f73", "score": "0.5646199", "text": "public static void testAlgo(int sample){\n\t\tint[] timeArray = new int[sample];\n\t\tint[] data = new int[sample];\n\t\tfor(int i=0;i<sample;i+=1000){ \n\t\t\tSystem.out.println(i + \" \" + iSort(generate(i, 1000)));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "e4243507b135b9338431fdc521e768cd", "score": "0.56445146", "text": "private void testMethodsForPerformance(int[] array) {\n PerformanceTest ptSequential = new PerformanceTest() {\n @Override\n public void codeToExecute() {\n //Change this section to test searches of elements in different positions in the array\n int searchElement = getSearchElement(mc.position(), array);\n mc.sequentialSearch(array, searchElement);\n }\n };\n PerformanceTest ptBinary = new PerformanceTest() {\n @Override\n public void codeToExecute() {\n int searchElement = getSearchElement(mc.position(), array);\n mc.binarySearch(array, searchElement);\n }\n };\n PerformanceTest ptCustom = new PerformanceTest() {\n @Override\n public void codeToExecute() {\n int searchElement = getSearchElement(mc.position(), array);\n mc.customSearch(array, searchElement);\n }\n };\n PerformanceTest ptStandardBinary = new PerformanceTest() {\n @Override\n public void codeToExecute() {\n int searchElement = getSearchElement(mc.position(), array);\n MainTester.this.searcher.binarySearch(array, searchElement);\n }\n };\n outputLine(\"\"); //space\n double percentage;\n percentage = testAgainst(ptSequential, ptStandardBinary);\n outputLine(\"Sequential Search time was \" + percentage + \"% of \" + \"Standard Binary Search time.\");\n percentage = testAgainst(ptBinary, ptStandardBinary);\n outputLine(\"Binary Search time was \" + percentage + \"% of \" + \"Standard Binary Search time.\");\n percentage = testAgainst(ptCustom, ptStandardBinary);\n outputLine(\"Custom Search time was \" + percentage + \"% of \" + \"Standard Binary Search time.\");\n }", "title": "" }, { "docid": "1a391fe98b974ff59420c384265d0ced", "score": "0.56304806", "text": "public static void main(String[] args) {\n\t\tlong start = System.currentTimeMillis();\n\t\tFastScanner fs = new FastScanner(System.in);\n\t\tint threadsNu = (int) fs.nextInt();\n\t\tint opNu = (int) fs.nextInt();\n\t\tlong[] op = new long[opNu];\n\t\tfor (int i = 0; i < opNu; i++) {\n\t\t\top[i] = fs.nextInt();\n\t\t}\n\t\tprocess(op, threadsNu);\n\t\t\n\t\tlong end = System.currentTimeMillis();\n\t System.out.println((end - start) + \" ms\");\n\t}", "title": "" }, { "docid": "c508f484f798d0556680628079c91b8e", "score": "0.56273717", "text": "@Test\n public void AliceMatchTimeTestBasic() {\n long tStart = System.currentTimeMillis();\n try {\n URL z = new URL(\"http://www.umich.edu/~umfandsf/other/ebooks/alice30.txt\");\n WordSorter test = new WordSorter();\n String y = test.match(z, \"al\");\n } catch (MalformedURLException e) {\n System.out.println(\"Not a valid URL!\");\n }\n long tEnd = System.currentTimeMillis();\n System.out.println(tEnd - tStart);\n }", "title": "" }, { "docid": "2fed980798ff0b695a1e2e17195cf725", "score": "0.5619215", "text": "private static void doTimings(String type, List<Integer> list) {\n\t\t\n\t\t//adding items to the end of list\n//\t\tlong startE = System.currentTimeMillis();\n//\t\t\n//\t\tfor(int i=0; i<1E5; i++) {\n//\t\t\tlist.add(i);\n//\t\t}\n//\t\t\n//\t\tlong endE = System.currentTimeMillis();\n//\t\t\n//\t\tSystem.out.println(\"Time taken: \" + (endE-startE) + \" ms for \" + type + \" while adding items to end of list\");\n\t\t\n\t\t\n\t\t//adding to the end of the list\n\t\tlong startB = System.currentTimeMillis();\n\t\t\n\t\tfor (int i=0; i<1E5; i++) {\n\t\t\tlist.add(list.size(), i);\n\t\t}\n\t\t\n\t\tlong endB = System.currentTimeMillis();\n\t\t\n\t\tSystem.out.println(\"Time taken: \"+ (endB-startB) + \" ms for \" + type + \" while adding item to the end of list\");\n\t\t\n\t}", "title": "" }, { "docid": "aeef162974a537f654f0a531f7cf002a", "score": "0.5616543", "text": "@Test\n void testRuntime(){\n long startTime = new Date().getTime();\n int v = 100000, e = v*10;\n weighted_graph g = graphCreator(v,e);\n long endTime = new Date().getTime();\n double dt = (endTime-startTime)/1000.0;\n assertTrue(dt < 10);\n }", "title": "" }, { "docid": "192a95f739647384e05928b823a38252", "score": "0.5615585", "text": "public static void main(String[] args) {\r\n\t\tlong timeprobe;\r\n\t\tlong timeerasto;\r\n\t\tlong timeStart = System.currentTimeMillis();\r\n\t\tboolean[] primzahlen = probedivision(erzeugeArray(length));\r\n\t\tlong timeEnd = System.currentTimeMillis();\r\n\t\ttimeprobe = timeEnd - timeStart;\r\n\t\ttimeStart = System.currentTimeMillis();\r\n\t\tprimzahlen = erastothenes(erzeugeArray(length));\r\n\t\ttimeEnd = System.currentTimeMillis();\r\n\t\ttimeerasto = timeEnd - timeStart;\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"Laufzeit Erastothenes: \" + (timeerasto) + \" Millisek.\");\r\n\t\tSystem.out.println(\"Laufzeit Probedivision: \" + (timeprobe) + \" Millisek.\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e41711e868e66cb20a99f21bdf5ed188", "score": "0.5598007", "text": "public static void main(String[] args) {\n\r\n\t\tint number = 223242566;\r\n\r\n\t\t// Compare time differences\r\n\r\n\t\t// Using Optimized Algorithm\r\n\t\tSystem.out.println(System.currentTimeMillis());\r\n\t\tSystem.out.println(verifyPrime(number));\r\n\t\tSystem.out.println(System.currentTimeMillis());\r\n\r\n\t\t// Just running loop from 1 to number\r\n\t\tSystem.out.println(System.currentTimeMillis());\r\n\t\tSystem.out.println(verifyPrime1(number));\r\n\t\tSystem.out.println(System.currentTimeMillis());\r\n\t}", "title": "" }, { "docid": "85877b5792a00d5bd4da04f76a3ea34d", "score": "0.55774295", "text": "private void time () \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "34d120f83c40655d076d977d4674c2bf", "score": "0.5574143", "text": "public static void main(String[] args) throws IOException {\n double[] times = new double[5];\n Timer outerTimer = new Timer(); \n for (int i = 0; i < times.length; i++) {\n Timer t = new Timer();\n getPages(urls, 200);\n times[i] = t.check();\n }\n System.out.println(\"Times for testGetPages were: \");\n Arrays.stream(times).forEach(t -> System.out.println(String.format(\"%7f per 5x run of 23 pages.\", t)));\n System.out.println(outerTimer.check() + \" for all runs combined.\");\n\n //testGetPagesParallel\n times = new double[5];\n outerTimer = new Timer(); \n for (int i = 0; i < times.length; i++) {\n Timer t = new Timer();\n getPagesParallel(urls, 200);\n times[i] = t.check();\n }\n System.out.println(\"Times for testGetPagesParallel were: \");\n Arrays.stream(times).forEach(t -> System.out.println(String.format(\"%7f per 5x run of 23 pages.\", t)));\n System.out.println(outerTimer.check() + \" for all runs combined.\");\n }", "title": "" }, { "docid": "03adea9d0c881f49ab11367c91af9e99", "score": "0.5564595", "text": "public static double calcTiming(Beatmap b) {\n return 0;\r\n }", "title": "" }, { "docid": "9e0cd1a84d3006384716ac8bef83012d", "score": "0.55636656", "text": "public static void main(String[] args) {\n\t\tlong start = System.currentTimeMillis();\n//\t\tSystem.out.println(countWay(35));\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(\"运行时间:\" + (end-start) + \"毫秒\");\n\t\t\n\t\t\n\t\tlong start1 = System.currentTimeMillis();\n\t\tSystem.out.println(countwayDP(100));\n\t\tlong end1 = System.currentTimeMillis();\n\t\tSystem.out.println(\"运行时间:\" + (end1-start1) + \"毫秒\");\n\t\n\t}", "title": "" }, { "docid": "f22ef857f83096a9ae81d7c7be990dac", "score": "0.55510217", "text": "@Test\n public void AliceLengthTimeTestBasic() {\n long tStart = System.currentTimeMillis();\n try {\n URL z = new URL(\"http://www.umich.edu/~umfandsf/other/ebooks/alice30.txt\");\n WordSorter test = new WordSorter();\n float a = test.averageWordLength(z); //searches file, average word length\n } catch (MalformedURLException e) {\n System.out.println(\"Not a valid URL!\");\n }\n long tEnd = System.currentTimeMillis();\n System.out.println(tEnd - tStart);\n }", "title": "" }, { "docid": "7af64e561c97bc3d45dd29d1cf0d0fd6", "score": "0.5536355", "text": "private double testAgainst(PerformanceTest test1, PerformanceTest test2) {\n test1.run(ITERATIONS * 10); //warm up\n test2.run(ITERATIONS * 10);\n\n //average of 5\n double percentageTotal = 0;\n for(int i = 0; i < 5; i++) {\n long test1Time = 0;\n long test2Time = 0;\n int runs = 100;\n for(int j = 0; j < runs; j++) {\n if(Math.random() < 0.5) { //randomize the order\n test1Time += test1.run(ITERATIONS);\n test2Time += test2.run(ITERATIONS);\n } else {\n test2Time += test2.run(ITERATIONS);\n test1Time += test1.run(ITERATIONS);\n }\n }\n test1Time /= runs; //average\n test2Time /= runs; //average\n double percentage = (test1Time / (double)test2Time) * 100;\n percentageTotal += percentage;\n }\n percentageTotal /= 5; //average of the 5 tests\n return (int)(percentageTotal * 100 + 0.5) / 100.0; //round to 2 decimal places\n }", "title": "" }, { "docid": "a2d29afff3ad5e1ac3ed4db407bc3287", "score": "0.55351675", "text": "int measure();", "title": "" }, { "docid": "760ae47c2eec5917128264173baba180", "score": "0.5532275", "text": "public static void timeMeasurements(int timeMode, int n){\n double[] seqRadixTimes = new double[runs];\n double[] parRadixTimes = new double[runs];\n\n for(int i = 0; i < runs; i++){\n\n // Time sequential radixSort\n RadixSort rs = new RadixSort(useBits);\n int[] unsorted_seq = Oblig4Precode.generateArray(n, seed);\n long start = System.nanoTime();\n int[] sortedArray = rs.radixSort(unsorted_seq);\n long end = System.nanoTime();\n double runtime = ((end - start) / 1000000.0);\n seqRadixTimes[i] = runtime;\n System.gc();\n\n // Time parallel radixSort\n int[] unsorted_para = Oblig4Precode.generateArray(n, seed);\n ParallelRadixSort prs = new ParallelRadixSort(unsorted_para, k, useBits);\n start = System.nanoTime();\n prs.radixSort();\n end = System.nanoTime();\n runtime = ((end - start) / 1000000.0);\n parRadixTimes[i] = runtime;\n System.gc();\n\n }\n // Prints measurements for each run\n if(timeMode == 1){\n getMeasurements(seqRadixTimes, parRadixTimes);\n }\n // Prints median measurements\n if(timeMode == 2){\n getMedianMeasurements(seqRadixTimes, parRadixTimes, n);\n }\n }", "title": "" }, { "docid": "75240ed1d0b67ed8ff40c3ff1981ac5d", "score": "0.5530573", "text": "public static void main(String[] args) throws IOException {\n\t\tString[] str = new String[100000];\n\t\tString[] str2 = new String[100000];\n\t\t\n\t\tfor(int i = 0; i < 100000; i++) {\n\t\t\tstr[i] = UUID.randomUUID().toString();\n\t\t}\n\t\tinBloom = str;\n\t\n\t\tboolean no = false;\n\t\tfor(int i = 0; i < 100000; i++) {\n\t\t\tString g = UUID.randomUUID().toString();\n\t\t\tfor(int j = 0; j < 100000; j++) {\n\t\t\t\tif(str[i].equals(g)) {\n\t\t\t\t\tno = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr2[i] = g; \n\t\t}\n\t\toutBloom = str2;\n\t\ttest(100000,4);\n\t\ttest(100000,8);\n\t\ttest(100000,10);\n\t\ttest(100000,16);\n\n\t}", "title": "" }, { "docid": "357ea7c1c2dd33b21cea0207451cd0fe", "score": "0.5523618", "text": "Timing getTiming();", "title": "" }, { "docid": "e41863250ceff5ad4ce1cf440b6facc7", "score": "0.55227864", "text": "public Time_efficiency() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "60fda4237c13c1cd6ae629606bdc7ced", "score": "0.55176234", "text": "long getCpuTime();", "title": "" }, { "docid": "a50318492929d4ff675c727940c85cba", "score": "0.5515958", "text": "public int findFastestTime(String pointA, String pointB) {\n\t\t// TODO Add you code here\n\t\tint ft = 0;\n\n\t\treturn ft;\n\t}", "title": "" }, { "docid": "a3ca29fe56669d4963c23cbc59b89353", "score": "0.5515467", "text": "private long timingVertexGet() {\n \n // add 1000 vertices\n addVertices();\n \n // query time for get back\n DBConstraint c1 = conn.getConstraint(\"vertexType\", Condition.eq, new String(\"flow_5\") );\n List<DBConstraint> constraints = new LinkedList<DBConstraint>();\n constraints.add(c1);\n \n // benchmark\n long startTS = System.currentTimeMillis();\n \n List<String> ids = conn.getVertIDsByConstraints(constraints);\n \n long lastTS = System.currentTimeMillis();\n long delta = lastTS-startTS;\n \n assertEquals(100, ids.size());\n \n return delta;\n }", "title": "" }, { "docid": "0dd736ca1119236cdb5c8063669015e3", "score": "0.55129635", "text": "public static void main(String[] args) {\n\n LocalTime start = LocalTime.now();\n\n\n for (int i = 0; i < 1000000; i++) {\n System.out.println(); //iba na ukazku pre \"zamestnanie\" programu\n }\n\n LocalTime finish = LocalTime.now();\n\n System.out.println(\"start: \" + start);\n System.out.println(\"finish: \" + finish);\n\n System.out.println(finish.getSecond() - start.getSecond());\n\n\n LocalDateTime datumCas = LocalDateTime.now();\n System.out.println(datumCas);\n \n }", "title": "" }, { "docid": "0f52d9bbf7735aea64780563730ec318", "score": "0.55126643", "text": "public static void main(String [] args) throws Exception {\n int [] use = new int [] { 0,0,1,0 };\n\n\n Config cfg = new Config( 30, true, null );\n Config fast = new Config( 30, false, null );\n Config slow = new Config( 100, true, null );\n int nn = (1<<20) + 100;\n if (args.length > 0) nn = Integer.parseInt( args [0] ) * (1<<20) / 10 / 8;\n prf( \"size: %d\\n\", nn );\n\n SortType.Enum stype = qsort;\n\n TaskTimer.Runner[] tests = new TaskTimer.Runner[] {\n new Testd().set( new Sortj.doubles(), nn, null, stype ),\n new Testd().set( new Sortp.doubles(), nn, null, stype ),\n new Testd().set( new Sort.doubles(), nn, null, stype ),\n new Testd().set( new Sorto.doubles(), nn, null, stype ),\n new Testd().set( new Sorti.doubles(), nn, null, stype ),\n\n// new Testd().set( new Sorto.doubles(), nn, null, stype ),\n// new Testf().set( new Sorto.floats(), nn, null, stype ),\n// new Testl().set( new Sorto.longs(), nn, null, stype ),\n// new Testi().set( new Sorto.ints(), nn, null, stype ),\n// new TestString().set( new Sortp.Objects(), nn/4, null, merge ),\n// new TestString().set( new Sort.Objects(), nn/4, null, merge ),\n// new TestString().set( new Sortj.Objects(), nn/4, null, merge ),\n };\n TaskTimer.Runner[] testInts = new TaskTimer.Runner[] {\n new Testi().set( new Sortj.ints(), nn, null, stype ),\n new Testi().set( new Sort .ints(), nn, null, stype ),\n new Testi().set( new Sorto.ints(), nn, null, stype ),\n };\n\n \n if (false) {\n Base<String> sorter = new Sortp.Objects().set( randStrings( 100, 10 ) ).sort();\n for (String txt : sorter) prf( \"%s\\n\", txt );\n return;\n }\n if (false) {\n float [] vals = Rand.source.rand(new float[40],0,0);\n int ii;\n for (ii = 0; ii < vals.length; ii+=5) vals[ii] = -0.0f;\n for (ii = 3; ii < vals.length; ii+=13) vals[ii] = 0.0f;\n for (ii = 1; ii < vals.length; ii+=7) vals[ii] = Float.NaN;\n SortAux.sort2( vals, 0, vals.length );\n// java.util.Arrays.sort( vals );\n for (float val : vals) prf( \"%8.3f\\n\", val );\n return;\n }\n if (false) {\n double [] vals = Rand.source.rand(new double[440],0,0), val2 = Util.dup( vals );\n int [] order = Util.colon( vals.length );\n Base<Double> sorter = new Sorto.doubles().set( vals ).order(order,null).qsort();\n for (int ii = 0; ii < sorter.nn; ii++)\n prf( \"%5d %8.3f %8.3f %8.3f %5d\\n\", ii, vals[ii], val2[order[ii]], val2[ii], order[ii] );\n return;\n }\n// new TaskTimer().config(10).init( 2, 1, true, true ).autoTimer( tests );\n\n new TaskTimer().config(1).init( 4, 4, true, true ).autoTimer( tests );\n new TaskTimer().config(1).init( 4, 4, true, true ).autoTimer( testInts );\n }", "title": "" }, { "docid": "3b170229fdca46cb1aaf13bb46d2fec0", "score": "0.55112433", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tStopwatch stopwatch = Stopwatch.createStarted();\n\t\tThread.sleep(1000);\n\t\tstopwatch.stop(); // optional\n\t\tSystem.out.println(\"Time elapsed for myCall() is \"+ stopwatch.elapsed(TimeUnit.NANOSECONDS));\n\t}", "title": "" }, { "docid": "3b9511060a887572b5e06954074dafc5", "score": "0.5495767", "text": "private static void runExtraCredit() throws Exception\n {\n // Generate 100 random strings\n String[] strings = new String[100];\n for (int x = 0; x < 100; x++)\n strings[x] = UUID.randomUUID().toString();\n\n // Declare timing variables\n long startTime, endTime, aesTime, rsaTime;\n String temp;\n\n // Start AES test\n startTime = System.nanoTime();\n for (String message : strings)\n aesExtra(message);\n endTime = System.nanoTime();\n aesTime = endTime - startTime;\n\n // Start RSA test\n startTime = System.nanoTime();\n for (String message : strings)\n rsaExtra(message);\n endTime = System.nanoTime();\n rsaTime = endTime - startTime;\n\n // Print result\n System.out.println(\"AES is \" + (rsaTime / aesTime) + \" times faster than RSA\");\n }", "title": "" }, { "docid": "893e2eda0672e32836e84e42db121e4c", "score": "0.54839754", "text": "public static void main(String[] args) {\n HighlyTriangle h = new HighlyTriangle();\n long t1 = System.currentTimeMillis();\n System.out.println(h.triangleNumberWithDivisors(500));\n long t2 = System.currentTimeMillis();\n\n System.out.println(t2 - t1);\n }", "title": "" }, { "docid": "f1f99e49b21ffe34d5b0edfc8b653a14", "score": "0.54804677", "text": "@Test\n public void testTimingUniform() {\n System.err.println(\"Testing uniform generator\");\n System.err.println(\"=========================\");\n DataGenFactory fact = new DataGenFactory() {\n public DataGenerator make(double param) {\n UniformDataGenerator gen = new UniformDataGenerator();\n gen.init(0, 8);\n return gen;\n }\n };\n testTiming(fact, 128);\n testTiming(fact, 1024);\n }", "title": "" } ]
6481819233bfd72f5ac133a59f462a3e
3 ASSERT LOCATOR DEFINED .GETTEXT() ADDED
[ { "docid": "3b565e4d3a58d4e3c82511b7e115a8bf", "score": "0.0", "text": "public String getDecision() {\n\n return decisionLocator.getText();\n\n }", "title": "" } ]
[ { "docid": "285f42f89e192e32e591fedd1c187d2d", "score": "0.6440929", "text": "void hasText();", "title": "" }, { "docid": "e950692262f72cb4779d86e6355a7482", "score": "0.6430181", "text": "boolean hasText();", "title": "" }, { "docid": "e950692262f72cb4779d86e6355a7482", "score": "0.6430181", "text": "boolean hasText();", "title": "" }, { "docid": "e950692262f72cb4779d86e6355a7482", "score": "0.6430181", "text": "boolean hasText();", "title": "" }, { "docid": "e950692262f72cb4779d86e6355a7482", "score": "0.6430181", "text": "boolean hasText();", "title": "" }, { "docid": "e950692262f72cb4779d86e6355a7482", "score": "0.6430181", "text": "boolean hasText();", "title": "" }, { "docid": "e950692262f72cb4779d86e6355a7482", "score": "0.6430181", "text": "boolean hasText();", "title": "" }, { "docid": "1fcf87f8a3cdd650e896f7a63617f8b3", "score": "0.64254546", "text": "public void validatePageTextContains(String text) {\n\t\tAssert.assertTrue(\"Text Not Found : \" + text, getPageBody().getText().contains(text));\n\t}", "title": "" }, { "docid": "fcb55e1240c3715fd11b8805b577ece7", "score": "0.6385993", "text": "@Test\n public void testDisplayText2()\n {\n try\n {\n driver.findElement(By.xpath(\"//*[text()[contains(.,'Used for CS1632 Software Quality Assurance, taught by Bill Laboon')]]\"));\n }\n catch (NoSuchElementException nseex)\n {\n fail();\n }\n }", "title": "" }, { "docid": "39e5d101e996fc1da1b703e0c3788c09", "score": "0.63766277", "text": "public boolean doExtractText();", "title": "" }, { "docid": "efde1a942f0ec18b2d902fbd3b789254", "score": "0.62677246", "text": "boolean hasTextInfo();", "title": "" }, { "docid": "b284caa3735984dff95b9a1c127406bb", "score": "0.6171457", "text": "@Test\n public void testDisplayText1()\n {\n try\n {\n driver.findElement(By.xpath(\"//*[text()[contains(.,'Welcome, friend, to a land of pure calculation')]]\"));\n }\n catch (NoSuchElementException nseex)\n {\n fail();\n }\n }", "title": "" }, { "docid": "aa8243d588ed345fb45c9268355933bb", "score": "0.6104286", "text": "@Test\r\n\tpublic void textqueryAdmin() {\r\n\t}", "title": "" }, { "docid": "f274ef9c91184dd46a6c7e8d12e8e2f7", "score": "0.6067616", "text": "private boolean hasText(XWPFRun run) {\n return run.getText( 0 ) != null;\r\n\r\n\r\n }", "title": "" }, { "docid": "02ceeb5cb3fa320930b98d82b51fc981", "score": "0.60350955", "text": "@Test\n\tpublic void testSearchStringOfWords(){\n\t\tCommand result = tester.parse(\"search homework for CS2103\");\n\t\tassertEquals(\"search\", result.getCommand());\n\t\tassertEquals(\"homework for CS2103\", result.getSearchOrStoragePath());\n\t}", "title": "" }, { "docid": "5992ddb8b270a40630791b132ff29616", "score": "0.60111535", "text": "@Then(\"I should see {string} in search results page\")\n\t public void i_should_see_in_search_results_page(String expText) {\n\t\t String actText=driver.findElement(By.xpath(searchResultHeading)).getText();\n\t\t Assert.assertTrue(actText.contains(expText));\n\t }", "title": "" }, { "docid": "97a9b9b3ae20a3c2130c8b401e3a28c3", "score": "0.59904945", "text": "void assertTextDisplayed(String expectedText);", "title": "" }, { "docid": "6960d482f59d2f2175b498326e934128", "score": "0.59550834", "text": "public boolean containsText(String text) throws Exception{\n\t\treturn VoodooUtils.iface.wd.getPageSource().contains(text);\t\t\n\t}", "title": "" }, { "docid": "062ba14ca01170eb553357e5adf70a61", "score": "0.5901995", "text": "private void assertResultedTextIs(String expected) {\n\t\tassertThat(testArea.getText(), is(expected));\n\t}", "title": "" }, { "docid": "661fc140a8d5cc2367ca9934c70e19d5", "score": "0.5901449", "text": "public void testCompleteTextinOneGo(){\n\t\tgiven().\n\t\t\tget(\"http://thomas-bayer.com/sqlrest/CUSTOMER/10\").\n\t\tthen().\n\t\t\tbody(\"CUSTOMER.text()\", equalTo(\"10SueFuller135 Upland Pl.Dallas\")).log().all();\n\t}", "title": "" }, { "docid": "e64955d1f78917d64ab42818150b4a2f", "score": "0.58915025", "text": "java.lang.String getText();", "title": "" }, { "docid": "e64955d1f78917d64ab42818150b4a2f", "score": "0.58915025", "text": "java.lang.String getText();", "title": "" }, { "docid": "e64955d1f78917d64ab42818150b4a2f", "score": "0.58915025", "text": "java.lang.String getText();", "title": "" }, { "docid": "e64955d1f78917d64ab42818150b4a2f", "score": "0.58915025", "text": "java.lang.String getText();", "title": "" }, { "docid": "e64955d1f78917d64ab42818150b4a2f", "score": "0.58915025", "text": "java.lang.String getText();", "title": "" }, { "docid": "e64955d1f78917d64ab42818150b4a2f", "score": "0.58915025", "text": "java.lang.String getText();", "title": "" }, { "docid": "e72ee309b38d4781f9f7cc62293b3ef1", "score": "0.58305746", "text": "@Test\n public void testSanitizeText() throws Exception {\n assertEquals(\"download nlp dataset\", new TextHandler(null, \"download nlp dataset\", null).getTextMessage());\n }", "title": "" }, { "docid": "715dd924d07c4b652279d3f7e38cd598", "score": "0.5811181", "text": "double hasFullText( Location location,\n String fullTextQuery );", "title": "" }, { "docid": "f799da3261e13ec3f026f8ee3913b058", "score": "0.5800385", "text": "@Then(\"user see text {string}\")\n public void userSeeTextNextTo(String arg0)\n {\n String text = \"\";\n WaitForWebElement wait = new WaitForWebElement(driver);\n WebElementAttribute webElementAttribute = new WebElementAttribute(driver);\n wait.waitForElementByID(\"mat-error-0\",10);\n ArrayList<String> messages = new ArrayList<>();\n List<WebElement> elements = (List<WebElement>) driver.findElements(By.cssSelector(\"mat-error[id^='mat-error']\"));\n for (int i = 0; i < elements.size(); i++) {\n messages.add(elements.get(i).getText());\n }\n String messageString = String.join(\",\",messages);\n Pattern pattern = Pattern.compile(arg0, Pattern.CASE_INSENSITIVE);\n Matcher matcher = pattern.matcher(messageString);\n boolean matchFound = matcher.find();\n assertEquals(Boolean.TRUE,matchFound);\n }", "title": "" }, { "docid": "92938528271ede8ce48b3d7d0dbd6685", "score": "0.5797671", "text": "public boolean checkText(String before,String after,String searchval) throws Exception\n\t{\n\t\tboolean found=false;\n\t\t//String docpath=\"/web:window[@index='0']/web:document[@index='0']\";\n\t\tList <DOMElement> objs=(List <DOMElement>)web.document(docpath ).getElementsByTagName(\"body\");\n\t\tString entiretext=objs.get(0).getAttribute(\"innerText\");\n\t\t//String before=\"Internal Item Number\";\n\t\t//String after=\"Price\";\n\t\tint startind=0,endind=0;\n\t\tint flag=0;\n\t\t\n\t\twhile(true )\n\t\t{\n\t\t\tstartind=entiretext.indexOf(before,startind);\n\t\t\tendind=entiretext.indexOf(after,startind);\n\t\t\tshowDebug(startind);//debug\n\t\t\tshowDebug(endind);//debug\n\t\t\tif(startind<0 || endind<0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(searchval.equalsIgnoreCase(entiretext.substring(startind+before.length(),endind).trim()))\n\t\t\t{\n\t\t\t\tfound=true;\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t\tshowDebug(entiretext.substring(startind+before.length(),endind).trim());//debug\n\t\t\n\t\t\tstartind++;\n\t\t}\n\t\t\n\t\treturn found;\n\t}", "title": "" }, { "docid": "88607f6d3d5bcd17722416324666431c", "score": "0.5791137", "text": "@Test\r\n\tpublic void pageNavigatedToWomenTab()\r\n\t{\r\n\t\tString str=hp.getTxtWomentitle();\r\n\t\tAssert.assertTrue(hp.getTxtWomentitle().contains(\"Women\"), \"The page navigated wrongly\");\r\n\t}", "title": "" }, { "docid": "607959734a0511368a477dcec43e3e9e", "score": "0.5787842", "text": "public void assertSearchInputHasLabelText() {\n String expectedLabel = \"\";\n if (Platform.getInstance().isMW()) {\n expectedLabel = \"Искать в Википедии\";\n } else {\n expectedLabel = \"Search Wikipedia\";\n }\n this.assertElementHasText(SEARCH_INIT_TEXT,\n expectedLabel, \"Search wikipedia input has not label text 'Search Wikipedia'\");\n }", "title": "" }, { "docid": "e3adf7f05307862d5331ddc33f91fef4", "score": "0.5768041", "text": "boolean hasAlternateText();", "title": "" }, { "docid": "9dfba23430a3c710ff77d67f2e2791ad", "score": "0.5765438", "text": "@Test(priority = 3)\r\n\r\n\tpublic void searchWithoutEnteringKeywordTest() {\r\n\r\n\t\tdriver.navigate().to(Constants.HOME_URL);\r\n\t\tHomePage.clickSearchButton(driver);\r\n\r\n\t\tresult = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Constants.ERROR_MSSG_XPATH)));\r\n\t\tString expectedResult = Constants.ERROR_MSSG_TXT;\r\n\t\tAssert.assertEquals(result.getText().contains(expectedResult), true);\r\n\t}", "title": "" }, { "docid": "4733eafb0573387aac670c6ab8a128cc", "score": "0.57639456", "text": "java.lang.String getCorrectedText();", "title": "" }, { "docid": "ffbe7947f9efa564847e4eb7faed32dc", "score": "0.5727239", "text": "boolean canDisplayText(String address);", "title": "" }, { "docid": "ed85c303a4e8b5f0ebc51dc238e510ee", "score": "0.57047707", "text": "public boolean verifyTextPresentErrMsg(String text) {\n\t\tboolean res=false;\r\n\t\ttry{\r\n\r\n\t\t\tString sText = driver.findElement(By.cssSelector(\"body\")).getText();\r\n\r\n\t\t\tif (sText.contains(text)){\r\n\t\t\t\tres=true;\r\n\t\t\t\t//reportStep(\"The text: \"+sText+\" contains the value :\"+text, \"PASS\");\r\n\t\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\tLog.error(e.getMessage());\r\n\t\t\t//reportStep(\"Unknown exception occured while verifying the content\", \"FAIL\");\r\n\t\t}\r\n\r\n\t\treturn res;\t\r\n\t}", "title": "" }, { "docid": "96a6ae4b127efe89609e01e101065d9e", "score": "0.5697299", "text": "@Then(\"^verify text as \\\"([^\\\"]*)\\\"$\")\n\t\tpublic void verify_text_as(String arg1) throws Throwable {\n\t\t\tString actual = cl.getTextFromElement();\n\t\t\t\tcl.assertResult(actual, arg1);\n\t\t}", "title": "" }, { "docid": "d1985ea2e758b51eb967484f9ff4c84b", "score": "0.5688086", "text": "void setText(){\n String str = inputText();\n if (str.matches(wordRegex)) { //checking for compliance with a given template\n this.text = str;\n }\n }", "title": "" }, { "docid": "03c22d75f5c3051f28deb365642615df", "score": "0.56746197", "text": "@Override\r\n\tpublic void getText(int paramInt1, int paramInt2, Segment paramSegment)\r\n\t\t\tthrows BadLocationException {\n\r\n\t}", "title": "" }, { "docid": "df78b59feeac44bfbe1532be022306eb", "score": "0.5659176", "text": "@Test\n public void testExtractPage01Paragraph02() {\n Paragraph paragraph = getParagraph(1, 2);\n\n String expectedText = \"A Quality Evaluation of Combined Search on a Knowledge Base and Text\";\n SemanticRole expectedRole = SemanticRole.TITLE;\n\n assertEquals(expectedText, paragraph.getText());\n assertEquals(expectedRole, paragraph.getSemanticRole());\n }", "title": "" }, { "docid": "26db79433212f9e17b414ca9cb4b12a0", "score": "0.56587124", "text": "@Test(expected = RuntimeException.class)\n public void test3(){\n \tString text = \"$reLLL( ghn)iog*\";\n //throw exception\n \tWordBreakTokenizer tokenizer = new WordBreakTokenizer();\n tokenizer.tokenize(text);\n\n }", "title": "" }, { "docid": "28925b6254b63d5a419f54d193fd998a", "score": "0.5652562", "text": "@Test\n public void wikiTest(){\n Assert.assertEquals(\"Search Wikipedia\", homePage.getSearchFieldText());\n }", "title": "" }, { "docid": "9fb9f9b56dfb4536385ec8f417b4d7ca", "score": "0.564466", "text": "@Test(priority = 9)\n public void assertTextOfMainHeaders() {\n Assert.assertEquals(homePage.getMainTitle(), mainTitle);\n Assert.assertEquals(homePage.getMainText(), mainText);\n }", "title": "" }, { "docid": "d5a1c362176fafba6cac39d44e3b2ee2", "score": "0.56398517", "text": "@Override\n\tpublic String getText() {\n\t\tSystem.out.println(\"gettext in chromedriver\");\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e67ae923ddc03a40ad84f4a57d867cb2", "score": "0.5608441", "text": "double hasFullText( Location location,\n String propertyName,\n String fullTextQuery );", "title": "" }, { "docid": "e3b1da9b049daabf370e4c041959e130", "score": "0.5589222", "text": "public java.lang.String getActualText(){\r\n return localActualText;\r\n }", "title": "" }, { "docid": "995563ebc374b90b746b597da36214df", "score": "0.5578177", "text": "@Test(priority = 13)\n public void assertTextSubHeader() {\n Assert.assertEquals(homePage.getSubHeader().getText(),subHeader);\n }", "title": "" }, { "docid": "47228e339e5706914f13fc344749734d", "score": "0.55754894", "text": "@Test\n\tpublic void testSearchOneWord(){\n\t\tCommand result = tester.parse(\"search homework\");\n\t\tassertEquals(\"search\", result.getCommand());\n\t\tassertEquals(\"homework\", result.getSearchOrStoragePath());\n\t}", "title": "" }, { "docid": "f8676745b644f6a079e19a5b4c94df19", "score": "0.55708396", "text": "@Test\n public void testExtractPage04Paragraph03() {\n Paragraph paragraph = getParagraph(4, 3);\n\n String expectedText = \"In the 2011 track [10], another semantic web dataset was used \"\n + \"(Sindice [11]). However, the number of participating teams was very low, and results \"\n + \"were disappointing compared to previous years.\";\n SemanticRole expectedRole = SemanticRole.BODY_TEXT;\n\n assertEquals(expectedText, paragraph.getText());\n assertEquals(expectedRole, paragraph.getSemanticRole());\n }", "title": "" }, { "docid": "74130399f209f047b8b1f89d50c12d2d", "score": "0.55683905", "text": "public void verifyPartialText1(String ele, String expectedText) \r\n\t{\n\t\tif(ele.contains(expectedText))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The Expected text is matched partially successfully\");\r\n\r\n\t\t}else\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The Expected text is not matched successfully\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "02de3bf46f0ce2f1561503917b6b31b6", "score": "0.5566347", "text": "public abstract @NotNull String getText();", "title": "" }, { "docid": "971f4f92ec3993e16f0b977be9624483", "score": "0.55653006", "text": "public void notApplicable( String text);", "title": "" }, { "docid": "6905e1196a73b8ec1c7af5a6adbbc9ad", "score": "0.5560726", "text": "public void testLex()\n\t{\n\t\tassertFormPresent( \"quickSearch\" );\n\t\tassertFormPresent( \"newTerm\" );\n\t\tassertFormPresent( \"defults\" );\n\t\tassertFormPresent( \"preferences\" );\n\t}", "title": "" }, { "docid": "b00f2daca7076705e985fa2d7c0f148c", "score": "0.5552633", "text": "public static void contains(String Resposne, String text)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tassertTrue(Resposne.contains(text));\r\n\t\t\ttest.log(LogStatus.PASS, \"String \"+ text + \" exist inside the overall text\");\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\ttest.log(LogStatus.FAIL,\"Error, see details: \" + e); \r\n\t\t\tfail(\"Error, see details: \" + e);\r\n\t\t}\r\n\t\tcatch (AssertionError e)\r\n\t\t{\r\n\t\t\ttest.log(LogStatus.FAIL,\"String \"+ text + \" not exist inside the overall text, see details: \" + e);\r\n\t\t\tfail(\"String \"+ text + \" not exist inside the overall text, see details: \" + e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bf9fe2fee5773607bcde71e3fbd35b05", "score": "0.55525434", "text": "@Test\r\n\tpublic void test_findMediaItemUrlsByText() {\n\t}", "title": "" }, { "docid": "09c29903dc1bb7c481d241288a2294f3", "score": "0.5548988", "text": "String getInitialText();", "title": "" }, { "docid": "a20dc55b5f0ac5539e0feff9d826a2ef", "score": "0.55489314", "text": "public void textParse(){\n\t\tgetStopword();\n\t\tgetKeyWord();\n\t}", "title": "" }, { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.5547579", "text": "String getText();", "title": "" }, { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.5547579", "text": "String getText();", "title": "" }, { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.5547579", "text": "String getText();", "title": "" }, { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.5547579", "text": "String getText();", "title": "" }, { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.5547579", "text": "String getText();", "title": "" }, { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.5547579", "text": "String getText();", "title": "" }, { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.5547579", "text": "String getText();", "title": "" }, { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.5547579", "text": "String getText();", "title": "" }, { "docid": "56852817b4a3646fb07d60d6fe0567fb", "score": "0.55414236", "text": "public abstract String getText();", "title": "" }, { "docid": "56852817b4a3646fb07d60d6fe0567fb", "score": "0.55414236", "text": "public abstract String getText();", "title": "" }, { "docid": "9f9dc07423028b79a1a5bcfe44074e0c", "score": "0.5539929", "text": "@Override\n\tpublic String test(String[] text) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "996479c51ec65b1d39364adc3d8fd84d", "score": "0.5519232", "text": "@Test\n\tpublic void shouldFindTheInjectStringStartPosition() throws UnsupportedEncodingException {\n\t\tboolean contain = XPathInjectionValidator.isContainsXPathInjectionCharacter(\"(abc)\");\n\t\t//Then the flag is true\n\t\tassertThat(contain, is(true));\n\t}", "title": "" }, { "docid": "9d04b85557fa30aa15914448989b6e4b", "score": "0.55167145", "text": "@Test\n public void textTest() {\n // TODO: test text\n }", "title": "" }, { "docid": "9d04b85557fa30aa15914448989b6e4b", "score": "0.55167145", "text": "@Test\n public void textTest() {\n // TODO: test text\n }", "title": "" }, { "docid": "a6e0d43091c2ef0eca0bfd71d77d83eb", "score": "0.55009663", "text": "@Test\n public void test2(){\n \tString text = \"informationinforTHOUGHTFULLYcopyrightwhatevercontactablewhatevergreen\";\n \tList<String> expected = Arrays.asList(\"information\", \"thoughtfully\", \"copyright\", \"whatever\", \"contact\", \"able\",\"whatever\", \"green\" );\n \t\n WordBreakTokenizer tokenizer = new WordBreakTokenizer();\n\n assertEquals(expected, tokenizer.tokenize(text));\n }", "title": "" }, { "docid": "6df0808f0e38ab1a31be19b0dc17b759", "score": "0.5496986", "text": "public void assertPopupContainsText(final String textToFind) {\r\n final String mainWindow = switchToNextWindow();\r\n assertElementExists(By.xpath(\"//*[text()[contains(.,'\" + textToFind + \"')]]\"),\r\n \"'\" + textToFind + \"' was not found in pop-up window.\");\r\n switchToWindow(mainWindow);\r\n }", "title": "" }, { "docid": "897313d2cfa50561ead283c45bfc24bb", "score": "0.54926544", "text": "public ExtraTextDetector() {\n }", "title": "" }, { "docid": "63b74b0d8a1bd09fc576c9d993862df8", "score": "0.5492339", "text": "@Override\r\n\tpublic String getText(int paramInt1, int paramInt2)\r\n\t\t\tthrows BadLocationException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "68f6039b637d31abe99a668027ebe7c9", "score": "0.547962", "text": "@Test\n public void testExtractPage08Paragraph05() {\n Paragraph paragraph = getParagraph(8, 5);\n\n String expectedText = \"1. Bast H, Bäurle F, Buchhold B, Haußmann E (2014) Semantic full-text \"\n + \"search with broccoli. In: SIGIR, ACM, pp 1265–1266\";\n SemanticRole expectedRole = SemanticRole.REFERENCE;\n\n assertEquals(expectedText, paragraph.getText());\n assertEquals(expectedRole, paragraph.getSemanticRole());\n }", "title": "" }, { "docid": "48c9fb07318cc231c12b22ec77e35334", "score": "0.54708415", "text": "void assertAnyElementHaveText(String logicalName, String expectedText);", "title": "" }, { "docid": "38c0e1b76e3c6ae0f467886bf87c63f3", "score": "0.54667705", "text": "protected abstract String textCorrection(String text);", "title": "" }, { "docid": "4ce68eba05eedf23447b7c56fbcf2816", "score": "0.5461682", "text": "public void text(String text);", "title": "" }, { "docid": "70eacfc3cf5a846b4e9e93bbbca88549", "score": "0.54543984", "text": "@Test\n public void testExtractPage04Paragraph01() {\n Paragraph paragraph = getParagraph(4, 1);\n\n String expectedText = \"The task remained hard, with the best system achieving an NDCG@R of 37% \"\n + \"and an R-Precision (P@10 was not reported that year) of 32% even for manually tuned \"\n + \"queries (and 30% for automatic runs).\";\n SemanticRole expectedRole = SemanticRole.BODY_TEXT;\n\n assertEquals(expectedText, paragraph.getText());\n assertEquals(expectedRole, paragraph.getSemanticRole());\n }", "title": "" }, { "docid": "e7b1352045a3382c479fe7cee3447001", "score": "0.54536223", "text": "public void verifySearchResults(String text) {\n Reporter.addStepLog(\"Verifying the search results for octopus real estate on search result page\"+searchResults+\"<br>\");\n verifyText(searchResults, text);\n log.info(\"Verifying the search results for octopus real estate on search result page\");\n }", "title": "" }, { "docid": "3e6b6c728976efe95cc92efe5db44e5b", "score": "0.5444067", "text": "public ResultOfInstruction checkPageContains(String text, WebDriver driver) {\r\n\r\n String result;\r\n String instruction = \"CheckPageContains \" + text;\r\n text = text.replaceAll(\"\\\"\", \"\");\r\n\r\n long start = System.currentTimeMillis();\r\n\r\n if (driver.getPageSource().contains(text)) {\r\n result = \"+\";\r\n } else {\r\n result = \"!\";\r\n }\r\n\r\n long finish = System.currentTimeMillis();\r\n long time = finish - start;\r\n\r\n return (new ResultOfInstruction(result, instruction, time));\r\n }", "title": "" }, { "docid": "56e3dd3fd5a3c089ec4da4c5111d221d", "score": "0.5439006", "text": "@Test\n public void testPhraseExtra() {\n assertU(adoc(\"content_payload\", \"Quick brown fox quick|extra\",\n \"id\", \"1\"));\n assertU(commit());\n assertU(optimize());\n\n HashMap<String,String> args = new HashMap<>();\n args.put(\"pl\", \"true\");\n\n TestHarness.LocalRequestFactory sumLRF = h.getRequestFactory(\"standard\", 0, 200, args);\n\n assertQ(\"Verify phrase tokens don't match outside quote\",\n sumLRF.makeRequest(\"\\\"quick brown\\\"\"),\n \"not(//arr[@name='quick']/lst/str[@name='payload'][.='extra'])\");\n }", "title": "" }, { "docid": "9b5b2bd951d24be43281fd28e0038be9", "score": "0.5435914", "text": "static void search(String pat, String txt, int q)\n\t {\n\t }", "title": "" }, { "docid": "e4296b3f01f59827cec3c2d2fcf6ed02", "score": "0.54171157", "text": "public void verifyTextByXpath(String xpath, String text){\r\n\t\ttry {\r\n\t\t\tString sText = driver.findElementByXPath(xpath).getText();\r\n\t\t\tif (sText.equalsIgnoreCase(text)){\r\n\t\t\t\treportStep(\"The text: \"+sText+\" matches with the value :\"+text, \"PASS\");\r\n\t\t\t}else{\r\n\t\t\t\treportStep(\"The text: \"+sText+\" did not match with the value :\"+text, \"FAIL\");\r\n\t\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\treportStep(\"Unknown exception occured while verifying the title\", \"FAIL\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ab58c6c7d69b590dff1d70b32ce9566d", "score": "0.54096687", "text": "public void verifyPartialText(WebElement ele, String expectedText) \r\n\t{\n\t\tif(ele.getText().contains(expectedText))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The Expected text is matched partially successfully\");\r\n\r\n\t\t}else\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The Expected text is not matched successfully\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "217704ef879686fcdb707874eeda0afc", "score": "0.5408061", "text": "@Test\n\tpublic void HomeHasCorrectPageUsedForMessage() throws Exception {\n\t\tassertEquals(\"Used for CS1632 Software Quality Assurance, taught by Bill Laboon\", driver.findElement(By.cssSelector(\"div.row > p.lead\")).getText());\n\t}", "title": "" }, { "docid": "f8c5716c29ad25ff6efd4afbe74c45fc", "score": "0.53981024", "text": "public boolean isTextDefinedFor(Language... lang);", "title": "" }, { "docid": "3296ab49d66f4ca52f8ef1c60dad70dd", "score": "0.5397749", "text": "public boolean hasTextLitOnly() {\n/* 626 */ return this.m_hasTextLitOnly;\n/* */ }", "title": "" }, { "docid": "e979e6e705ac7d132db9dc460db8378d", "score": "0.5396231", "text": "@Test\n void textFormat() {\n\n }", "title": "" }, { "docid": "3378b59220995b64101a45a7600c7f6b", "score": "0.5392425", "text": "@Test\n\tpublic void checkPageText(){\n\t\tdriver.get(\"localhost:3000/settings\");\n\t\t\n\t\tSettingsPage settingsPage = new SettingsPage(driver);\n\t\t\n\t\tAssertions.assertEquals(\"Inject demo content in the backend. Run this command only once!\", settingsPage.confirmationTitle());\n\t}", "title": "" }, { "docid": "cfada07ea85d435cc68d6ac7b0194ea2", "score": "0.53841555", "text": "public abstract CharSequence getText(int position);", "title": "" }, { "docid": "d72a79c101e64b835d0eb3449e1afa2b", "score": "0.5375223", "text": "public boolean verifyText() {\n return true;\n }", "title": "" }, { "docid": "5570c47cd9ff49dfd3df71a1c87e351f", "score": "0.536819", "text": "boolean isVisibleTextExistsCheckWithoutWait(String visibleText);", "title": "" }, { "docid": "1c5e40b77a405f191822da0d8a0738f8", "score": "0.53680146", "text": "public WebElement expText() {\r\n\t\treturn expectedText;\r\n\t}", "title": "" }, { "docid": "6df6c5a71785656179b8b83e57424995", "score": "0.5364665", "text": "@Test\n\tpublic void testLinearStringSearchExists() {\n\t\tAssert.assertTrue(LinearSearch.search(str, \"Oct\"));\n\t}", "title": "" }, { "docid": "b58003811bd0c075f9282225536b782c", "score": "0.53600067", "text": "public void testExtractFromTextPieces() throws Exception {\n \tStringBuffer textBuf = new StringBuffer();\n \t\n \tIterator textPieces = doc.getTextTable().getTextPieces().iterator();\n \twhile (textPieces.hasNext()) {\n \t\tTextPiece piece = (TextPiece) textPieces.next();\n\n \t\tString encoding = \"Cp1252\";\n \t\tif (piece.usesUnicode()) {\n \t\t\tencoding = \"UTF-16LE\";\n \t\t}\n \t\tString text = new String(piece.getRawBytes(), encoding);\n \t\ttextBuf.append(text);\n \t}\n \t\n \tStringBuffer exp = new StringBuffer();\n \tfor(int i=0; i<p_text.length; i++) {\n \t\texp.append(p_text[i]);\n \t}\n \tassertEquals(exp.toString(), textBuf.toString());\n }", "title": "" }, { "docid": "ba5a5df105dde7d3a869fe7df37ac966", "score": "0.5357668", "text": "private String editQuery(String text) {\n return textQuery;\n }", "title": "" }, { "docid": "3cc919bb3be59d264e5993729d2d45fe", "score": "0.53543067", "text": "public void mistake(String text);", "title": "" }, { "docid": "b4bcd6fbfaea34a824481f40572e01fb", "score": "0.5352318", "text": "public boolean hasText (boolean lookInSegments,\r\n \t\tboolean whiteSpacesAreText)\r\n \t{\r\n \t\tfor ( TextPart part : parts ) {\r\n \t\t\tif ( part.isSegment() ) {\r\n \t\t\t\tif ( lookInSegments ) {\r\n \t\t\t\t\tif ( part.getContent().hasText(whiteSpacesAreText) ) return true;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\telse {\r\n \t\t\t\tif ( part.getContent().hasText(whiteSpacesAreText) ) return true;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn false; // No text\r\n \t}", "title": "" } ]
1029ef7673258cc0cf14c3c316d2baae
Created by zsj on 2015/11/20 0020.
[ { "docid": "f1af34f9e1ed3463a99124d0d221df8c", "score": "0.0", "text": "public interface GirlApi {\n\n @GET(\"data/福利/10/{page}\")\n Observable<Result<GirlData>> fetchPrettyGirl(@Path(\"page\") int page);\n}", "title": "" } ]
[ { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.656217", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "f777356e2cd2fecd871f35f7e556fda8", "score": "0.6461059", "text": "public void mo3640e() {\n }", "title": "" }, { "docid": "a55a150557f80abcbd733ee3162b0661", "score": "0.62139237", "text": "private void m18301a() {\n }", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.6201855", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.6201855", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "432a53d7cc7bff50c3cce7662418fe22", "score": "0.61780596", "text": "private static void daelijeom() {\n\t\t\n\t}", "title": "" }, { "docid": "609ec2ff060d9d4cb0276468f482734d", "score": "0.60447615", "text": "public void mo89673a() {\n }", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.5972478", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.59122217", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "619a28ba3c7707bdf8bb1451d5c3d12b", "score": "0.5816862", "text": "public void mo25069a() {\n }", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.58160603", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "3211287bc24304a8ca2975647e8a262e", "score": "0.5803056", "text": "public void mo1702b() {\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.57787615", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "5314003d8592219f71035b81985fabc0", "score": "0.5740302", "text": "@Override\n\tpublic void roule() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.57397896", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "2bcac1bab4eaa6c9cc4cb7e33c684cef", "score": "0.5739596", "text": "public void mo1691a() {\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.57391804", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "b8cd427648ea50c94f93c47d407d10a0", "score": "0.5726276", "text": "public void mo3639d() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5722134", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5684139", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "359987993ad84757f9d7a12eaf38d2d7", "score": "0.56821555", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "b08f4638320db7d0a618ea28376deec3", "score": "0.56524783", "text": "private static void atrim() {\n }", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.5652283", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "7721677c9c247497df61f02707d2c6d5", "score": "0.5627791", "text": "void mo15172af();", "title": "" }, { "docid": "feb1a9485d06df38283881186fb528a9", "score": "0.5627262", "text": "@Override\n \tprotected void initialize() {\n \n \t}", "title": "" }, { "docid": "0b06f1c2066a7ed1df417a1383204e17", "score": "0.5617542", "text": "Internal internal();", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5615366", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5615366", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5615366", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5615366", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5615366", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5615366", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5615366", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5615366", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e98e1f8ddb7a94a5d95c29c94232f737", "score": "0.5594395", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.55943304", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "117880abb5124676c2fe5925b9c9291e", "score": "0.5583141", "text": "private void partenza() {\n }", "title": "" }, { "docid": "cf1fe3fbd7326948a60560edefd4f5ec", "score": "0.5581535", "text": "private void m18303b() {\n }", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.5567399", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.5567399", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "65022f0bb57de78da8518cd156b102e6", "score": "0.55582976", "text": "private void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f6e54f539b2473888011e02a6c6fe34a", "score": "0.55496883", "text": "private void test0() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.55349654", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5527785", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5527785", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "6a8c6480f9fa5ab89d0437d00ffffccc", "score": "0.551566", "text": "@Override\n public void tirer() {\n\n }", "title": "" }, { "docid": "615018f0186427ab904e872db6726b2d", "score": "0.55109805", "text": "@Override\n public void init()\n {\n \n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5509776", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.54924345", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "13e4409784fd6f872b474e6effe9726e", "score": "0.5491781", "text": "@Override\n protected void initialization() {\n\n\n\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.54816943", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "f4e7a43c10e818fcfb7ca7db0c504bf3", "score": "0.54646146", "text": "private void init()\n\t{\n\t\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.546265", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.546265", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5458657", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5458657", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5458657", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5458657", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.5456597", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "f4f48197b3fa17ad117947be0d5a5650", "score": "0.5454283", "text": "public void mo2849x() {\n }", "title": "" }, { "docid": "216da885329e8d80cdc3490fda895c11", "score": "0.54538995", "text": "@Override\n\tpublic void yaz1() {\n\t\t\n\t}", "title": "" }, { "docid": "7ffbcc7c5a5fd2efca7e77b940aba5fd", "score": "0.5452493", "text": "public void bugWorkaround() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.54472566", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.54472566", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.54472566", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8abd71401843bdc0499ea12a3a300664", "score": "0.5428476", "text": "private void exibirInfo() {\n\t\t\n\t}", "title": "" }, { "docid": "0ca780e837b01f042aaf5b412927e440", "score": "0.5428034", "text": "@Override\n public void six()\n {\n\n }", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.54269034", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.5426613", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "2d09c2667d02737311a032c800665cb0", "score": "0.54189485", "text": "void mo21758Dp();", "title": "" }, { "docid": "dd7a00150b5c2e71163d8c684316f9ed", "score": "0.5411881", "text": "public void mo3638c() {\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.54087776", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b8a933b513450a6a7874821e414066eb", "score": "0.5406611", "text": "private void init() {\n\t}", "title": "" }, { "docid": "8565c40e7fd64f317574f9a4b0750e9b", "score": "0.54042095", "text": "public void obirisLekciju(){\n\t}", "title": "" }, { "docid": "de8c2aa495b8cdade7e8895e58745ea2", "score": "0.54005814", "text": "public void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "06c407b3cacc3e964dfd7296780a7d20", "score": "0.53996056", "text": "public abstract void mo79858d();", "title": "" }, { "docid": "9c0be8b41abbc5a688c29d02287c4158", "score": "0.5390189", "text": "public void wyjscie(){}", "title": "" }, { "docid": "a7cff18dc205a0d79dbe54bb988e6894", "score": "0.53879714", "text": "public void emettreSon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.5385875", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "1b6e09a6782d50972c182ef576e82c8d", "score": "0.53829104", "text": "public void mo5729d() {\n }", "title": "" }, { "docid": "d216fb08c48f8c40cb78c3361f33ee4e", "score": "0.53723973", "text": "@Override\n\tpublic void yaz2() {\n\t\t\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.5362078", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.5362078", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.53615713", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "656716153b22493864f462d3892b023d", "score": "0.53589517", "text": "public abstract void mo79857c();", "title": "" }, { "docid": "5aa411e5d69c31dfee719f50e04eb982", "score": "0.53562623", "text": "public abstract void mo108297j();", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5354661", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5354661", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5354661", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5354661", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "f737e2251cf43d326f43b44297696e55", "score": "0.53539", "text": "@Override\n\tpublic void patrol() {\n\n\t}", "title": "" }, { "docid": "ab5275f8a8349457f0b804fa387ec020", "score": "0.5347085", "text": "private void initialize() {\n\t\t\t\n\t}", "title": "" }, { "docid": "cdf2a119ee69429ad4420d45c29db1b6", "score": "0.53467894", "text": "@Override\n\tpublic void netword() {\n\t\t\n\t}", "title": "" }, { "docid": "be30a755a49491d0c1db538cbb3c601d", "score": "0.53456086", "text": "@Override\r\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5344776", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "0e6111ae009ad752a364e5e9fb168e98", "score": "0.5342433", "text": "@Override\n\tpublic void volumne() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.53341675", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.53341675", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.5331055", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "e41230eaa4480036f1db3ae4856b5e2c", "score": "0.5322285", "text": "@Override\n\tpublic void evoluer() {\n\t\t\n\t}", "title": "" }, { "docid": "139ea0f3d70d919cb70c2f69d570b88f", "score": "0.531667", "text": "protected abstract void mo928a();", "title": "" } ]
6d320a7af2d0aafe7f3c3133f9aa9e97
TODO page turn animation, see ScrollAnimation
[ { "docid": "23ad54cf11c21d420a6ef1e4382c20e4", "score": "0.0", "text": "private void turnPage(final CodexOpening opening) {\n FocusPanel focus = (FocusPanel) main.getWidget(0);\n AbsolutePanel display = (AbsolutePanel) focus.getWidget();\n\n int page_size = round100(image_viewport_width / 2);\n\n WebImage verso = opening.verso() == null ? null : server\n .renderToSquare(opening.verso(), page_size);\n WebImage recto = opening.recto() == null ? null : server\n .renderToSquare(opening.recto(), page_size);\n\n int verso_width, verso_height, recto_width, recto_height;\n\n if (verso == null) {\n verso_width = 0;\n verso_height = 0;\n } else {\n verso_width = verso.width();\n verso_height = verso.height();\n }\n\n if (recto == null) {\n recto_width = 0;\n recto_height = 0;\n } else {\n recto_width = recto.width();\n recto_height = recto.height();\n }\n\n int width = verso_width + recto_width;\n int height = verso_height == 0 ? recto_height : verso_height;\n\n display.setSize(width + \"px\", height + \"px\");\n display.clear();\n\n if (verso != null) {\n verso.makeViewable();\n\n verso.addClickHandler(new ClickHandler() {\n public void onClick(ClickEvent event) {\n if (!opening.verso().missing()) {\n ctrl.setView(opening.verso());\n }\n }\n });\n\n verso.addTouchEndHandler(new TouchEndHandler() {\n public void onTouchEnd(TouchEndEvent event) {\n event.preventDefault();\n\n if (!dragging && event.getChangedTouches().length() == 1) {\n ctrl.setView(opening.verso());\n }\n\n // Allow touch end handler in parent to take care of rest\n }\n });\n\n display.add(verso);\n display.setWidgetPosition(verso, 0, 0);\n }\n\n if (recto != null) {\n recto.makeViewable();\n\n recto.addClickHandler(new ClickHandler() {\n public void onClick(ClickEvent event) {\n if (!opening.recto().missing()) {\n ctrl.setView(opening.recto());\n }\n }\n });\n\n recto.addTouchEndHandler(new TouchEndHandler() {\n public void onTouchEnd(TouchEndEvent event) {\n event.preventDefault();\n\n if (!dragging && event.getChangedTouches().length() == 1) {\n ctrl.setView(opening.recto());\n }\n\n // Allow touch end handler in parent to take care of rest\n }\n });\n\n display.add(recto);\n display.setWidgetPosition(recto, verso_width, 0);\n }\n }", "title": "" } ]
[ { "docid": "540dc5fcd843d2a3004e757fc3b26f5f", "score": "0.6946402", "text": "protected abstract void onForwardAnimation(int oldPageIndex, int newPageIndex, int[] animations);", "title": "" }, { "docid": "1891f28d8567432bf55a5a0966bef55a", "score": "0.6586492", "text": "@Override\n public void onPageScrollStateChanged(int state) {\n }", "title": "" }, { "docid": "a167cdcdb21abecbb7a3b05e56851a39", "score": "0.6575084", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a167cdcdb21abecbb7a3b05e56851a39", "score": "0.6575084", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a167cdcdb21abecbb7a3b05e56851a39", "score": "0.6575084", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a167cdcdb21abecbb7a3b05e56851a39", "score": "0.6575084", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a167cdcdb21abecbb7a3b05e56851a39", "score": "0.6575084", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a167cdcdb21abecbb7a3b05e56851a39", "score": "0.6575084", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a167cdcdb21abecbb7a3b05e56851a39", "score": "0.6575084", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0be2de7e4ef1b230519297e22b8d81be", "score": "0.65205055", "text": "public void onPageScrollStateChanged(int state) {}", "title": "" }, { "docid": "4743d6880a03a1f611a8bfff9b33e942", "score": "0.6478738", "text": "@Override\n public void onPageScrollStateChanged(int state) {\n\n }", "title": "" }, { "docid": "4743d6880a03a1f611a8bfff9b33e942", "score": "0.6478738", "text": "@Override\n public void onPageScrollStateChanged(int state) {\n\n }", "title": "" }, { "docid": "42697bde6e73e9dea23448ef924fe2c2", "score": "0.6456668", "text": "void onPageScrollStateChanged(int state);", "title": "" }, { "docid": "cdd99c186e23018be81a453227348cee", "score": "0.6453103", "text": "private void setScrollAnimation(){\n final ImageView back = (ImageView) findViewById(R.id.backButtonGroup);\n final Toolbar toolbar = (Toolbar) findViewById(R.id.toolbarGroup);\n final ScrollView scrollView = (ScrollView) findViewById(R.id.scrollViewGroup);\n\n back.setColorFilter(Color.argb(255, 207, 173, 22));\n\n if(scrollView != null){\n scrollView.getViewTreeObserver().addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener() {\n @Override\n public void onScrollChanged() {\n scrollY = scrollView.getScrollY() / 2;\n\n // setAplha with int deprecated\n if (scrollY > 0) {\n if(scrollY < 255){\n toolbar.setBackgroundColor(Color.argb(scrollY, 207, 173, 22));\n back.setColorFilter(Color.argb(255 - scrollY, 207, 173, 22));\n }\n else {\n toolbar.setBackgroundColor(Color.argb(255, 207, 173, 22));\n back.setColorFilter(Color.argb(0, 207, 173, 22));\n }\n } else{\n toolbar.setBackgroundColor(Color.argb(0, 207, 173, 22));\n back.setColorFilter(Color.argb(255, 207, 173, 22));\n }\n }});}\n }", "title": "" }, { "docid": "0cc410ba1b4d400d8a41d390aa3fbaea", "score": "0.6445477", "text": "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0cc410ba1b4d400d8a41d390aa3fbaea", "score": "0.6445477", "text": "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0cc410ba1b4d400d8a41d390aa3fbaea", "score": "0.6445477", "text": "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0cc410ba1b4d400d8a41d390aa3fbaea", "score": "0.6445477", "text": "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0cc410ba1b4d400d8a41d390aa3fbaea", "score": "0.6445477", "text": "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0cc410ba1b4d400d8a41d390aa3fbaea", "score": "0.6445477", "text": "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0cc410ba1b4d400d8a41d390aa3fbaea", "score": "0.6445477", "text": "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fee2829a8772a87e8fa326151198082d", "score": "0.6427165", "text": "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "aefaee8f50878a04cf0a71550219b132", "score": "0.64130855", "text": "@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "8ffa143b0ed33d7a6c09e22732f7b25f", "score": "0.6388437", "text": "@Override\n public void onAnimationEnd(Animator animation) {\n currentIndex=(currentIndex+1 ) % items.size();\n\n int nextIndex = (currentIndex+1 ) % items.size();\n applyItem(items.get(nextIndex), scrollView[0]);\n\n\n // scrollView[0].invalidate();\n\n // 控件置换 每次动画结束后, 当前为【1】 【0】已经切出屏幕了,所以要做置换。\n View v = scrollView[0];\n scrollView[0] = scrollView[1];\n scrollView[1] = v;\n\n\n\n // scrollView[1].measure(MeasureSpec.makeMeasureSpec(getWidth(), MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(getHeight(), MeasureSpec.EXACTLY));\n //scrollView[1].layout(0, 0, getWidth(), getHeight());\n // scrollView[0].bringToFront();\n\n// setCompatX(scrollView[0],0);\n// setCompatX(scrollView[1],getWidth());\n postDelayed(doScroll, mAnimateTimer * 1000);\n }", "title": "" }, { "docid": "0a3424e1a4c63199f8ac4f54e90210d4", "score": "0.6383083", "text": "@Override\n public void onPageSelected(int position) {\n Animation animation = null;\n switch (position) {\n case 0:\n if (currIndex == 1) {\n animation = new TranslateAnimation(one, 0, 0, 0);\n }\n case 1:\n if (currIndex == 0) {\n animation = new TranslateAnimation(offset, one, 0, 0);\n }\n break;\n }\n currIndex = position;\n animation.setFillAfter(true);// true表示图片停在动画结束位置\n animation.setDuration(300); //设置动画时间为300毫秒\n img_cursor.startAnimation(animation);//开始动画\n }", "title": "" }, { "docid": "f1a9a7fcf3ab24bd9f8a55596d38539e", "score": "0.6375856", "text": "@Override\n public void onPageScrollStateChanged(int state) {\n }", "title": "" }, { "docid": "37480ae53d40300d3959e32df5814c07", "score": "0.6374545", "text": "@Override\r\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "b9283979303d43c897f09122156789dd", "score": "0.6359123", "text": "@Override\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b9283979303d43c897f09122156789dd", "score": "0.6359123", "text": "@Override\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "fc7daa5c1486ecf3668c02e3634962b8", "score": "0.6358652", "text": "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "title": "" }, { "docid": "fc7daa5c1486ecf3668c02e3634962b8", "score": "0.6358652", "text": "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "title": "" }, { "docid": "fc7daa5c1486ecf3668c02e3634962b8", "score": "0.6358652", "text": "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "title": "" }, { "docid": "1fd89a300753c3b471c26b7271aa92fa", "score": "0.63582975", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "title": "" }, { "docid": "1fd89a300753c3b471c26b7271aa92fa", "score": "0.63582975", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "title": "" }, { "docid": "1fd89a300753c3b471c26b7271aa92fa", "score": "0.63582975", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "title": "" }, { "docid": "1fd89a300753c3b471c26b7271aa92fa", "score": "0.63582975", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "title": "" }, { "docid": "1fd89a300753c3b471c26b7271aa92fa", "score": "0.63582975", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "title": "" }, { "docid": "1fd89a300753c3b471c26b7271aa92fa", "score": "0.63582975", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "title": "" }, { "docid": "4859b5cbb42dcdb5b45619819dc77218", "score": "0.63548636", "text": "public void onAnimationEnd(Animation animation) {\n\t\t\t\tjumpNextPage();\r\n\t\t\t}", "title": "" }, { "docid": "cd63357d2d95b3b6e57d53213bc1d02f", "score": "0.6348677", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t}", "title": "" }, { "docid": "feb56b0d48a73290f92d336e3e0d2a70", "score": "0.6346783", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "feb56b0d48a73290f92d336e3e0d2a70", "score": "0.6346783", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "feb56b0d48a73290f92d336e3e0d2a70", "score": "0.6346783", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "feb56b0d48a73290f92d336e3e0d2a70", "score": "0.6346783", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "feb56b0d48a73290f92d336e3e0d2a70", "score": "0.6346783", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "feb56b0d48a73290f92d336e3e0d2a70", "score": "0.6346783", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "68bfbe726f6779298c3f6b9a2fee7a9c", "score": "0.634041", "text": "@Override\r\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\r\n\t\t\t}", "title": "" }, { "docid": "1a7bea68f622421e1a7904a31e2602f6", "score": "0.63391566", "text": "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "1a7bea68f622421e1a7904a31e2602f6", "score": "0.63391566", "text": "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "1a7bea68f622421e1a7904a31e2602f6", "score": "0.63391566", "text": "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "1a7bea68f622421e1a7904a31e2602f6", "score": "0.63391566", "text": "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "1a7bea68f622421e1a7904a31e2602f6", "score": "0.63391566", "text": "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "1a7bea68f622421e1a7904a31e2602f6", "score": "0.63391566", "text": "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "7b459de338bb0379ecea8828a94a0bfd", "score": "0.63345027", "text": "@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "7b459de338bb0379ecea8828a94a0bfd", "score": "0.63345027", "text": "@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e774e4647475218ff44b4d1adef6b75d", "score": "0.63343835", "text": "@Override\n public void onPageScrollStateChanged(int arg0) {\n }", "title": "" }, { "docid": "e774e4647475218ff44b4d1adef6b75d", "score": "0.63343835", "text": "@Override\n public void onPageScrollStateChanged(int arg0) {\n }", "title": "" }, { "docid": "e774e4647475218ff44b4d1adef6b75d", "score": "0.63343835", "text": "@Override\n public void onPageScrollStateChanged(int arg0) {\n }", "title": "" }, { "docid": "4878c37d578e0c569ac9565922f146a4", "score": "0.633216", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "title": "" }, { "docid": "4878c37d578e0c569ac9565922f146a4", "score": "0.633216", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "title": "" }, { "docid": "68d58d8d0f28b17dd018a216401bfcdd", "score": "0.6331597", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "title": "" }, { "docid": "68d58d8d0f28b17dd018a216401bfcdd", "score": "0.6331597", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "title": "" }, { "docid": "68d58d8d0f28b17dd018a216401bfcdd", "score": "0.6331597", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "title": "" }, { "docid": "3f82c3d3ad6869cad617aeabeed24391", "score": "0.6331138", "text": "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "title": "" }, { "docid": "26cd3bdaaf4e7e2d177e140b3a1f020c", "score": "0.6318936", "text": "@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t}", "title": "" }, { "docid": "b57df414fd43741aed5281deff967aca", "score": "0.631705", "text": "@Override\r\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\r\n\t}", "title": "" }, { "docid": "b57df414fd43741aed5281deff967aca", "score": "0.631705", "text": "@Override\r\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\r\n\t}", "title": "" }, { "docid": "1ea5874cbf449cdefb337e38a2ab2290", "score": "0.6314196", "text": "@Override\r\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t}", "title": "" }, { "docid": "863459d126c13e343caf424554e7208a", "score": "0.6306136", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0)\n\t\t\t{\n\n\t\t\t}", "title": "" }, { "docid": "5024222a72eb9742030db5e7c094d589", "score": "0.6300037", "text": "@Override\r\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\r\n\t\t}", "title": "" }, { "docid": "5024222a72eb9742030db5e7c094d589", "score": "0.6300037", "text": "@Override\r\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\r\n\t\t}", "title": "" }, { "docid": "87d091396ef3457b52d3ccae952cf449", "score": "0.62989384", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t}", "title": "" }, { "docid": "502a5138ba4137d9684c9f215f794b37", "score": "0.62957716", "text": "private void setPage() {\n\t\tString del = \" \";\n\t\tString[] pictureList = myBook.getCurrentPicture().split(del);\n\n\t\t//Load animation image list\n\t\timageList.clear();\n\t\tfor (int i = 0; i < pictureList.length; i++) {\n\t\t\timageList.add(i, pictureList[i] + \".png\");\n\t\t}\n\t\tstartAnimation(imageList);\n\t\t\n\t\t// This gets the first image\n\t\t/*picFile = new File(dir, \"/mmsr/\" + intID + \"/pic/\" + pictureList[0]\n\t\t\t\t+ \".png\");\n\t\tBitmap bitmap = BitmapFactory.decodeFile(picFile.toString());\n\t\tfinal ImageView imagePage = (ImageView) this\n\t\t\t\t.findViewById(R.id.imageViewPic);\n\t\timagePage.setImageBitmap(bitmap);*/\n\n\t\ttl.removeAllViews(); // clear table layout\n\n\t\tif (pref_en)\n\t\t\taddText(\"EN\", myBook.getScriptByPage(\"EN\", myBook.getCurrentPage()));\n\t\tif (pref_bm)\n\t\t\taddText(\"BM\", myBook.getScriptByPage(\"BM\", myBook.getCurrentPage()));\n\t\tif (pref_cn)\n\t\t\taddText(\"CN\", myBook.getScriptByPage(\"CN\", myBook.getCurrentPage()));\n\t\tif (pref_tm)\n\t\t\taddText(\"TM\", myBook.getScriptByPage(\"TM\", myBook.getCurrentPage()));\n\t}", "title": "" }, { "docid": "7af0816847d31fbf06c1c4042181965c", "score": "0.6295638", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n }", "title": "" }, { "docid": "7af0816847d31fbf06c1c4042181965c", "score": "0.6295638", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n }", "title": "" }, { "docid": "7af0816847d31fbf06c1c4042181965c", "score": "0.6295638", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n }", "title": "" }, { "docid": "7af0816847d31fbf06c1c4042181965c", "score": "0.6295638", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n }", "title": "" }, { "docid": "4e841f2880c821746684efb09d2979ad", "score": "0.62884253", "text": "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "title": "" }, { "docid": "4e841f2880c821746684efb09d2979ad", "score": "0.62884253", "text": "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "title": "" }, { "docid": "4e841f2880c821746684efb09d2979ad", "score": "0.62884253", "text": "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "title": "" }, { "docid": "450cdded682bd4137d833fc9b0dcf593", "score": "0.62841344", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t}", "title": "" }, { "docid": "450cdded682bd4137d833fc9b0dcf593", "score": "0.62841344", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t}", "title": "" }, { "docid": "450cdded682bd4137d833fc9b0dcf593", "score": "0.62841344", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t}", "title": "" }, { "docid": "450cdded682bd4137d833fc9b0dcf593", "score": "0.62841344", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t}", "title": "" }, { "docid": "450cdded682bd4137d833fc9b0dcf593", "score": "0.62841344", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t}", "title": "" }, { "docid": "450cdded682bd4137d833fc9b0dcf593", "score": "0.62841344", "text": "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t}", "title": "" }, { "docid": "99d0e5e6dc0f61bc2a2259b2846f0dd8", "score": "0.6274267", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "title": "" }, { "docid": "99d0e5e6dc0f61bc2a2259b2846f0dd8", "score": "0.6274267", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "title": "" }, { "docid": "99d0e5e6dc0f61bc2a2259b2846f0dd8", "score": "0.6274267", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "title": "" }, { "docid": "99d0e5e6dc0f61bc2a2259b2846f0dd8", "score": "0.6274267", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "title": "" }, { "docid": "99d0e5e6dc0f61bc2a2259b2846f0dd8", "score": "0.6274267", "text": "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "title": "" }, { "docid": "2a59acf61bf542484f980edf65bfa3b1", "score": "0.62734014", "text": "@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t}", "title": "" }, { "docid": "2a59acf61bf542484f980edf65bfa3b1", "score": "0.62734014", "text": "@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t}", "title": "" }, { "docid": "ee6609d17b0da41a851c3f230b985b9e", "score": "0.62718016", "text": "@Override \n public void onPageScrolled(int arg0, float arg1, int arg2) {\n \n }", "title": "" }, { "docid": "83ccfbd8ea84c5e8aefef92a6c7eb7f1", "score": "0.62622476", "text": "@Override\n public void onPageScrollStateChanged(int state) {\n // Code goes here\n }", "title": "" }, { "docid": "83ccfbd8ea84c5e8aefef92a6c7eb7f1", "score": "0.62622476", "text": "@Override\n public void onPageScrollStateChanged(int state) {\n // Code goes here\n }", "title": "" }, { "docid": "43030a6ee059a2ab12ef62925a06281a", "score": "0.6259009", "text": "@Override\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t}", "title": "" }, { "docid": "0b08dea249cc411e66aae823b336a49a", "score": "0.625509", "text": "@Override\n public void onPageScrollStateChanged(int state) {\n // Code goes here\n\n }", "title": "" }, { "docid": "50fe975d88eb0a77c1a7ae06f8e2132f", "score": "0.6254926", "text": "@Override\n\t\t\tpublic void onPageScrollStateChanged(int position) {\n\t\t\t}", "title": "" }, { "docid": "51c7a3c7ab7a37bcdd5e9994aaee5a82", "score": "0.6253625", "text": "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t}", "title": "" }, { "docid": "51c7a3c7ab7a37bcdd5e9994aaee5a82", "score": "0.6253625", "text": "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t}", "title": "" } ]
29ad586ce7c24280f6b70fbd80bf9926
Test rescheduling a configuration when some mix of failures and assumption failures are present. We reschedule the module with the passed and assumption failure tests excluded.
[ { "docid": "80388b49aebda37f7118f03c75050830", "score": "0.8075801", "text": "@Test\n public void testReschedule_mixedFailedAssumptionFailures() throws Exception {\n populateFakeResults(2, 3, 1, 1, 0, false);\n mMockLoader.init();\n EasyMock.expect(mMockLoader.getCommandLine()).andReturn(\"previous_command\");\n EasyMock.expect(mMockFactory.createConfigurationFromArgs(EasyMock.anyObject()))\n .andReturn(mRescheduledConfiguration);\n EasyMock.expect(mMockLoader.loadPreviousResults()).andReturn(mFakeRecord);\n\n mRescheduledConfiguration.setTests(EasyMock.anyObject());\n EasyMock.expectLastCall().times(1);\n\n EasyMock.expect(mMockRescheduler.scheduleConfig(mRescheduledConfiguration)).andReturn(true);\n EasyMock.replay(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n mTest.run(null, null);\n EasyMock.verify(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n // Only the passing and assumption failures are excluded\n Set<String> excludeRun0 = new HashSet<>();\n excludeRun0.add(\"run0 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun0);\n Set<String> excludeRun0_assume = new HashSet<>();\n excludeRun0_assume.add(\"run0 test.class#testAssume0\");\n verify(mSuite).setExcludeFilter(excludeRun0_assume);\n\n Set<String> excludeRun1 = new HashSet<>();\n excludeRun1.add(\"run1 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun1);\n Set<String> excludeRun1_assume = new HashSet<>();\n excludeRun1_assume.add(\"run1 test.class#testAssume0\");\n verify(mSuite).setExcludeFilter(excludeRun1_assume);\n }", "title": "" } ]
[ { "docid": "1956834e4f84347028a398094a5bfd8d", "score": "0.79302734", "text": "@Test\n public void testReschedule_someAssumptionFailures() throws Exception {\n populateFakeResults(2, 2, 0, 1, 0, false);\n mMockLoader.init();\n EasyMock.expect(mMockLoader.getCommandLine()).andReturn(\"previous_command\");\n EasyMock.expect(mMockFactory.createConfigurationFromArgs(EasyMock.anyObject()))\n .andReturn(mRescheduledConfiguration);\n EasyMock.expect(mMockLoader.loadPreviousResults()).andReturn(mFakeRecord);\n\n mRescheduledConfiguration.setTests(EasyMock.anyObject());\n EasyMock.expectLastCall().times(1);\n\n EasyMock.expect(mMockRescheduler.scheduleConfig(mRescheduledConfiguration)).andReturn(true);\n EasyMock.replay(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n mTest.run(null, null);\n EasyMock.verify(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n // Only the passing tests are excluded since we don't want to re-run them\n Set<String> excludeRun0 = new HashSet<>();\n excludeRun0.add(\"run0\");\n verify(mSuite).setExcludeFilter(excludeRun0);\n Set<String> excludeRun1 = new HashSet<>();\n excludeRun1.add(\"run1\");\n verify(mSuite).setExcludeFilter(excludeRun1);\n }", "title": "" }, { "docid": "942b8182775c317c02a0df7f09e57b24", "score": "0.7795462", "text": "@Test\n public void testReschedule_onlyPassTests() throws Exception {\n populateFakeResults(2, 2, 0, 0, 0, false);\n mMockLoader.init();\n EasyMock.expect(mMockLoader.getCommandLine()).andReturn(\"previous_command\");\n EasyMock.expect(mMockFactory.createConfigurationFromArgs(EasyMock.anyObject()))\n .andReturn(mRescheduledConfiguration);\n EasyMock.expect(mMockLoader.loadPreviousResults()).andReturn(mFakeRecord);\n\n mRescheduledConfiguration.setTests(EasyMock.anyObject());\n EasyMock.expectLastCall().times(1);\n\n EasyMock.expect(mMockRescheduler.scheduleConfig(mRescheduledConfiguration)).andReturn(true);\n EasyMock.replay(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions,\n mMockRequirements);\n mTest.run(null, null);\n EasyMock.verify(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions,\n mMockRequirements);\n\n Set<String> excludeRun0 = new HashSet<>();\n excludeRun0.add(\"run0\");\n verify(mSuite).setExcludeFilter(excludeRun0);\n Set<String> excludeRun1 = new HashSet<>();\n excludeRun1.add(\"run1\");\n verify(mSuite).setExcludeFilter(excludeRun1);\n }", "title": "" }, { "docid": "4a0c809b74a71921d0a8adada136a5fd", "score": "0.7787566", "text": "@Test\n public void testReschedule_someFailedTests() throws Exception {\n populateFakeResults(2, 2, 1, 0, 0, false);\n mMockLoader.init();\n EasyMock.expect(mMockLoader.getCommandLine()).andReturn(\"previous_command\");\n EasyMock.expect(mMockFactory.createConfigurationFromArgs(EasyMock.anyObject()))\n .andReturn(mRescheduledConfiguration);\n EasyMock.expect(mMockLoader.loadPreviousResults()).andReturn(mFakeRecord);\n\n mRescheduledConfiguration.setTests(EasyMock.anyObject());\n EasyMock.expectLastCall().times(1);\n\n EasyMock.expect(mMockRescheduler.scheduleConfig(mRescheduledConfiguration)).andReturn(true);\n EasyMock.replay(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n mTest.run(null, null);\n EasyMock.verify(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n // Only the passing tests are excluded since we don't want to re-run them\n Set<String> excludeRun0 = new HashSet<>();\n excludeRun0.add(\"run0 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun0);\n Set<String> excludeRun1 = new HashSet<>();\n excludeRun1.add(\"run1 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun1);\n }", "title": "" }, { "docid": "e386a2a735e10c5b90c356b4a793eb20", "score": "0.7436975", "text": "@Test\n public void testReschedule_parameterized_failed() throws Exception {\n populateFakeResults(2, 4, 1, 0, 2, true);\n mMockLoader.init();\n EasyMock.expect(mMockLoader.getCommandLine()).andReturn(\"previous_command\");\n EasyMock.expect(mMockFactory.createConfigurationFromArgs(EasyMock.anyObject()))\n .andReturn(mRescheduledConfiguration);\n EasyMock.expect(mMockLoader.loadPreviousResults()).andReturn(mFakeRecord);\n\n mRescheduledConfiguration.setTests(EasyMock.anyObject());\n EasyMock.expectLastCall().times(1);\n\n EasyMock.expect(mMockRescheduler.scheduleConfig(mRescheduledConfiguration)).andReturn(true);\n EasyMock.replay(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n mTest.run(null, null);\n EasyMock.verify(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n // Only the passing tests are excluded since we don't want to re-run them\n Set<String> excludeRun0_pass = new LinkedHashSet<>();\n excludeRun0_pass.add(\"run0 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun0_pass);\n Set<String> excludeRun0_0 = new LinkedHashSet<>();\n\n excludeRun0_0.add(\"run0 test.class#parameterized0[1]\");\n verify(mSuite, times(0)).setExcludeFilter(excludeRun0_0);\n Set<String> excludeRun0_1 = new LinkedHashSet<>();\n excludeRun0_1.add(\"run0 test.class#parameterized1[1]\");\n verify(mSuite, times(0)).setExcludeFilter(excludeRun0_1);\n\n Set<String> excludeRun1_pass = new LinkedHashSet<>();\n excludeRun1_pass.add(\"run1 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun1_pass);\n\n Set<String> excludeRun1_0 = new LinkedHashSet<>();\n excludeRun1_0.add(\"run1 test.class#parameterized0[1]\");\n verify(mSuite, times(0)).setExcludeFilter(excludeRun1_0);\n Set<String> excludeRun1_1 = new LinkedHashSet<>();\n excludeRun1_1.add(\"run1 test.class#parameterized1[1]\");\n verify(mSuite, times(0)).setExcludeFilter(excludeRun1_1);\n }", "title": "" }, { "docid": "1f872eb5f5fad08cdf32f14044977493", "score": "0.7321856", "text": "@Test\n public void testReschedule_parameterized_nofail() throws Exception {\n populateFakeResults(2, 4, 1, 0, 2, false);\n mMockLoader.init();\n EasyMock.expect(mMockLoader.getCommandLine()).andReturn(\"previous_command\");\n EasyMock.expect(mMockFactory.createConfigurationFromArgs(EasyMock.anyObject()))\n .andReturn(mRescheduledConfiguration);\n EasyMock.expect(mMockLoader.loadPreviousResults()).andReturn(mFakeRecord);\n\n mRescheduledConfiguration.setTests(EasyMock.anyObject());\n EasyMock.expectLastCall().times(1);\n\n EasyMock.expect(mMockRescheduler.scheduleConfig(mRescheduledConfiguration)).andReturn(true);\n EasyMock.replay(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n mTest.run(null, null);\n EasyMock.verify(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n // Only the passing tests are excluded since we don't want to re-run them\n Set<String> excludeRun0_pass = new LinkedHashSet<>();\n excludeRun0_pass.add(\"run0 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun0_pass);\n Set<String> excludeRun0_0 = new LinkedHashSet<>();\n excludeRun0_0.add(\"run0 test.class#parameterized0\");\n verify(mSuite, times(1)).setExcludeFilter(excludeRun0_0);\n Set<String> excludeRun0_1 = new LinkedHashSet<>();\n excludeRun0_1.add(\"run0 test.class#parameterized1\");\n verify(mSuite, times(1)).setExcludeFilter(excludeRun0_1);\n\n Set<String> excludeRun1_pass = new LinkedHashSet<>();\n excludeRun1_pass.add(\"run1 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun1_pass);\n Set<String> excludeRun1_0 = new LinkedHashSet<>();\n excludeRun1_0.add(\"run1 test.class#parameterized0\");\n verify(mSuite, times(1)).setExcludeFilter(excludeRun1_0);\n Set<String> excludeRun1_1 = new LinkedHashSet<>();\n excludeRun1_1.add(\"run1 test.class#parameterized1\");\n verify(mSuite, times(1)).setExcludeFilter(excludeRun1_1);\n }", "title": "" }, { "docid": "57141ea09695f53c5e86a7a7d08ed64b", "score": "0.7176693", "text": "@Test\n public void testReschedule_module_option() throws Exception {\n OptionSetter setter = new OptionSetter(mTest);\n setter.setOptionValue(BaseTestSuite.MODULE_OPTION, \"run0\");\n populateFakeResults(2, 2, 1, 0, 0, false);\n mMockLoader.init();\n EasyMock.expect(mMockLoader.getCommandLine()).andReturn(\"previous_command\");\n EasyMock.expect(mMockFactory.createConfigurationFromArgs(EasyMock.anyObject()))\n .andReturn(mRescheduledConfiguration);\n EasyMock.expect(mMockLoader.loadPreviousResults()).andReturn(mFakeRecord);\n\n mRescheduledConfiguration.setTests(EasyMock.anyObject());\n EasyMock.expectLastCall().times(1);\n\n EasyMock.expect(mMockRescheduler.scheduleConfig(mRescheduledConfiguration)).andReturn(true);\n EasyMock.replay(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n mTest.run(null, null);\n EasyMock.verify(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n\n Set<String> excludeRun0 = new HashSet<>();\n excludeRun0.add(\"run0 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun0);\n Set<String> excludeRun1 = new HashSet<>();\n // Only run0 was requested to run.\n excludeRun1.add(\"run1\");\n verify(mSuite).setExcludeFilter(excludeRun1);\n }", "title": "" }, { "docid": "a502cc087459ad756537f11f67e5c816", "score": "0.70269144", "text": "@Test\n public void testReschedule_excludeFilters() throws Exception {\n OptionSetter setter = new OptionSetter(mTest);\n setter.setOptionValue(BaseTestSuite.EXCLUDE_FILTER_OPTION, \"run1\");\n populateFakeResults(2, 2, 1, 0, 0, false);\n mMockLoader.init();\n EasyMock.expect(mMockLoader.getCommandLine()).andReturn(\"previous_command\");\n EasyMock.expect(mMockFactory.createConfigurationFromArgs(EasyMock.anyObject()))\n .andReturn(mRescheduledConfiguration);\n EasyMock.expect(mMockLoader.loadPreviousResults()).andReturn(mFakeRecord);\n\n mRescheduledConfiguration.setTests(EasyMock.anyObject());\n EasyMock.expectLastCall().times(1);\n\n EasyMock.expect(mMockRescheduler.scheduleConfig(mRescheduledConfiguration)).andReturn(true);\n EasyMock.replay(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n mTest.run(null, null);\n EasyMock.verify(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n\n Set<String> excludeRun0 = new HashSet<>();\n excludeRun0.add(\"run0 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun0);\n Set<String> excludeRun1 = new HashSet<>();\n // Even if run1 had failed test cases, it was excluded so it's not running.\n excludeRun1.add(\"run1\");\n verify(mSuite).setExcludeFilter(excludeRun1);\n }", "title": "" }, { "docid": "00ef1cd5be7a651524cf371a7990a523", "score": "0.6990239", "text": "@Test\n public void testReschedule_moduleOption_abi() throws Exception {\n OptionSetter setter = new OptionSetter(mTest);\n // We specify to exclude \"run1\"\n setter.setOptionValue(BaseTestSuite.MODULE_OPTION, \"run0\");\n populateFakeResults(2, 2, 1, 0, 0, false, new Abi(\"armeabi-v7a\", \"32\"));\n mMockLoader.init();\n EasyMock.expect(mMockLoader.getCommandLine()).andReturn(\"previous_command\");\n EasyMock.expect(mMockFactory.createConfigurationFromArgs(EasyMock.anyObject()))\n .andReturn(mRescheduledConfiguration);\n EasyMock.expect(mMockLoader.loadPreviousResults()).andReturn(mFakeRecord);\n\n mRescheduledConfiguration.setTests(EasyMock.anyObject());\n EasyMock.expectLastCall().times(1);\n\n EasyMock.expect(mMockRescheduler.scheduleConfig(mRescheduledConfiguration)).andReturn(true);\n EasyMock.replay(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n mTest.run(null, null);\n EasyMock.verify(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n\n Set<String> excludeRun0 = new HashSet<>();\n // Run with the abi are excluded\n excludeRun0.add(\"armeabi-v7a run0 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun0);\n Set<String> excludeRun1 = new HashSet<>();\n // Even if run1 had failed test cases, it was excluded so it's not running.\n excludeRun1.add(\"armeabi-v7a run1\");\n verify(mSuite).setExcludeFilter(excludeRun1);\n }", "title": "" }, { "docid": "01dcb14160e2aefb668f02e42fb64d94", "score": "0.67377114", "text": "@Test\n public void testReschedule_carryShardCount() throws Exception {\n mTopConfiguration.getCommandOptions().setShardCount(2);\n mTopConfiguration.getDeviceRequirements().setSerial(\"serial1\", \"serial2\");\n populateFakeResults(2, 2, 0, 0, 0, false);\n mMockLoader.init();\n EasyMock.expect(mMockLoader.getCommandLine()).andReturn(\"previous_command\");\n EasyMock.expect(mMockFactory.createConfigurationFromArgs(EasyMock.anyObject()))\n .andReturn(mRescheduledConfiguration);\n EasyMock.expect(mMockLoader.loadPreviousResults()).andReturn(mFakeRecord);\n // Shard count is carried from retry attempt\n EasyMock.reset(mMockCommandOptions);\n mMockCommandOptions.setShardCount(2);\n mMockCommandOptions.setShardIndex(null);\n\n mRescheduledConfiguration.setTests(EasyMock.anyObject());\n EasyMock.expectLastCall().times(1);\n\n EasyMock.expect(mMockRescheduler.scheduleConfig(mRescheduledConfiguration)).andReturn(true);\n EasyMock.replay(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions,\n mMockRequirements);\n mTest.run(null, null);\n EasyMock.verify(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions,\n mMockRequirements);\n\n Set<String> excludeRun0 = new HashSet<>();\n excludeRun0.add(\"run0\");\n verify(mSuite).setExcludeFilter(excludeRun0);\n Set<String> excludeRun1 = new HashSet<>();\n excludeRun1.add(\"run1\");\n verify(mSuite).setExcludeFilter(excludeRun1);\n }", "title": "" }, { "docid": "c098c4557d5166e9d888cedbaffaf760", "score": "0.66796756", "text": "@Test\n public void testReschedule_excludeFilters_abi() throws Exception {\n OptionSetter setter = new OptionSetter(mTest);\n // We specify to exclude \"run1\"\n setter.setOptionValue(BaseTestSuite.EXCLUDE_FILTER_OPTION, \"run1\");\n populateFakeResults(2, 2, 1, 0, 0, false, new Abi(\"armeabi-v7a\", \"32\"));\n mMockLoader.init();\n EasyMock.expect(mMockLoader.getCommandLine()).andReturn(\"previous_command\");\n EasyMock.expect(mMockFactory.createConfigurationFromArgs(EasyMock.anyObject()))\n .andReturn(mRescheduledConfiguration);\n EasyMock.expect(mMockLoader.loadPreviousResults()).andReturn(mFakeRecord);\n\n mRescheduledConfiguration.setTests(EasyMock.anyObject());\n EasyMock.expectLastCall().times(1);\n\n EasyMock.expect(mMockRescheduler.scheduleConfig(mRescheduledConfiguration)).andReturn(true);\n EasyMock.replay(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n mTest.run(null, null);\n EasyMock.verify(\n mMockRescheduler,\n mMockLoader,\n mMockFactory,\n mRescheduledConfiguration,\n mMockCommandOptions);\n\n Set<String> excludeRun0 = new HashSet<>();\n // Run with the abi are excluded\n excludeRun0.add(\"armeabi-v7a run0 test.class#testPass0\");\n verify(mSuite).setExcludeFilter(excludeRun0);\n Set<String> excludeRun1 = new HashSet<>();\n // Even if run1 had failed test cases, it was excluded so it's not running.\n excludeRun1.add(\"armeabi-v7a run1\");\n verify(mSuite).setExcludeFilter(excludeRun1);\n }", "title": "" }, { "docid": "9dd680d0563af3de0bbef0095c04b724", "score": "0.60206723", "text": "@Test\n public void testTriggerEnabling_enabledAfterConnecting() throws Exception {\n int associationRejections = WifiLastResortWatchdog.FAILURE_THRESHOLD;\n int authenticationFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 2;\n int dhcpFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 3;\n boolean[] hasEverConnected = {false, true, false, false};\n boolean watchdogTriggered;\n // Buffer potential candidates 1,2,3 & 4\n List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids,\n mBssids, mFrequencies, mCaps, mLevels, mIsEphemeral, hasEverConnected);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n incrementFailuresUntilTrigger(mSsids, mBssids);\n\n // Increment failure count 5 more times, ensure trigger is deactivated\n for (int i = 0; i < 5; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[3], mBssids[3], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n assertEquals(false, watchdogTriggered);\n }\n\n // transition Watchdog wifi state tracking to 'connected' then back to 'disconnected'\n mLastResortWatchdog.connectedStateTransition(true);\n mLastResortWatchdog.connectedStateTransition(false);\n\n // Fail 3/4 networks until they're over threshold\n for (int i = 0; i < WifiLastResortWatchdog.FAILURE_THRESHOLD + 1; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[0], mBssids[0], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[1], mBssids[1], WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);\n assertEquals(false, watchdogTriggered);\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[2], mBssids[2], WifiLastResortWatchdog.FAILURE_CODE_DHCP);\n assertEquals(false, watchdogTriggered);\n }\n\n // Bring the remaining unfailed network upto 1 less than the failure threshold\n for (int i = 0; i < WifiLastResortWatchdog.FAILURE_THRESHOLD - 1; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[3], mBssids[3], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n // Increment failure count once more, check that watchdog triggered this time\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[3], mBssids[3], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(true, watchdogTriggered);\n }", "title": "" }, { "docid": "a1822e1dcfdd840495df6cc25e3dbcab", "score": "0.5980873", "text": "@Test\n public void testTriggerEnabling_disabledAfterTriggering() throws Exception {\n int associationRejections = WifiLastResortWatchdog.FAILURE_THRESHOLD;\n int authenticationFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 2;\n int dhcpFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 3;\n boolean[] hasEverConnected = {false, true, false, false};\n\n // Buffer potential candidates 1,2,3 & 4\n List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids,\n mBssids, mFrequencies, mCaps, mLevels, mIsEphemeral, hasEverConnected);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n incrementFailuresUntilTrigger(mSsids, mBssids);\n\n // Increment failure count 5 more times, watchdog should not trigger\n for (int i = 0; i < 5; i++) {\n boolean watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[3], mBssids[3], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n }", "title": "" }, { "docid": "170002cfdb9fb69cee8dd409529cb2a5", "score": "0.59775597", "text": "@Test\n public void testTriggerEnabling_enabledAfterNewNetwork() {\n int associationRejections = WifiLastResortWatchdog.FAILURE_THRESHOLD;\n int authenticationFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 2;\n int dhcpFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 3;\n boolean[] hasEverConnected = {false, true, false, false};\n boolean watchdogTriggered;\n\n // Buffer potential candidates 1,2,3\n List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(\n Arrays.copyOfRange(mSsids, 0, 3),\n Arrays.copyOfRange(mBssids, 0, 3),\n Arrays.copyOfRange(mFrequencies, 0, 3),\n Arrays.copyOfRange(mCaps, 0, 3),\n Arrays.copyOfRange(mLevels, 0, 3),\n Arrays.copyOfRange(mIsEphemeral, 0, 3),\n Arrays.copyOfRange(hasEverConnected, 0, 3));\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n incrementFailuresUntilTrigger(Arrays.copyOfRange(mSsids, 0, 3),\n Arrays.copyOfRange(mBssids, 0, 3));\n\n // Increment failure count 5 more times, ensure trigger is deactivated\n for (int i = 0; i < 5; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[2], mBssids[2], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n assertEquals(false, watchdogTriggered);\n }\n\n candidates = createFilteredQnsCandidates(mSsids, mBssids, mFrequencies, mCaps, mLevels,\n mIsEphemeral, hasEverConnected);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n incrementFailuresUntilTrigger(mSsids, mBssids);\n\n }", "title": "" }, { "docid": "c6261cb601a2fbfdd3237e6d7fd20058", "score": "0.59501886", "text": "@Test\n public void testSchedule ()\n {\n System.out.println (\"schedule\");\n final SimEventList el = new DefaultSimEventList ();\n final TestSimEventAction a1 = new TestSimEventAction ();\n final TestSimEventAction a2 = new TestSimEventAction ();\n el.schedule (15.0, a1);\n el.schedule (-40.0, a2);\n el.run ();\n assert a1.executed;\n assertEquals (15.0, a1.executionTime, 0.0);\n assert a2.executed;\n assertEquals (-40.0, a2.executionTime, 0.0);\n el.reset ();\n a1.executed = false;\n a2.executed = false;\n final SimEvent e1 = el.schedule (15.0, a1);\n try\n {\n el.schedule (e1);\n fail (\"Attempt to schedule already scheduled event should fail!\");\n }\n catch (IllegalArgumentException iae)\n {\n }\n try\n {\n el.schedule (39.4, e1);\n fail (\"Attempt to schedule already scheduled event should fail!\");\n }\n catch (IllegalArgumentException iae)\n {\n }\n el.reschedule (-123455.0, e1);\n el.reschedule (-77.0, e1);\n el.run ();\n assert a1.executed;\n assertEquals (-77.0, a1.executionTime, 0.0);\n el.reset ();\n a1.executed = false;\n a2.executed = false;\n el.reschedule (-459.0, e1);\n el.run ();\n assert a1.executed;\n assertEquals (-459.0, a1.executionTime, 0.0);\n el.reset ();\n a1.executed = false;\n a2.executed = false;\n final ReschedulingSimEvent rse1 = new ReschedulingSimEvent (el, 10, 10.0);\n el.schedule (0.0, rse1);\n el.run ();\n assertEquals (rse1.maxCount, rse1.count);\n assertEquals ((rse1.maxCount - 1) * rse1.interval, rse1.lastActionTime, 0.0);\n el.reset ();\n a1.executed = false;\n a2.executed = false;\n final ReschedulingSimEvent rse2 = new ReschedulingSimEvent (el, 100, 0);\n el.schedule (0.0, rse2);\n el.run ();\n assertEquals (rse2.maxCount, rse2.count);\n assertEquals (0, rse2.lastActionTime, 0.0);\n }", "title": "" }, { "docid": "56a871dbe1d6081c15bde08de08116d1", "score": "0.584882", "text": "@Test\n public void testTriggerCondition_someNetworksOverFailureThreshold_allHaveEverConnected()\n throws Exception {\n int associationRejections = WifiLastResortWatchdog.FAILURE_THRESHOLD;\n int authenticationFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 2;\n int dhcpFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 3;\n boolean[] hasEverConnected = {true, true, true, true};\n\n // Buffer potential candidates 1,2,3 & 4\n List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids,\n mBssids, mFrequencies, mCaps, mLevels, mIsEphemeral, hasEverConnected);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n // Increment failure count for 3 networks and failure types, asserting each time that it\n // does not trigger, with only 3 over threshold\n boolean watchdogTriggered = false;\n int net = 0;\n for (int i = 0; i < associationRejections; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n net = 1;\n for (int i = 0; i < authenticationFailures; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);\n assertEquals(false, watchdogTriggered);\n }\n net = 2;\n for (int i = 0; i < dhcpFailures; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_DHCP);\n assertEquals(false, watchdogTriggered);\n }\n\n // Check that we have Failures\n assertFailureCountEquals(mBssids[0], associationRejections, 0, 0);\n assertFailureCountEquals(mBssids[1], 0, authenticationFailures, 0);\n assertFailureCountEquals(mBssids[2], 0, 0, dhcpFailures);\n\n // Add one more failure to one of the already over threshold networks, assert that it\n // does not trigger\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[0], mBssids[0], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }", "title": "" }, { "docid": "63d4281a39b5dd0272a1cfc3c9308b0e", "score": "0.5822363", "text": "@Test\n public void testTriggerCondition_allNetworksOverFailureThreshold_oneHaveEverConnected()\n throws Exception {\n int associationRejections = WifiLastResortWatchdog.FAILURE_THRESHOLD;\n int authenticationFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 2;\n int dhcpFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 3;\n boolean[] hasEverConnected = {false, true, false, false};\n\n // Buffer potential candidates 1,2,3 & 4\n List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids,\n mBssids, mFrequencies, mCaps, mLevels, mIsEphemeral, hasEverConnected);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n // Bring 3 of the 4 networks over failure Threshold without triggering watchdog\n boolean watchdogTriggered = false;\n int net = 0;\n for (int i = 0; i < associationRejections; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n net = 1;\n for (int i = 0; i < authenticationFailures; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);\n assertEquals(false, watchdogTriggered);\n }\n net = 2;\n for (int i = 0; i < dhcpFailures; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_DHCP);\n assertEquals(false, watchdogTriggered);\n }\n\n // Bring the remaining unfailed network upto 1 less than the failure threshold\n net = 3;\n for (int i = 0; i < WifiLastResortWatchdog.FAILURE_THRESHOLD - 1; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n // Increment failure count once more, check that watchdog triggered this time\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n assertEquals(true, watchdogTriggered);\n\n // Increment failure count 5 more times, watchdog should not trigger\n for (int i = 0; i < 5; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n }", "title": "" }, { "docid": "63fe24bad34fc1528ee4178dbf4a2151", "score": "0.5807677", "text": "@Test\n public void testTriggerCondition_allNetworksOverFailureThreshold_allHaveEverConnected()\n throws Exception {\n int associationRejections = WifiLastResortWatchdog.FAILURE_THRESHOLD;\n int authenticationFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 2;\n int dhcpFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 3;\n boolean[] hasEverConnected = {true, true, true, true};\n\n // Buffer potential candidates 1,2,3 & 4\n List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids,\n mBssids, mFrequencies, mCaps, mLevels, mIsEphemeral, hasEverConnected);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n // Bring 3 of the 4 networks over failure Threshold without triggering watchdog\n boolean watchdogTriggered = false;\n int net = 0;\n for (int i = 0; i < associationRejections; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n net = 1;\n for (int i = 0; i < authenticationFailures; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);\n assertEquals(false, watchdogTriggered);\n }\n net = 2;\n for (int i = 0; i < dhcpFailures; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_DHCP);\n assertEquals(false, watchdogTriggered);\n }\n\n // Bring the remaining unfailed network upto 1 less than the failure threshold\n net = 3;\n for (int i = 0; i < WifiLastResortWatchdog.FAILURE_THRESHOLD - 1; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n // Increment failure count once more, check that watchdog triggered this time\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n assertEquals(true, watchdogTriggered);\n\n // Increment failure count 5 more times, watchdog should not trigger\n for (int i = 0; i < 5; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n }", "title": "" }, { "docid": "895a178d1cf3595e3c178f0523991109", "score": "0.5716712", "text": "@Test\n public void testUpdateNetworkWithHasEverConnectedFalse() {\n List<Pair<ScanDetail, WifiConfiguration>> candidates =\n new ArrayList<Pair<ScanDetail, WifiConfiguration>>();\n String ssid = mSsids[0].replaceAll(\"^\\\"+\", \"\").replaceAll(\"\\\"+$\", \"\");\n ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid),\n mBssids[0], mCaps[0], mLevels[0], mFrequencies[0], System.currentTimeMillis(), 0);\n\n WifiConfiguration configHasEverConnectedTrue = mock(WifiConfiguration.class);\n WifiConfiguration.NetworkSelectionStatus networkSelectionStatusTrue =\n mock(WifiConfiguration.NetworkSelectionStatus.class);\n when(configHasEverConnectedTrue.getNetworkSelectionStatus())\n .thenReturn(networkSelectionStatusTrue);\n when(networkSelectionStatusTrue.getHasEverConnected())\n .thenReturn(true);\n candidates.add(Pair.create(scanDetail, configHasEverConnectedTrue));\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n boolean watchdogTriggered = false;\n for (int i = 0; i < WifiLastResortWatchdog.FAILURE_THRESHOLD; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[0], mBssids[0], WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);\n }\n assertEquals(true, watchdogTriggered);\n\n candidates.clear();\n\n WifiConfiguration configHasEverConnectedFalse = mock(WifiConfiguration.class);\n WifiConfiguration.NetworkSelectionStatus networkSelectionStatusFalse =\n mock(WifiConfiguration.NetworkSelectionStatus.class);\n when(configHasEverConnectedFalse.getNetworkSelectionStatus())\n .thenReturn(networkSelectionStatusFalse);\n when(networkSelectionStatusFalse.getHasEverConnected())\n .thenReturn(false);\n candidates.add(Pair.create(scanDetail, configHasEverConnectedFalse));\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n for (int i = 0; i < WifiLastResortWatchdog.FAILURE_THRESHOLD; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[0], mBssids[0], WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);\n }\n assertEquals(false, watchdogTriggered);\n }", "title": "" }, { "docid": "07051de0b26733f654572c43764e4dfc", "score": "0.5640761", "text": "@Test (timeout = 5000)\n public void testSkipAllOtherEvents_2() throws IOException {\n ApplicationId appId = ApplicationId.newInstance(System.currentTimeMillis(), 1);\n ApplicationAttemptId appAttemptId = ApplicationAttemptId.newInstance(appId, 1);\n TezDAGID dagID = TezDAGID.getInstance(appId, 1);\n AppContext appContext = mock(AppContext.class);\n when(appContext.getCurrentRecoveryDir()).thenReturn(new Path(recoveryPath+\"/1\"));\n when(appContext.getClock()).thenReturn(new SystemClock());\n when(appContext.getApplicationID()).thenReturn(appId);\n\n DAGPlan dagPlan = TestDAGImpl.createTestDAGPlan();\n // write data in attempt_1\n RecoveryService rService = new RecoveryService(appContext);\n Configuration conf = new Configuration();\n conf.setBoolean(RecoveryService.TEZ_TEST_RECOVERY_DRAIN_EVENTS_WHEN_STOPPED, true);\n rService.init(conf);\n rService.start();\n rService.handle(new DAGHistoryEvent(dagID,\n new DAGSubmittedEvent(dagID, 1L, dagPlan, ApplicationAttemptId.newInstance(appId, 1),\n null, \"user\", new Configuration())));\n rService.handle(new DAGHistoryEvent(dagID,\n new DAGInitializedEvent(dagID, 1L, \"user\", dagPlan.getName(), null)));\n rService.handle(new DAGHistoryEvent(dagID,\n new DAGFinishedEvent(dagID, 1L, 2L, DAGState.FAILED, \"diag\", null, \"user\", \"dag1\", null,\n appAttemptId, dagPlan)));\n rService.handle(new DAGHistoryEvent(dagID, new DAGStartedEvent(dagID, 1L, \"user\", \"dag1\")));\n rService.stop();\n\n // write data in attempt_2\n when(appContext.getCurrentRecoveryDir()).thenReturn(new Path(recoveryPath+\"/2\"));\n rService = new RecoveryService(appContext);\n rService.init(conf);\n rService.start();\n rService.handle(new DAGHistoryEvent(dagID,\n new DAGStartedEvent(dagID, 1L, \"user\", \"dag1\")));\n rService.stop();\n\n RecoveredDAGData dagData = parser.parseRecoveryData();\n assertEquals(false, dagData.nonRecoverable);\n assertEquals(DAGState.FAILED, dagData.dagState);\n assertEquals(true, dagData.isCompleted);\n // DAGSubmittedEvent, DAGInitializedEvent and DAGFinishedEvent is handled\n verify(mockAppMaster).createDAG(any(DAGPlan.class),any(TezDAGID.class));\n // DAGInitializedEvent may not been handled before DAGFinishedEvent,\n // because DAGFinishedEvent's writeToRecoveryImmediately is true\n verify(dagData.recoveredDAG).restoreFromEvent(isA(DAGFinishedEvent.class));\n // DAGStartedEvent is skipped due to it is after DAGFinishedEvent\n verify(dagData.recoveredDAG, never()).restoreFromEvent(isA(DAGStartedEvent.class));\n }", "title": "" }, { "docid": "c737c4643c26d97cb135e08108e9cdc5", "score": "0.5633307", "text": "@Test\n public void testLastConfigChange() {\n // TODO: test LastConfigChange\n }", "title": "" }, { "docid": "f41d7bb7cd7a1c3cf3d593735674f1e1", "score": "0.5570239", "text": "@Test(timeout = 5000)\n public void testSkipAllOtherEvents_1() throws IOException {\n ApplicationId appId = ApplicationId.newInstance(System.currentTimeMillis(), 1);\n TezDAGID dagID = TezDAGID.getInstance(appId, 1);\n AppContext appContext = mock(AppContext.class);\n when(appContext.getCurrentRecoveryDir()).thenReturn(new Path(recoveryPath+\"/1\"));\n when(appContext.getClock()).thenReturn(new SystemClock());\n when(appContext.getApplicationID()).thenReturn(appId);\n\n DAGPlan dagPlan = TestDAGImpl.createTestDAGPlan();\n // write data in attempt_1\n RecoveryService rService = new RecoveryService(appContext);\n Configuration conf = new Configuration();\n conf.setBoolean(RecoveryService.TEZ_TEST_RECOVERY_DRAIN_EVENTS_WHEN_STOPPED, true);\n rService.init(conf);\n rService.start();\n rService.handle(new DAGHistoryEvent(dagID,\n new DAGSubmittedEvent(dagID, 1L, dagPlan, ApplicationAttemptId.newInstance(appId, 1),\n null, \"user\", new Configuration())));\n rService.handle(new DAGHistoryEvent(dagID,\n new DAGInitializedEvent(dagID, 1L, \"user\", dagPlan.getName(), null)));\n // only for testing, DAGCommitStartedEvent is not supposed to happen at this time.\n rService.handle(new DAGHistoryEvent(dagID,new DAGCommitStartedEvent(dagID, System.currentTimeMillis(), false)));\n rService.stop();\n\n // write data in attempt_2\n when(appContext.getCurrentRecoveryDir()).thenReturn(new Path(recoveryPath+\"/2\"));\n rService = new RecoveryService(appContext);\n rService.init(conf);\n rService.start();\n // only for testing, DAGStartedEvent is not supposed to happen at this time.\n rService.handle(new DAGHistoryEvent(dagID,\n new DAGStartedEvent(dagID, 1L, \"user\", \"dag1\")));\n rService.stop();\n\n RecoveredDAGData dagData = parser.parseRecoveryData();\n assertEquals(true, dagData.nonRecoverable);\n assertTrue(dagData.reason.contains(\"DAG Commit was in progress\"));\n // DAGSubmittedEvent is handled but DAGInitializedEvent and DAGStartedEvent in the next attempt are both skipped\n // due to the dag is not recoerable.\n verify(mockAppMaster).createDAG(any(DAGPlan.class),any(TezDAGID.class));\n verify(dagData.recoveredDAG, never()).restoreFromEvent(isA(DAGInitializedEvent.class));\n verify(dagData.recoveredDAG, never()).restoreFromEvent(isA(DAGStartedEvent.class));\n }", "title": "" }, { "docid": "0f6a5cf28ab7b7b84b396a29463a47cc", "score": "0.55562836", "text": "@Test\n public void testUpdateNetworkWithHasEverConnectedTrue() {\n List<Pair<ScanDetail, WifiConfiguration>> candidates =\n new ArrayList<Pair<ScanDetail, WifiConfiguration>>();\n String ssid = mSsids[0].replaceAll(\"^\\\"+\", \"\").replaceAll(\"\\\"+$\", \"\");\n ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid),\n mBssids[0], mCaps[0], mLevels[0], mFrequencies[0], System.currentTimeMillis(), 0);\n WifiConfiguration configHasEverConnectedFalse = mock(WifiConfiguration.class);\n WifiConfiguration.NetworkSelectionStatus networkSelectionStatusFalse =\n mock(WifiConfiguration.NetworkSelectionStatus.class);\n when(configHasEverConnectedFalse.getNetworkSelectionStatus())\n .thenReturn(networkSelectionStatusFalse);\n when(networkSelectionStatusFalse.getHasEverConnected())\n .thenReturn(false);\n candidates.add(Pair.create(scanDetail, configHasEverConnectedFalse));\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n boolean watchdogTriggered = false;\n for (int i = 0; i < WifiLastResortWatchdog.FAILURE_THRESHOLD; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[0], mBssids[0], WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);\n }\n assertEquals(false, watchdogTriggered);\n\n candidates.clear();\n\n WifiConfiguration configHasEverConnectedTrue = mock(WifiConfiguration.class);\n WifiConfiguration.NetworkSelectionStatus networkSelectionStatusTrue =\n mock(WifiConfiguration.NetworkSelectionStatus.class);\n when(configHasEverConnectedTrue.getNetworkSelectionStatus())\n .thenReturn(networkSelectionStatusTrue);\n when(networkSelectionStatusTrue.getHasEverConnected())\n .thenReturn(true);\n candidates.add(Pair.create(scanDetail, configHasEverConnectedTrue));\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[0], mBssids[0], WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);\n assertEquals(true, watchdogTriggered);\n }", "title": "" }, { "docid": "179b65e3bb9829e4027a1048432fc663", "score": "0.5537858", "text": "@Test\n\tpublic void retryingWithTestScheduler() throws Exception {\n\t\t//given\n\t\tTestScheduler clock = new TestScheduler();\n\t\t\n\t\t//when\n\t\tfinal TestSubscriber<BigDecimal> subscriber = cloudClient\n\t\t\t\t.pricing()\n\t\t\t\t.test();\n\t\t\n\t\t//then\n\t\tsubscriber.assertNoValues();\n\t\tsubscriber.assertNoErrors();\n\n\t\tclock.advanceTimeBy(2_999, TimeUnit.MILLISECONDS);\n\t\tsubscriber.assertNoValues();\n\t\tsubscriber.assertNoErrors();\n\n\t\tclock.advanceTimeBy(1, TimeUnit.MILLISECONDS);\n\t\tsubscriber.assertValue(FALLBACK);\n\t\tsubscriber.assertNoErrors();\n\t}", "title": "" }, { "docid": "d3891d3b91f75a1c208f05576a73a83b", "score": "0.54465806", "text": "@Test\n public void testTriggerCondition_allNetworksOverFailureThreshold_isConnected()\n throws Exception {\n int associationRejections = WifiLastResortWatchdog.FAILURE_THRESHOLD + 1;\n int authenticationFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 2;\n int dhcpFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 3;\n\n // Buffer potential candidates 1,2,3 & 4\n List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids,\n mBssids, mFrequencies, mCaps, mLevels, mIsEphemeral, mHasEverConnected);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n // Set Watchdogs internal wifi state tracking to 'connected'\n mLastResortWatchdog.connectedStateTransition(true);\n\n // Count failures on all 4 networks until all of them are over the failure threshold\n boolean watchdogTriggered = false;\n int net = 0;\n for (int i = 0; i < associationRejections; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n net = 1;\n for (int i = 0; i < authenticationFailures; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);\n assertEquals(false, watchdogTriggered);\n }\n net = 2;\n for (int i = 0; i < dhcpFailures; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_DHCP);\n assertEquals(false, watchdogTriggered);\n }\n net = 3;\n for (int i = 0; i < WifiLastResortWatchdog.FAILURE_THRESHOLD + 1; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n }", "title": "" }, { "docid": "0b6519bbdaad3ea314290abe0ae3b9f6", "score": "0.54316276", "text": "@Test\n public void testTriggerCondition_allNetworksOverFailureThreshold_zeroHaveEverConnected()\n throws Exception {\n int associationRejections = WifiLastResortWatchdog.FAILURE_THRESHOLD + 1;\n int authenticationFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 2;\n int dhcpFailures = WifiLastResortWatchdog.FAILURE_THRESHOLD + 3;\n\n // Buffer potential candidates 1,2,3 & 4\n List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids,\n mBssids, mFrequencies, mCaps, mLevels, mIsEphemeral, mHasEverConnected);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n // Count failures on all 4 networks until all of them are over the failure threshold\n boolean watchdogTriggered = false;\n int net = 0;\n for (int i = 0; i < associationRejections; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n net = 1;\n for (int i = 0; i < authenticationFailures; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);\n assertEquals(false, watchdogTriggered);\n }\n net = 2;\n for (int i = 0; i < dhcpFailures; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_DHCP);\n assertEquals(false, watchdogTriggered);\n }\n net = 3;\n for (int i = 0; i < WifiLastResortWatchdog.FAILURE_THRESHOLD + 1; i++) {\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n mSsids[net], mBssids[net], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n }", "title": "" }, { "docid": "9eb321383c51d9ac4879ef8bb8be3d38", "score": "0.5413537", "text": "@Test\n public void testSetRetryFlag_testRetryOnFailure_SuccessAfterRetries() {\n params = params.toBuilder().retry(10).build();\n\n // new params, thus need a new operation\n oper = new MyOper();\n\n final int maxFailures = 3;\n oper.setMaxFailures(maxFailures);\n\n verifyRun(\"testSetRetryFlag_testRetryOnFailure_SuccessAfterRetries\", maxFailures + 1, maxFailures + 1,\n OperationResult.SUCCESS);\n }", "title": "" }, { "docid": "84830bef371ae19fce42c09c6194a8ec", "score": "0.53973496", "text": "@Test\n void testRegionFailoverForVariousResultPartitionAvailabilityCombinations() throws Exception {\n TestingSchedulingTopology topology = new TestingSchedulingTopology();\n\n TestingSchedulingExecutionVertex v1 = topology.newExecutionVertex(ExecutionState.FINISHED);\n TestingSchedulingExecutionVertex v2 = topology.newExecutionVertex(ExecutionState.FINISHED);\n TestingSchedulingExecutionVertex v3 = topology.newExecutionVertex(ExecutionState.RUNNING);\n\n topology.connect(v1, v3, ResultPartitionType.BLOCKING);\n topology.connect(v2, v3, ResultPartitionType.BLOCKING);\n\n TestResultPartitionAvailabilityChecker availabilityChecker =\n new TestResultPartitionAvailabilityChecker();\n RestartPipelinedRegionFailoverStrategy strategy =\n new RestartPipelinedRegionFailoverStrategy(topology, availabilityChecker);\n\n IntermediateResultPartitionID rp1ID = v1.getProducedResults().iterator().next().getId();\n IntermediateResultPartitionID rp2ID = v2.getProducedResults().iterator().next().getId();\n\n // -------------------------------------------------\n // Combination1: (rp1 == available, rp2 == available)\n // -------------------------------------------------\n availabilityChecker.failedPartitions.clear();\n\n verifyThatFailedExecution(strategy, v1).restarts(v1, v3);\n verifyThatFailedExecution(strategy, v2).restarts(v2, v3);\n verifyThatFailedExecution(strategy, v3).restarts(v3);\n\n // -------------------------------------------------\n // Combination2: (rp1 == unavailable, rp2 == available)\n // -------------------------------------------------\n availabilityChecker.failedPartitions.clear();\n availabilityChecker.markResultPartitionFailed(rp1ID);\n\n verifyThatFailedExecution(strategy, v1).restarts(v1, v3);\n verifyThatFailedExecution(strategy, v2).restarts(v1, v2, v3);\n verifyThatFailedExecution(strategy, v3).restarts(v1, v3);\n\n // -------------------------------------------------\n // Combination3: (rp1 == available, rp2 == unavailable)\n // -------------------------------------------------\n availabilityChecker.failedPartitions.clear();\n availabilityChecker.markResultPartitionFailed(rp2ID);\n\n verifyThatFailedExecution(strategy, v1).restarts(v1, v2, v3);\n verifyThatFailedExecution(strategy, v2).restarts(v2, v3);\n verifyThatFailedExecution(strategy, v3).restarts(v2, v3);\n\n // -------------------------------------------------\n // Combination4: (rp1 == unavailable, rp == unavailable)\n // -------------------------------------------------\n availabilityChecker.failedPartitions.clear();\n availabilityChecker.markResultPartitionFailed(rp1ID);\n availabilityChecker.markResultPartitionFailed(rp2ID);\n\n verifyThatFailedExecution(strategy, v1).restarts(v1, v2, v3);\n verifyThatFailedExecution(strategy, v2).restarts(v1, v2, v3);\n verifyThatFailedExecution(strategy, v3).restarts(v1, v2, v3);\n }", "title": "" }, { "docid": "14eeea0f3c20d10444cfe9458fdb8b3d", "score": "0.53570586", "text": "private void incrementFailuresUntilTrigger(String[] ssids, String[] bssids) {\n boolean watchdogTriggered = false;\n for (int i = 0; i < WifiLastResortWatchdog.FAILURE_THRESHOLD; i++) {\n for (int j = 0; j < ssids.length - 1; j++) {\n watchdogTriggered = mLastResortWatchdog\n .noteConnectionFailureAndTriggerIfNeeded(ssids[j], bssids[j],\n WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n }\n for (int i = 0; i < WifiLastResortWatchdog.FAILURE_THRESHOLD - 1; i++) {\n watchdogTriggered = mLastResortWatchdog\n .noteConnectionFailureAndTriggerIfNeeded(ssids[ssids.length - 1],\n bssids[ssids.length - 1], WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(false, watchdogTriggered);\n }\n\n // Increment failure count once more, check that watchdog triggered this time\n watchdogTriggered = mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(\n ssids[ssids.length - 1], bssids[ssids.length - 1],\n WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(true, watchdogTriggered);\n verify(mWifiController).sendMessage(WifiController.CMD_RESTART_WIFI);\n reset(mWifiController);\n }", "title": "" }, { "docid": "434077000037792484a7ae38ead4b5aa", "score": "0.5324481", "text": "@Test\n public void testReloading() throws Exception\n {\n config.setForceReloadCheck(true);\n File testXmlFile = writeReloadFile(RELOAD_XML_NAME, RELOAD_XML_CONTENT, 0);\n File testPropsFile = writeReloadFile(RELOAD_PROPS_NAME, RELOAD_PROPS_CONTENT, 0);\n XMLConfiguration c1 = new XMLConfiguration(testXmlFile);\n c1.setReloadingStrategy(new FileAlwaysReloadingStrategy());\n PropertiesConfiguration c2 = new PropertiesConfiguration(testPropsFile);\n c2.setThrowExceptionOnMissing(true);\n c2.setReloadingStrategy(new FileAlwaysReloadingStrategy());\n config.addConfiguration(c1);\n config.addConfiguration(c2);\n assertEquals(\"Wrong xml reload value\", 0, config.getInt(\"xmlReload\"));\n assertEquals(\"Wrong props reload value\", 0, config\n .getInt(\"propsReload\"));\n\n writeReloadFile(RELOAD_XML_NAME, RELOAD_XML_CONTENT, 1);\n assertEquals(\"XML reload not detected\", 1, config.getInt(\"xmlReload\"));\n config.setForceReloadCheck(false);\n writeReloadFile(RELOAD_PROPS_NAME, RELOAD_PROPS_CONTENT, 1);\n assertEquals(\"Props reload detected though check flag is false\", 0, config\n .getInt(\"propsReload\"));\n }", "title": "" }, { "docid": "8865c04919b23896c287a3b43cc15483", "score": "0.5323754", "text": "@Test\n public void testSetRetrySleepMillis() {\n }", "title": "" }, { "docid": "24bce58dc2dfc1d86892cb56ec1e56bf", "score": "0.5310919", "text": "@AfterTest\n\tpublic void configAT() {\n\t}", "title": "" }, { "docid": "62851d0bd1eb141e256f29a12696a136", "score": "0.5294194", "text": "@Test\n void testRegionFailoverForDataConsumptionErrors() throws Exception {\n TestingSchedulingTopology topology = new TestingSchedulingTopology();\n\n TestingSchedulingExecutionVertex v1 = topology.newExecutionVertex(ExecutionState.FINISHED);\n TestingSchedulingExecutionVertex v2 = topology.newExecutionVertex(ExecutionState.FINISHED);\n TestingSchedulingExecutionVertex v3 = topology.newExecutionVertex(ExecutionState.FINISHED);\n TestingSchedulingExecutionVertex v4 = topology.newExecutionVertex(ExecutionState.RUNNING);\n TestingSchedulingExecutionVertex v5 = topology.newExecutionVertex(ExecutionState.RUNNING);\n TestingSchedulingExecutionVertex v6 = topology.newExecutionVertex(ExecutionState.RUNNING);\n\n topology.connect(v1, v4, ResultPartitionType.BLOCKING);\n topology.connect(v1, v5, ResultPartitionType.BLOCKING);\n topology.connect(v2, v4, ResultPartitionType.BLOCKING);\n topology.connect(v2, v5, ResultPartitionType.BLOCKING);\n topology.connect(v3, v6, ResultPartitionType.BLOCKING);\n\n RestartPipelinedRegionFailoverStrategy strategy =\n new RestartPipelinedRegionFailoverStrategy(topology);\n\n Iterator<TestingSchedulingResultPartition> v4InputEdgeIterator =\n v4.getConsumedResults().iterator();\n TestingSchedulingResultPartition v1out = v4InputEdgeIterator.next();\n verifyThatFailedExecution(strategy, v4)\n .partitionConnectionCause(v1out)\n .restarts(v1, v4, v5);\n TestingSchedulingResultPartition v2out = v4InputEdgeIterator.next();\n verifyThatFailedExecution(strategy, v4)\n .partitionConnectionCause(v2out)\n .restarts(v2, v4, v5);\n\n Iterator<TestingSchedulingResultPartition> v5InputEdgeIterator =\n v5.getConsumedResults().iterator();\n v1out = v5InputEdgeIterator.next();\n verifyThatFailedExecution(strategy, v5)\n .partitionConnectionCause(v1out)\n .restarts(v1, v4, v5);\n v2out = v5InputEdgeIterator.next();\n verifyThatFailedExecution(strategy, v5)\n .partitionConnectionCause(v2out)\n .restarts(v2, v4, v5);\n\n TestingSchedulingResultPartition v3out = v6.getConsumedResults().iterator().next();\n verifyThatFailedExecution(strategy, v6).partitionConnectionCause(v3out).restarts(v3, v6);\n }", "title": "" }, { "docid": "544d22c1751ed977d829df1326307b61", "score": "0.5293887", "text": "@Test\n public void testInterleavingTestFailureMetricsSkip() throws Exception {\n Bundle b = new Bundle();\n b.putString(BaseCollectionListener.COLLECT_PER_RUN, \"false\");\n b.putString(BaseCollectionListener.SKIP_TEST_FAILURE_METRICS, \"true\");\n mListener = initListener(b);\n\n mListener.onTestRunStart(mListener.createDataRecord(), FAKE_DESCRIPTION);\n verify(helper, times(0)).startCollecting();\n mListener.testStarted(FAKE_TEST_DESCRIPTION);\n verify(helper, times(1)).startCollecting();\n mListener.onTestEnd(mListener.createDataRecord(), FAKE_TEST_DESCRIPTION);\n verify(helper, times(1)).getMetrics();\n verify(helper, times(1)).stopCollecting();\n\n mListener.testStarted(FAKE_TEST_DESCRIPTION);\n verify(helper, times(2)).startCollecting();\n Failure failureDesc = new Failure(FAKE_TEST_DESCRIPTION,\n new Exception());\n mListener.testFailure(failureDesc);\n mListener.onTestEnd(mListener.createDataRecord(), FAKE_TEST_DESCRIPTION);\n // Metric collection should not be done on failure.\n verify(helper, times(1)).getMetrics();\n verify(helper, times(2)).stopCollecting();\n\n mListener.testStarted(FAKE_TEST_DESCRIPTION);\n verify(helper, times(3)).startCollecting();\n mListener.onTestEnd(mListener.createDataRecord(), FAKE_TEST_DESCRIPTION);\n verify(helper, times(2)).getMetrics();\n verify(helper, times(3)).stopCollecting();\n }", "title": "" }, { "docid": "17470991a3293748fa5045fb7957d673", "score": "0.52679086", "text": "@Test\r\n\tpublic void testRetoureConfig() {\r\n\t\ttry {\r\n\t\t\tregister(common.RPCConstantsAndServices.AdministratorName, common.RPCConstantsAndServices.AdministratorName);\r\n\t\t\tif(keeper == null) fail();\r\n\t\t\tassertEquals(10, serverConstants.ConfigConstants.getRetourePercentage());\r\n\t\t\tkeeper.changeRetourePercentage(20);\r\n\t\t\tassertEquals(20, serverConstants.ConfigConstants.getRetourePercentage());\r\n\t\t} catch (PersistenceException e) {\r\n\t\t\tfail();\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "33ea996bcf2e13504718f931b166abec", "score": "0.52674097", "text": "private void s1ResetAfterTest() {\n\t\tcommandsThread.stopCommands();\n\t\tcommandsThread.moveFileToReporterAndAddLink();\n\t\tGeneralUtils.startLevel(\"After Test\");\n\t\tGeneralUtils.startLevel(\"Returning to original state for other EnodeBs which are not in the test\");\n\t\tfor(EnodeB enb : otherEnb){\n\t\t\tperipheralsConfig.changeEnbState(enb, EnbStates.IN_SERVICE);\n\t\t}\n\t\tGeneralUtils.stopLevel();\n\t\t\n\t\treport.report(\"Setting default profile\");\n\t\tenodebConfig.setProfile(dut, EnbProfiles.Network_Profile, originalNetworkProfile);\n\t\tGeneralUtils.startLevel(\"Deleting IPG profile\");\n\t\tenodebConfig.deleteClonedProfiles();\n\t\tGeneralUtils.stopLevel();\n\t\t\n\t\tGeneralUtils.startLevel(\"Rebooting EnodeB and waiting for enodeB to reach All Running state\");\n\t\tif(!rebootDUTAndWait(0))\n\t\t\treport.report(dut.getName() + \"Failed to reach all running!\", Reporter.WARNING);\n\t\tGeneralUtils.stopLevel();\n\t\t\n\t\t\n\t\tenableUEs();\n\t\tGeneralUtils.stopLevel();\n\t}", "title": "" }, { "docid": "3d48186ef54e5228c3ff0130da9d10c2", "score": "0.5261868", "text": "@Override\n public void testPeriodic() {\n }", "title": "" }, { "docid": "3d48186ef54e5228c3ff0130da9d10c2", "score": "0.5261868", "text": "@Override\n public void testPeriodic() {\n }", "title": "" }, { "docid": "3d48186ef54e5228c3ff0130da9d10c2", "score": "0.5261868", "text": "@Override\n public void testPeriodic() {\n }", "title": "" }, { "docid": "3d48186ef54e5228c3ff0130da9d10c2", "score": "0.5261868", "text": "@Override\n public void testPeriodic() {\n }", "title": "" }, { "docid": "3d48186ef54e5228c3ff0130da9d10c2", "score": "0.5261868", "text": "@Override\n public void testPeriodic() {\n }", "title": "" }, { "docid": "3d48186ef54e5228c3ff0130da9d10c2", "score": "0.5261868", "text": "@Override\n public void testPeriodic() {\n }", "title": "" }, { "docid": "3d48186ef54e5228c3ff0130da9d10c2", "score": "0.5261868", "text": "@Override\n public void testPeriodic() {\n }", "title": "" }, { "docid": "3d48186ef54e5228c3ff0130da9d10c2", "score": "0.5261868", "text": "@Override\n public void testPeriodic() {\n }", "title": "" }, { "docid": "0e2b5c68e69a74ba8ec8831cbe1e70b6", "score": "0.5247467", "text": "abstract void updateTestCase(EspressoTestCase espressoTestCase, List<Integer> newFailingPerformLines);", "title": "" }, { "docid": "fccbb9fbd4936f7f38b12e83613c58e0", "score": "0.52412254", "text": "@Override\r\n\tpublic void testPeriodic() {\r\n\t}", "title": "" }, { "docid": "a46d4635e3d2e9ecb4c9fb1b07e3f696", "score": "0.5239258", "text": "@Order(2)\n @Test\n @DisplayName(\"Test domain and cluster status conditions after setting cluster serverStartPolicy to Never.\")\n void testSetClusterToNeverAndVerifyStatus() {\n logger.info(\"patch the cluster resource with serverStartPolicy to Never\");\n String patchStr = \"[{\\\"op\\\": \\\"replace\\\", \\\"path\\\": \\\"/spec/serverStartPolicy\\\", \\\"value\\\": \\\"Never\\\"}]\";\n\n logger.info(\"Updating cluster configuration using patch string: {0}\", patchStr);\n V1Patch patch = new V1Patch(patchStr);\n assertTrue(patchClusterCustomResource(clusterName, domainNamespace,\n patch, V1Patch.PATCH_FORMAT_JSON_PATCH), \"Failed to patch cluster\");\n\n // check domain status conditions stay Available and Complete after the cluster serverStartPolicy is set to Never\n assertTrue(assertDoesNotThrow(\n () -> domainStatusConditionTypeHasExpectedStatus(domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, \"True\").call()),\n \"domain status condition Completed type does not have expected True value\");\n assertTrue(assertDoesNotThrow(\n () -> domainStatusConditionTypeHasExpectedStatus(domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, \"True\").call()),\n \"domain status condition Available type does not have expected True value\");\n\n // wait for the cluster status conditions go to Unavailable after the cluster serverStartPolicy is set to Never\n checkDomainStatusClusterConditionTypeHasExpectedStatus(domainUid, domainNamespace, clusterName,\n DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, \"False\");\n\n // wait for the cluster status condition go to Complete after the cluster serverStartPolicy is set to Never\n checkDomainStatusClusterConditionTypeHasExpectedStatus(domainUid, domainNamespace, clusterName,\n DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, \"True\");\n\n // check the cluster pod is deleted\n for (int i = 1; i <= replicaCount; i++) {\n logger.info(\"Wait for managed server pod {0} to be deleted in namespace {1}\",\n managedServerPrefix + i, domainNamespace);\n checkPodDeleted(managedServerPrefix + i, domainUid, domainNamespace);\n }\n\n // check domain status condition stay Available and Complete after the cluster server pods are deleted\n assertTrue(assertDoesNotThrow(\n () -> domainStatusConditionTypeHasExpectedStatus(domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, \"True\").call()),\n \"domain status condition Completed type does not have expected True value\");\n assertTrue(assertDoesNotThrow(\n () -> domainStatusConditionTypeHasExpectedStatus(domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, \"True\").call()),\n \"domain status condition Available type does not have expected True value\");\n\n // check cluster conditions are Unavailable and Complete after the cluster server pods are deleted\n assertTrue(assertDoesNotThrow(\n () -> domainStatusClustersConditionTypeHasExpectedStatus(domainUid, domainNamespace, clusterName,\n DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, \"True\", DOMAIN_VERSION).call()),\n \"domain status cluster condition Completed type does not have expected True value\");\n assertTrue(assertDoesNotThrow(\n () -> domainStatusClustersConditionTypeHasExpectedStatus(domainUid, domainNamespace, clusterName,\n DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, \"False\", DOMAIN_VERSION).call()),\n \"domain status cluster condition Available type does not have expected False value\");\n }", "title": "" }, { "docid": "231bdafd1c3b3b644dfe73e2320780c6", "score": "0.5229319", "text": "@Override\n public void testPeriodic() {\n\n }", "title": "" }, { "docid": "489c06c52a8dd236146102026c85eda3", "score": "0.522767", "text": "@Order(3)\n @Test\n @DisplayName(\"Test domain and cluster status conditions after set cluster serverStartPolicy from Never to IfNeeded.\")\n void testSetClusterToIfNeeded() {\n logger.info(\"patch the cluster resource with serverStartPolicy to IfNeeded\");\n String patchStr = \"[{\\\"op\\\": \\\"replace\\\", \\\"path\\\": \\\"/spec/serverStartPolicy\\\", \\\"value\\\": \\\"IfNeeded\\\"}]\";\n \n logger.info(\"Updating cluster configuration using patch string: {0}\", patchStr);\n V1Patch patch = new V1Patch(patchStr);\n assertTrue(patchClusterCustomResource(clusterName, domainNamespace,\n patch, V1Patch.PATCH_FORMAT_JSON_PATCH), \"Failed to patch cluster\");\n\n // check domain status conditions become Unavailable and Incomplete during the patching operation\n checkDomainStatusConditionTypeHasExpectedStatus(withQuickRetryPolicy, domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, \"False\", DOMAIN_VERSION);\n checkDomainStatusConditionTypeHasExpectedStatus(withQuickRetryPolicy, domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, \"False\", DOMAIN_VERSION);\n\n // wait for the managed server pods are ready\n for (int i = 1; i <= replicaCount; i++) {\n logger.info(\"Wait for managed server pod {0} to be ready in namespace {1}\",\n managedServerPrefix + i, domainNamespace);\n checkPodReadyAndServiceExists(managedServerPrefix + i, domainUid, domainNamespace);\n }\n\n // check the cluster status conditions are Available and Complete after the cluster servers pods are ready\n checkDomainStatusClusterConditionTypeHasExpectedStatus(shortRetryPolicy, domainUid, domainNamespace,\n clusterName, DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, \"True\", DOMAIN_VERSION);\n checkDomainStatusClusterConditionTypeHasExpectedStatus(shortRetryPolicy, domainUid, domainNamespace,\n clusterName, DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, \"True\", DOMAIN_VERSION);\n\n // wait for the domain status conditions go to Available and Complete after the cluster servers pods are ready\n checkDomainStatusConditionTypeHasExpectedStatus(domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, \"True\");\n checkDomainStatusConditionTypeHasExpectedStatus(domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, \"True\");\n }", "title": "" }, { "docid": "511cd6c096afa579abf5fa384ed98d2a", "score": "0.5223454", "text": "@Test\n public void testConfigSlotBasedRequirementDefinitionWithPreventManualInitializationIsReturned() {\n // Given the organization\n final OrgKey lOrgkey = Domain\n .createOrganization( aOrganization -> aOrganization.setType( RefOrgTypeKey.OPERATOR ) );\n HumanResourceKey lHrKey = Domain.createHumanResource( aHr -> {\n aHr.setUser( Domain.createUser() );\n aHr.setOrganization( lOrgkey );\n } );\n\n // Given a assembly\n final PartNoKey lAircraftPart = createAircraftPart();\n final AssemblyKey lAircraftAssembly = createAcftAssyWithAcftPart( lAircraftPart );\n final ConfigSlotKey lAircraftRootConfigSlot =\n Domain.readRootConfigurationSlot( lAircraftAssembly );\n\n // Given a configuration slot based requirement definition with prevent manual\n // initialization which sets to true\n final TaskTaskKey lReqDefinition = Domain.createRequirementDefinition( aReqDefn -> {\n aReqDefn.againstConfigurationSlot( lAircraftRootConfigSlot );\n aReqDefn.setTaskClass( RefTaskClassKey.REQ );\n aReqDefn.setOrganization( lOrgkey );\n aReqDefn.setPreventManualInitialization( true );\n } );\n\n final InventoryKey lAircraft = Domain.createAircraft( aAircraft -> {\n aAircraft.setAssembly( lAircraftAssembly );\n } );\n\n // When execute this query EditInventoryTasks.qrx\n final QuerySet lQs = executeQuery( lAircraft, lHrKey );\n\n // verify the task definition with correct prevent manual initialization is returned\n final int lExpectedRowCount = 1;\n final int lActualRowCount = lQs.getRowCount();\n assertEquals( \"Unexpected Number of Rows returned\", lExpectedRowCount, lActualRowCount );\n\n lQs.first();\n\n final TaskTaskKey lExpectedRequirementDefinitionKey = lReqDefinition;\n final TaskTaskKey lActualRequirementDefinitionKey =\n lQs.getKey( TaskTaskKey.class, \"task_definition_key\" );\n assertEquals( \"Unexpected Task Definition key\", lExpectedRequirementDefinitionKey,\n lActualRequirementDefinitionKey );\n\n final boolean lActualPreventManualInitialization =\n lQs.getBoolean( \"prevent_manual_init_bool\" );\n assertTrue( lActualPreventManualInitialization );\n }", "title": "" }, { "docid": "8956a558c7b572d968a70689df866b28", "score": "0.522195", "text": "public void testBadResubmission()\n {\n // Test resubmitting the wrong one in a sequential task\n ArrayList<ITask> al = new ArrayList<ITask>(jobCount);\n for (int i = 0; i < jobCount; i++)\n {\n al.add(new BasicTask(i));\n }\n\n BadResubmitListener listener = new BadResubmitListener(al.size(), 0);\n jobManager.submitJobs(al, true, listener);\n\n listener.sleepUntilDone();\n assertTrue(listener.isSuccess());\n\n // Test resubmitting a completely bogus task\n listener = new BadResubmitListener(al.size(), 1);\n jobManager.submitJobs(al, true, listener);\n\n listener.sleepUntilDone();\n assertTrue(listener.isSuccess());\n\n // Test resubmitting a task on a bogus batch\n listener = new BadResubmitListener(al.size(), 2);\n jobManager.submitJobs(al, true, listener);\n\n listener.sleepUntilDone();\n assertTrue(listener.isSuccess());\n }", "title": "" }, { "docid": "8299870a5cd07a0238c81369f0a078e2", "score": "0.5218238", "text": "@Override\r\n public void testPeriodic() {\r\n }", "title": "" }, { "docid": "df411a1e1d3c410eb78248dc528ec3d8", "score": "0.52166206", "text": "private void testCheckFailedEndpoints(KieServicesConfiguration config) throws Exception {\n wireMockServer1.stop();\n\n KieServicesClient client = KieServicesFactory.newKieServicesClient(config);\n\n ServiceResponse<KieServerInfo> response = client.getServerInfo();\n assertSuccess(response);\n assertEquals(\"Server version\", \"2\", response.getResult().getVersion());\n\n response = client.getServerInfo();\n assertSuccess(response);\n assertEquals(\"Server version\", \"2\", response.getResult().getVersion());\n\n List<String> available = ((AbstractKieServicesClientImpl) client).getLoadBalancer().getAvailableEndpoints();\n assertNotNull(available);\n assertEquals(1, available.size());\n\n // now let's put back online server 1\n wireMockServer1.start();\n\n Future waitForResult = ((AbstractKieServicesClientImpl) client).getLoadBalancer().checkFailedEndpoints();\n waitForResult.get(5, TimeUnit.SECONDS);\n\n available = ((AbstractKieServicesClientImpl) client).getLoadBalancer().getAvailableEndpoints();\n assertNotNull(available);\n assertEquals(2, available.size());\n\n response = client.getServerInfo();\n assertSuccess(response);\n assertEquals(\"Server version\", \"2\", response.getResult().getVersion());\n\n // this is the most important as it was offline before (server 1)\n response = client.getServerInfo();\n assertSuccess(response);\n assertEquals(\"Server version\", \"1\", response.getResult().getVersion());\n }", "title": "" }, { "docid": "da9b73d8aa0901ae3613af95d53d9f00", "score": "0.52164793", "text": "@AfterAll\n\tpublic static void verifyCorrectTestsRun() {\n\t\tassertTrue(testsRun.contains(\"shouldRun\"), \"Incorrect test run\");\n\t\tassertEquals(1, testsRun.size(), \"Incorrect number of tests run\");\n\t}", "title": "" }, { "docid": "b6ceb9d854925e7783f635811652d999", "score": "0.5212478", "text": "@Override\n\tpublic void testPeriodic() {\n\t}", "title": "" }, { "docid": "b6ceb9d854925e7783f635811652d999", "score": "0.5212478", "text": "@Override\n\tpublic void testPeriodic() {\n\t}", "title": "" }, { "docid": "b6ceb9d854925e7783f635811652d999", "score": "0.5212478", "text": "@Override\n\tpublic void testPeriodic() {\n\t}", "title": "" }, { "docid": "b6ceb9d854925e7783f635811652d999", "score": "0.5212478", "text": "@Override\n\tpublic void testPeriodic() {\n\t}", "title": "" }, { "docid": "b6ceb9d854925e7783f635811652d999", "score": "0.5212478", "text": "@Override\n\tpublic void testPeriodic() {\n\t}", "title": "" }, { "docid": "b6ceb9d854925e7783f635811652d999", "score": "0.5212478", "text": "@Override\n\tpublic void testPeriodic() {\n\t}", "title": "" }, { "docid": "b6ceb9d854925e7783f635811652d999", "score": "0.5212478", "text": "@Override\n\tpublic void testPeriodic() {\n\t}", "title": "" }, { "docid": "b6ceb9d854925e7783f635811652d999", "score": "0.5212478", "text": "@Override\n\tpublic void testPeriodic() {\n\t}", "title": "" }, { "docid": "b6ceb9d854925e7783f635811652d999", "score": "0.5212478", "text": "@Override\n\tpublic void testPeriodic() {\n\t}", "title": "" }, { "docid": "337e15b0a94fc7013cdeb2de0f5786cf", "score": "0.52094096", "text": "@Test\n public void testSetRetryFlag_testRetryOnFailure_RetriesExhausted() {\n final int maxRetries = 3;\n params = params.toBuilder().retry(maxRetries).build();\n\n // new params, thus need a new operation\n oper = new MyOper();\n\n oper.setMaxFailures(10);\n\n verifyRun(\"testSetRetryFlag_testRetryOnFailure_RetriesExhausted\", maxRetries + 1, maxRetries + 1,\n OperationResult.FAILURE_RETRIES);\n }", "title": "" }, { "docid": "5bf6ad471c562531632ff3fce1242385", "score": "0.51917696", "text": "@Override\n\tpublic void testPeriodic() {\n\n\t}", "title": "" }, { "docid": "9d1adecaea9ae56a1cc4cd1e4608241b", "score": "0.5187205", "text": "public void run() throws Exception {\n\n\t// Announce where we are in the test\n\tlogger.log(Level.FINE, \"ClearFailureListenerTest: In run() method.\");\n\n\t// get a lease renewal set w/ duration for as long as we can\n\tlogger.log(Level.FINE, \"Creating the lease renewal set with duration\" +\n\t\t\t \" of Lease.FOREVER\");\n\tLeaseRenewalService lrs = getLRS();\n\tLeaseRenewalSet set = lrs.createLeaseRenewalSet(Lease.FOREVER);\n\tset = prepareSet(set);\n\tlrm.renewFor(prepareLease(set.getRenewalSetLease()), Lease.FOREVER, null);\n\n\t\n\t// register listener to receive events\n\tlogger.log(Level.FINE, \"Registering listener for renewal failure\" +\n\t\t\t \" events.\");\n\tset.setRenewalFailureListener(rrl , null);\n\n\t/* create 6 test leases which will throw definite exceptions\n\t and add then to the renewal set. Three lease's expiration\n\t times are 30 seconds, the rest are 60 seconds. */\n\tTestLease[] lease = new TestLease[6];\n\n\tfor (int i = 0; i < 6; i += 2) {\n\t logger.log(Level.FINE, \"Creating lease with duration of \" +\n\t\t\t renewGrant + \" milliseconds.\");\n\t lease[i] = \n\t\tshortLeaseProvider.createNewLease(owner, \n\t\t\t\t\t rstUtil.durToExp(renewGrant));\n\t set.renewFor(lease[i], Lease.FOREVER);\n\t logger.log(Level.FINE, \"Creating lease with duration of \" +\n\t\t\t renewGrant*3 + \" milliseconds.\");\n\t lease[i+1] = \n\t\tlongLeaseProvider.createNewLease(owner, \n\t\t\t\t rstUtil.durToExp(renewGrant*3));\n\t set.renewFor(lease[i+1], Lease.FOREVER);\n\t}\n\n\t// allow the leases with lower duration times to expire\n\trstUtil.waitForLeaseExpiration(lease[4],\n\t \"for client leases with lower expiration times to expire.\");\n\n\t// remove the listener many times to ensure no ill effect\n\ttry {\n\t for (int i = 0; i < 10; ++i) {\n\t\tset.clearRenewalFailureListener();\n\t }\n\t} catch (Exception ex) {\n\t String message = \"Multiple calls to \" +\n\t\t\"clearRenewalFailureListener raises an exception.\";\n\t throw new TestException(message, ex);\n\t}\n\n\t// assert that only 3 calls to notify have been made\n\tint numberOfEvents = rrl.getEvents().length;\n\tif (numberOfEvents != 3) {\n\t String message = \"Check #1:\\n\" +\n\t\t\"Listener received \" + numberOfEvents +\n\t\t\" events but is required to receive exactly 3.\";\n\t throw new TestException(message);\n\t}\n\t\n\t// wait for the rest of the leases to expire\n\trstUtil.waitForLeaseExpiration(lease[5],\n\t\t \"for the remaining client leases to expire.\");\n\n\t// assert that all leases have expired\n\tfor (int i = 0; i < 6; ++i) {\n\t Lease managedLease = set.remove(lease[i]);\n\t if (managedLease != null) {\n\t\tString message = \"Lease #\" + i + \" did not expire as \" +\n\t\t \"expect.\";\n\t\tthrow new TestException(message);\n\t }\n\t}\n\n\t// assert once again that only 3 calls to notify have been made\n\tnumberOfEvents = rrl.getEvents().length;\n\tif (numberOfEvents != 3) {\n\t String message = \"Check #2:\\n\" +\n\t\t\"Listener received \" + numberOfEvents +\n\t\t\" events but is required to receive exactly 3.\";\n\t throw new TestException(message);\n\t}\n }", "title": "" }, { "docid": "38fb44c065c42f87af39e7e201871310", "score": "0.51797736", "text": "private void setupAdminHotDeploymentFailure()\n {\n Mockito.reset(this.admin);\n Mockito.when(\n this.admin.isServerRunning(Mockito.anyString(), Mockito.anyInt())).thenReturn(true);\n Mockito.when(this.admin.deploy(Mockito.anyString())).thenReturn(false);\n }", "title": "" }, { "docid": "72956cc2397e6a15d33d2a3d148d9910", "score": "0.51757485", "text": "public void testDefinitionOfDoneNotSet() {\n parallelTasks.start().waitForTasks();\n verifyAllTasksAndCallbacksExecuted();\n }", "title": "" }, { "docid": "30e6affaa1500bf96d8a91d6c7f644a5", "score": "0.51712084", "text": "@Test\n public void testShouldRunAllTasksInSequence() throws Exception\n {\n when( metadataSyncService.doMetadataSync( any( MetadataSyncParams.class ) ) ).thenReturn( metadataSyncSummary );\n when( metadataSyncPreProcessor.handleCurrentMetadataVersion( metadataRetryContext ) ).thenReturn( metadataVersion );\n when( metadataSyncPreProcessor.handleMetadataVersionsList( metadataRetryContext, metadataVersion ) ).thenReturn( metadataVersions );\n when( metadataSyncService.isSyncRequired( any( MetadataSyncParams.class ) ) ).thenReturn( true );\n metadataSyncJob.runSyncTask( metadataRetryContext );\n\n verify( metadataSyncPreProcessor ).setUp( metadataRetryContext );\n verify( metadataSyncPreProcessor ).handleAggregateDataPush( metadataRetryContext );\n verify( metadataSyncPreProcessor ).handleEventDataPush( metadataRetryContext );\n verify( metadataSyncPreProcessor ).handleTrackerDataPush( metadataRetryContext );\n verify( metadataSyncPreProcessor ).handleCurrentMetadataVersion( metadataRetryContext );\n verify( metadataSyncPreProcessor ).handleMetadataVersionsList( metadataRetryContext, metadataVersion );\n verify( metadataSyncService ).doMetadataSync( any( MetadataSyncParams.class ) );\n verify( metadataSyncPostProcessor ).handleSyncNotificationsAndAbortStatus( metadataSyncSummary, metadataRetryContext, metadataVersion );\n }", "title": "" }, { "docid": "25eb515c432aee3fc62df378ba9946df", "score": "0.5166998", "text": "@Test\n public void testPerTestFailureFlowDefault() throws Exception {\n Bundle b = new Bundle();\n b.putString(BaseCollectionListener.COLLECT_PER_RUN, \"false\");\n mListener = initListener(b);\n\n mListener.onTestRunStart(mListener.createDataRecord(), FAKE_DESCRIPTION);\n verify(helper, times(0)).startCollecting();\n mListener.testStarted(FAKE_TEST_DESCRIPTION);\n verify(helper, times(1)).startCollecting();\n Failure failureDesc = new Failure(FAKE_TEST_DESCRIPTION,\n new Exception());\n mListener.testFailure(failureDesc);\n mListener.onTestEnd(mListener.createDataRecord(), FAKE_TEST_DESCRIPTION);\n // Metrics should be called by default on test failure by default.\n verify(helper, times(1)).getMetrics();\n verify(helper, times(1)).stopCollecting();\n }", "title": "" }, { "docid": "7d03cae6fc1938276e48120a95b6aa9b", "score": "0.5164162", "text": "@Test\n\tpublic void scheduling_stress_test()\n\t{\n\t\tfinal List<User> users = proprTestHelper.generateRandomUsers(100);\n\t\tusers.forEach(testEntityManager::persist);\n\n\t\tfinal Group group = proprTestHelper.testGroup(\"groupname\", users.get(0), users);\n\t\ttestEntityManager.persist(group);\n\n\t\tfinal List<TaskDefinition> definitions = proprTestHelper.generateRandomTaskDefinitions(100, group, 123456123456L);\n\t\tdefinitions.forEach(testEntityManager::persist);\n\n\t\tfinal StopWatch sw = new StopWatch();\n\t\tsw.start();\n\t\tfinal SchedulingResult result = schedulingService.reschedule(group, LocalDate.now(), LocalDate.now().plusYears(1));\n\t\tsw.stop();\n\n\t\tlog.info(\"Scheduling stress test took {}ms\", sw.getTime());\n\t\tlog.info(\"Scheduled {} tasks in total\", result.getTasks().size());\n\n\t\tassertTrue(\"Scheduling was succesful\", result.isSuccesfull());\n\t\tassertTrue(\"Tasks have been generated for the group\", result.getTasks().size() > 0);\n\t\tassertTrue(\"all tasks have an assignee\", result.getTasks().stream().allMatch(t -> t.getAssignee() != null));\n\t}", "title": "" }, { "docid": "c9044a0b3399cd029aab4c43041cb03c", "score": "0.516181", "text": "@BeforeTest\n\tpublic void checkTestSkip(){\n\t\t\tif(!TestUtil.isTestCaseRunnable(suiteAxls, this.getClass().getSimpleName())){\n\t\t\tAPP_LOGS.debug(\"Skipping Test case\"+this.getClass().getSimpleName() + \"RunMode set as 'NO'\");\n\t\t\tthrow new SkipException(\"Skipping Test case \"+this.getClass().getSimpleName() + \"RunMode set as 'NO'\");\n\t\t\t}\n\t\t\t\n\t\t\trunmodes =TestUtil.getDataSetRunmodes(suiteAxls, this.getClass().getSimpleName());\n\t\t\t\t\n\t}", "title": "" }, { "docid": "79576049638764734ee222254677e5cc", "score": "0.5161535", "text": "@Test\n\tpublic void testObtainInternalConnection() throws SQLException, ClassNotFoundException{\n\t\texpect(mockPool.getConfig()).andReturn(config).anyTimes();\n\n\t\ttestClass.url = \"jdbc:mock:driver\";\n\t\tconfig.setAcquireRetryDelay(1);\n\t\tCustomHook testHook = new CustomHook();\n\t\tconfig.setConnectionHook(testHook);\n\t\t// make it fail the first time and succeed the second time\n\t\texpect(mockPool.obtainRawInternalConnection()).andThrow(new SQLException()).once().andReturn(mockConnection).once();\n\t\treplay(mockPool);\n\t\ttestClass.obtainInternalConnection();\n\t\t// get counts on our hooks\n\t\t\n\t\tassertEquals(1, testHook.fail);\n\t\tassertEquals(1, testHook.acquire);\n\t\t\n\t\t// Test 2: Same thing but without the hooks\n\t\treset(mockPool);\n\t\texpect(mockPool.getConfig()).andReturn(config).anyTimes();\n\t\texpect(mockPool.obtainRawInternalConnection()).andThrow(new SQLException()).once().andReturn(mockConnection).once();\n\t\tcount=1;\n\t\tconfig.setConnectionHook(null);\n\t\treplay(mockPool);\n\t\tassertEquals(mockConnection, testClass.obtainInternalConnection());\n\t\t\n\t\t// Test 3: Keep failing\n\t\treset(mockPool);\n\t\texpect(mockPool.getConfig()).andReturn(config).anyTimes();\n\t\texpect(mockPool.obtainRawInternalConnection()).andThrow(new SQLException()).anyTimes();\n\t\treplay(mockPool);\n\t\tcount=99;\n\t\tconfig.setAcquireRetryAttempts(2);\n\t\ttry{\n\t\t\ttestClass.obtainInternalConnection();\n\t\t\tfail(\"Should have thrown an exception\");\n\t\t} catch (SQLException e){\n\t\t\t// expected behaviour\n\t\t}\n\t\t \n\t\t//\tTest 4: Get signalled to interrupt fail delay\n\t\tcount=99;\n\t\tconfig.setAcquireRetryAttempts(2);\n\t\tconfig.setAcquireRetryDelay(7000);\n\t\tfinal Thread currentThread = Thread.currentThread();\n\n\t\ttry{\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\n//\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile (!currentThread.getState().equals(State.TIMED_WAITING)){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcurrentThread.interrupt();\n\t\t\t\t}\n\t\t\t}).start();\n\t\t\ttestClass.obtainInternalConnection();\n\t\t\tfail(\"Should have thrown an exception\");\n\t\t} catch (SQLException e){\n\t\t\t// expected behaviour\n\t\t}\n\t\tconfig.setAcquireRetryDelay(10);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "e546a1d663603417c1dd005335599101", "score": "0.51504916", "text": "@Override\n public void testPeriodic() {\n CommandScheduler.getInstance().run();\n }", "title": "" }, { "docid": "03142e785fd1414c533dbfb7a19dd615", "score": "0.5141309", "text": "public void testPeriodic() {\n \n }", "title": "" }, { "docid": "03142e785fd1414c533dbfb7a19dd615", "score": "0.5141309", "text": "public void testPeriodic() {\n \n }", "title": "" }, { "docid": "03142e785fd1414c533dbfb7a19dd615", "score": "0.5141309", "text": "public void testPeriodic() {\n \n }", "title": "" }, { "docid": "03142e785fd1414c533dbfb7a19dd615", "score": "0.5141309", "text": "public void testPeriodic() {\n \n }", "title": "" }, { "docid": "03142e785fd1414c533dbfb7a19dd615", "score": "0.5141309", "text": "public void testPeriodic() {\n \n }", "title": "" }, { "docid": "03142e785fd1414c533dbfb7a19dd615", "score": "0.5141309", "text": "public void testPeriodic() {\n \n }", "title": "" }, { "docid": "6534205a9644713a502a1213ee5f0270", "score": "0.51393074", "text": "public void setupFailureRun(){\n\t\t\n\t\t\n\t\tif(getItemChoice() == TASK_FAILURE) {\n\t\t\t//After the flush of the killingList, we create a new one, because in every run we drain out our current killingList until it's empty\n\t\t\tkillingList = getAllChoosenVertices();\n\t\t}\n\t\t\n\t\t\n\t\tif(getItemChoice() == INSTANCE_FAILURE) {\n\t\t\t//We create a new List of Instance Names, that should be killed\n\t\t\tinstanceNamesToKill = getAllChoosenInstances();\n\t\t\tallDifferentKindOfInstancesDuringJob = getAllTasksOfAllInstancesOfThisJob();\n\t\t}\n\t\t\n\t\t//If there are some unexpected delayTimes, we remove them\n\t\tint delete = delayTime.size();\n\t\tif(delayTime.size() != 0) {\n\t\t\t\n\t\t\tfor(int i = 0; i<delete;i++) {\n\t\t\t\tdelayTime.removeFirst();\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t//After the flush of the delayTime, we fill it up with the selected delayTimes from the GUI\n\t\tfor(int i = 0; i<selectedDelayTimeFromGUI.size();i++) {\n\t\t\tdelayTime.add(selectedDelayTimeFromGUI.get(i));\n\t\t}\n\t\t\n\t\t//At this point we need to clear this Information out, because we start a new run, and we couldn't have reached any Event yet\n\t\tdelete = alreadyVisitedEventNames.size();\n\t\tif(alreadyVisitedEventNames.size() !=0) {\n\t\t\t\n\t\t\tfor(int i = 0; i < delete;i++) {\n\t\t\t\talreadyVisitedEventNames.removeFirst();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//If there are some unexpected vertices which should be killed, but wasn't removed during this process, we remove them now\n\t\tdelete = eventNames.size();\n\t\tif(eventNames.size() !=0) {\n\t\t\t\n\t\t\tfor(int i = 0; i < delete;i++) {\n\t\t\t\teventNames.removeFirst();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "91916a6341bd4216b902ee177136b9f8", "score": "0.5138643", "text": "@Override\n\tpublic void testPeriodic() {\n\t\t\n\t}", "title": "" }, { "docid": "3bfa92e4965029daabbcbed86541419d", "score": "0.5123705", "text": "@Test\n public void testInvalidateAfterChange()\n {\n ConfigurationEvent event = new ConfigurationEvent(config, 0, null,\n null, true);\n config.configurationChanged(event);\n assertEquals(\"Invalidate event fired\", 0, listener.invalidateEvents);\n event = new ConfigurationEvent(config, 0, null, null, false);\n config.configurationChanged(event);\n assertEquals(\"No invalidate event fired\", 1, listener.invalidateEvents);\n }", "title": "" }, { "docid": "950e398856467dee811008bd1b4009b0", "score": "0.5117443", "text": "void testConfiguration();", "title": "" }, { "docid": "93f759b5ca78a43f257a418ff88bdf36", "score": "0.50825393", "text": "@Override\n\tpublic void testPeriodic(){}", "title": "" }, { "docid": "5456c13ca9164a89816230e555ec422f", "score": "0.5072796", "text": "@Test\n\tvoid rbe1ExpectBeat() {\n\t\tassertFalse(rbe1.expectToBeat(rbe2));\n\t}", "title": "" }, { "docid": "3e594f0a963dae4e6263c66bea6357cb", "score": "0.5069067", "text": "@Before\n public void resetTests() {\n runtime.parseConfigurationString(getDefaultConfigurationString());\n // .setCacheDisabled(true); // Disable cache during unit tests to fully stress the system.\n runtime.getAddressSpaceView().resetCaches();\n }", "title": "" }, { "docid": "428048c558a2c8e149e6c66af4c55f57", "score": "0.5064744", "text": "@Test\n public void updatePomsTest() throws Exception {\n\n // Wait until the last module (ear) finishes compiling during dev mode startup\n // TODO: this can be removed if dev mode does not recompile after first starting up\n verifyLogMessageExists(\"guide-maven-multimodules-ear tests compilation was successful\", 10000);\n\n int jarSourceCount = countOccurrences(\"guide-maven-multimodules-jar source compilation was successful.\", logFile);\n int jarTestsCount = countOccurrences(\"guide-maven-multimodules-jar tests compilation was successful.\", logFile);\n int warSourceCount = countOccurrences(\"guide-maven-multimodules-war source compilation was successful.\", logFile);\n int warTestsCount = countOccurrences(\"guide-maven-multimodules-war tests compilation was successful.\", logFile);\n int earTestsCount = countOccurrences(\"guide-maven-multimodules-ear tests compilation was successful.\", logFile);\n\n touchFileTwice(\"jar/pom.xml\");\n\n // Give time for recompile to occur\n Thread.sleep(2000);\n\n // count exact number of messages\n assertEquals(getLogTail(), ++jarSourceCount, countOccurrences(\"guide-maven-multimodules-jar source compilation was successful.\", logFile));\n assertEquals(getLogTail(), ++jarTestsCount, countOccurrences(\"guide-maven-multimodules-jar tests compilation was successful.\", logFile));\n assertEquals(getLogTail(), ++warSourceCount, countOccurrences(\"guide-maven-multimodules-war source compilation was successful.\", logFile));\n assertEquals(getLogTail(), ++warTestsCount, countOccurrences(\"guide-maven-multimodules-war tests compilation was successful.\", logFile));\n assertEquals(getLogTail(), ++earTestsCount, countOccurrences(\"guide-maven-multimodules-ear tests compilation was successful.\", logFile));\n\n touchFileTwice(\"war/pom.xml\");\n\n // Give time for recompile to occur\n Thread.sleep(2000);\n\n // count exact number of messages\n // only war and ear should have had recompiles\n assertEquals(getLogTail(), jarSourceCount, countOccurrences(\"guide-maven-multimodules-jar source compilation was successful.\", logFile));\n assertEquals(getLogTail(), jarTestsCount, countOccurrences(\"guide-maven-multimodules-jar tests compilation was successful.\", logFile));\n assertEquals(getLogTail(), ++warSourceCount, countOccurrences(\"guide-maven-multimodules-war source compilation was successful.\", logFile));\n assertEquals(getLogTail(), ++warTestsCount, countOccurrences(\"guide-maven-multimodules-war tests compilation was successful.\", logFile));\n assertEquals(getLogTail(), ++earTestsCount, countOccurrences(\"guide-maven-multimodules-ear tests compilation was successful.\", logFile));\n\n touchFileTwice(\"ear/pom.xml\");\n\n // Give time for recompile to occur\n Thread.sleep(2000);\n\n // count exact number of messages\n // only ear should have had recompiles\n assertEquals(getLogTail(), jarSourceCount, countOccurrences(\"guide-maven-multimodules-jar source compilation was successful.\", logFile));\n assertEquals(getLogTail(), jarTestsCount, countOccurrences(\"guide-maven-multimodules-jar tests compilation was successful.\", logFile));\n assertEquals(getLogTail(), warSourceCount, countOccurrences(\"guide-maven-multimodules-war source compilation was successful.\", logFile));\n assertEquals(getLogTail(), warTestsCount, countOccurrences(\"guide-maven-multimodules-war tests compilation was successful.\", logFile));\n assertEquals(getLogTail(), ++earTestsCount, countOccurrences(\"guide-maven-multimodules-ear tests compilation was successful.\", logFile));\n\n\n }", "title": "" }, { "docid": "87698121198f4eee3d070b87c6cc0233", "score": "0.50637215", "text": "private void artificiallyEnableFailedTask(ReplayedLogTrace pi,\n\t\t\tReplayedTransition t, AuditTrailEntry ate) {\n\t\t// inject measurement step\n\t\tmyMeasurer.takeFailedTaskMeasurement(pi, t, ate);\n\t\t// for enabling, we need to check the number of edges between every\n\t\t// predecessor place and the\n\t\t// transition for determination of the amount of tokens needed to enable\n\t\t// it\n\t\tIterator it = t.getInEdgesIterator();\n\t\twhile (it.hasNext()) {\n\t\t\tReplayedPlace p = (ReplayedPlace) ((ModelGraphEdge) it.next())\n\t\t\t\t\t.getSource();\n\t\t\t// add token to place as long as necessary and update missingTokens\n\t\t\t// map\n\t\t\twhile (p.getNumberOfTokens() < myResult.replayedPetriNet\n\t\t\t\t\t.getEdgesBetween(p, t).size()) {\n\t\t\t\t// create missing token\n\t\t\t\tToken newToken = new Token();\n\t\t\t\tp.addToken(newToken);\n\t\t\t\t// inject measurement\n\t\t\t\tmyMeasurer.takeMissingTokenMeasurement(p, pi);\n\t\t\t}\n\t\t}\n\t\t// inject measurement step\n\t\tmyMeasurer.takeArtificiallyEnabledMeasurement(myResult, pi,\n\t\t\t\tsaveTroubles);\n\t}", "title": "" }, { "docid": "6e3a779b68440fe46f3c974fb0d99865", "score": "0.5061926", "text": "@Test\n\tpublic void simple_scheduling()\n\t{\n\t\tfinal User user1 = proprTestHelper.testUser(\"user1\");\n\t\tfinal Group group = proprTestHelper.testGroup(\"group1\", user1, Collections.singletonList(user1));\n\n\t\ttestEntityManager.persist(user1);\n\t\ttestEntityManager.persist(group);\n\n\t\tfinal TaskDefinition def = proprTestHelper.testDefinition(group, \"def1\", TaskRepetitionType.WEEK, TaskWeight.LIGHT, 2);\n\t\ttestEntityManager.persist(def);\n\n\t\tfinal SchedulingResult result = schedulingService.reschedule(group, LocalDate.now(), LocalDate.now().plusMonths(1));\n\n\t\tassertEquals(\"8 tasks total\", 8, result.getTasks().size());\n\t\tassertTrue(\"all assigned to user1\", result.getTasks().stream().allMatch(t -> t.getAssignee().equals(user1)));\n\t}", "title": "" }, { "docid": "6ab48c7b29838ac7785882f9dbd0a4ac", "score": "0.50521725", "text": "@Test\n\tpublic void ebsad12005_restarts() throws Exception {\n\t\tApplicationVersion appVersion = setUpData(\"EBSAD-12005-restarts\");\n\t\t\n\t\tDeployer d = new Deployer();\n\t\tApplicationDeployment dep = d.deploy(appVersion, createEnvironmentName(), null);\n\t\t\n\t\tETD[] ta = new ETD[]{ new ETD(true,\"step\",\"thepath/for/start\",null,\"/st/st-dev1-ebs1/dbs.yaml\")};\n\t\tETD[] t1 = new ETD[]{ new ETD(true,\"1.376.293-1\",\"system::packages/ssb-db-schema/ensure\",\"absent\",\"/st/st-dev1-ebs1/dbs.yaml\")};\n\t\tETD[] t2 = new ETD[]{ new ETD(true,\"{require=Package[ssb_cfg_openldap], tag=mwconfig, ensure=1.143-1}\",\"system::packages/ssb-ldap-schema\",\"{ensure=absent, require=Package[ssb_cfg_openldap], tag=appdeploy}\",\"/st/st-dev1-ebs1/ldp.yaml\")};\n\t\tETD[] t3 = new ETD[]{\n\t\t\t\tnew ETD(true,\"{require=[Package[gen_bin_nexus], Mount[/var/sonatype-work]], ensure=2.0.3-1}\",\"system::packages/ssb-rpm-nexus-baseline-config\",\"{ensure=absent, require=[Package[gen_bin_nexus], Mount[/var/sonatype-work]], tag=mwconfig}\",\"/st/st-dev1-ebs1/rma.yaml\"),\n\t\t\t\tnew ETD(true,\"{tag=appdeploy, require=[Package[ssb-rpm-nexus-baseline-config], Mount[/var/sonatype-work]], ensure=2.1.41-release_2.1.41_1}\",\"system::packages/ssb-core-features-lib-nexus\",\"{ensure=absent, tag=appdeploy, require=[Package[ssb-rpm-nexus-baseline-config], Package[gen_bin_nexus], Mount[/var/sonatype-work]]}\",\"/st/st-dev1-ebs1/rma.yaml\")\t \t\t\t \n\t\t};\n\t\tETD[] t4 = new ETD[]{\n\t\t\t\tnew ETD(true,\"{require=[Package[gen-ins-jboss-fuse], File[/opt/fuse]], ensure=2.0.294-1}\",\"system::packages/ssb-rpm-fuse-config\",\"{ensure=absent, require=Package[gen-ins-jboss-fuse], tag=mwconfig}\",\"/st/st-dev1-ebs1/ssb.yaml\"),\n\t\t\t\tnew ETD(true,\"{require=Package[ssb-rpm-fuse-config], tag=mwconfig, ensure=2.1.119-1}\",\"system::packages/ssb-core-features-fuse-config\",\"{ensure=absent, require=Package[ssb-rpm-fuse-config], tag=mwdeploy}\",\"/st/st-dev1-ebs1/ssb.yaml\"),\n\t \t\t\tnew ETD(true,\"{require=Package[ssb-core-features-fuse-config], tag=mwconfig, ensure=2.1.119-1}\",\"system::packages/ssb-core-features-fuse-application\",\"{ensure=absent, require=Package[ssb-core-features-fuse-config], tag=mwdeploy}\",\"/st/st-dev1-ebs1/ssb.yaml\")\n };\n ETD[] tb = new ETD[]{ new ETD(true,\"trep\",\"thepath/for/end\",null,\"/st/st-dev1-ebs1/dbs.yaml\"),\n new ETD(true,\"trep2\",\"thepath/for/end2\",null,\"/st/st-dev1-ebs1/dbs.yaml\")};\n\t\t\n\t\tString csv = \"ssb-core-features-fuse-application,2.1.119-1,groupid,ssb-core-features-fuse-application,2.1.119,war,\"\n\t\t+ \"\\nssb-core-features-fuse-config,2.1.119-1,groupid,ssb-core-features-fuse-config,2.1.119,war,\"\n\t\t+ \"\\nssb-core-features-lib-nexus,2.1.41-release_2.1.41_1,groupid,ssb-core-features-lib-nexus,2.1.41-release_2.1.41_1,war,\"\n\t\t+ \"\\nssb-db-schema,1.376.293-1,groupid,ssb-db-schema,1.376.293,war,\"\n\t\t+ \"\\nssb-ldap-schema,1.143-1,groupid,ssb-ldap-schema,1.143,war,\"\n\t\t+ \"\\nssb-rpm-fuse-config,2.0.294-1,groupid,ssb-rpm-fuse-config,2.0.294,war,\"\n\t\t+ \"\\nssb-rpm-nexus-baseline-config,2.0.3-1,groupid,ssb-rpm-nexus-baseline-config,2.0.3,war,\"\n\t\t+ \"\\n\";\n\t\t\t\t\n\t\tChainDeploymentVerification.verify(dep, csv, 6, new int[]{1,1,1,2,3,2}, ta, t1, t2, t3, t4, tb);\n\t}", "title": "" }, { "docid": "638d2b5c1db637e47b54104867d5c9c6", "score": "0.5045857", "text": "public void testPeriodic() {\n }", "title": "" }, { "docid": "ae4e8f78305ad26fc8535f1db9d7375d", "score": "0.5038126", "text": "@Test\n public void testDoNotRetryExceptionOnAssignment() throws Exception {\n collectAssignmentManagerMetrics();\n\n testFailedOpen(TableName.valueOf(\"testDoNotRetryExceptionOnAssignment\"),\n new FaultyRsExecutor(new DoNotRetryIOException(\"test do not retry fault\")));\n\n assertEquals(assignSubmittedCount + 1, assignProcMetrics.getSubmittedCounter().getCount());\n assertEquals(assignFailedCount + 1, assignProcMetrics.getFailedCounter().getCount());\n }", "title": "" }, { "docid": "2146e4205e3c751cc6867b0a6a8c79da", "score": "0.5037851", "text": "@Test\n public void testFailureCounting_countFailuresForSingleBssidWithEphemeral() throws Exception {\n int associationRejections = 5;\n int authenticationFailures = 9;\n int dhcpFailures = 11;\n boolean[] mIsEphemeral = {false, true, false, true};\n // Buffer potential candidates 1,2,3 & 4\n List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids,\n mBssids, mFrequencies, mCaps, mLevels, mIsEphemeral, mHasEverConnected);\n mLastResortWatchdog.updateAvailableNetworks(candidates);\n\n // Ensure new networks have zero'ed failure counts\n for (int i = 0; i < mSsids.length; i++) {\n assertFailureCountEquals(mBssids[i], 0, 0, 0);\n }\n\n //Increment failure count for each network and failure type\n int net = 0;\n for (int i = 0; i < associationRejections; i++) {\n mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(mSsids[net], mBssids[net],\n WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);\n assertEquals(mLastResortWatchdog.getRecentAvailableNetworks()\n .get(mBssids[net]).associationRejection, i + 1);\n }\n net = 1;\n for (int i = 0; i < authenticationFailures; i++) {\n mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(mSsids[net], mBssids[net],\n WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);\n assertEquals(mLastResortWatchdog.getRecentAvailableNetworks()\n .get(mBssids[net]).authenticationFailure, i + 1);\n }\n net = 2;\n for (int i = 0; i < dhcpFailures; i++) {\n mLastResortWatchdog.noteConnectionFailureAndTriggerIfNeeded(mSsids[net], mBssids[net],\n WifiLastResortWatchdog.FAILURE_CODE_DHCP);\n assertEquals(mLastResortWatchdog.getRecentAvailableNetworks()\n .get(mBssids[net]).dhcpFailure, i + 1);\n }\n assertFailureCountEquals(mBssids[0], associationRejections, 0, 0);\n assertFailureCountEquals(mBssids[1], 0, authenticationFailures, 0);\n assertFailureCountEquals(mBssids[2], 0, 0, dhcpFailures);\n assertFailureCountEquals(mBssids[3], 0, 0, 0);\n }", "title": "" }, { "docid": "3b4c1dd9e3cd779aba1953c759106c7d", "score": "0.50363666", "text": "@Order(6)\n @Test\n @DisplayName(\"Test domain and cluster status condition when set cluster replicas to 2.\")\n void testClusterReplicasTo2() {\n logger.info(\"patch the cluster resource with replicas to 2\");\n String patchStr = \"[{\\\"op\\\": \\\"replace\\\", \\\"path\\\": \\\"/spec/replicas\\\", \\\"value\\\": 2}]\";\n\n logger.info(\"Updating cluster configuration using patch string: {0}\", patchStr);\n V1Patch patch = new V1Patch(patchStr);\n assertTrue(patchClusterCustomResource(clusterName, domainNamespace,\n patch, V1Patch.PATCH_FORMAT_JSON_PATCH), \"Failed to patch cluster\");\n\n // check the Cluster status condition Available and Complete become false\n checkDomainStatusClusterConditionTypeHasExpectedStatus(shortRetryPolicy, domainUid, domainNamespace,\n clusterName, DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, \"False\", DOMAIN_VERSION);\n checkDomainStatusClusterConditionTypeHasExpectedStatus(shortRetryPolicy, domainUid, domainNamespace,\n clusterName, DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, \"False\", DOMAIN_VERSION);\n // check the Domain status condition Available and Complete become false\n checkDomainStatusConditionTypeHasExpectedStatus(shortRetryPolicy, domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, \"False\", DOMAIN_VERSION);\n checkDomainStatusConditionTypeHasExpectedStatus(shortRetryPolicy, domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, \"False\", DOMAIN_VERSION);\n\n // wait for the first managed server pod is ready\n checkPodReady(managedServerPrefix + 1, domainUid, domainNamespace);\n\n // check the cluster status condition Available becomes true after the first cluster member becomes ready\n checkDomainStatusClusterConditionTypeHasExpectedStatus(shortRetryPolicy, domainUid, domainNamespace,\n clusterName, DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, \"True\", DOMAIN_VERSION);\n // check the Domain status condition Available become true when cluster status condition Available becomes true\n checkDomainStatusConditionTypeHasExpectedStatus(shortRetryPolicy, domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, \"True\", DOMAIN_VERSION);\n\n // wait for the second managed server is ready\n checkPodReady(managedServerPrefix + 2, domainUid, domainNamespace);\n\n // check cluster status condition Complete becomes true once both servers are ready\n checkDomainStatusClusterConditionTypeHasExpectedStatus(shortRetryPolicy, domainUid, domainNamespace,\n clusterName, DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, \"True\", DOMAIN_VERSION);\n // check domain status condition Complete becomes true when the cluster is fully up\n checkDomainStatusConditionTypeHasExpectedStatus(shortRetryPolicy, domainUid, domainNamespace,\n DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, \"True\", DOMAIN_VERSION);\n }", "title": "" }, { "docid": "24a843719aefd3a5f7378c88ec3ea6bf", "score": "0.50360173", "text": "@Test(description = \"FPTC_1386_CRCalendar - Reschedule Assessment\", groups = { \"R1\" })\n\n\tpublic void FPTC_1386_verifyCrCalendarRescheduleAssessment() {\n\n\t\treportLog(\"1.1: After setting pre-requisite Search Visit By Visit Status\");\n\t\tsubjectDetailPage.verifyNewSubjectDetailPage();\n\n\t\treportLog(\"1.2:Click On Visit Row\");\n\t\tsubjectDetailPage.clickOnVisitRow(crVisitName1);\n\t\tsubjectDetailPage.clickOnSchedulerIcon();\n\n\t\treportLog(\"1.3:Verify Study site and Visit Details\");\n\t\tcentralRatingAppointmentPage.verifyVisitInformation(crStudyName, Constants.ATAssignedRater_10);\n\n\t\treportLog(\"1.4:Verify cancel Appointment Button is Displayed\");\n\t\tcentralRatingAppointmentPage.verifyCancelButtonIsPresentAndEnabled();\n\n\t\treportLog(\"2.1: Currently Schedule Clinician Shown\");\n\t\tcentralRatingAppointmentPage.verifyScheduledClinicanIsShown();\n\n\t\treportLog(\"2.2:Change Scheduled Date Of Appointment\");\n\t\tcentralRatingAppointmentPage.scheduleAppointmentForNextDate();\n\n\t\treportLog(\"2.3:Change Scheduled Time Of Appointment\");\n\t\tcentralRatingAppointmentPage.setStartedTime(\"08\", \"15\", \"AM\");\n\n\t\treportLog(\"2.4: Verify Option To Pick Clinician Shown\");\n\t\tcentralRatingAppointmentPage.verifyOptionToPickClinicianShown();\n\n\t\treportLog(\"2.5: Verify cancel Appointment Button is Displayed\");\n\t\tcentralRatingAppointmentPage.verifyCancelButtonIsPresentAndEnabled();\n\n\t\treportLog(\"3:Click On Pick Clinician\");\n\t\tcentralRatingAppointmentPage.clickOnPickClinician();\n\n\t\treportLog(\"3.1:Select Option To Pick Clinician\");\n\t\tcentralRatingAppointmentPage.clickOnRowByColumnAndRowValue(\"Clinician\",CentralRatingModuleConstants.clinician15Name, \"08:15am\");\n\n\t\treportLog(\"3.2:Schedule Appointment For Clinician\");\n\t\tcentralRatingAppointmentPage.clickOnScheduleAppointment();\n\n\t\treportLog(\"3.3:Verify Rescheduling Message\");\n\t\tString middleMessageReschedulingText = centralRatingAppointmentPage.getMiddleMessage();\n\t\tcentralRatingAppointmentPage.verifyPopUPConfirmationMessageForAppointment(popUpMessageForreSchedulingStart);\n\n\t\treportLog(\"4:Click on Reason DropDown\");\n\t\tcentralRatingAppointmentPage.clickOnReasonDropDown();\n\n\t\treportLog(\"4.1:Verify Reason Change Values And Reason Comment Present\");\n\t\tcentralRatingAppointmentPage.verifyOptionToSelectAndReasonCommentIsAvailable();\n\n\t\treportLog(\"5:Select Reason From DropDown\");\n\t\tcentralRatingAppointmentPage.selectAppointmentReasonAndComment(Constants.Cancel_Appointment_Scheduling_Adjusment_Reason,\n\t\t\t\tcommentTxt);\n\n\t\treportLog(\"5.1:confirm Confirmation Of Reason For Rescheduling\");\n\t\tcentralRatingAppointmentPage.confirmConfirmationOfReasonPopUp();\n\n\t\treportLog(\"5.2: verify Visit Status\");\n\t\tcentralRatingAppointmentPage.verifyVisitStatus(Constants.scheduled_Status);\n\n\t\treportLog(\"6:Navigate Back to listing Page\");\n\t\tcentralRatingAssesmentListingPage = centralRatingAppointmentPage.navigateToListingPage();\n\n\t\treportLog(\"6.1:Cancel Date From DatePicker\");\n\t\tcentralRatingAssesmentListingPage.clickOnSchedularCancelIcon();\n\n\t\treportLog(\"6.2:View Scheduled Visit For Today\");\n\t\tcentralRatingAssesmentListingPage.selectScheduledDateFromToForToday();\n\n\t\treportLog(\"6.3:Select Visit By Subject And Status\");\n\t\tcentralRatingAssesmentListingPage.searchByVisitStatus(Constants.scheduled_Status);\n\n\t\treportLog(\"6.4 Search Visit By Visit Status\");\n\t\tcentralRatingAssesmentListingPage.sortByVisitName(crVisitName2);\n\t\tcentralRatingAssesmentListingPage.sortBySubjectName(subjectName);\n\n\t\treportLog(\"6.5 Click On Visit Row\");\n\t\tcentralRatingAppointmentPage = centralRatingAssesmentListingPage.clickOnRowOfVisitByName(crVisitName2);\n\n\t\treportLog(\"6.6:Click On Currently Scheduled Clinician\");\n\t\tcentralRatingAppointmentPage.clickOnPreviouslyScheduleClinicianLink();\n\n\t\treportLog(\"6:7: Select Same Time And Date For Another Clinician For Updating Appointment\");\n\t\tcentralRatingAppointmentPage.clickOnRowByColumnAndRowValue(\"Clinician\",CentralRatingModuleConstants.clinician15Name ,\"09:30am\");\n\n\t\treportLog(\"6:8: Verify Update Appointment Button is Displayed\");\n\t\tcentralRatingAppointmentPage.verifyUpdateScheduledButtonIsPresentAndEnabled();\n\n\t\treportLog(\"6.9: Verify cancel Appointment Button is Displayed\");\n\t\tcentralRatingAppointmentPage.verifyCancelButtonIsPresentAndEnabled();\n\n\t\treportLog(\"6.10: Currently Schedule Clinician Shown\");\n\t\tcentralRatingAppointmentPage.verifyScheduledClinicanIsShown();\n\n\t\treportLog(\"7:Click On Update Appointment\");\n\t\tcentralRatingAppointmentPage.clickOnScheduleAppointment();\n\n\t\treportLog(\"7.1:Verify Update Confirmation Appointment message\");\n\t\tcentralRatingAppointmentPage.verifyPopUPConfirmationMessageForAppointment(UpdatePopUpMessage);\n\n\t\treportLog(\"8:confirm Confirmation Of PopUp\");\n\t\tcentralRatingAppointmentPage.confirmConfirmationOfReasonPopUp();\n\n\t\treportLog(\"8.2: verify Visit Status\");\n\t\tcentralRatingAppointmentPage.verifyVisitStatus(Constants.scheduled_Status);\n\n\t\treportLog(\"8.3:Navigate Back to CR Listing Page\");\n\t\tcentralRatingAssesmentListingPage = centralRatingAppointmentPage.navigateToListingPage();\n\n\t\treportLog(\"8.4:Cancel Date From DatePicker\");\n\t\tcentralRatingAssesmentListingPage.clickOnSchedularCancelIcon();\n\n\t\treportLog(\"8.5:View Scheduled Visit For Today\");\n\t\tcentralRatingAssesmentListingPage.selectScheduledDateFromToForToday();\n\n\t\treportLog(\"8.6:Select Visit By Subject And Status\");\n\t\tcentralRatingAssesmentListingPage.searchByVisitStatus(\"Scheduled\");\n\n\t\treportLog(\"8.7: Search Visit By Visit Status\");\n\t\tcentralRatingAssesmentListingPage.sortByVisitName(crVisitName3);\n\t\tcentralRatingAssesmentListingPage.sortBySubjectName(subjectName);\n\n\t\treportLog(\"9:Click On Visit Row\");\n\t\tcentralRatingAppointmentPage = centralRatingAssesmentListingPage.clickOnRowOfVisitByName(crVisitName3);\n\n\t\treportLog(\"9.1:Currently Schedule Clinician Shown\");\n\t\tcentralRatingAppointmentPage.verifyScheduledClinicanIsShown();\n\n\t\treportLog(\"9.2:Change Scheduled Date Of Appointment\");\n\t\tcentralRatingAppointmentPage.scheduleAppointmentForNextDate();\n\n\t\treportLog(\"9.3:Change Scheduled Time Of Appointment\");\n\t\tcentralRatingAppointmentPage.setStartedTime(\"05\", \"30\", \"PM\");\n\n\t\treportLog(\"9.4:Verify Option To Pick Clinician Shown\");\n\t\tcentralRatingAppointmentPage.verifyOptionToPickClinicianShown();\n\n\t\treportLog(\"9.5:Verify cancel Appointment Button is Displayed\");\n\t\tcentralRatingAppointmentPage.verifyCancelButtonIsPresentAndEnabled();\n\n\t\treportLog(\"10:Click On Pick Clinician\");\n\t\tcentralRatingAppointmentPage.clickOnPickClinician();\n\n\t\treportLog(\"10.1:Select Option To Pick Clinician\");\n\t\tcentralRatingAppointmentPage.clickOnRowByColumnAndRowValue(\"Clinician\", CentralRatingModuleConstants.clinician14Name, \"05:30pm\");\n\n\t\treportLog(\"10.2:Schedule Appointment For Clinician\");\n\t\tcentralRatingAppointmentPage.clickOnScheduleAppointment();\n\n\t\treportLog(\"10.3:Verify Rescheduling Message\");\n\t\tString middleMessageText = centralRatingAppointmentPage.getMiddleMessage();\n\t\tcentralRatingAppointmentPage.verifyPopUPConfirmationMessageForAppointment(popUpMessageForreSchedulingStart);\n\n\t\treportLog(\"11:Click on Reason DropDown\");\n\t\tcentralRatingAppointmentPage.clickOnReasonDropDown();\n\n\t\treportLog(\"11.1:Verify Reason Change Values And Reason Comment Present\");\n\t\tcentralRatingAppointmentPage.verifyOptionToSelectAndReasonCommentIsAvailable();\n\n\t\treportLog(\"12:Select Reason From DropDown\");\n\t\tcentralRatingAppointmentPage.selectAppointmentReasonAndComment(Constants.Cancel_Appointment_Scheduling_Adjusment_Reason,\n\t\t\t\tcommentTxt);\n\n\t\treportLog(\"12.1:confirm Confirmation Of Reason For Rescheduling\");\n\t\tcentralRatingAppointmentPage.confirmConfirmationOfReasonPopUp();\n\n\t\treportLog(\"12.2: verify Visit Status\");\n\t\tcentralRatingAppointmentPage.verifyVisitStatus(Constants.scheduled_Status);\n\n\t\treportLog(\"12.3:Logout application\");\n\t\tloginPage.logoutApplication();\n\n\t\treportLog(\"12.4:Verify user is logout\");\n\t\tloginPage.verifyUserLogout();\n\n\t}", "title": "" }, { "docid": "f8e420109407a8c8dd19f23dcee46cc3", "score": "0.5034797", "text": "public void testAndValidator_InvalidConfig1() {\r\n try {\r\n TestHelper.loadConfiguration(INVALID_CONFIG1);\r\n new AndValidator(\"AndValidator\");\r\n fail(\"testAndValidator_InvalidConfig1 is failure.\");\r\n } catch (RegistrationValidationConfigurationException rvce) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"Unknown exception occurs in testAndValidator_InvalidConfig1.\");\r\n }\r\n }", "title": "" }, { "docid": "43075b294f393d1a051dc413551eae9b", "score": "0.50343704", "text": "@BeforeTest\n\tpublic void configBT() {\n\t}", "title": "" }, { "docid": "be5957b2212ca2d620757971d6636e7d", "score": "0.5031425", "text": "@Test\n public void testAutoEnterMaintenanceWhenExceedingOfflineNodes() {\n String[] resources = new String[]{\"testResourceName\"};\n int numInstances = 3;\n int numPartitions = 3;\n\n setupIdealState(numInstances, resources, numPartitions, 1, RebalanceMode.FULL_AUTO,\n BuiltInStateModelDefinitions.MasterSlave.name());\n setupInstances(numInstances);\n List<String> liveInstances = setupLiveInstances(numInstances);\n setupStateModel();\n\n // Set offline instances threshold\n ClusterConfig clusterConfig = accessor.getProperty(accessor.keyBuilder().clusterConfig());\n clusterConfig.setMaxOfflineInstancesAllowed(1);\n setClusterConfig(clusterConfig);\n\n Map<String, Resource> resourceMap =\n getResourceMap(resources, numPartitions, BuiltInStateModelDefinitions.MasterSlave.name());\n CurrentStateOutput currentStateOutput = new CurrentStateOutput();\n\n for (int p = 0; p < numPartitions; p++) {\n Partition partition = new Partition(\"testResourceName_\" + p);\n currentStateOutput\n .setCurrentState(\"testResourceName\", partition, \"localhost_\" + (p + 1) % numInstances,\n \"MASTER\");\n }\n\n // Disable 2 instances so the pipeline should enter maintenance\n for (int i = 0; i < 2; i++) {\n admin.enableInstance(_clusterName, liveInstances.get(i), false);\n }\n\n event.addAttribute(AttributeName.helixmanager.name(), manager);\n event.addAttribute(AttributeName.RESOURCES.name(), resourceMap);\n event.addAttribute(AttributeName.RESOURCES_TO_REBALANCE.name(), resourceMap);\n event.addAttribute(AttributeName.CURRENT_STATE.name(), currentStateOutput);\n event.addAttribute(AttributeName.ControllerDataProvider.name(),\n new ResourceControllerDataProvider());\n\n runStage(event, new ReadClusterDataStage());\n runStage(event, new BestPossibleStateCalcStage());\n\n BestPossibleStateOutput output = event.getAttribute(AttributeName.BEST_POSSIBLE_STATE.name());\n\n // State on the disabled instances should be OFFLINE instead of DROPPED\n // because of maintenance rebalancer.\n Assert.assertEquals(\n output.getInstanceStateMap(\"testResourceName\", new Partition(\"testResourceName_2\"))\n .get(\"localhost_0\"),\n \"OFFLINE\",\n \"Actual state should not be DROPPED\");\n\n Assert.assertEquals(\n output.getInstanceStateMap(\"testResourceName\", new Partition(\"testResourceName_0\"))\n .get(\"localhost_1\"),\n \"OFFLINE\",\n \"Actual state should not be DROPPED\");\n\n // No state change for localhost_2 because the replica is already MASTER\n Assert.assertNull(\n output.getInstanceStateMap(\"testResourceName\", new Partition(\"testResourceName_1\"))\n .get(\"localhost_2\"));\n }", "title": "" }, { "docid": "71e5bbf234c8ca82b935a1cbfa1db8bf", "score": "0.5029208", "text": "public void testPeriodic() {\r\n }", "title": "" }, { "docid": "55d93bc5bf5710590eb25dd17033cf66", "score": "0.50270724", "text": "private void configure(EPServiceProvider epService) {\n List<RuleSet> ruleSets = reDao.getAllEnabledRuleSets();\n logger.info(\"Configuring rules engine... Loading these rules: \");\n Set<String> ruleSetNames = new HashSet<String>();\n activeRuleSets.clear();\n activeRules.clear();\n conclusionCacheService.clear();\n for (RuleSet ruleSet: ruleSets) {\n logger.info(\" Rule Set: \" + ruleSet.toString());\n if (ruleSetNames.contains(ruleSet.getName())) {\n throw new RuntimeException(\"More than one version of rule set \\\"\" + ruleSet.getName() + \"\\\" is enabled\");\n }\n ruleSetNames.add(ruleSet.getName());\n\n List<Rule> rules = reDao.getEnabledRules(ruleSet);\n Set<String> ruleNames = new HashSet<String>();\n\n for (Rule rule: rules) {\n if (!rule.isEnabled()) {\n continue;\n }\n if (ruleNames.contains(rule.getName())) {\n throw new RuntimeException(\"There's more than one rule with the same name in the same rule set (\" + ruleSet + \"): \\\"\" + rule.getName() + \"\\\"\");\n }\n ruleNames.add(rule.getName());\n logger.info(\" Rule activated: \" + rule.getName());\n ConclusionFactory factory = new DefaultConclusionFactory(this, rule, conclusionCacheService);\n EPStatement statement = epService.getEPAdministrator().createEPL(rule.getRuleDefinition(), ruleSet.toString() + \"_\" + rule.getName());\n statement.addListener(factory);\n activeRules.add(rule);\n }\n }\n\n // throw all open conclusions into rule engine\n List<Conclusion> openConclusions = reDao.getAllOpenConclusions();\n for (Conclusion concl: openConclusions) {\n epService.getEPRuntime().sendEvent(concl);\n }\n \n if (isTimeInternal()) {\n epService.getEPRuntime().sendEvent(new TimerControlEvent(TimerControlEvent.ClockType.CLOCK_INTERNAL));\n } else {\n epService.getEPRuntime().sendEvent(new TimerControlEvent(TimerControlEvent.ClockType.CLOCK_EXTERNAL));\n }\n }", "title": "" } ]
a00dcc9dfde3aa44715c980f4722345f
Auto generated setter method
[ { "docid": "1030c0df8be6a3af7d46095285aa3b44", "score": "0.0", "text": "public void setFiscYr(String param) {\n this.localFiscYr = param;\n }", "title": "" } ]
[ { "docid": "52738d229d8bf6ec84e3f71bc5ad16e0", "score": "0.75323784", "text": "@Override\r\npublic void set() {\n\t\r\n}", "title": "" }, { "docid": "73f5243889228036487995009d0f5a77", "score": "0.71719694", "text": "public abstract void set(T value);", "title": "" }, { "docid": "73f5243889228036487995009d0f5a77", "score": "0.71719694", "text": "public abstract void set(T value);", "title": "" }, { "docid": "d9007fcb52fdbde493f409548411eb9a", "score": "0.7088648", "text": "@VTID(9)\r\n java.lang.String set();", "title": "" }, { "docid": "55ab5dbc7bde33f4550d27b51bbc571f", "score": "0.6982132", "text": "public abstract void set(String property, String value);", "title": "" }, { "docid": "f571ddf3b2008ab92d9e95944e33c793", "score": "0.6891141", "text": "public void set(String name, Object value);", "title": "" }, { "docid": "7efe797ced5f3aae5d569ac5205500a7", "score": "0.68050456", "text": "public void set(Object data);", "title": "" }, { "docid": "415c073dba71c411c7cf88b30d7b8f68", "score": "0.67775756", "text": "public void setValue( Object value );", "title": "" }, { "docid": "1df101b5fe94391488b336cbc1370e88", "score": "0.6776297", "text": "@Override\r\n\t\tpublic void set(E arg0) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "85099e4f365c9be504cd1f1e674d61d7", "score": "0.67232263", "text": "public abstract Mapper set(String name, Object value);", "title": "" }, { "docid": "97d34f45a3cf1f6d6e677dde04e7cfdf", "score": "0.67078686", "text": "Setter<BEAN, TARGET> getSetter();", "title": "" }, { "docid": "a87a930e48b600a17947593c82aa6ae0", "score": "0.6703297", "text": "public void setValue(Object value) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9be6f5891abe5bc77d9b397ca7df171d", "score": "0.66984427", "text": "public abstract void setValue(T value);", "title": "" }, { "docid": "ae38868ab0b98bc60c44553913f9c040", "score": "0.66825897", "text": "public void setValue(Object value);", "title": "" }, { "docid": "b75ebe48c3b0fe3b2903deee618dcbeb", "score": "0.6623007", "text": "public abstract void setValue(Object obj) throws Exception;", "title": "" }, { "docid": "7703a689481c7200184e6677fc57811c", "score": "0.6613066", "text": "void setValue(Object value);", "title": "" }, { "docid": "8ff38564412f289a6e82e77e191dc0ef", "score": "0.65974617", "text": "public abstract void setValue(Object o);", "title": "" }, { "docid": "8ff38564412f289a6e82e77e191dc0ef", "score": "0.65974617", "text": "public abstract void setValue(Object o);", "title": "" }, { "docid": "6e4e4aca10e70b51355a147a11c9c325", "score": "0.65516937", "text": "public @Override Object setValue(Object value) {\n return null;\n }", "title": "" }, { "docid": "6e4e4aca10e70b51355a147a11c9c325", "score": "0.65516937", "text": "public @Override Object setValue(Object value) {\n return null;\n }", "title": "" }, { "docid": "9332e5e26b309f225aad51edac1ab0c0", "score": "0.6551376", "text": "public abstract void set(String property, DataElement element);", "title": "" }, { "docid": "8a8ebabee5170cf9c5a73aac94ef9ca0", "score": "0.6510693", "text": "public void setValue(Object newValue) {\n }", "title": "" }, { "docid": "91a444c8158d34dad6807f9fa4f9fb54", "score": "0.65104264", "text": "T set(T newValue);", "title": "" }, { "docid": "0af659689b6ac87a80162b15b3740ed1", "score": "0.6503571", "text": "void setValue(T value);", "title": "" }, { "docid": "0af659689b6ac87a80162b15b3740ed1", "score": "0.6503571", "text": "void setValue(T value);", "title": "" }, { "docid": "2a02e423b03754726f4e4561cfb6de8c", "score": "0.6492729", "text": "public void setValue(T value);", "title": "" }, { "docid": "4407e3d70e3f50f7e42d647a118285e9", "score": "0.64920586", "text": "public void setValue ( Object arg )\r\n throws ReadOnlyException, PropertyException;", "title": "" }, { "docid": "14f341bacd2e2a1ca4ddd84598ccded2", "score": "0.64873123", "text": "@Override\n protected void doSetValue(Object value) {\n //ignore the input\n }", "title": "" }, { "docid": "d6da69b98a6d7ae436c398e278061d49", "score": "0.6458316", "text": "public void setValue(T value){\r\n\t\tthis.value = value;\r\n\t}", "title": "" }, { "docid": "569d439e57e50d8fbb15116ae023d1e6", "score": "0.64327335", "text": "@Override\n public final void setValue(T bean, Object value) {\n if (setter == null)\n throw new UnsupportedOperationException();\n if (bean == null)\n throw new IllegalArgumentException();\n setter.setValue(bean, value == null ? defaultValue : cast(value));\n }", "title": "" }, { "docid": "3b98f850f8fd98ae69940a65e4d2cbe7", "score": "0.6431645", "text": "protected void setValue(Object value)\n\t{\n\t\tthis.value = value;\n\t}", "title": "" }, { "docid": "7c3bfc28443418d90e17a1b44c52af66", "score": "0.64305043", "text": "public abstract void set(String name, Serializable obj);", "title": "" }, { "docid": "72911514b1b3e5e0d6eab1c0bafa69bd", "score": "0.6426169", "text": "public void setValue(Object value){\n this.value = value;\n }", "title": "" }, { "docid": "03b59af939994f925464b512824920e6", "score": "0.6400318", "text": "public void setCodigo(String codigo)\r\n/* 50: */ {\r\n/* 51: 57 */ this.codigo = codigo;\r\n/* 52: */ }", "title": "" }, { "docid": "211a3b19a691e4d00de98f5647b802a8", "score": "0.63910544", "text": "private void setValues() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fba0d8eb522f680f22df5fcf472609cc", "score": "0.6389753", "text": "@Override\n\tpublic void setValue(String paramString, Object paramObject) {\n\n\t}", "title": "" }, { "docid": "2309882ee765015376748858a196f805", "score": "0.6386196", "text": "public void setValue(String name, Object value);", "title": "" }, { "docid": "9abc83e253b64c7ce9f646b481e8318f", "score": "0.63725126", "text": "public abstract void set(String property, Number value);", "title": "" }, { "docid": "d5e3f9b4257091eb953cce1610c00189", "score": "0.6365021", "text": "@Override\n\t\tpublic void setValue(String s) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "013b7ea0cbbd8c43d218926ad845b580", "score": "0.6353887", "text": "public Setter(Object that, Method method) {\n super(that, method);\n }", "title": "" }, { "docid": "9b49da9d277d4464530e6e64a4a14af6", "score": "0.6353363", "text": "@Override\n\t\tpublic V setValue(V value) {\n\t\t\tthis.value=value;\n\t\t\treturn value;\n\t\t}", "title": "" }, { "docid": "5f22a5a844df57a7b85771473a3e7045", "score": "0.63306016", "text": "public <T extends IObject<?>> void set(T member, T value);", "title": "" }, { "docid": "dd46de976ce36068c22ffb45d7cb3a0a", "score": "0.6328702", "text": "@Override\n\t\t\tpublic void set(String obj, long newValue) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f89493ef8eba7e636d2e96973dd16335", "score": "0.63203585", "text": "void setProperty (\n String name,\n Object value\n );", "title": "" }, { "docid": "95d9b8499eb47796c70fedc13df92fb2", "score": "0.63153625", "text": "@Override\n protected void set(PyObject obj, PyObject value)\n throws TypeError, Throwable {\n if (value == Py.None && !optional) { delete(obj); return; }\n\n try {\n handle.set(obj, value);\n } catch (ClassCastException cce) {\n // Here if the type of the field is an object sub-type\n Class<?> javaType = handle.varType();\n /*\n * This is a surprising place to discover a need to map\n * Java classes to Python types. Do without for now.\n */\n String typeName = javaType.getSimpleName();\n throw attrMustBe(typeName, value);\n }\n }", "title": "" }, { "docid": "7f58471f1e6e2b94f611305de48b5b74", "score": "0.6310786", "text": "@Override\n\t\t\tpublic void lazySet(String obj, long newValue) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "5576bfbef035a62e6a0ef20cde47c50f", "score": "0.63060045", "text": "protected ValueSet() {\n\t}", "title": "" }, { "docid": "96d9d35e2758098d3d06629b9b7ff8ff", "score": "0.6296561", "text": "public void set(T value) {\r\n\t\tmValue = value;\r\n\t}", "title": "" }, { "docid": "309f9724a0cca5e73939f5a67fd158a2", "score": "0.6293253", "text": "private void setEmployee(Employee emp) {this.employee = emp;}", "title": "" }, { "docid": "e5e95c35c446f9aa93207f9b3b2b012d", "score": "0.6292727", "text": "public void setValue(T value) {\r\n\t\tthis.value = value;\r\n\t}", "title": "" }, { "docid": "2dcea953abbc8b6e7b33033c5e58c01b", "score": "0.6284366", "text": "public abstract void set(String name, Serializable obj, Context context);", "title": "" }, { "docid": "3a4c41f12b5741f5040c6022779d8a8b", "score": "0.6277343", "text": "public void setValue(T value) {\n this.value = value;\n }", "title": "" }, { "docid": "9c70f7858a95ea46495e715952a4a506", "score": "0.6276296", "text": "public void setValue(String value);", "title": "" }, { "docid": "9c70f7858a95ea46495e715952a4a506", "score": "0.6276296", "text": "public void setValue(String value);", "title": "" }, { "docid": "9c70f7858a95ea46495e715952a4a506", "score": "0.6276296", "text": "public void setValue(String value);", "title": "" }, { "docid": "bd047241eee3465eb75d88bd9c615922", "score": "0.62477225", "text": "public void setX(int x){\n this.x = x; \n }", "title": "" }, { "docid": "03269a464ae69877f1b8c77d3fada653", "score": "0.62416065", "text": "private void _setValue(Pointer fmiComponent, Object valueBuffer, Class typeClass) {\n _getOrSetValue(fmiComponent, valueBuffer, typeClass, fmiSetFunction);\n }", "title": "" }, { "docid": "f6bd4b76e41ad5ff5a31a16d7c17e341", "score": "0.62384295", "text": "public void setValue (String Value);", "title": "" }, { "docid": "6e6c50dc2d2a92b122f66d11dc1f0fae", "score": "0.62383705", "text": "HExecutable getSetter();", "title": "" }, { "docid": "676185fc9dcff2f63870c9abfd77fa06", "score": "0.62320423", "text": "void set_value(String value)\n {\n \tm_value = value;\n }", "title": "" }, { "docid": "4fb55b5bac675d5d74311647b8a6ccb1", "score": "0.622892", "text": "public abstract void setValue(String value) throws ParameterException;", "title": "" }, { "docid": "8243bf200d42adb088992d2263835bd0", "score": "0.6227633", "text": "void setValue(E value);", "title": "" }, { "docid": "b49b22d0d4c0c7045763958b175e8d6d", "score": "0.6227339", "text": "public void setValue(String value) { this.value = value; }", "title": "" }, { "docid": "4ba24b97d742018bb0ad22510c3e1bf6", "score": "0.62257504", "text": "@Override\n\tpublic void addSetterComment(Method arg0, IntrospectedTable arg1, IntrospectedColumn arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "e13d8203df033aba2ed3cddb7a1f8ba1", "score": "0.6219154", "text": "@Override\npublic void setField(int id, int value) {\n\t\n}", "title": "" }, { "docid": "a8390520cd0e7526fba3804cebe99f09", "score": "0.6217222", "text": "private void setValue(final java.lang.Object object, final java.lang.String methodName, final java.lang.String value, final org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.configuration.ConfigurationException {\n final java.lang.Class clazz = object.getClass();\n final java.lang.reflect.Method[] methods = getMethodsFor(clazz, methodName);\n if (0 == methods.length) {\n throw new org.apache.avalon.framework.configuration.ConfigurationException(((\"Unable to set attribute via \" + methodName) + \" due to not finding any appropriate \") + \"accessor method\");\n }\n setValue(object, value, context, methods);\n }", "title": "" }, { "docid": "f3b95be657f34821c17801adfb8d8aa0", "score": "0.6215551", "text": "void setValue(String value);", "title": "" }, { "docid": "8b3a5484e62ebea3038b56919317745c", "score": "0.6212682", "text": "public void setValue(Object value) {\n this.value = value;\n }", "title": "" }, { "docid": "8b3a5484e62ebea3038b56919317745c", "score": "0.6212682", "text": "public void setValue(Object value) {\n this.value = value;\n }", "title": "" }, { "docid": "4bd2d2feba1ad898b9e2b36e4eb197bc", "score": "0.6210475", "text": "@Override\n\tpublic void setProperty(String name, String value) {\n\t}", "title": "" }, { "docid": "62d85fb4fc4d766743fae5ecd9ae1ca5", "score": "0.6208986", "text": "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "title": "" }, { "docid": "9616260189b09d2d8f0ef393e78bbe2a", "score": "0.6203748", "text": "@Override\n long set(E e);", "title": "" }, { "docid": "b00c02d196e21711ff1956d4f67370f3", "score": "0.61978173", "text": "@Pointcut(\"execution(* com.aop.dao.*.set*(..))\")\r\n\tpublic void forSetter() {}", "title": "" }, { "docid": "b19b9fa977693a2206d1b1d220dcd81e", "score": "0.6195998", "text": "abstract void setValue(Object value) throws DatabaseConnectorException;", "title": "" }, { "docid": "b48c0795c7c149f7f9f2c8473b85f0a8", "score": "0.61959434", "text": "public void setName(String name){\nthis.name=name;\n}", "title": "" }, { "docid": "87ea7ab39e9fe3427fecbc84eb63cc79", "score": "0.61912286", "text": "public\t void setValue(Object v) \n \t \t{ value = v ; }", "title": "" }, { "docid": "4f5889abf116cf3f5f85c28dbafaf74f", "score": "0.61893547", "text": "@Override\n public void setValue(final String name,\n final String value) {\n }", "title": "" }, { "docid": "cf6e0fa0ccbeee63db49864f7334c1eb", "score": "0.6183604", "text": "public void setPropertyValue(Object arg0, Object arg1) {\n\n\t}", "title": "" }, { "docid": "6113b16c71c12a52b08867803fe6abf0", "score": "0.6181596", "text": "private String generateSetter(Column column) {\r\n\t\tStringBuilder setter = new StringBuilder();\r\n\r\n\t\tsetter.append(\"\\tpublic void set\")\r\n\t\t\t\t.append(column.getName().substring(0, 1).toUpperCase())\r\n\t\t\t\t.append(column.getName().substring(1)).append(\"(\")\r\n\t\t\t\t.append(rename(column.getType().toString()) + \" \")\r\n\t\t\t\t.append(column.getName()).append(\") {\")\r\n\t\t\t\t.append(System.lineSeparator()).append(\"\\t\\tthis.\")\r\n\t\t\t\t.append(column.getName()).append(\" = \")\r\n\t\t\t\t.append(column.getName() + \";\").append(System.lineSeparator())\r\n\t\t\t\t.append(\"\\t}\").append(System.lineSeparator())\r\n\t\t\t\t.append(System.lineSeparator());\r\n\r\n\t\treturn setter.toString();\r\n\t}", "title": "" }, { "docid": "ffcdb9648bc0c02b5c7b0e2604bea63e", "score": "0.6171189", "text": "public void set(final String id, final Object value);", "title": "" }, { "docid": "1de49e86cfc4e0315adb90554c280831", "score": "0.6154759", "text": "public void setValue(T value){\n this.val = value;\n }", "title": "" }, { "docid": "30c5360efe82f38cfe2789345c743125", "score": "0.61501324", "text": "public void setAge(int age) { this.age = age; }", "title": "" }, { "docid": "b63116c15a38e9700ed3c7de3043c4ee", "score": "0.614786", "text": "public void setValue(Object value) {\n\t\tthis.value = value;\r\n\t}", "title": "" }, { "docid": "d1760527a342014423280af22e3e2f12", "score": "0.6147203", "text": "@Override\n void __set__(PyObject obj, PyObject value)\n throws TypeError, Throwable {\n if (value == null) {\n // This ought to be an error, but allow for CPython idiom.\n __delete__(obj);\n } else {\n checkSet(obj);\n set(obj, value);\n }\n }", "title": "" }, { "docid": "4c21d678900e80b8077811102e1925d1", "score": "0.61268795", "text": "public void setValue(Object value) {\n\t\tthis.value = value;\n\t}", "title": "" }, { "docid": "4c21d678900e80b8077811102e1925d1", "score": "0.61268795", "text": "public void setValue(Object value) {\n\t\tthis.value = value;\n\t}", "title": "" }, { "docid": "b2ba564a059fc5539281e2a163315b78", "score": "0.61169684", "text": "public void setValue(E value) {\n this.value = value;\n }", "title": "" }, { "docid": "d37276b6f27b557cdf827e3716a45161", "score": "0.6115071", "text": "public void setValue(int value) { this.value = value; }", "title": "" }, { "docid": "65f0e7fe655feaeacccf49d4559efc21", "score": "0.610599", "text": "public FunctionBackedProperty (String name, String getterName, String setterName, BackendType owner) {\n _name = name;\n _owner = owner;\n _getterName = getterName;\n _setterName = setterName;\n }", "title": "" }, { "docid": "950f33b153c2b2c0135eaf435526cfee", "score": "0.6092013", "text": "@Test\r\n public void testSetU_ID() {\r\n System.out.println(\"setU_ID\");\r\n int U_ID = 4;\r\n User instance = new User(123, \"Alice\", \"ab12\");\r\n instance.setU_ID(U_ID);\r\n }", "title": "" }, { "docid": "f843e7a4e1815f7746cffa41ecd47f0b", "score": "0.60915476", "text": "public void setX()\n {\n x=x;\n }", "title": "" }, { "docid": "76349e532941bf56884bf78d48cc0a11", "score": "0.608778", "text": "public void set(Serializable serializable) {}", "title": "" }, { "docid": "361e583619c561c4bea183b201f3686d", "score": "0.60867316", "text": "@Override\n @Deprecated\n public void set(E e) {\n throw new RuntimeException(\"Method not implemented\");\n }", "title": "" }, { "docid": "3b6996c2e897f3204446edbdcabcaf05", "score": "0.6081189", "text": "default <T> Relation<R,G,D> set(Attribute<? super R, T> key, T value) {\n// key.setter.accept(this, value);\n asGate().getFeatures().put(key.name, value);\n return this;\n }", "title": "" }, { "docid": "19cdee17a9fa1df93fa46135ab934e6a", "score": "0.6074753", "text": "public abstract void set(String property, Date value);", "title": "" }, { "docid": "eda410ef2ba9854db3d7c3793b020338", "score": "0.6068635", "text": "public Object set(String key, String value) {\n\t\treturn super.setProperty(key, value);\n\t}", "title": "" }, { "docid": "72952291db5aecb081eb499f056ba6a7", "score": "0.60653985", "text": "@Override\n public boolean modelSetterMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedColumn introspectedColumn, IntrospectedTable introspectedTable, ModelClassType modelClassType) {\n return false;\n }", "title": "" }, { "docid": "21b42957b6a83e6eb15b80d391669ed9", "score": "0.6063757", "text": "void setX(int value);", "title": "" }, { "docid": "88cd0159077db47f668a044784cd3b2c", "score": "0.60586697", "text": "public void setFirstName(String newFirstName) {this.firstName = newFirstName;}", "title": "" }, { "docid": "3ea2b0cbc01638a6bf959e4d792c3fc3", "score": "0.6057368", "text": "public void setValuePopulated();", "title": "" }, { "docid": "aedaa41789e9d9f45d9518e7c61d6e44", "score": "0.60547626", "text": "public void set(String path, Object value);", "title": "" } ]
9bdd1de876b6e3866d648fe6fca89755
setter perubahan kecepatan bola
[ { "docid": "a135ac553071aa8d32580fe290edeae2", "score": "0.0", "text": "public void setVelocity(double velocity) {\n this.velocity = velocity;\n this.dX = this.dY = velocity;\n }", "title": "" } ]
[ { "docid": "54fa0ca0154c51fa48b09f5f24423a5d", "score": "0.72611856", "text": "@Override\r\n\tint setHarga(int tangkai) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "d8ebe6dd4843132b08227d79051b008d", "score": "0.68866026", "text": "public void masak(){\n panjangDada = 4.7;\n ketebalanSayap = 1;\n ketebalanPaha = 1.9;\n }", "title": "" }, { "docid": "afe87fb833e2219ffd99b9dde02122a9", "score": "0.6695104", "text": "public void actualizarcobro() {\n int b1 = 0, b2 = 0, b3 = 0; \n int total = 0; \n jLabeltotal.setText(\"$ \" + String.valueOf(total));\n jLabeLacum1.setText(\"$ \" + String.valueOf(b1));\n jLabelacum2.setText(\"$ \" + String.valueOf(b2));\n jLabelacum3.setText(\"$ \" + String.valueOf(b3));\n }", "title": "" }, { "docid": "a1ff62c21a35627052bd8a75facdf07c", "score": "0.66292506", "text": "public void setTahunAntrian(int tahunAntrian) throws Exception {\r\n /**\r\n * pernyataan yang berpotensi mengakibatkan Exception\r\n * jika tahunAntrian lebih besar samadengan 0 \r\n * Menyimpan Nilai dari obyek tahunAntrian ke variabel tahunAntrian\r\n */\r\n try {\r\n if (tahunAntrian >= 0) {\r\n this.tahunAntrian = tahunAntrian;\r\n }\r\n } catch (Exception ex) {\r\n /**\r\n * pernyataan disini akan di eksekusi jika terjadi Exception\r\n */\r\n throw new Exception(\"tahunnya salah bos . . .\");\r\n }\r\n }", "title": "" }, { "docid": "e9ecf61da8b86e68f7b9204d81e47563", "score": "0.6392085", "text": "public void setTahunLahir(int tahunLahir) throws Exception {\n try{ //untuk menangani suatu kesalahan atau error pada suatu listing program.\r\n if (tahunLahir >= 0) {} //jika ya maka akan mencetak atau menampilkan tahun lahir.\r\n this.tahunLahir = tahunLahir;\r\n } catch (Exception ex) { //untuk menangani suatu kesalahan atau error pada suatu listing program.\r\n throw new Exception(\"bulannyanya salah....\"); //throw digunakan untuk melempar suatu eksepsi dalam program. Digunakan pada saat mendeklarasi suatu method untuk memberitahu bahwa method tersebut dapat melemparkan eksepsi.\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "7a7b626df71495104e063c4be370d3e2", "score": "0.63771445", "text": "protected void maksu() {\r\n\r\n String annettuSumma = editpanel.getEditPanelMaksu().getText();\r\n String yhteishinta = maksuSumma.getText();\r\n Double takaisin = Mjonot.erotaDouble(annettuSumma, 0) - Mjonot.erotaDouble(yhteishinta, 0);\r\n editpanel_1.getEditPanelMaksu().setText(takaisin.toString());\r\n\r\n }", "title": "" }, { "docid": "c2727d4777b5bd37ae1a1a6a2f41c122", "score": "0.6372645", "text": "public void setValeur_tot(double valeur_tot) {\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n this.valeur_tot = valeur_tot;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "1008b3a398e7167a55bd309d19a9bad3", "score": "0.6311649", "text": "public void setTanggalLahir(int tanggalLahir) throws Exception {\n if (tanggalLahir > 0) { // Dimana dalam menentukan tanggal lahir memeiliki persyaratan yaitu tanggalLahir dokter harus lebih besar dari nol.\r\n if (tanggalLahir < 24) { // Kemudian didalamnya terdapat \"if bersarang\" yang berisi tanggal lahir lebih kecil dari 24.(karena tanggal dalam setiap bulan maks tanggal 23).\r\n this.tanggalLahir = 12; // tanggal lahir dokter adalah \"bulan 12/Desember\".\r\n }\r\n } else {\r\n throw new Exception(\"tanggal lahir lebih dari duapuluh empat\"); // seandainya tanggal lahir yang di inputkan lebih dari \"24\" maka jawaban terdeteksi salah, sehingga akan mencetak keterangan \"tanggal lahir lebih dari duapuluh empat\".\r\n }\r\n throw new Exception(\"tnggal lahir dari duapuluh empat\"); // seandainya tanggal lahir yang di inputkan \"24\", sehingga akan mencetak keterangan \"tanggal lahir dari duapuluh empat\".\r\n }", "title": "" }, { "docid": "24ec3d8ad5ebd3c89cb0c1033c128b97", "score": "0.62925065", "text": "public void setTahunAntrian(int tahunAntrian) throws NumberFormatException {\n if (tahunAntrian > 0) {//dalam langkah ini jika tahunAntrian lebih lebih besar dari 0 dan benar, maka dia akan berhenti dan mencetaknya\r\n this.tahunAntrian = tahunAntrian;\r\n } else {\r\n throw new NumberFormatException(\"salah tahunnya nih..\");//dan jika data TahunAntrian salah maka fungsi dari throw new NumberFormatException tsb akan bekerja dan mencetak bahwa tahunAntrian tsb salah\r\n }\r\n }", "title": "" }, { "docid": "ebd89a9d51273b43943f834f5c92ae7a", "score": "0.6247929", "text": "public void setTanggalLahir(int tanggalLahir) throws Exception {\n try{ //untuk menangani suatu kesalahan atau error pada suatu listing program.\r\n if (tanggalLahir > 0 && tanggalLahir <= 31) {} //jika ya maka akan mencetak atau menampilkan tanggal lahir.\r\n } catch (Exception ex) { //untuk menangani suatu kesalahan atau error pada suatu listing program.\r\n throw new Exception(\"tanggalnya salah....\"); //throw digunakan untuk melempar suatu eksepsi dalam program. Digunakan pada saat mendeklarasi suatu method untuk memberitahu bahwa method tersebut dapat melemparkan eksepsi.\r\n }\r\n }", "title": "" }, { "docid": "c87e19a40ce64cce8a5595fefca9d296", "score": "0.62394917", "text": "public void setPrixMaison(int prix)\n{\n\t this.prixMaison=prix;\n}", "title": "" }, { "docid": "f3b16e5da86866a917d13af6e1821646", "score": "0.6230234", "text": "public void getM(double podajMase) //akcesory\r\n {\r\n masa = podajMase;\r\n }", "title": "" }, { "docid": "5a1a3ed4ab61ee12f06856711855b308", "score": "0.62255466", "text": "@Override\r\n\tpublic void keliling() {\n\t\tsuper.keliling();\r\n\t\tkeliling = sisi * 12 ;\r\n\t}", "title": "" }, { "docid": "caf6ec3ebc7839bc76a7eded7693fa51", "score": "0.6174851", "text": "public void setBulanLahir(int bulanLahir) throws Exception {\n try{ //untuk menangani suatu kesalahan atau error pada suatu listing program.\r\n if (bulanLahir > 0 && bulanLahir <= 12) {} //jika ya maka akan mencetak atau menampilkan tanggal lahir.\r\n this.bulanLahir = bulanLahir; //Nilai dari obyek bulanLahir akan disimpan ke variabel bulanLahir.\r\n } catch (Exception ex) { //untuk menangani suatu kesalahan atau error pada suatu listing program.\r\n throw new Exception(\"bulannyanya salah....\"); //throw digunakan untuk melempar suatu eksepsi dalam program. Digunakan pada saat mendeklarasi suatu method untuk memberitahu bahwa method tersebut dapat melemparkan eksepsi.\r\n }\r\n\r\n }", "title": "" }, { "docid": "c2ccd5747875167ae03220a34e382f13", "score": "0.61699784", "text": "public void setSup_tva(float sup_tva) {\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n this.sup_tva = sup_tva;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "bb380b2fe2e29c783969321aaeadd9b9", "score": "0.6113981", "text": "private void setDate_kembali(){\n Calendar cal = Calendar.getInstance();\n //menambah waktu hari -> +3 hari\n cal.add(Calendar.DAY_OF_MONTH, 3);\n //mengembalikan objek tanggal dari nilai calender\n Date tgl_kembali = cal.getTime();\n //set tanggal le label 7\n jLabel7.setText(toddMMyy(tgl_kembali)); \n }", "title": "" }, { "docid": "2a4919c44716547ca1c70ff08b199d2f", "score": "0.6110855", "text": "public void updateData(){\n loadData();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) db_koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE tagihan SET no_transaksi = '\"+ no_transaksi +\"',\"\n + \"id_penyewa = '\"+ id_penyewa +\"',\"\n + \"nama_penyewa = '\"+ nama_penyewa +\"',\"\n + \"no_kamar = '\"+ no_kamar +\"',\"\n + \"type_kamar = '\"+ type_kamar +\"',\"\n + \"harga_kamar = '\"+ harga_kamar +\"'\"\n + \"bulan = '\"+ bulan +\"'\"\n + \"tgl_bayar = '\"+ tgl_bayar +\"' WHERE no_transaksi = '\" + no_transaksi +\"'\";\n db_koneksi.getKoneksi().prepareStatement(sql).executeUpdate();\n \n //ambil data\n getData();\n \n //memanggil class Reset()agar setelah update berhasil data yang terdapat pada komponen- komponen langsung dikosongkan\n Reset();\n JOptionPane.showMessageDialog(null, \"Update berhasil...\");\n }catch(SQLException er){\n JOptionPane.showMessageDialog(null, er.getMessage());\n }\n }", "title": "" }, { "docid": "0ab956d8c859db5f365513f17188b690", "score": "0.6105851", "text": "public void setMontant_tva(double montant_tva) {\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n this.montant_tva = montant_tva;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "df4e4fb81b2f1b94380518e2a54f4a3e", "score": "0.60939157", "text": "public void setAnioHasta(int anioHasta)\r\n/* 284: */ {\r\n/* 285:365 */ this.anioHasta = anioHasta;\r\n/* 286: */ }", "title": "" }, { "docid": "0fb2822ffe44b2d7d9ea866c1c78dd38", "score": "0.605411", "text": "public void setMesHasta(int mesHasta)\r\n/* 274: */ {\r\n/* 275:346 */ this.mesHasta = mesHasta;\r\n/* 276: */ }", "title": "" }, { "docid": "dbef6baead559f22f44b390e53e4699c", "score": "0.6047914", "text": "double tunjanganEmployee(double masaKerja) {\n\t\ttunjanganPegawai = 0;\n\t\tif(masaKerja < 3) {\n\t\t\ttunjanganPegawai += tunjanganKu[0];\n\t\t}\n\t\telse if(masaKerja < 5) {\n\t\t\ttunjanganPegawai += tunjanganKu[1];\n\t\t}\n\t\telse {\n\t\t\ttunjanganPegawai += tunjanganKu[2];\n\t\t}\n\t\treturn tunjanganPegawai;\n\t}", "title": "" }, { "docid": "f938c3ac17891e16d3259c253d17d852", "score": "0.6041414", "text": "@Override\n public void onClick(View v) {\n jumlahEsteh = jumlahEsteh + 1;\n\n // cek kondisi\n kondisiTidakBolehMinusEsteh();\n\n // tampil di atas daftar menu\n jumlahHargaEsteh = hargaEsteh * jumlahEsteh;\n\n // set jumlah indomie\n tv_jumlahEsteh.setText(\"\"+jumlahEsteh);\n\n // set total harga indomie\n tv_totalHargaMinuman.setText(\"Total Harga Es Teh = \"+jumlahHargaEsteh+\",-\");\n\n totalHargaKeseluruhan();\n\n }", "title": "" }, { "docid": "258720f49b3c14bdb51e2dcdd31a7918", "score": "0.60309535", "text": "public void setTugas (int newValue){\n iTugas = newValue;\n NilaiAkhir(this.iUts, this.iUas, this.iTugas);\n }", "title": "" }, { "docid": "c8ed76603fac830ac53b07f99ce3df54", "score": "0.60231936", "text": "int calculate(AkunKaryawan dataAkunKaryawan)\r\n {\n this.jamMulaiKerja = dataAkunKaryawan.getDataJadwalKerjaKaryawan().getJamMulaiKerja();\r\n this.jamSelesaiKerja = dataAkunKaryawan.getDataJadwalKerjaKaryawan().getJamSelesaiKerja();\r\n this.statusKerja = dataAkunKaryawan.getDataJadwalKerjaKaryawan().getStatusKerja();\r\n this.jumlahHariKerja = dataAkunKaryawan.getDataJadwalKerjaKaryawan().getJumlahHariKerja();\r\n\r\n // perbedaan jam mulai kerja dan jam selesai kerja\r\n\r\n this.totalPenghasilan = this.lamaWaktuKerja * this.jumlahHariKerja * penghasilanPerJam(statusKerja);\r\n return this.totalPenghasilan; // belum selesai\r\n }", "title": "" }, { "docid": "bebbd59b3f713fc1d65d33c5a8d37e22", "score": "0.60176855", "text": "public void atualizar_valores() throws SQLException{\n\t\ttxtTOTAL.setText(\"R$ \" + String.valueOf(valor_total()));\n\t}", "title": "" }, { "docid": "da8b8e9cc0349cfbd079f6b8ff4d8d90", "score": "0.6015119", "text": "private void setData(ServerResponseDetailPembelian body) {\n DecimalFormat kursIndonesia = (DecimalFormat) DecimalFormat.getCurrencyInstance();\n DecimalFormatSymbols formatRp = new DecimalFormatSymbols();\n formatRp.setCurrencySymbol(\"\");\n formatRp.setMonetaryDecimalSeparator(',');\n formatRp.setGroupingSeparator('.');\n kursIndonesia.setDecimalFormatSymbols(formatRp);\n String total_biaya_rupiah = \"IDR \" + kursIndonesia.format(body.getHarga());\n\n\n //FORMAT TANGGAL\n String tanggal[] = body.getTanggal().split(\"-\", 3);\n String day = tanggal[2];\n String month = tanggal[1];\n String year = tanggal[0];\n\n if (month.equals(\"01\")) {\n month = \"Januari\";\n } else if (month.equals(\"02\")) {\n month = \"Februari\";\n } else if (month.equals(\"03\")) {\n month = \"Maret\";\n } else if (month.equals(\"04\")) {\n month = \"April\";\n } else if (month.equals(\"05\")) {\n month = \"Mei\";\n } else if (month.equals(\"06\")) {\n month = \"Juni\";\n } else if (month.equals(\"07\")) {\n month = \"Juli\";\n } else if (month.equals(\"08\")) {\n month = \"Agustus\";\n } else if (month.equals(\"09\")) {\n month = \"September\";\n } else if (month.equals(\"10\")) {\n month = \"Oktober\";\n } else if (month.equals(\"11\")) {\n month = \"November\";\n } else if (month.equals(\"12\")) {\n month = \"Desember\";\n }\n\n tvKapal.setText(body.getKapal());\n tvHarga.setText(total_biaya_rupiah);\n tvTanggal.setText(day + \" \" + month + \" \" + year);\n tvAsal.setText(body.getPelabuhan_asal());\n tvTujuan.setText(body.getPelabuhan_tujuan());\n tvBerangkat.setText(body.getWaktu_berangkat().substring(0, Math.min(body.getWaktu_berangkat().length(), 5)) + \" WITA\");\n tvSampai.setText(body.getWaktu_sampai().substring(0, Math.min(body.getWaktu_sampai().length(), 5)) + \" WITA\");\n tvStatusBayar.setText(\"Selesai\");\n tvStatusBayar.setTextColor(ContextCompat.getColor(ReviewKapalDetailActivity.this, R.color.Safety_Green));\n\n if(state.equals(\"reviewed\")){\n ratingBar.setRating(body.getRating());\n ratingBar.setIsIndicator(true);\n etUlasanKapal.setText(body.getReview());\n etUlasanKapal.setEnabled(false);\n btnSubmit.setVisibility(View.GONE);\n }\n\n }", "title": "" }, { "docid": "ce9b121eace94dd5f291de367ebb0f6f", "score": "0.6013644", "text": "public void setCantidad(Double cantidad)\n/* 141: */ {\n/* 142:187 */ this.cantidad = cantidad;\n/* 143: */ }", "title": "" }, { "docid": "7df73b8ae98450f121571a571f3e2923", "score": "0.600545", "text": "public void setTanggalAntrian(int tanggalAntrian) throws Exception {\r\n /**\r\n * pernyataan yang berpotensi mengakibatkan Exception\r\n * jika tanggalAntrian lebih besar dari 0 dan tanggalAntrian kurang Dari samadengan 31\r\n */\r\n try {\r\n if (tanggalAntrian > 0 && tanggalAntrian <= 31) {\r\n this.tanggalAntrian = tanggalAntrian;\r\n }\r\n } catch (Exception ex) {\r\n /**\r\n * pernyataan disini akan di eksekusi jika terjadi Exception\r\n */\r\n throw new Exception(\"tanggalnya salah bos . . .\");\r\n }\r\n }", "title": "" }, { "docid": "cc8be6850b5818da28b36dfbbadd3557", "score": "0.6002584", "text": "public void setBulanAntrian(int bulanAntrian) throws Exception {\r\n /**\r\n * pernyataan yang berpotensi mengakibatkan Exception\r\n * lebih besar 0 dan bulanAntrian kurang dari samadengan 12\r\n * Nilai dari obyek bulanAntrian ke variabel bulanAntrian\r\n */\r\n try {\r\n if (bulanAntrian > 0 && bulanAntrian <= 12) {\r\n this.bulanAntrian = bulanAntrian;\r\n }\r\n } catch (Exception ex) {// \r\n /**\r\n * pernyataan disini akan di eksekusi jika terjadi Exception\r\n */\r\n throw new Exception(\"bulannya salah bos . . .\");\r\n }\r\n }", "title": "" }, { "docid": "4cea1216fc57278524da71f806a9c21e", "score": "0.5997621", "text": "public void setCantidad(BigDecimal value)\n/* 61: */ {\n/* 62:191 */ this.cantidad = value;\n/* 63: */ }", "title": "" }, { "docid": "4667dbf6e00c9d8deff1f1aec1e7b9bd", "score": "0.5994368", "text": "public void setTarifa(BigDecimal value)\n/* 50: */ {\n/* 51:133 */ this.tarifa = value;\n/* 52: */ }", "title": "" }, { "docid": "c1a7bc5bbb7aab1dc04a81e8329aa454", "score": "0.59728587", "text": "public void setMaTuSinh(String maTuSinh);", "title": "" }, { "docid": "56135e6a065a4193d8db0f7a86aac7e5", "score": "0.59666467", "text": "@Override\n public void onClick(View v) {\n jumlahEsteh = jumlahEsteh - 1;\n\n // cek kondisi\n kondisiTidakBolehMinusEsteh();\n\n // tampil di atas daftar menu\n jumlahHargaEsteh = hargaEsteh * jumlahEsteh;\n\n // set jumlah indomie\n tv_jumlahEsteh.setText(\"\"+jumlahEsteh);\n\n // set total harga indomie\n tv_totalHargaMinuman.setText(\"Total Harga Es Teh = \"+jumlahHargaEsteh+\",-\");\n\n totalHargaKeseluruhan();\n\n }", "title": "" }, { "docid": "13b88830907d63278508e58bf12bb977", "score": "0.59628737", "text": "public void setContraMoney(double contraMoney)\r\n/* 39: */ {\r\n/* 40:46 */ this.contraMoney = contraMoney;\r\n/* 41: */ }", "title": "" }, { "docid": "209ca5a5ee28ea52664c29e49461b72c", "score": "0.5952684", "text": "public void setNbMaison(int nbMaison)\n{\n\tthis.nbMaison=nbMaison;\n}", "title": "" }, { "docid": "ab75bd4c67e25480bbaa525efe2bd270", "score": "0.5900304", "text": "public void setAnioDesde(int anioDesde)\r\n/* 264: */ {\r\n/* 265:327 */ this.anioDesde = anioDesde;\r\n/* 266: */ }", "title": "" }, { "docid": "d207fb979de0b247382554c4d787b90a", "score": "0.5898774", "text": "double tunjanganFamili(String statusKeluarga) {\n\t\ttunjanganKeluarga = 0 ;\n\t\tif(statusKeluarga.equals(\"y\")) {\n\t\t\ttunjanganKeluarga += 0.02*gapok;\n\t\t\t\n\t\t}\n\t\treturn tunjanganKeluarga;\n\t}", "title": "" }, { "docid": "e78a5c39a5d521d6b17d78df9d242dad", "score": "0.58929825", "text": "public Pesanan(double jumlahHari, Customer pelanggan)\r\n {\r\n this.jumlahHari = jumlahHari;\r\n this.pelanggan = pelanggan;\r\n this.kamar = kamar;\r\n this.isAktif = true;\r\n this.tanggalPesan = new Date();\r\n this.id = DatabasePesanan.getLastPesananID()+1;\r\n }", "title": "" }, { "docid": "a5fa45a49a259fb04a02f437152d86df", "score": "0.587353", "text": "public void setAt_val_vente(double at_val_vente) {\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n this.at_val_vente = at_val_vente;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "259413a8e460b2f7171161966c8f7650", "score": "0.5863852", "text": "void setValor(int novoValor){\r\n valor=novoValor;\r\n }", "title": "" }, { "docid": "05d87615cf8e355171de989927ef151d", "score": "0.58539385", "text": "@Override\n public void onClick(View v) {\n jumlahIndomie = jumlahIndomie + 1;\n\n // cek kondisi\n kondisiTidakBolehMinusIndomie();\n\n // tampil di atas daftar menu\n jumlahHargaIndomie = hargaIndomie * jumlahIndomie;\n\n // set jumlah indomie\n tv_jumlahIndomie.setText(\"\"+jumlahIndomie);\n\n // set total harga indomie\n tv_totalHargaMakanan.setText(\"Total Harga Indomie = \"+jumlahHargaIndomie+\",-\");\n\n totalHargaKeseluruhan();\n\n }", "title": "" }, { "docid": "1952bf20546ac3950a177eeac810f946", "score": "0.58491045", "text": "public void setSaldo(double saldo){ \r\n this.saldo = 0.995 *saldo;\r\n }", "title": "" }, { "docid": "896d34237ca9ed5629bdbbaa15eeefd4", "score": "0.5839075", "text": "public void setValor(BigDecimal valor)\r\n/* 197: */ {\r\n/* 198:215 */ this.valor = valor;\r\n/* 199: */ }", "title": "" }, { "docid": "33a7f002705d1c84824cbf4efeab3df8", "score": "0.58284205", "text": "public void setValeur_tot_tva_inc(double valeur_tot_tva_inc) {\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n this.valeur_tot_tva_inc = valeur_tot_tva_inc;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "2302ae943f419109564f0fb1bd6d5203", "score": "0.58269644", "text": "public void setMoney(double money)\r\n/* 59: */ {\r\n/* 60:62 */ this.money = money;\r\n/* 61: */ }", "title": "" }, { "docid": "1dd487f425783ef7b298b7070a4eeb21", "score": "0.58237964", "text": "public void setNama(String nama) {\r\n //nama dari variabel global sama dengan nama dari variabel lokal\r\n this.nama = nama;\r\n }", "title": "" }, { "docid": "ddef15cd745620a22d49304b10bf1828", "score": "0.58215904", "text": "public void setValorUnitario(BigDecimal valorUnitario)\n/* 71: */ {\n/* 72: 95 */ this.valorUnitario = valorUnitario;\n/* 73: */ }", "title": "" }, { "docid": "c8f562ca846ba548cbea7de52179fe4d", "score": "0.58181065", "text": "void setSaldo(int saldo);", "title": "" }, { "docid": "4fe8a70bae73762c8f39965fbed88830", "score": "0.58134335", "text": "@Override\n public void onClick(View v) {\n jumlahIndomie = jumlahIndomie - 1;\n\n // cek kondisi\n kondisiTidakBolehMinusIndomie();\n\n // tampil di atas daftar menu\n jumlahHargaIndomie = hargaIndomie * jumlahIndomie;\n\n // set jumlah indomie\n tv_jumlahIndomie.setText(\"\"+jumlahIndomie);\n\n // set total harga indomie\n tv_totalHargaMakanan.setText(\"Total Harga Indomie = \"+jumlahHargaIndomie+\",-\");\n\n totalHargaKeseluruhan();\n\n }", "title": "" }, { "docid": "cb62baeba5525dee2a808d491f71561c", "score": "0.5804971", "text": "public void setCantidadDiasFalta(int cantidadDiasFalta)\r\n/* 335: */ {\r\n/* 336:345 */ this.cantidadDiasFalta = cantidadDiasFalta;\r\n/* 337: */ }", "title": "" }, { "docid": "f065a52a6aab7bcf023e09a03c49e530", "score": "0.57982945", "text": "void setData (String nama, String alamat, String tlp,String jnskel){\n\t\tthis.nama=nama;\n\t\tthis.alamat=alamat;\n\t\tthis.tlp=tlp;\n\t\tthis.jnskel=jnskel;\n\t}", "title": "" }, { "docid": "fb46d16003e414a4e901906b257270c5", "score": "0.57954276", "text": "public void setAt_cleunik(long at_cleunik) {\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n this.at_cleunik = at_cleunik;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "6e1656f0f57d4f5b6fd906366b04a947", "score": "0.57930106", "text": "public void setValor(BigDecimal value)\n/* 70: */ {\n/* 71:181 */ this.valor = value;\n/* 72: */ }", "title": "" }, { "docid": "a009f675544a91b8c3b818c71533fdcc", "score": "0.57880765", "text": "public void setOperacion(int operacion)\r\n/* 337: */ {\r\n/* 338:352 */ this.operacion = operacion;\r\n/* 339: */ }", "title": "" }, { "docid": "09e2a07432624a32dbb4d4a486a719f2", "score": "0.5766492", "text": "public void setPrice(){\r\n \r\n price = 24.99;\r\n }", "title": "" }, { "docid": "60cc703ac72911d5bd3f050e40c6ddbc", "score": "0.5763971", "text": "public int getTinggi() {// method getTinggi\r\n return tinggi;// mengembalikan nilai dari variabel tinggi yang mana merupakan variabel local\r\n }", "title": "" }, { "docid": "78d39a91bffc3e3ec43906f5a7716637", "score": "0.5744617", "text": "@FXML public void geraTotal() {\n\t\t\tdouble total = estoque.identificar();\n\n\t\t\tCaixa novaVenda = new Caixa();\n\t\t\t//novaVenda.setCodFun(caixa.getCodFun());\n\t\t\tnovaVenda.setTotalCai(total);\n\t\t\t\n\t\t\tcaixaDAO.inserir(novaVenda);\t\t\t\n\t\t\t\t\t\t\n\t\t\tlCodProd.setText(\"\");\n\t\t\tlNomeProd.setText(\"\");\n\t\t\tlPrecoProd.setText(\"\");\n\t\t\tSpinnerValueFactory<Integer> spqtdProd = new SpinnerValueFactory.IntegerSpinnerValueFactory(0, 0);\n\t\t\tspQtdProd.setValueFactory(spqtdProd);\n\t\t\ttfTotal.setText(\"\");\n\t\t\tlvCarrinho.setItems(null);\n\t\t\tlTotalCarrinho.setText(\"\");\n\t\t\testoque.getCaixa().clear();\n\t\t\testoque.setSaidaEst(null);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2b7f4e6c3720fda9c6e08172241a43c9", "score": "0.5741331", "text": "void setResultado(double resultado);", "title": "" }, { "docid": "339790c1a346117757564bb5deba86b6", "score": "0.5733881", "text": "public void setUas (int newValue){\n iUas = newValue;\n NilaiAkhir(this.iUts, this.iUas, this.iTugas);\n }", "title": "" }, { "docid": "fb9150938a5adad29bbc83ec86f4cf76", "score": "0.57338196", "text": "public void changeHume(int change){\n this.hume += change;\n }", "title": "" }, { "docid": "c7cdf7027e160b502dfc0ea194fac5e6", "score": "0.573237", "text": "public void prepare(){\n jenisHewan = \"kalkun\";\n panjangDada = 5;\n ketebalanSayap = 2;\n ketebalanPaha = 2;\n \n }", "title": "" }, { "docid": "6884c703be49915830fafb5b7849d084", "score": "0.57231164", "text": "public void usdCurrency (){\n sugar = 2.00;\n bread = 0.90;\n milk = 1.00;\n jam = 1.50;\n }", "title": "" }, { "docid": "ca6d238780f1459041cc30183823d9dd", "score": "0.57146275", "text": "private void atualizarGorjetaPersonalizada(){\n gorjetaEditText.setText(String.format(\"%.1f\", Calculadora.gorjeta(conta,percentual)));\n atualizarFinal();\n }", "title": "" }, { "docid": "e8a5e27b6516e61d96cd9415fb7834b7", "score": "0.57134354", "text": "public void actualizarTamanio(double tamanio) {\n this.tamanio = tamanio;\n }", "title": "" }, { "docid": "6b3364a3ee14319b201ae1b5f3aaf2cf", "score": "0.5707993", "text": "public void setPrixAchat(int prix)\n{\n\tthis.prixTerrain=prix;\n}", "title": "" }, { "docid": "3705fb6375b9afa6b07596d60d793b7b", "score": "0.57038826", "text": "public void setBulanAntrian(int bulanAntrian) throws NumberFormatException {\n if (bulanAntrian > 0 && bulanAntrian < 13) {//dalam langkah ini jika bulanAntrian lebih lebih besar dari 0 dan lebih kecil dari 13 dan benar, maka dia akan berhenti dan mencetaknya\r\n this.bulanAntrian = bulanAntrian;\r\n } else {\r\n throw new NumberFormatException(\"salah bulannya nih\"); //dan jika data BulanAntrian salah maka fungsi dari throw new NumberFormatException tsb akan bekerja dan mencetak bahwa bulanAntrian tsb salah\r\n }\r\n\r\n }", "title": "" }, { "docid": "98f9078003391ed524093957a2be5949", "score": "0.5695495", "text": "public void setTrangThai(long trangThai);", "title": "" }, { "docid": "0dcd6e3018f1fbea457cff60fccb517a", "score": "0.5694288", "text": "public void setElab_resultado1(BigDecimal decimal)\r\n/* 83: */ {\r\n/* 84:124 */ this.elab_resultado1 = decimal;\r\n/* 85: */ }", "title": "" }, { "docid": "bcdc131da9af7aca990565d7c9850ccf", "score": "0.5692734", "text": "public void setPrixLoyer(int prix)\n{\n this.prixLoyer=prix;\n}", "title": "" }, { "docid": "3b5fc2588b7549a36caceadaa5f1b7ce", "score": "0.56822777", "text": "public void setDiaMes(int diaMes)\r\n/* 315: */ {\r\n/* 316:329 */ this.diaMes = diaMes;\r\n/* 317: */ }", "title": "" }, { "docid": "ab44e789975391747edfc2589809ef56", "score": "0.56779414", "text": "public void setChargeAmt (BigDecimal ChargeAmt)\n{\nset_Value (\"ChargeAmt\", ChargeAmt);\n}", "title": "" }, { "docid": "ab44e789975391747edfc2589809ef56", "score": "0.56779414", "text": "public void setChargeAmt (BigDecimal ChargeAmt)\n{\nset_Value (\"ChargeAmt\", ChargeAmt);\n}", "title": "" }, { "docid": "ab44e789975391747edfc2589809ef56", "score": "0.56779414", "text": "public void setChargeAmt (BigDecimal ChargeAmt)\n{\nset_Value (\"ChargeAmt\", ChargeAmt);\n}", "title": "" }, { "docid": "ab44e789975391747edfc2589809ef56", "score": "0.56779414", "text": "public void setChargeAmt (BigDecimal ChargeAmt)\n{\nset_Value (\"ChargeAmt\", ChargeAmt);\n}", "title": "" }, { "docid": "b77b60da0eb3ed4932fee93839f6d39d", "score": "0.56757087", "text": "public void setQua(int qua) {\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n this.qua = qua;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "47ab3d4cb9305724b86ce94d3a06c498", "score": "0.56704223", "text": "public void setTaxRate (BigDecimal TaxRate)\n{\nset_Value (\"TaxRate\", TaxRate);\n}", "title": "" }, { "docid": "63e7b040f4ab7835e9011f0c56575afe", "score": "0.5661086", "text": "public void setAngka(String angka){\n \n String current;\n boolean koma = false;\n if (lengthInput == 0) {\n current = angka;\n if(angka == \".\") current = \"0.\";\n //mengecek jika terdapat operator pada input pertama\n if(Arrays.asList(operator).contains(angka)) return;\n }else{\n //handle untuk multiple operator ==>\n if (Arrays.asList(operator).contains(angka)) {\n int lastIndex = Output.getText().length() - 1;\n String stringLast = String.valueOf(Output.getText().charAt(lastIndex));\n if (Arrays.asList(operator).contains(stringLast)) return;\n \n //melimit hanya ada dua operasi saja\n if(jumOperator > 0) return; \n jumOperator++;\n }\n // <===\n //untuk menghandle multiple koma ==>\n if(angka == \".\") {\n if(Output.getText().charAt(Output.getText().length() - 1) == '.'){\n koma = true;\n }\n }\n // <==\n current = Output.getText().toString();\n //mendiseble ketika ada multiple koma <>\n if(koma)current = current +=\"\";\n else \n current += angka;\n }\n lengthInput++;\n Output.setText(current);\n }", "title": "" }, { "docid": "48bf1247ec22c61fe90c9f2700b217ab", "score": "0.5656238", "text": "public void setTach(float tach){\n this.tach = tach; \n }", "title": "" }, { "docid": "c7199341fa70e4448b3d2816fd02a9c9", "score": "0.5654178", "text": "public void finEditar()\n {\n alimRequerido *= tamano;\n alimDado *= tamano;\n alimDadoB *= tamano;\n }", "title": "" }, { "docid": "9f9b762a879f13ba4dfe4342b36f04b1", "score": "0.5653544", "text": "public abstract void setTotalFee();", "title": "" }, { "docid": "4b32b907f55b5ba79783526496e368b4", "score": "0.5642794", "text": "public void hapus() {\n Mahasiswa = null;\r\n data = null;\r\n hasil = null;\r\n }", "title": "" }, { "docid": "9160d7d014f2dbd1c90b9372e8c3784a", "score": "0.56330377", "text": "public static void alustaSeuraavaVapaaTuotenumero() {\r\n \tseuraavaVapaaTuotenumero = 1;\t\r\n \t\r\n }", "title": "" }, { "docid": "30688aa1bd4ef465459c0f90947dc3da", "score": "0.5625525", "text": "@Override\n public void setCalculation(DateTime time, String key, double value) {\n \n }", "title": "" }, { "docid": "8f2361bc0d837b63d4cbb3d1ef8685d6", "score": "0.56254536", "text": "public void changeBerkshire()\n {\n int numberListed = Integer.parseInt(berkshireRatCollectionTotal.getText());\n currentGame.getPlayer().setTotalBerkshire(numberListed);\n\n int updatedNumber = (currentGame.getPlayer().getTotalBerkshire()) + 1;\n berkshireRatCollectionTotal.setText(Integer.toString(updatedNumber));\n currentGame.getPlayer().setTotalBerkshire(updatedNumber);\n }", "title": "" }, { "docid": "bdad219da1497a7b56c7b30f0dbf7921", "score": "0.5624692", "text": "public void setElab_usuf_cod(BigDecimal decimal)\r\n/* 103: */ {\r\n/* 104:152 */ this.elab_usuf_cod = decimal;\r\n/* 105: */ }", "title": "" }, { "docid": "59b4097647440cfb136273ec548b6475", "score": "0.5620807", "text": "public void setElab_resultado3(BigDecimal decimal)\r\n/* 93: */ {\r\n/* 94:138 */ this.elab_resultado3 = decimal;\r\n/* 95: */ }", "title": "" }, { "docid": "110b260248bf3e5d99f6066f365c469c", "score": "0.5602343", "text": "public void setElab_fecha1(BigDecimal decimal)\r\n/* 68: */ {\r\n/* 69:103 */ this.elab_fecha1 = decimal;\r\n/* 70: */ }", "title": "" }, { "docid": "4309fc3764b47c3a203a9dfc95935e3b", "score": "0.56021035", "text": "public void setLokasi(Lokasi lokasi){\n this.lokasi=lokasi;\n }", "title": "" }, { "docid": "0fe3e826aca46b169416fdc288b28e95", "score": "0.5593982", "text": "public abstract void setTiempo_minimo(java.lang.Integer newTiempo_minimo);", "title": "" }, { "docid": "9897d65e68e9994a042c5d89e2b376e7", "score": "0.55922633", "text": "public void setPrice(double price)\n {\n priceOfItem = price; //Set changed price.\n pricePerPound = priceOfItem / weightInPounds; //Calculate price per pound.\n pricePerOunce = (priceOfItem / weightInPounds) / BRITISH_UNIT; //Ounces = Pounds / 16\n }", "title": "" }, { "docid": "1f631ba19faec50f8f14d094b6a3f011", "score": "0.5590045", "text": "@FXML\n public void atualizarVelocidade(){\n tempoCorte = 2000 * (int) velocidade.getValue();\n }", "title": "" }, { "docid": "72e152a7272b0b33cb5d35684bc3ba60", "score": "0.5586467", "text": "public void setStok(int stok) {\n\t\tthis.stok += stok;\t\n\t}", "title": "" }, { "docid": "2b573b3dc7137817c14c8acc9d654505", "score": "0.55849427", "text": "private void Proses() {\n t1 = Double.parseDouble(tftinggi.getText());\n bt = Double.parseDouble(tfbb.getText());\n \n if (rbp.isSelected()) {\n h1 = (t1 - 100) * 1;\n } else if (rblk.isSelected()) {\n h1 = (t1 - 104) * 1;\n }\n temp = h1+\"\";\n \n if (h1 < bt) {\n ideal.setText(temp);\n hasil.setText(\"Maaf \" + tfnama.getText() + \" , Sepertinya anda Over\");\n saran.setText(\"Maaf \" + tfnama.getText() + \"Banyaklah berolahraga dan hindari makanan berkolestrol\");\n } else if (h1 > bt) {\n ideal.setText(temp);\n hasil.setText(\"Maaf \" + tfnama.getText() + \" , Sepertinya anda under\");\n saran.setText(\"Maaf \" + tfnama.getText() + \"Banyaklah mengkonsumsi makanan yang berkarbohidrat\");\n } else{\n ideal.setText(temp);\n hasil.setText(\"Halo \" + tfnama.getText() + \" , Berat badan badan and sudah\");\n saran.setText(\"Lanjutkan pola makan teratus dan gaya hidup sehat:\");\n }\n }", "title": "" }, { "docid": "464ca86c18460d83138b6e0d4e645f1b", "score": "0.5562943", "text": "public void setTaiLieuDinhKem(long taiLieuDinhKem);", "title": "" }, { "docid": "ff5ac81ca6f6f54a5192ef51b7afb160", "score": "0.5561112", "text": "public void setataque(int ataque){\n if(this.ataque < 0){\n this.ataque = 1;\n }\n if(this.ataque > 10){\n this.ataque = 10;\n }\n else{\n this.ataque = ataque;\n }\n }", "title": "" }, { "docid": "28e54742c84b11bc4949b038f3da10ef", "score": "0.5553767", "text": "public void setElab_resultado2(BigDecimal decimal)\r\n/* 88: */ {\r\n/* 89:131 */ this.elab_resultado2 = decimal;\r\n/* 90: */ }", "title": "" }, { "docid": "df61461b357086c5d2ec44d6839f0d43", "score": "0.55528426", "text": "public void cetak(){\n System.out.println(\"Nama : \"+this.nama+\"\\n\"+\"Umur : \"+this.umur);\n }", "title": "" }, { "docid": "3440a08719cad754ff6a3cb138910c84", "score": "0.55504745", "text": "double tunjanganKhusus(String tempatKerja) {\n\t\ttunjanganKhusus = 0;\n\t\tif(tempatKerja.equals(\"Jakarta\")) {\n\t\t\ttunjanganKhusus += 1000000;\n\t\t}\n\t\treturn tunjanganKhusus;\n\t}", "title": "" }, { "docid": "3b73ae662acab45ad3f56d23490c7198", "score": "0.5549298", "text": "int jumlahPenghasilanKu(double gajiKotor , double gajiLembur) {\n\t\tjumlahPenghasilan = (int)(gajiKotor+gajiLembur);\n\t\treturn jumlahPenghasilan;\n\t}", "title": "" }, { "docid": "a19580447257b41a9715c26a1fffff7c", "score": "0.5546063", "text": "public void calcularTotal() {\n calcularSubtotal();\n calcularIva();\n txtTotal.setText(String.valueOf((subTotal) + (iva)));\n }", "title": "" }, { "docid": "3fa7c9c2698ff41ff7794a7eb0142464", "score": "0.5538969", "text": "public void setTahunAntri(int tahunAntri) {\r\n this.tahunAntri = tahunAntri;\r\n }", "title": "" } ]
d76a6098898cd9cb455ce8e9f51812d1
Whether RUNTIME is debuggable.
[ { "docid": "824338be9a9cca27d7946e1b3054c82e", "score": "0.8043383", "text": "public static boolean isRuntimeDebuggable() {\n return sRuntimeDebuggable;\n }", "title": "" } ]
[ { "docid": "cd27531501f693a1cba082427af8d69d", "score": "0.8474974", "text": "private boolean isDebuggable() {\n return (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;\n }", "title": "" }, { "docid": "eed1a5bb4084021c6288625e9f878f04", "score": "0.8469706", "text": "boolean isDebug();", "title": "" }, { "docid": "0bb4001c2435157b369210a0227324ce", "score": "0.84110004", "text": "boolean isDebugEnabled();", "title": "" }, { "docid": "781697e064b5ba17d37de2d71e099b71", "score": "0.83221877", "text": "public abstract boolean isDebugMode();", "title": "" }, { "docid": "494b4a69c4ec5da7aa5f896dd31258c0", "score": "0.8110125", "text": "public static boolean isDebuggable() {\n return debuggable;\n }", "title": "" }, { "docid": "ba41e1495e7464a25d256d2d51629721", "score": "0.80727816", "text": "public boolean isDebug() {\r\n return debug;\r\n }", "title": "" }, { "docid": "76d9b03734f11f2c65078b6a29e01d90", "score": "0.805311", "text": "public boolean isDebug() {\n return debug;\n }", "title": "" }, { "docid": "1f3da3d3bcac0a25671f465aadfe7a59", "score": "0.8048579", "text": "static boolean isDebugging ()\n {\n return isDebugging(getDebugProperty());\n }", "title": "" }, { "docid": "c25fe4d4f20bc43d2a8640e8c73291d2", "score": "0.80426353", "text": "public boolean isDebug() {\n return getLog().isDebug();\n }", "title": "" }, { "docid": "469c9faac1261b53b33bfc7ff567fb7d", "score": "0.79756624", "text": "boolean getDebug();", "title": "" }, { "docid": "68172675dcc968eb1c67442b07b32ff9", "score": "0.7924516", "text": "public static boolean isDebugging()\n {\n return isDebugging;\n }", "title": "" }, { "docid": "6ef95e68e745dfa7779c6c3b1b086ba0", "score": "0.7893703", "text": "public boolean isDebugMode() {\n return cfg.getBoolean(\"debug-mode\", false);\n }", "title": "" }, { "docid": "fbcdea5f74a4137bad650e3daa17712f", "score": "0.7815788", "text": "public boolean isDebugEnabled() {\n return false;\n }", "title": "" }, { "docid": "6ca6715d0fc7f927fc9d754c044de154", "score": "0.7779377", "text": "public boolean debug()\n {\n return isDebugging;\n }", "title": "" }, { "docid": "f566ac1a49d749cf531dfe6cdc115ccc", "score": "0.7714927", "text": "public boolean isDebugEnabled()\r\n\t{\r\n\t\treturn debugEnabled;\r\n\t}", "title": "" }, { "docid": "1bd2b5c48bca8eac95697a2afc224fee", "score": "0.76660013", "text": "public static boolean isDebuggable(Context context) {\n return isRuntimeDebuggable() || isPackageDebuggable(context);\n }", "title": "" }, { "docid": "63795a06b0cea2dfbbc298b7a5cf0541", "score": "0.7585062", "text": "protected boolean isDebug() {\n\t\tfinal Log log = getLog();\n\t\treturn log != null ? log.isDebugEnabled() : false;\n\t}", "title": "" }, { "docid": "dda6aef8514843ac37419904195171eb", "score": "0.7517377", "text": "public static boolean isDebugEnabled() {\n String debugEnv = System.getenv(DEBUG_CONTROL);\n if (debugEnv != null && Boolean.parseBoolean(debugEnv)) {\n return true;\n }\n\n Boolean debug = DEBUG_CONTROLLER.get();\n if (debug == null) {\n debug = false; // set default to close debug info\n }\n\n return debug;\n }", "title": "" }, { "docid": "15bea2cf8fd9803b885f4f6392c5134c", "score": "0.73387516", "text": "public boolean isDebugState() {\n return debugState;\n }", "title": "" }, { "docid": "a7488d2f91437e68d87db2ce8825cbcf", "score": "0.73302823", "text": "protected boolean getDebugPCT() {\n return runAttributes.isDebugPCT();\n }", "title": "" }, { "docid": "f2d0f7dff8851c5f539b38608948c502", "score": "0.7313941", "text": "public static boolean isDebugEnable() {\n\t\treturn hasAndroidLogs && (flogger!=null || BuildConfig.DEBUG);\n\t}", "title": "" }, { "docid": "9a0eb8d96699c67b87156f075bd7fcdf", "score": "0.7293344", "text": "public boolean isEnabled()\n\t{\n\t\treturn debugEnabled;\n\t}", "title": "" }, { "docid": "cce802d64ad659f7bad9e3a0f3f54f54", "score": "0.7255622", "text": "public static boolean consoleDebugEnabled() {\n return Configs.getSettingBoolean(\"misc.console_debug\");\n }", "title": "" }, { "docid": "197bd3763c91b740ceba033130d9a983", "score": "0.7245537", "text": "boolean showsDebug();", "title": "" }, { "docid": "98426de6eb963256428feab3f55646e9", "score": "0.72334504", "text": "public boolean getDebug() {\n return debug_;\n }", "title": "" }, { "docid": "11f0fa15031be469cbff985d8b176dea", "score": "0.72266364", "text": "public boolean debug(){\n\n return this.debug;\n\n }", "title": "" }, { "docid": "accbaa76808244d2ab57118129b98716", "score": "0.7194378", "text": "private static boolean isDebugModeEnabled(String[] args) {\n for (int i = 0; i < args.length; i++) {\n String arg = args[i];\n if (arg.equalsIgnoreCase(\"--debug\")) {\n return true;\n }\n }\n return false;\n\n }", "title": "" }, { "docid": "814d8ee108b392b2f3dc3b4ba0354b7a", "score": "0.7181196", "text": "public boolean getDebug() {\n return debug_;\n }", "title": "" }, { "docid": "dec407c298487c38fddce879f7dd6830", "score": "0.7112206", "text": "public boolean getDebug() {\n return _debug;\n }", "title": "" }, { "docid": "32e0cd88543be62013ea7c60993791ed", "score": "0.70255756", "text": "public boolean getEnableDebugging()\n\t{\n\t\treturn enableDebugging;\n\t}", "title": "" }, { "docid": "1a5b0e0033793b99ea8cab958dfd4e87", "score": "0.7022396", "text": "public boolean isDebugEnabled() {\n return logger.isDebugEnabled();\n }", "title": "" }, { "docid": "c016833aa0a56710c1c48f527d17c402", "score": "0.7021258", "text": "@java.lang.Override\n public boolean hasDebugOptions() {\n return debugOptions_ != null;\n }", "title": "" }, { "docid": "5e9be9d55b391e1d8b3fbdd0d7c5d3f4", "score": "0.70113814", "text": "public Boolean getDebug() {\n if (!getUser().isSuperuser()) {\n return false;\n }\n return debug;\n }", "title": "" }, { "docid": "689341d50959a8e3b52f7e3cb0672465", "score": "0.69765013", "text": "public static void setDebugOn () {\n\n /* YOUR CODE GOES HERE */\n\t\tdebug = true;\n }", "title": "" }, { "docid": "2a3a38068fc758f173c6f3930536e53a", "score": "0.6965029", "text": "public void setDebug(boolean b);", "title": "" }, { "docid": "74d458e53f8170d20cafe9ed6a279b47", "score": "0.6951129", "text": "public void debug() {\n modeDebug = !modeDebug;\n }", "title": "" }, { "docid": "89b6bb552f2453d586009ddfc848d568", "score": "0.69354385", "text": "public boolean isEnableDebugLogs() {\n return enableDebugLogs;\n }", "title": "" }, { "docid": "cad4213abc42f1625b3265364b456be9", "score": "0.6922749", "text": "@Override\n\tpublic boolean Debug() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d71767f9c6d5699703e8b4a603467960", "score": "0.6831248", "text": "private boolean getDebug() throws GuacamoleException {\n return environment.getProperty(SAML_DEBUG, false);\n }", "title": "" }, { "docid": "294409df4fe9d68d885e86b738f98eb0", "score": "0.68264925", "text": "public static boolean isDebug(Context context) {\n\t // Although this is a bit roundabout, it has the nice side effect\n\t // of caching the result.\n\t return !Setup.PROD_URL.equals(getBaseUrl(context));\n\t }", "title": "" }, { "docid": "e4cdb479737d7381c62d2e2503b83392", "score": "0.68235934", "text": "public void setDebug(boolean d) {\n debug = d;\n }", "title": "" }, { "docid": "c67496517abd813732c568f85f3d96ad", "score": "0.682052", "text": "static boolean isDebugging (String property)\n {\n return property.equalsIgnoreCase(Debug) ||\n property.equalsIgnoreCase(DebugWhere);\n }", "title": "" }, { "docid": "342509d903f216f2a4c69836c1024268", "score": "0.68198353", "text": "@Override\r\n public boolean isDebugEnabled () {\r\n return log.isDebugEnabled();\r\n }", "title": "" }, { "docid": "e20af275ca406a2d27981441a24f1b92", "score": "0.68062365", "text": "public static boolean isPackageDebuggable(Context context) {\n if (sPackageDebuggable != null) {\n return sPackageDebuggable;\n }\n synchronized (DebugConfig.class) {\n if (sPackageDebuggable != null) {\n return sPackageDebuggable;\n }\n ApplicationInfo appInfo = context != null ? context.getApplicationInfo() : null;\n if (appInfo == null) {\n return false;\n }\n return sPackageDebuggable = ((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0);\n }\n }", "title": "" }, { "docid": "b3dca9810a7a7c9c9e51459554c3557e", "score": "0.67715055", "text": "public static void setRuntimeDebuggable(boolean debuggable) {\n sRuntimeDebuggable = debuggable;\n }", "title": "" }, { "docid": "9ec4344336e207b6d87b7aab5243c024", "score": "0.67528397", "text": "public static void setDebug(boolean debug){\n\tCondor.debug = debug;\n }", "title": "" }, { "docid": "b53b13c09f459a02105ab6c7446341c3", "score": "0.67514807", "text": "public boolean isSetDebug() {\n return __isset_bit_vector.get(__DEBUG_ISSET_ID);\n }", "title": "" }, { "docid": "ccdc9d1e4909174046a3679f30abc479", "score": "0.67419493", "text": "public void setDebugMode(boolean debug) {debugMode_ = debug; }", "title": "" }, { "docid": "470044b1d1f7ac2ede01e7372104ecfb", "score": "0.6729446", "text": "void setDebugMode(boolean enableDebug);", "title": "" }, { "docid": "3c2dd23386e30c5e3ebcec851ddcf3ba", "score": "0.6718238", "text": "public void setEnableDebugging(boolean value)\n\t{\n\t\tenableDebugging = value;\n\t}", "title": "" }, { "docid": "3da3443a4dce2e19c2781732e7affa6b", "score": "0.6706769", "text": "void enableInDebugMode();", "title": "" }, { "docid": "4125528f715497ae9dd9aa1a8a5afaad", "score": "0.669782", "text": "public void setDebug(boolean f)\n {_debug=f;}", "title": "" }, { "docid": "b574dda883e92570d905b6f40eb7dd29", "score": "0.6694017", "text": "public static void setDebugMode(boolean set) {\r\n debug = set;\r\n }", "title": "" }, { "docid": "1dc3af26fd7053e1377940fbc9c6d7e7", "score": "0.6668799", "text": "public static boolean playerDebugEnabled(OfflinePlayer player) {\n return player.getPlayer().hasPermission(\"demigods.admin\") && TempDataManager.hasKeyTemp(player.getName(), \"temp_admin_debug\") && Boolean.parseBoolean(TempDataManager.getValueTemp(player.getName(), \"temp_admin_debug\").toString());\n }", "title": "" }, { "docid": "41c644f76c12d6dced8ee040a8640def", "score": "0.6662014", "text": "public void setDebug(boolean b){\n\t\tdebug = b;\n\t}", "title": "" }, { "docid": "3b04ffc7c4954a2311801eb43b403f6c", "score": "0.6658141", "text": "void setDebug(boolean debug);", "title": "" }, { "docid": "3509ec66645952274f33224cfd209eee", "score": "0.66537625", "text": "public void setDebug(boolean b){\n\t\tdebug=b;\n\t}", "title": "" }, { "docid": "3509ec66645952274f33224cfd209eee", "score": "0.66537625", "text": "public void setDebug(boolean b){\n\t\tdebug=b;\n\t}", "title": "" }, { "docid": "3509ec66645952274f33224cfd209eee", "score": "0.66537625", "text": "public void setDebug(boolean b){\n\t\tdebug=b;\n\t}", "title": "" }, { "docid": "3509ec66645952274f33224cfd209eee", "score": "0.66537625", "text": "public void setDebug(boolean b){\n\t\tdebug=b;\n\t}", "title": "" }, { "docid": "1d724e874c248cdb724ee83438bd0263", "score": "0.66426736", "text": "public void debug() { }", "title": "" }, { "docid": "edad6dbd20671c47994db6c6ac31557b", "score": "0.6603616", "text": "public static void setIsDebug(boolean newIsDebug) {\n isDebug=newIsDebug;\n }", "title": "" }, { "docid": "d2965c4d5363d93b9c0c1936605ba06f", "score": "0.65891474", "text": "public boolean isVerbose() {\r\n\t\t if (debugPoster==null) return false;\r\n\t\t return true;\r\n\t}", "title": "" }, { "docid": "f932b48f673f45c641544824467aa207", "score": "0.6588672", "text": "public static void setDebug(boolean bool) {\n\t\tdebug = bool;\n\t}", "title": "" }, { "docid": "fa707774ebd0d01754c30a45bfd9f130", "score": "0.657865", "text": "public void setDebugState(boolean value) {\n this.debugState = value;\n }", "title": "" }, { "docid": "5530e9a9ab7dbe93e4099c355904f65d", "score": "0.65533984", "text": "public static void setDebug(boolean isDebugOutput) {\n\t\tdebug = isDebugOutput;\n\t}", "title": "" }, { "docid": "5530e9a9ab7dbe93e4099c355904f65d", "score": "0.65533984", "text": "public static void setDebug(boolean isDebugOutput) {\n\t\tdebug = isDebugOutput;\n\t}", "title": "" }, { "docid": "f9f5f6da8ace6c766eef6d129d90b300", "score": "0.651293", "text": "public void setDebugMode(boolean val) {\r\n\t\tdebug = val;\r\n\t}", "title": "" }, { "docid": "a6b4c6fa1904ebe3f458be50688e1215", "score": "0.65080446", "text": "public void setDebug(boolean debug) {\r\n this.debug = debug;\r\n }", "title": "" }, { "docid": "eb52e70823acb0dd8d692535af4adc32", "score": "0.64975387", "text": "public void debug()\n {\n }", "title": "" }, { "docid": "20ff2c40bd6ae4c39962482fa6a14e06", "score": "0.6493984", "text": "public boolean isDebugQueryPlan() {\r\n\t\treturn Boolean.parseBoolean( props.getProperty(\"debugQueryPlan\", \"false\"));\r\n\t}", "title": "" }, { "docid": "ff5f6dde15e39a4d62807c419037a3c7", "score": "0.6462911", "text": "public boolean debugMessages() {\n\t\treturn debug;\n\t}", "title": "" }, { "docid": "d175dda2d060039d88db0886fb476100", "score": "0.6432328", "text": "public static void setDebuggableFlag(boolean debuggable) {\n LogUtil.debuggable = debuggable;\n }", "title": "" }, { "docid": "e173c1545929694e41656ae0285d3489", "score": "0.64216286", "text": "public static void setDebug(boolean db) {\n\t\tdebug = db;\n\t}", "title": "" }, { "docid": "e173c1545929694e41656ae0285d3489", "score": "0.64216286", "text": "public static void setDebug(boolean db) {\n\t\tdebug = db;\n\t}", "title": "" }, { "docid": "e173c1545929694e41656ae0285d3489", "score": "0.64216286", "text": "public static void setDebug(boolean db) {\n\t\tdebug = db;\n\t}", "title": "" }, { "docid": "e173c1545929694e41656ae0285d3489", "score": "0.64216286", "text": "public static void setDebug(boolean db) {\n\t\tdebug = db;\n\t}", "title": "" }, { "docid": "14ce89081df2148bddb99f0d534481bd", "score": "0.64196944", "text": "public void setDebug(boolean debug) {\n this.debug = debug;\n }", "title": "" }, { "docid": "dc2eff8bc814ebecb895bed2e313742e", "score": "0.6405563", "text": "public void setDebug(boolean debug) {\r\n\t\tthis.debug = debug;\r\n\t}", "title": "" }, { "docid": "1c4545614c7c310981b1aabc24719eb2", "score": "0.6405413", "text": "public static boolean checkDebugOn(int argNum, String[] args) {\r\n if (argNum == 2 && args[1].equals(\"DEBUG\")) {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "617948744e90e5c620ed204f736eca9d", "score": "0.6393266", "text": "public void setDebugging(boolean debug)\n\t{\n\t\tthis.debugEnabled = debug;\n\t}", "title": "" }, { "docid": "8965e37c50e0cd17c4feda6ed4e0861d", "score": "0.63807535", "text": "@Override\n public void setDebugEnabled(boolean debugEnabled) {\n }", "title": "" }, { "docid": "069ba7b80c40c0002dcfb8f4cdce0335", "score": "0.6339207", "text": "static boolean isDebugWhere (String property)\n {\n return property.equalsIgnoreCase(DebugWhere);\n }", "title": "" }, { "docid": "21e35df51a105f9c597aab586965d234", "score": "0.6333199", "text": "public static boolean isProVersion() {\n return BuildConfig.DEBUG;\n }", "title": "" }, { "docid": "87dd482282c986408e376595f10fad9b", "score": "0.63222986", "text": "public void startDebugging() {\n\t\tdebugging = true;\n\t}", "title": "" }, { "docid": "4bfc44cbf2e769ba539ab4735bf89110", "score": "0.6320101", "text": "public boolean hasDebugOptions() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "title": "" }, { "docid": "85ac7c43d921ddcd20b1ed8aa82682c7", "score": "0.6282438", "text": "public Builder setDebug(boolean value) {\n \n debug_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e4b1b15dd93b352416abc22e8c420b4d", "score": "0.6266412", "text": "boolean hasDevport();", "title": "" }, { "docid": "90a34b617b416f05eb564c31dd597396", "score": "0.62608457", "text": "public void setEnabled()\n\t{\n\t\tdebugEnabled = !debugEnabled;\n\t}", "title": "" }, { "docid": "59a2604d556836fe795478c75f2cd39a", "score": "0.62552005", "text": "public void setDebug(boolean debug) {\n\t\tthis.debug = debug;\n\t}", "title": "" }, { "docid": "59a2604d556836fe795478c75f2cd39a", "score": "0.62552005", "text": "public void setDebug(boolean debug) {\n\t\tthis.debug = debug;\n\t}", "title": "" }, { "docid": "b34e28f6b068d96d9c3eac3a65bfe50a", "score": "0.6244044", "text": "public boolean isDebugWorkerScheduler() {\r\n\t\treturn Boolean.parseBoolean( props.getProperty(\"debugWorkerScheduler\", \"false\"));\r\n\t}", "title": "" }, { "docid": "2921e34291f85bb1613ab10fd333dc58", "score": "0.62333673", "text": "private boolean getDeBugPowerControllerLog() {\n String mValue = SystemProperties.get(\"persist.sys.power.fw.debug\");\n StringBuilder mStringBuilder = new StringBuilder(mValue);\n String mStringBuilderNew = mStringBuilder.toString();\n if (mStringBuilderNew.contains(\"controller\")) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "05a9a8738d1e367ed4ae364a917fd0fc", "score": "0.62287146", "text": "public void setDebug(boolean debug)\t{\n\t\tthis.debug = debug;\n\t}", "title": "" }, { "docid": "424d34a698e9ecba00aa57fbd226d6b9", "score": "0.6226022", "text": "public void setDebugEnabled(boolean debugEnabled)\r\n\t{\r\n\t\tthis.debugEnabled = debugEnabled;\r\n\t}", "title": "" }, { "docid": "f341c72b244e58e6f12cd67287ae01f2", "score": "0.6189644", "text": "public void setDebuggingEnabled(boolean enabled)\n\t{\n\t\tdebuggingEnabled = enabled;\n\t}", "title": "" }, { "docid": "23133a2545db212bfddaf6ced2d67fc5", "score": "0.61774373", "text": "boolean hasDevparams();", "title": "" }, { "docid": "e5cd4f00f93cd03d1a1f2476ef74d24d", "score": "0.6173458", "text": "public final void setDebug(boolean db) {\n\t\tdebug = db;\n\t}", "title": "" }, { "docid": "e5cd4f00f93cd03d1a1f2476ef74d24d", "score": "0.6173458", "text": "public final void setDebug(boolean db) {\n\t\tdebug = db;\n\t}", "title": "" }, { "docid": "db24ac351ad8760233e3f05c8203793e", "score": "0.6171619", "text": "public static void setDebugMode(boolean isDebugMode) {\n Log.sIsDebugMode = isDebugMode;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "267a682fc7ec2e05e7980836c5cd48b1", "score": "0.0", "text": "@Override\n\tpublic void onRightButtonClick(View view) {\n\t\tif(((Button)view).getText().toString().equals(\"回到首页\")){\n\t\t\tstartActivity(new Intent(this, MainActivity.class));\n\t\t}\n\t\tif(mViewPager.getCurrentItem() != 1){\n\t\t\tmViewPager.setCurrentItem(mViewPager.getCurrentItem()+1);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "ef1b6c3f597a66c59960d73eadee6f25", "score": "0.6904447", "text": "private void apparence()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "4862518dedb9e169c3cc620e5ebe04c5", "score": "0.6696056", "text": "@Override\r\n\tpublic void atura() {\n\t\t\r\n\t}", "title": "" }, { "docid": "651ef6275f1a33ed6582a1599cab78d2", "score": "0.66211534", "text": "@Override\n\tpublic void bekle() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "c56ced5e9768caa7a88a0e86dc1d02eb", "score": "0.6557507", "text": "@Override\n\tpublic void pintate() {\n\t\t\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6546559", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "761f5db0b07474bff2090f23a6693efb", "score": "0.6211042", "text": "private void Prodto() {\n\n\t}", "title": "" }, { "docid": "74578344538dd194907dffc0406cacac", "score": "0.6166714", "text": "@Override\n public void suicide() {\n \n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6153736", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "db51ad8e6f15ad35a767d84e1e1eda68", "score": "0.61275035", "text": "@Override\n\t\t\tpublic void cry() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e24a2515146ce17481b567e14f6d3258", "score": "0.6075012", "text": "public void retrievecart() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "fba36b6a112c0dbc3dd5aa61fe730a40", "score": "0.60609394", "text": "@Override\n\tpublic void subir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "280c1f1bfe3582788f566eafe40085dd", "score": "0.60448366", "text": "@Override\n \tpublic void init() {\n \t\t\n \t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "2ba22ff158b6e941041f9460eddd0944", "score": "0.5991409", "text": "@Override\n public void operation() {\n \n }", "title": "" }, { "docid": "afc2a2ef708681a23da24526386fa543", "score": "0.5979341", "text": "@Override\r\n\tpublic void demo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "951638c11e887c3f81bcc83306f4e413", "score": "0.5957303", "text": "@Override\r\n\tpublic void trunon() {\n\r\n\t}", "title": "" }, { "docid": "03a6fa2a6dc40f30e9f67797ea87ac0e", "score": "0.5950196", "text": "@Override\n\tvoid generate() {\n\t\t\n\t}", "title": "" }, { "docid": "86b315eabc97abef1ea325b454b16656", "score": "0.5934478", "text": "@Override\n\tpublic void veneno() {\n\t\t\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.59033096", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58815277", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "a6c80a6456cfc74acaa16a2f9c3063c5", "score": "0.5881057", "text": "@Override\n\t\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "bf75e876384ccbd3516440064d914edb", "score": "0.585407", "text": "@Override\r\n\t\t\tpublic void process() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.5850562", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.58336115", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "d07c1f5c9d405e36c1ebf9e7e586652e", "score": "0.5830177", "text": "private Solution() {\n /** Not using this function**/\n }", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5821835", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58195674", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "4112f041d618773e927eaf69a897467b", "score": "0.5817743", "text": "@Override\r\n\tpublic void tempup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "8d9539007d174aa71cae3fdbfe4952c6", "score": "0.5801801", "text": "@Override \n\tpublic void init() {\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "5243b8d363dba36edfd9e64eb96cc9d5", "score": "0.57880706", "text": "@Override\n public int getStatus() {\n return 0;\n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.5776792", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5773822", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.57677484", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "81ea0647fff57e17ec5107049b4dbf8b", "score": "0.57594514", "text": "@Override\n public int size() {\n return 1;\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5755988", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "33572cd017818797318a53dbacbc00b9", "score": "0.57530975", "text": "@Override\r\n\t\t\tpublic void initialize() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.57492036", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57409", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5736822", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4f5334e4c63e1b16e38cf957e8576a25", "score": "0.5735921", "text": "@Override\n\tpublic void getHaned() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.57304126", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "ba3ff1d644c6b502f46e78f3112e984c", "score": "0.57151", "text": "@Override\r\n\tpublic void toss() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57141805", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "20aa3abef3af4ea8bcf5e834227be04c", "score": "0.57137775", "text": "@Override\n\tpublic void Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "6894ea3aa25d3dee3c3dd8331b9a9cdd", "score": "0.57120746", "text": "@Override\n\t public int correr() {\n\t return 7;\n\t }", "title": "" }, { "docid": "d7405dbb7f385c28de1f97859172342b", "score": "0.5705621", "text": "@Override\n\tpublic void affiche() {\n\t}", "title": "" }, { "docid": "f9fa4d6203b441d4a00a824c3219ddb2", "score": "0.5704342", "text": "@Override\n\tprotected void doOperate() {\n\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "af5603f291fb4fc9dd83e46e0602225b", "score": "0.56868714", "text": "@Override\r\n\tpublic void demo3() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.56740177", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "e8efac2ee01f452014413fb75d28b3a6", "score": "0.5659524", "text": "@Override\r\n\tpublic void initState() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1857996533d34551ac38dd34ec5213a3", "score": "0.56573755", "text": "public void koniecReplikacie() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
f207d91257f2ef231ada976b19d5c6de
Method to set the color of the shape object.
[ { "docid": "120ce55268d02391b22edaded6d80ba5", "score": "0.70506597", "text": "void setColor(Color c);", "title": "" } ]
[ { "docid": "f5f5baf531bd17ec52e41958e3dff5fd", "score": "0.773811", "text": "public void setColor(Color shapeColor) {\n\t\tsetColor(shapeColor.r, shapeColor.g, shapeColor.b, shapeColor.a);\n\t}", "title": "" }, { "docid": "39de6944e69d6b0e65664c26ad9788de", "score": "0.71885544", "text": "public abstract void setColor();", "title": "" }, { "docid": "c1425aa6a50d49782f623c7475cf9874", "score": "0.7184591", "text": "public void setColor(Color color);", "title": "" }, { "docid": "c1425aa6a50d49782f623c7475cf9874", "score": "0.7184591", "text": "public void setColor(Color color);", "title": "" }, { "docid": "b5b38271651c108005c3ebfb75a8d776", "score": "0.71834236", "text": "public void setColor(Color c);", "title": "" }, { "docid": "dc2cc3d74eb2281b8436a59fa2613920", "score": "0.7144303", "text": "public void setColor()\n {\n if (wall != null) // only if it's painted already...\n {\n wall.changeColor(\"red\");\n window.changeColor(\"black\");\n roof.changeColor(\"green\");\n sun.changeColor(\"yellow\");\n }\n }", "title": "" }, { "docid": "3d027e97056e9e6aa953388b73e5e614", "score": "0.7085931", "text": "public void setColor()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"green\");\n window.changeColor(\"black\");\n roof.changeColor(\"yellow\");\n sun.changeColor(\"red\");\n }\n }", "title": "" }, { "docid": "f9bb43eca8c3b6ea1903dd54785e3151", "score": "0.7059075", "text": "void setColor(Color color);", "title": "" }, { "docid": "d109dec79fc67ca4aa8046446bd54c2b", "score": "0.6992265", "text": "public void setColor(int color)\n {\n this.circle.setFill(fillColor[color]);\n }", "title": "" }, { "docid": "f2cd72fc6b269b0bbc1aebce1a2984e4", "score": "0.69732356", "text": "void set_MainColor(Color c)\r\n\t\t{\r\n\t\t\tshapeColor = c;\r\n\t\t}", "title": "" }, { "docid": "7020f474bb78c39b6094840663bde593", "score": "0.6953765", "text": "public void setColor(int color);", "title": "" }, { "docid": "760b23f80aae84422ef66c97ee718881", "score": "0.6929187", "text": "public boolean setColor(Object obj);", "title": "" }, { "docid": "71ba281fbf25715ad4436d61e21872b8", "score": "0.68894535", "text": "public void setColor(int r, int g, int b);", "title": "" }, { "docid": "3fd6c7f2ea590cb250d1ea8bce782eb2", "score": "0.6885142", "text": "@FXML\n\tpublic void setColorRed() {\n\t\thomeGC.setStroke(Color.color(.77, .13, .2));\n\t\tawayGC.setStroke(Color.color(.77, .13, .2));\n\t}", "title": "" }, { "docid": "1cce707ee928ea7dfff180483682d98a", "score": "0.6806061", "text": "public void setColor(float r, float g, float b);", "title": "" }, { "docid": "40961270eb23fbc8379542bf318bdc4b", "score": "0.6788947", "text": "public void setColor(Color c)\r\n {\n }", "title": "" }, { "docid": "fc0f765810bebce91574a4fdecfc318e", "score": "0.677061", "text": "public void setColor(int r, int g, int b, int a);", "title": "" }, { "docid": "6051734a9a2e65435924806973e45357", "score": "0.6736788", "text": "public void setColor() {\n if (over) {\n current_color = color(127, 134, 143);\n if (!drawHand) {\n cursor(HAND);\n drawHand = true;\n }\n } else {\n\n if (trip) {\n current_color = color(0, 255, 0); //trip switch bar color\n } else {\n current_color = color(255, 0, 0); //untrip switch bar color\n }\n\n if (drawHand) {\n cursor(ARROW);\n drawHand = false;\n }\n }\n }", "title": "" }, { "docid": "17fcc11f4a9a88b85d6d0ec734761368", "score": "0.6729784", "text": "public void setColor(Color color){\r\n myColor = color;\r\n }", "title": "" }, { "docid": "45f5d83a8d55ee0bc0fd6dba8733c2c6", "score": "0.6678993", "text": "public void setColor(float r, float g, float b, float a);", "title": "" }, { "docid": "b2926e63dc3a34f6f1ec647405ed5f63", "score": "0.6675012", "text": "public void setColor(BallColor color) {\n this.color = color;\n }", "title": "" }, { "docid": "8a658d7572177f0558917957150a2184", "score": "0.66580874", "text": "public void setColor() {\n\n Random randomGenerator = new Random(ID);\n int red = randomGenerator.nextInt(200);\n int green = randomGenerator.nextInt(200);\n int blue = randomGenerator.nextInt(200);\n\n Color randomColour = new Color(red,green,blue);\n randomColour.darker();\n\n String hex = \"#\"+Integer.toHexString(randomColour.getRGB()).substring(2);\n this.color=hex;\n }", "title": "" }, { "docid": "d0875c09564689bb664be8a2fbff0e9a", "score": "0.6655698", "text": "public void setColor(Color color)\r\n {\r\n myColor = color;\r\n }", "title": "" }, { "docid": "00a9da424dddc69fde592525f2cfa500", "score": "0.6637084", "text": "public void drawShape()\n\t{\n\t\tKotska.c.setColor(color);\n\t\tdraw();\n\t}", "title": "" }, { "docid": "09ff1d500fb36501232b1118efdb582a", "score": "0.66329694", "text": "@Override\n\tpublic void setColor(int color) {}", "title": "" }, { "docid": "ff13c236bfe06528a700f85061e72c36", "score": "0.6579982", "text": "@FXML\n\tpublic void setColorGreen() {\n\t\thomeGC.setStroke(Color.GREEN);\n\t\tawayGC.setStroke(Color.GREEN);\n\t}", "title": "" }, { "docid": "2a130b701479b71c48cf0067d379f6cc", "score": "0.65762293", "text": "public void setColor(float r, float g, float b, float a) {\n\t\tshapeColor.set(r, g, b, a);\n\t\tcolor = shapeColor.toFloatBits();\n\t}", "title": "" }, { "docid": "0667f4d3e2454fede9d8576ede21db44", "score": "0.6568545", "text": "void setColour(Colour colour);", "title": "" }, { "docid": "463a3fce23d47f08f2f91ac3856859ca", "score": "0.6568273", "text": "public void setFillColor(String in_color) { this.__bg_color = in_color; }", "title": "" }, { "docid": "571c79d7255dfc503c6bb73ca49ca748", "score": "0.65478635", "text": "void setColor(Color color) {\n color = color;\n }", "title": "" }, { "docid": "5ef58ddccd811cef6bd33355779e32f9", "score": "0.65275204", "text": "public void setColor(int color) {\n paint.setColor(color);\n }", "title": "" }, { "docid": "8b1052c6957cb4f6e4dd8a4551e15f08", "score": "0.6525623", "text": "public void setColor() {\n this.foodAmt = foodAmt;\n int colorAmt = (int)foodAmt;\n double factor = 255/MAX_FOOD;\n if ((colorAmt*factor) < 255 ){\n this.color = new Color((int)(colorAmt*factor),(int)(colorAmt*factor),(int)(colorAmt*factor));\n }else if (colorAmt <= MIN_FOOD){\n this.color = new Color((int)MIN_FOOD,(int)MIN_FOOD,(int)MIN_FOOD);\n }else{\n this.color = new Color(255,255,255);\n }\n }", "title": "" }, { "docid": "b1a834541e564db671f38a80b4beda92", "score": "0.6512077", "text": "public void setColor(Color c) {\r\n this.color = c;\r\n }", "title": "" }, { "docid": "58871e9dcce675adb3093a92b5ddd5d9", "score": "0.65038437", "text": "public void setColor(String color);", "title": "" }, { "docid": "4011019904dccf0b6e9723b0bfa4b790", "score": "0.6487691", "text": "public void setColor(Color fill)\n {\n this.circle.setFill(fill);\n }", "title": "" }, { "docid": "5fa4353ff6d3cb92300f0d16ceccb6b5", "score": "0.647854", "text": "public void setShape(Shape shape) {\n/* 194 */ if (shape == null) {\n/* 195 */ throw new IllegalArgumentException();\n/* */ }\n/* 197 */ this.shape = shape;\n/* 198 */ this.strokedShape = null;\n/* */ }", "title": "" }, { "docid": "f9dbe0868d494275aad8ea6c32ff50b6", "score": "0.6477436", "text": "public void setColor(Color color) {\r\n this.color = color;\r\n }", "title": "" }, { "docid": "c70dd443d5bdd3fa08f6e8dc33ec680e", "score": "0.6474725", "text": "@Override\n\tpublic void setColor(int r, int g, int b) {\n\t\t\n\t}", "title": "" }, { "docid": "ce92564268607cf1effe4765250300d3", "score": "0.6465633", "text": "public void setColor(int color) {\n\t}", "title": "" }, { "docid": "e2bc8cf13edd55cbad7a5670b2c9943a", "score": "0.64407676", "text": "public void setFillColor(int color) {\n this.color = new Color(color);\n }", "title": "" }, { "docid": "0f4249ee0b12e08014ed84da30dc6edb", "score": "0.6431117", "text": "public void setColor(Color color)\r\n\t {\r\n\t\t this.color = color;\r\n\t }", "title": "" }, { "docid": "ac9c868306c630fe217f08388078e717", "score": "0.6387674", "text": "public void setColor(int c){\n this.color = c;\n }", "title": "" }, { "docid": "4fa87057e492cd529687bd37b7567b0d", "score": "0.63859344", "text": "public void setColor(Color c){\r\n\t\t\r\n\t\tthis.color = c;\r\n\t}", "title": "" }, { "docid": "163390c12558a48e710e64e758d9c9a0", "score": "0.6384049", "text": "void setColor(Color color) {\n this.color = color;\n }", "title": "" }, { "docid": "163390c12558a48e710e64e758d9c9a0", "score": "0.6384049", "text": "void setColor(Color color) {\n this.color = color;\n }", "title": "" }, { "docid": "5c06a767496432b2735e5d4d0bdcc308", "score": "0.6384002", "text": "public void setColor(Color c){\n\t\tcolor = c;\n\t}", "title": "" }, { "docid": "d4a7ce42869c121b9e99c1dec03cd1f4", "score": "0.6383559", "text": "public void setColor(String in_color) { this.__color = in_color; }", "title": "" }, { "docid": "10b2b01fcb5981ee17bea50fa338b42c", "score": "0.6377608", "text": "public abstract void setPenColor(double d);", "title": "" }, { "docid": "13080990ada3c8e17929095dd817b32a", "score": "0.6367924", "text": "public void SetPolyColor(float red, float green, float blue)\n\t{\n\t\tredVal = red;\n\t\tgreenVal = green;\n\t\tblueVal = blue;\n\t}", "title": "" }, { "docid": "905b109d80eed94b556e3f92948ff0e3", "score": "0.63509107", "text": "public abstract Color set(float red, float green, float blue, float alpha);", "title": "" }, { "docid": "cf26f9472fc597d3f7ae327328c3f2bb", "score": "0.6350762", "text": "public void setColor(World world, int x, int y, int z, Object obj);", "title": "" }, { "docid": "14f11bfdbee18c5070ea4fe39aeccfa4", "score": "0.63440764", "text": "public void setPen(int color)\n {\n pen = color;\n }", "title": "" }, { "docid": "d7f8e9f244faceffc4fb71c9e612cff4", "score": "0.6343731", "text": "public void setPaintColor(int color) {\r\n currentColor = color;\r\n }", "title": "" }, { "docid": "b6537ccb4af4ac39b8c1d922a4575525", "score": "0.6323626", "text": "void set(IRGBColor color);", "title": "" }, { "docid": "546ae7c4e56eb751a5080665223c639a", "score": "0.6321674", "text": "public void setColor() {\r\n java.util.Random rand = new java.util.Random();\r\n float r = rand.nextFloat();\r\n float g = rand.nextFloat();\r\n float b = rand.nextFloat();\r\n java.awt.Color randomColor = new java.awt.Color(r, g, b);\r\n this.frameColor = randomColor;\r\n }", "title": "" }, { "docid": "6bc77861425187a36d39d4c1127c6793", "score": "0.63174105", "text": "CElement setShape(Shape sh);", "title": "" }, { "docid": "c18b06021f9373c7b0e2ece1b2f38e6b", "score": "0.63116026", "text": "public void setColor(Color arg0) {\n\t\tdebug();\n\t}", "title": "" }, { "docid": "b5bcc2dc4617a6833759c11957c21cb8", "score": "0.63049066", "text": "public void setColor(Color c)\n {\n m_color = c;\n }", "title": "" }, { "docid": "71fa71c213b9fae19c4cbb22e11a156e", "score": "0.62992275", "text": "@Override\n\tpublic void setColor(\n\t\t\tfloat r ,\n\t\t\tfloat g ,\n\t\t\tfloat b ,\n\t\t\tfloat a )\n\t{\n\t\tcolor.r = r;\n\t\tcolor.g = g;\n\t\tcolor.b = b;\n\t\tcolor.a = a;\n\t\t// if (vertices != null) {\n\t\t// vertices.setColor(color);\n\t\t// } else {\n\t\t// if (mesh != null) {\n\t\t// meshVertices = new float[mesh.getNumVertices()\n\t\t// * mesh.getVertexSize() / 4];\n\t\t// mesh.getVertices(meshVertices);\n\t\t// int step = mesh.getVertexSize() / 4;\n\t\t// int index = 3;\n\t\t// for (int i = 0; i < mesh.getNumVertices(); i++) {\n\t\t// meshVertices[index] = color.toFloatBits();\n\t\t// index += step;\n\t\t// }\n\t\t// mesh.setVertices(meshVertices);\n\t\t// }\n\t\t//\n\t\t// }\n\t}", "title": "" }, { "docid": "7bdb8ae96b922b7a3ce1b5a2f2afa0f9", "score": "0.62924695", "text": "private void setEllipseColor() {\r\n piece.setFill((player == 1) ? Sprites.PLAYER_1 : Sprites.PLAYER_2);\r\n }", "title": "" }, { "docid": "28bf8e724c53f2f27d2c238cb8daee0e", "score": "0.6270957", "text": "public void setColor()\n\t{\n\t\tcolor = new Color( (int) (256 * Math.random() ), (int) (256 * Math.random() ),(int) (256 * Math.random() ));\n\t}", "title": "" }, { "docid": "3e9ea3cc6c5bcef6c07932f811c528cf", "score": "0.62694114", "text": "@JSProperty(\"color\")\n void setColor(GradientColorObject value);", "title": "" }, { "docid": "1555683b62b61459f7949dafba9d3dd2", "score": "0.6259811", "text": "public static void shape(final Shape the_shape) {\n my_shape = the_shape;\n }", "title": "" }, { "docid": "f9f7a7b6007dca8b7f0198a0089826b8", "score": "0.6233932", "text": "public void setFillColor(Color color) {\n\t\tfillColor = color;\n\t\trepaint();\n\t}", "title": "" }, { "docid": "421ebac3e611494c3bf7df52107b5910", "score": "0.6227002", "text": "private void setColorToGreen()\n {\n setRed(0);\n setBlue(0);\n setGreen(20);\n }", "title": "" }, { "docid": "c198bf6d6757be674074c96207cb8e9e", "score": "0.62167156", "text": "public void setColor(Color color) {\r\n\t\tthis.color.setColor(color);\r\n\t\tthis.signature.setColor(color);\r\n\t\tlisteners.firePropertyChange(PROPERTY_COLOR, null, color);\r\n\t}", "title": "" }, { "docid": "094e0516c77f062702c3757d7bdfaa8d", "score": "0.6215831", "text": "public void setColor(int red,int green,int blue)\n {\n //Give new values for the color of the panel\n color = new Color(red,green,blue);\n repaint();\n }", "title": "" }, { "docid": "665e30b994a26bc4f5e224eaa7fd7c06", "score": "0.6188739", "text": "public void setColor (String valor ){\n color= valor;\r\n \r\n }", "title": "" }, { "docid": "3cf30b319bfc4fe11e1f21c63de61290", "score": "0.61877626", "text": "public void setColor(Color newColor)\n {\n color = newColor;\n }", "title": "" }, { "docid": "3cf30b319bfc4fe11e1f21c63de61290", "score": "0.61877626", "text": "public void setColor(Color newColor)\n {\n color = newColor;\n }", "title": "" }, { "docid": "d57d085ff802ef9ae32c73792c50d3da", "score": "0.61822414", "text": "@Override\n\tpublic void setColor(Color c) {\n\t\tthis.color=c;\n\t}", "title": "" }, { "docid": "92996303741ae51c631b47b532ca3ea9", "score": "0.618022", "text": "public void setShape(Shape s) {\n/* 64 */ this.shape = s;\n/* */ }", "title": "" }, { "docid": "2064aa3af7c2eb7f758c7aadb23616b0", "score": "0.6179728", "text": "public void setColor(ModelColor color) {\n this.color = color;\n }", "title": "" }, { "docid": "058364adc4c575b641e868e1303e092f", "score": "0.61778426", "text": "public void setColor(Color color) {\n\t\tif (regionStarted) {\n\t\t\tthrow new ErrorException(\"It is illegal to change the color while you are \" +\n\t\t\t \"defining a filled region.\");\n\t\t}\n\t\tpath.add(new SetColorElement(color));\n\t\tsuper.setColor(color);\n\t}", "title": "" }, { "docid": "0f82ded42c8f06e914cf05ebe3013752", "score": "0.61635435", "text": "public void setColor (Color c) {\n if (c != null)\n clr = c;\n emitThis\n\t (strunc (clr.getRed()/255.0)\n +\" \"+strunc (clr.getGreen()/255.0)\n +\" \"+strunc (clr.getBlue()/255.0)\n\t+\" setrgbcolor\");\n }", "title": "" }, { "docid": "85a1bc5fa2f510c137ce4d29aac9514a", "score": "0.6161599", "text": "public void setRobotColor(String color);", "title": "" }, { "docid": "1ddb96391a8f815fcdd462b80335163e", "score": "0.61538345", "text": "public void setColor(Color color) {\n this.red = color.getRed();\n this.green = color.getGreen();\n this.blue = color.getBlue();\n }", "title": "" }, { "docid": "2e0f081f261dc26e755a1d2ddbc6df06", "score": "0.6153202", "text": "public void setColor(Color color)\n\t{\n\t\tthis.color = color;\n\t}", "title": "" }, { "docid": "330aff9ee7987a9f16287c0d82675b95", "score": "0.6149837", "text": "@Override\n public void setColorScheme() {\n }", "title": "" }, { "docid": "41ceda918e036bc1eef061802db4d926", "score": "0.61431015", "text": "private void setColor() {\n\t\tcommandColor = (Color) colorBox.getSelectedItem();\n\t\tSystem.out.println(\"Color = \" + commandColor.toString());\n\t\t\n\t}", "title": "" }, { "docid": "c820919bd9f476ee1917245dd5f98505", "score": "0.612959", "text": "public void setColor(int color) {\n this.color = color;\n }", "title": "" }, { "docid": "0865206e07d4e3b81e885c1ca561bde0", "score": "0.61070526", "text": "public void setFillColor(int color) {\n \t\tmPaintFill.setColor(color);\n \t}", "title": "" }, { "docid": "2c36716aa025f4119b03169a202b4375", "score": "0.6102894", "text": "public void setFillColor(int i) {\n this.f2973c.mo3522b(i);\n }", "title": "" }, { "docid": "db0111c9c89475aea26a3de5538c64e5", "score": "0.60998213", "text": "public void setColor(Color color) {\n this.color = color;\n this.updateColorView();\n }", "title": "" }, { "docid": "1cf706acaaba815d9bcd16369363e8e1", "score": "0.6094359", "text": "@FXML\n\tpublic void RinkCPColorChange() {\n\t\trinkGC.setStroke(RinkCP.getValue());\n\t\trinkGC.setFill(RinkCP.getValue());\n\t}", "title": "" }, { "docid": "54c9b8dd2c66500a538fe5572c8ccd5c", "score": "0.6091865", "text": "abstract public void setRelationColorRegular(Color colorName);", "title": "" }, { "docid": "533390f163ee5eae5c2b49d362496ede", "score": "0.60901374", "text": "public void corRed(){\r\n\t\tsetBodyColor(Color.red);\r\n\t\tsetGunColor(Color.red);\r\n\t\tsetRadarColor(Color.red);\r\n\t\tsetBulletColor(Color.red);\r\n\t\tsetScanColor(Color.red);\r\n\t}", "title": "" }, { "docid": "571687dfd0f86ae1d1a2e4309406e705", "score": "0.60822475", "text": "public void setColor( Color clr ){\n\t\t\n\t\tcs.setColorValue(new RGB(clr.getRed(), clr.getGreen(), clr.getBlue()));\n\t\t\n\t}", "title": "" }, { "docid": "a97550414443a033a34fc5bc3abc1c65", "score": "0.6077231", "text": "double setShape (double shape);", "title": "" }, { "docid": "b1d539bc845d4dd32c0d89d18ebd2201", "score": "0.6073413", "text": "public void setColor(Color color) {\n\t\tthis.color = color;\n\t}", "title": "" }, { "docid": "b1d539bc845d4dd32c0d89d18ebd2201", "score": "0.6073413", "text": "public void setColor(Color color) {\n\t\tthis.color = color;\n\t}", "title": "" }, { "docid": "8c37c4b85917594eef824f3af98ae3b1", "score": "0.6069698", "text": "@Generated\n @Selector(\"setColor:\")\n public native void setColor(@NotNull UIColor value);", "title": "" }, { "docid": "e7c2d39a450bb849c2de0aa65f9fd994", "score": "0.6069664", "text": "@JSProperty(\"color\")\n void setColor(Any value);", "title": "" }, { "docid": "e4e0d5e08e4ae436dcb4327587c27d1b", "score": "0.6056831", "text": "public void setColor(int color){\n\t\tthis.color=color;\n\t\t\n\t}", "title": "" }, { "docid": "e6fbf9499a664e4155aac919152c07c7", "score": "0.6052892", "text": "public void setColor(Color newColor) {\n color = newColor;\n }", "title": "" }, { "docid": "c39786202602f59a2fd8652263f82985", "score": "0.6050091", "text": "protected void setColor(Color color) {\r\n\t\tif (this.color != color) {\t\t\t\r\n\t\t\tthis.color = color;\r\n\t\t\tfireModelChangeListener(EVENT_TYPE_COLOR_CHANGE);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6f851bb3788f060f4c5923dbc77c362e", "score": "0.6037534", "text": "public void setColor(Color color) {\r\n\t\tthis.color = new Color( color.getRed(), color.getGreen(), color.getBlue() );\r\n\t\tfireVOIColorChange(color);\r\n\t}", "title": "" }, { "docid": "e76377773fd52094a8aff31fe63f2d8a", "score": "0.60353553", "text": "@Override\n\tpublic Drawing setShape() {\n\t\treturn this.oval = new Oval();\n\t}", "title": "" } ]
32151c5294e85e73801bb8faf87bca24
/ 0, 1, 1, 2, 3, 5, 8, 13, 21, 33, 54, etc. always start with 0, 1, add last two numbers to get next number
[ { "docid": "eaac94769efda791a90f7432741ba0e8", "score": "0.0", "text": "public static int fibonacci(int num) {\n if (num == 0 || num == 1) {\n return num;\n } else {\n return fibonacci(num-1) + fibonacci(num-2);\n }\n }", "title": "" } ]
[ { "docid": "3141848bc21db0e0184e47019eecdd76", "score": "0.6745114", "text": "private int calculateNext(int s) {\n\t\treturn s + 1;\n\t}", "title": "" }, { "docid": "3e3a98f1ae077a3a20f97d9b9a41f7b0", "score": "0.6673996", "text": "int getNextNumber(int number);", "title": "" }, { "docid": "7b9e6dbec909573700d6d0f5543a5215", "score": "0.619926", "text": "static int next(int t) {\n\tint b = t & (-t);\n\tint s = t/b + 1;\n\tint c = s & (-s);\n\treturn s * b + c/2 - 1;\n }", "title": "" }, { "docid": "68680f282d1f3b35d968031a2b368453", "score": "0.6130295", "text": "public static void main(String[] args) {\nint limit=10;\r\nint pre=1;\r\nint next=0;\r\nfor(int i=1; i<=limit;i++)\r\n{\r\n\tnext=next+pre;\r\n\tpre=next-pre;\r\n\t\t\t\r\nSystem.out.println(pre);\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "7870b14fa6b2af5ddf89f5af68c62a21", "score": "0.6118716", "text": "public static int[] backLoop(int[] input){\nint ref=input.length;\nint a=input[1];\nint b=input[ref-1];\nint ch=(a+b)/2;\nfor(int i=0;i<ref;i++){\nif(i%2==0) input[i]=(input[i]%ch)+(ref+i);\nelse input[i]=(input[i]+ref+i);\n}\nreturn input;\n}", "title": "" }, { "docid": "2cf34ae1f0f9c2a049f4d506ea6f0e0a", "score": "0.60449535", "text": "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n int current = 0;\n ListNode head = new ListNode(0);\n\n ListNode ln1 = l1, ln2 = l2, ln3 = head;\n\n while (ln1 != null || ln2 != null) {\n if (ln1 != null) {\n current += ln1.val;\n ln1 = ln1.next;\n }\n\n if (ln2 != null) {\n current += ln2.val;\n ln2 = ln2.next;\n }\n\n ln3.next = new ListNode(current % 10);\n ln3 = ln3.next;\n current /= 10;\n\n }\n\n if (current == 1) // 最高位\n ln3.next = new ListNode(1);\n\n return head.next;\n }", "title": "" }, { "docid": "34239ed0e860586deb72c8c04958dc1c", "score": "0.6025704", "text": "public static int calculateNextAssumingStart2(int mod, List<Integer> sequence) {\n int k0 = posMod(sequence.get(1) - sequence.get(0), mod);\n int k1 = posMod(sequence.get(4) - sequence.get(2), mod); \n int kBig = posMod(sequence.get(0) - k1, mod);\n int k2 = posMod(sequence.get(2) - kBig, mod);\n \n int s1 = posMod(kBig + k0 + k1, mod);\n Preconditions.checkState(s1==sequence.get(1));\n \n int s4 = posMod(kBig + k1+k2, mod);\n Preconditions.checkState(s4==sequence.get(4));\n \n int s5 = posMod(k1+k2+k0+kBig, mod);\n \n return s5;\n }", "title": "" }, { "docid": "a5fd010e1ac98785ef8b17db196796df", "score": "0.60182", "text": "static long find(long n) {\n\t\tif ( n <= 12 ) return n;\n\t\telse {\n\t\t\tList<Integer> ints = toInts(n);\n\t\t\t\n\t\t\tint num = ints.size();\n\t\t\tint divider = num / 2 + num % 2;\n\t\t\tList<Integer> one = ints.subList(divider, num);\n\t\t\tList<Integer> two = ints.subList(0, divider);\n\t\t\tCollections.reverse(two);\n\t\t\t\n\t\t\tlong ione = toInt(one);\n\t\t\tlong itwo = toInt(two);\n\t\t\t\n\t\t\tif (itwo == 0) return find(n-1)+1;\n\t\t\t\n\t\t\tint change = (ione == 1)?0:1;\n\t\t\t\n\t\t\tlong re = 0;\n\t\t\tre += ione - 1 + itwo - 1 + change;\n\t\t\tlong next = (long)Math.pow(10, num-1) - 1;\n\t\t\treturn re + 2 + find(next);\n\t\t}\n\t}", "title": "" }, { "docid": "101cc7ba830978f309ad36332b8cddf4", "score": "0.5979471", "text": "private int next(int i, int n) {\n return i + 1 == n ? 0 : i + 1;\n }", "title": "" }, { "docid": "8eb059b9721e85bf1e4933ea684b9236", "score": "0.5962231", "text": "public int getNextRekeningNr();", "title": "" }, { "docid": "3420474c44248bba5f4fea54c9a3996e", "score": "0.5912305", "text": "private int calSteps(int n, long n1, long n2) {\n int steps = 0;\n while (n1 <= n) {\n steps += Math.min(n + 1, n2) - n1;\n n1 *= 10;\n n2 *= 10;\n }\n return steps;\n }", "title": "" }, { "docid": "af67bf8a352c43eb2ef355a69396449f", "score": "0.59015137", "text": "long getNextSequence();", "title": "" }, { "docid": "64dbdf998af615e1dd1f40b9d2976f6a", "score": "0.5865547", "text": "private List<Integer> genList(List<Integer> inList){\r\n List<Integer> rl = new ArrayList<Integer>();\r\n if(inList.size()==1){\r\n rl.add(1);\r\n rl.add(1);\r\n return rl;\r\n } else {\r\n rl.add(inList.get(0));\r\n for(int i=0; i < inList.size()-1; i++){\r\n rl.add(inList.get(i) + inList.get(i+1) );\r\n }\r\n rl.add(inList.get(inList.size()-1));\r\n return rl;\r\n }\r\n \r\n }", "title": "" }, { "docid": "2c9eb968c5f8312d739dae687df243ce", "score": "0.58532155", "text": "public void secondDigitInc()\r\n\t{\r\n\t\tsecondDigit+=1;\r\n\t}", "title": "" }, { "docid": "c279b860f49f635528ccac4d219dd7ff", "score": "0.5830218", "text": "public int nextInt() {\n last = (last * 32719 + 3) % 32749;\n return last % max;\n }", "title": "" }, { "docid": "c20f41d9b5dbf07e3fbb672f0aa5e8a9", "score": "0.58094066", "text": "public int nextDigit()\n {\n int singleDigit = sequence % 10;\n int newSequence = (sequence - singleDigit) / 10;\n sequence = newSequence;\n return singleDigit;\n }", "title": "" }, { "docid": "480ee3445f37f39ceb18e3250ba63c05", "score": "0.57659423", "text": "public int getNext(int index) {\r\n\t\treturn index + (index & -index);\r\n\t}", "title": "" }, { "docid": "612f3ee88dbc87d996de57b4a2b966ef", "score": "0.5760846", "text": "private void addNumbersRightOrderHelper(LinkedList first,\n\t\t\tLinkedList second, LinkedList result, int[] extra) {\n\t\t// we assum here that the numbers has the same length\n\t\tif (first.next != null) {\n\t\t\taddNumbersRightOrderHelper(first.next, second.next, result, extra);\n\t\t}\n\t\tint sum = first.intValue + second.intValue;\n\t\tresult.addElementAtTheBegining((sum + extra[0]) % 10);\n\t\textra[0] = (sum + extra[0]) / 10;\n\t}", "title": "" }, { "docid": "5cc349853ae4da568457b32ccbdc3f49", "score": "0.5754893", "text": "public abstract int next(int n);", "title": "" }, { "docid": "52ddf067b11ff5262d3b0c5dd55a0783", "score": "0.5730175", "text": "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n // approach 2... ????\n\n var result = new ListNode(0);\n var resultHead = result;\n\n int extra = 0;\n\n while (!(l1 == null && l2 == null)) { // while both are not null\n var sum = valOrZero(l1) + valOrZero(l2) + extra;\n if (sum < 10) {\n result.next = new ListNode(sum);\n extra = 0;\n } else {\n result.next = new ListNode(sum % 10);\n extra = 1;\n }\n l1 = moveIfNotNull(l1);\n l2 = moveIfNotNull(l2);\n result = result.next;\n }\n\n if (extra == 1) {\n result.next = new ListNode(1);\n }\n\n return resultHead.next;\n }", "title": "" }, { "docid": "3ed0b4cec5688bb0ccbbda591a3c254d", "score": "0.57146746", "text": "public LinkedList addNumbers(LinkedList first, LinkedList second) {\n\t\t// we assum here that the numbers has the same length\n\t\tLinkedList result = new LinkedList();\n\t\tLinkedList travesreFirst = first.next;\n\t\tLinkedList traverseSecond = second.next;\n\t\tint valueForNextRound = 0;\n\t\twhile (travesreFirst != null && traverseSecond != null) {\n\t\t\tint sum = travesreFirst.intValue + traverseSecond.intValue;\n\t\t\tresult.addElementAtTheBegining((sum + valueForNextRound) % 10);\n\t\t\tvalueForNextRound = (sum + valueForNextRound) / 10;\n\t\t\ttravesreFirst = travesreFirst.next;\n\t\t\ttraverseSecond = traverseSecond.next;\n\t\t}\n\t\tif (valueForNextRound != 0) {\n\t\t\tresult.addElementAtTheBegining(valueForNextRound);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "7d93faace603a44d2bbe2b7740e84465", "score": "0.571437", "text": "public abstract int getNext();", "title": "" }, { "docid": "68aecdd9d0382d6dc676e5ecb4fa6112", "score": "0.5687307", "text": "public int getNext(){\r\n\t\ttemporaryVariable = y;\r\n\t\ty = x + y;\r\n\t\tx = temporaryVariable;\r\n\t\treturn y;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "04726838325290e0ec7deda26c4d5bfd", "score": "0.5657593", "text": "public static String incrementarConsecutivoNumeroExpediente2( String ultimoConsecutivo) throws NSJPNegocioException{\n //String consecutivo = ultimoConsecutivo.substring(ultimoConsecutivo.indexOf( SEPARADOR_CONSECUTIVO ) + 1);\n String consecutivo = ultimoConsecutivo.substring(16);\n int consecutivoLong = 0;\n\t\t/*try {\n\t\t\tconsecutivoLong = Long.parseLong(consecutivo);\n\t\t}catch (Exception e){\n\t\t\tthrow new NSJPNegocioException(CodigoError.FORMATO);\n\t\t}*/\n //Character letra = (ultimoConsecutivo.substring(ultimoConsecutivo.indexOf(SEPARADOR_CONSECUTIVO)-2, ultimoConsecutivo.indexOf(SEPARADOR_CONSECUTIVO)-1 )).charAt(0);\n //Character letra2 = (ultimoConsecutivo.substring(ultimoConsecutivo.indexOf(SEPARADOR_CONSECUTIVO)-1, ultimoConsecutivo.indexOf(SEPARADOR_CONSECUTIVO) )).charAt(0);\n logger.debug(consecutivo);\n //consecutivoLong = (consecutivoLong + 1) % CONSECUTIVO_NUMERICO;\n consecutivoLong = Integer.parseInt(consecutivo)+1;\n logger.debug(consecutivoLong+\" numero consecutivo convertido a int\");\n String consecutivoNuevo2 = \"\";\n String longCadena= new String(Integer.toString(consecutivoLong));\n for(int i=0; i<(consecutivo.length()-longCadena.length()); i++){\n consecutivoNuevo2=consecutivoNuevo2+0;\n }\n\n /*for(char x: consecutivo.toCharArray()){\n if(x=='0'){\n consecutivoNuevo2=consecutivoNuevo2+x;\n }\n }*/\n //Se llega al limite maximo\n\t\t/*if( consecutivoLong == 0){\n\t\t\tif (letra2.equals('Z') && letra.equals('Z')){\n\t\t\t\tletra = new Character('A');\n\t\t\t\tletra2 = new Character('A');\n\t\t\t}\n\t\t\telse\n\t\t\t\tif (letra2.equals('Z') && !letra.equals('Z')){\n\t\t\t\t\tletra = new Character((char)( letra +1));\n\t\t\t\t\tletra2 = new Character('A');\n\t\t\t\t}else\n\t\t\t\t\tletra2 = new Character((char)( letra2 +1));\n\n\t\t}*/\n //String consecutivoNuevo = new String(consecutivoLong.toString());\n //String consecutivoNuevo3 = new String( Integer.toString(consecutivoLong));\n consecutivoNuevo2 = consecutivoNuevo2 + longCadena;\n logger.debug(consecutivoNuevo2);\n //String consecutivoNuevo=consecutivoNuevo2;\n //Rellenar con ceros a la izquierda\n //consecutivoNuevo=StringUtils.leftPad(consecutivoNuevo, LONGITUD_CONSECUTIVO_NUMERICO, '0');\n //logger.debug(letra.toString() + letra2.toString() + SEPARADOR_CONSECUTIVO + consecutivoNuevo);\n //return letra.toString() + letra2.toString() + SEPARADOR_CONSECUTIVO + consecutivoNuevo;\n //consecutivoNuevo= Integer.toString(consecutioInt);\n return consecutivoNuevo2;\n }", "title": "" }, { "docid": "8f109e3ba62f4a936dc1290490dea3fc", "score": "0.5651142", "text": "public ListNode addTwoNumbers2(ListNode l1, ListNode l2) {\n ListNode dummyHead = new ListNode(0);\n ListNode cur = dummyHead;\n int carry = 0;\n for (ListNode p = l1, q = l2; p != null || q != null; cur = cur.next) {\n int x = 0;\n if (p != null) {\n x = p.val;\n p = p.next;\n }\n int y = 0;\n if (q != null) {\n y = q.val;\n q = q.next;\n }\n int sum = carry + x + y;\n carry = sum / 10;\n cur.next = new ListNode(sum % 10);\n }\n if (carry > 0) {\n cur.next = new ListNode(carry);\n }\n return dummyHead.next;\n }", "title": "" }, { "docid": "785b847940e0cd354daa052345e7e114", "score": "0.56286645", "text": "public static void main (String[] args) {\n long total = 0;\n for (int i = 1; i <= 100; i++) {\n // (i + 8) choose i\n long increasingNumbers = 1;\n for (int j = 1; j <= 8; j++) {\n increasingNumbers *= (i + 9 - j);\n increasingNumbers /= j;\n }\n \n long decreasingNumbers = increasingNumbers * (101 - i) - 9;\n \n total += increasingNumbers + decreasingNumbers;\n }\n \n System.out.println(total);\n }", "title": "" }, { "docid": "cd0882fdf1fae33d96f39e419c979b27", "score": "0.56268126", "text": "static int rmdup(int num[]){\n int len = num.length;\n int temp[] = new int[len];\n int j =0;\n for(int i =0; i<len-1; i++) {\n/*Check if the present element is equal to next element*/\n if(num[i]!= num[i+1]) {\n temp[j++] = num[i];\n }\n }\n temp[j++] = num[len-1];\n\n // replacing original value\n\n for(int i=0;i<j;i++) {\n num[i] = temp[i];\n }\n\n return j;\n }", "title": "" }, { "docid": "caabaf8b13af8be48d82181ed380c3ae", "score": "0.5603087", "text": "protected long nextValue() {\n long oldcur = cur;\n\tlong temp;\n temp = prev - cur;\n\tif(temp < 0)\n\t\ttemp *= -1;\n cur = temp * prev;\n\tprev = oldcur;\n return cur;\n }", "title": "" }, { "docid": "720f71d5ac29c6ee83550fffb734d3fe", "score": "0.55659646", "text": "public List<Integer> sequentialDigits2(int low, int high) {\n List<Integer> res = new ArrayList<>();\n int next, n, tmp;\n for (int digit = 1; digit < 9; digit++) {\n next = digit;\n n = next;\n while (n <= high && next < 10) {\n if (n >= low) { res.add(n); }\n\n tmp = 10 * n + ++next;\n if (tmp > n) { n = tmp; }\n // for number overflow\n else { break; }\n }\n }\n Collections.sort(res);\n return res;\n }", "title": "" }, { "docid": "87dacfaf13697d2dbae90a9d0cfcb192", "score": "0.5565573", "text": "public int getNextIndex();", "title": "" }, { "docid": "b2ffc10d0f1fdf76e2c012d9869e00fc", "score": "0.55417055", "text": "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n \n ListNode p1 = l1;\n ListNode p2 = l2;\n ListNode dummy = new ListNode(0);\n ListNode p = dummy;\n \n int carrier = 0;\n int sum = 0;\n int digit = 0;\n while (p1 != null || p2 != null) {\n if (p1 == null) {\n sum = p2.value + carrier;\n p2 = p2.next;\n } else if (p2 == null) {\n sum = p1.value + carrier;\n p1 = p1.next;\n } else {\n sum = p1.value + p2.value + carrier;\n p1 = p1.next;\n p2 = p2.next;\n }\n digit = sum % 10;\n carrier = sum / 10;\n \n p.next = new ListNode(digit);\n p = p.next;\n }\n \n if (carrier != 0) {\n p.next = new ListNode(carrier);\n }\n \n return dummy.next;\n }", "title": "" }, { "docid": "e517d6695b28f79af11a1bd189948af6", "score": "0.55362165", "text": "public static void Q12()\n {\n int a = 11;\n int u = 0;\n do{\n a = a - 2;\n u = u + a;\n }while(a > 0);\n System.out.println(u);\n }", "title": "" }, { "docid": "0342ce9dbb98175b820d5b4d3502b9c9", "score": "0.55271006", "text": "private int getNextIndex() {\n var shiftOne = rotation == Rotation.CLOCKWISE ? 1 : -1;\n return (pemain.size() + urutan_sekarang + shiftOne) % pemain.size();\n }", "title": "" }, { "docid": "b283991117b76a6a61677fc6384ccf42", "score": "0.5504614", "text": "public void increment ()\n {\n value=(value+1)%limit;\n }", "title": "" }, { "docid": "6e508b4ed4362480601d4ec35fb1539d", "score": "0.5498689", "text": "private int incr(int index){\r\n return (index+1)%MAX_SIZE;\r\n }", "title": "" }, { "docid": "5e06cc53d2b632b54296f396f550c01e", "score": "0.54909676", "text": "public void firstDigitInc()\r\n\t{\r\n\t\tfirstDigit+=1;\r\n\t}", "title": "" }, { "docid": "1baa9a691db5b6a5fa75b7d04c2d69df", "score": "0.54907", "text": "public static List<Integer>getListFrom1ToFinalNumber(int finalNumber){\n\n List<Integer>nums=new ArrayList<>();\n for (int numbers = 1; numbers < finalNumber; numbers++) {\n\n }\n return nums;\n }", "title": "" }, { "docid": "87be69d304138c5b8b8ddb3fd1119386", "score": "0.54802537", "text": "public static int calculateNextAssumingStart4(int mod, List<Integer> sequence) {\n int k0 = posMod(sequence.get(1) - sequence.get(0), mod);\n int k1 = posMod(sequence.get(2) - sequence.get(0), mod); \n \n int s3 = posMod(sequence.get(0) + k0 + k1, mod);\n Preconditions.checkState(sequence.get(3) == s3);\n \n int s5 = posMod(sequence.get(4)+k0, mod);\n \n return s5;\n }", "title": "" }, { "docid": "820471ed51ac68f53118db00b52508d8", "score": "0.54617226", "text": "public static int calculateNextAssumingStart1(int mod, List<Integer> sequence) {\n int k1 = posMod(sequence.get(2) - sequence.get(0), mod);\n int k0 = posMod(sequence.get(2) - sequence.get(1), mod);\n int kBig = posMod(sequence.get(0) - k0, mod);\n int kBig2 = posMod(sequence.get(1) - k1, mod);\n Preconditions.checkState(kBig == kBig2);\n \n int k2 = posMod(sequence.get(3)-kBig, mod);\n \n int s4 = posMod(k0+k2+kBig, mod);\n Preconditions.checkState(s4==sequence.get(4));\n \n int s5 = posMod(k1+k2+kBig, mod);\n \n return s5;\n }", "title": "" }, { "docid": "2ecd849377e07bae7853f037af002989", "score": "0.5452904", "text": "public static long tib(int number)\n {\n tally++;\n if (number <= 1)\n {\n return number;\n }\n else \n {\n return (tib(number-1) + tib(number-2));\n }\n }", "title": "" }, { "docid": "b00c6f643bac3b20909b4ae8b2ec28b0", "score": "0.5452597", "text": "private static int compareNumbers(int number1, int number2) {\n if (number1 != number2) {\n if (number1 > 100) {\n number1++;\n }\n if (number2 > 100) {\n number2++;\n }\n }\n else {\n number1 +=2;\n number2 +=2;\n }\n return number1 + number2;\n }", "title": "" }, { "docid": "5f704d481197e095ac26d9db9d122058", "score": "0.54438514", "text": "public static int calculateNextAssumingStart0(int mod, List<Integer> sequence) {\n int kBig = sequence.get(0);\n int k0 = posMod(sequence.get(1) - kBig, mod);\n int k1 = posMod(sequence.get(2) - kBig, mod);\n int k2 = posMod(sequence.get(4) - kBig, mod);\n \n int s3 = posMod(kBig+k0+k1,mod);\n Preconditions.checkState(s3 == sequence.get(3));\n \n int s4 = posMod(kBig + k2, mod);\n Preconditions.checkState(s4 == sequence.get(4));\n \n int s5 = posMod(kBig + k0+k2, mod);\n return s5;\n }", "title": "" }, { "docid": "353233e5847fbf2a6e592e6aace4bbcc", "score": "0.5443255", "text": "@Override\r\n public int next() {\r\n return (int)Math.floor(Math.random()*(maxNumber-minNumber+1)+minNumber);\r\n }", "title": "" }, { "docid": "bab5121981256a1e45ddfc551f38659d", "score": "0.54411167", "text": "int getNextFibonacci();", "title": "" }, { "docid": "f199e33f01d74b73b26a53e278ff0373", "score": "0.5437462", "text": "public int add(int start, int finish) {\n int sum = 0;\n for (int index = start; index <= finish; index++) {\n if ((index % 2) == 0) {\n sum += index;\n }\n }\n return sum;\n }", "title": "" }, { "docid": "6713a23b399158d8ff72dd9cfd296030", "score": "0.54141176", "text": "@Override\n public int nextInt(int v) {\n current %= arr.length;\n int val = arr[current];\n current++;\n return val;\n }", "title": "" }, { "docid": "af043e9142b52243074b8f98e2749dd4", "score": "0.54058135", "text": "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n if(l2==null) return l1;\n if(l1==null) return l2;\n ListNode dummyhead = new ListNode(0);\n ListNode temp = dummyhead;\n int carry=0;\n int val;\n while(l1!=null||l2!=null){\n int add1=l1==null?0:l1.val;\n int add2=l2==null?0:l2.val;\n int sum=add1+add2+carry;\n temp.next = new ListNode(sum%10);\n carry=sum/10;\n temp = temp.next;\n if(l1!=null) l1=l1.next;\n if(l2!=null) l2=l2.next;\n }\n if(carry==1){\n temp.next = new ListNode(1);\n }\n return dummyhead.next;\n }", "title": "" }, { "docid": "9b74b3fbce0beb1fdbba71de47188fa9", "score": "0.54041755", "text": "public void nextPermutation(long num) {\n\t\tresult = Long.MAX_VALUE;\n\t\tisIncrease = true;\n\t\tpivotDigitOffest = 0;\n\t\tlong digitProbe = 1;\n\t\tlong medianResult = Long.MAX_VALUE;\n\t\twhile (digitProbe < num) {\n\t\t\tlong compareDigProbe = digitProbe * 10;\n\t\t\t// value of current digit\n\t\t\tlong curDigit = (num % compareDigProbe) / digitProbe;\n\t\t\twhile (compareDigProbe < num) {\n\t\t\t\tlong preDigit = (num % (compareDigProbe * 10))\n\t\t\t\t\t\t/ compareDigProbe;\n\t\t\t\tif (curDigit <= preDigit) {\n\t\t\t\t\tcompareDigProbe *= 10;\n\t\t\t\t} else {\n\t\t\t\t\tif (swapDigits(curDigit, digitProbe, preDigit,\n\t\t\t\t\t\t\tcompareDigProbe, num) < medianResult) {\n\t\t\t\t\t\tmedianResult = swapDigits(curDigit, digitProbe,\n\t\t\t\t\t\t\t\tpreDigit, compareDigProbe, num);\n\t\t\t\t\t\tisIncrease = false;\n\t\t\t\t\t\tpivotDigitOffest = compareDigProbe;\n\t\t\t\t\t}\n\t\t\t\t\t// for current digit, its nearest switch has been completed,\n\t\t\t\t\t// go next(higher) digit, The whole loop CANNOT be\n\t\t\t\t\t// terminated here.\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdigitProbe *= 10;\n\t\t}\n\n\t\tif (!isIncrease) {\n\t\t\tresult = adjustOrder(medianResult, pivotDigitOffest);\n\t\t} else {\n\t\t\t// the original number is already the largest in the permutation, so\n\t\t\t// return the smallest one. you can also implement it by reversing\n\t\t\t// the original number\n\t\t\tresult = adjustOrder(num, digitProbe);\n\t\t}\n\t}", "title": "" }, { "docid": "7cab09fa4f4efea48463d92a75f4555d", "score": "0.5374864", "text": "static int getNext(long x){\n\t\tint index = Collections.binarySearch(primes, x) +1;\n\t\treturn (int)((long)primes.get(index));\n\t}", "title": "" }, { "docid": "de0565f465d672f4efdd643e458ed88c", "score": "0.536793", "text": "private static int increment(int[] num, int lo) {\r\n while (lo < num.length - 1 && num[lo] == num[lo + 1]) {\r\n lo++;\r\n }\r\n return lo;\r\n }", "title": "" }, { "docid": "504b2f190c02847f677007ee240e9754", "score": "0.5367039", "text": "public static void main(String[] args) {\n List<Integer> l = new LinkedList<>();\n for(int i=0; i<9; i++){\n l.add(i);\n }\n\n\n Iterator<Integer> iter1 = l.iterator();\n Iterator<Integer> iter2 = l.iterator();\n while(iter2.hasNext()){\n iter1.next();\n if(iter2.hasNext()) {\n iter2.next();\n }\n if(iter2.hasNext()) {\n iter2.next();\n }\n }\n System.out.println(iter1.next()-1);\n }", "title": "" }, { "docid": "1c0ea68bacd51647a3be335393f34da7", "score": "0.53551257", "text": "private static void backtrack(int num, int rotation, int base) {\n\t\tif (num != rotation) {\n\t\t\toutput++;\n//\t\t\tSystem.out.println(\"num == \" + num + \" rotation == \" + rotation);\n\t\t}\n\t\tfor (int d : nums) {\n\t\t\tif (num == 0 && d == 0 || num > 100000000)\n\t\t\t\tcontinue;\n\t\t\tif (num * 10 + d > limit)\n\t\t\t\tbreak;\n\t\t\tbacktrack(num * 10 + d, map.get(d) * base + rotation, base * 10);\n\t\t}\n\t}", "title": "" }, { "docid": "781b3a7c81f182c5a8cdd1d7ab73ae4b", "score": "0.5354797", "text": "@Override\r\n\tpublic int hanoi(int n) \r\n\t{\n\t\tint increment = 2;\r\n\t\tfor(int x = 1; x < n; x++) \r\n\t\t{\r\n\t\t\tincrement *= 2;\r\n\t\t}\r\n\t\treturn increment-1;\r\n\t}", "title": "" }, { "docid": "fa1e07001bca093342213e9c9e50f0ec", "score": "0.5343118", "text": "public synchronized int getNext(){\n return value++;\n }", "title": "" }, { "docid": "4fccc5435b75c04694b7fc8255aef0ed", "score": "0.5340271", "text": "public int add(int start, int finish) {\n if (Math.abs(start) != 0) {\n start += 1;\n }\n int summ = 0;\n for (int i = start; i <= finish; i += 2) {\n summ = summ + i;\n }\n return summ;\n }", "title": "" }, { "docid": "2c1d2f1f56d7a0df1746fc387679a9c4", "score": "0.53395224", "text": "int getNextGap(int gap)\n {\n // Shrink gap by Shrink factor\n gap = (gap*10)/13;\n return Math.max(gap, 1);\n }", "title": "" }, { "docid": "0b4bf84493e7b986ca107175f44b43b4", "score": "0.5322827", "text": "int digitsManipulations(int n) {\n int product = 1;\n int sum = 0;\n int curr = n;\n\n while (curr > 0) {\n int now = curr % 10;\n sum = (sum + now);\n product = (product * now);\n curr = (curr / 10);\n }\n\n return (product - sum);\n\n }", "title": "" }, { "docid": "d873e0b91e0378f0cb595373720f8351", "score": "0.532188", "text": "Long getSequenceIncrement();", "title": "" }, { "docid": "7802ba8042071111ccc374f76282e0f9", "score": "0.53174675", "text": "public List<Integer> sequentialDigits1(int low, int high) {\n\n int[] allNums = {12,23,34,45,56,67,78,89,\n 123,234,345,456,567,678,789,\n 1234,2345,3456,4567,5678,6789,\n 12345,23456,34567,45678,56789,\n 123456,234567,345678,456789,\n 1234567,2345678,3456789,\n 12345678,23456789,\n 123456789};\n\n List<Integer> res = new ArrayList<>();\n int n = allNums.length;\n for (int num : allNums) {\n if (num < low) { continue; }\n if (num > high) { break; }\n res.add(num);\n }\n return res;\n }", "title": "" }, { "docid": "a0f69e7ac31661759c1cfa12f530d697", "score": "0.53123355", "text": "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n ListNode result = new ListNode(0);\n // pointer on last element of the result list\n ListNode currentNode = result;\n // carry from previous operation\n int carry = 0;\n while(l1 != null || l2 != null) {\n // this is for the case when incoming lists have different sizes\n int firstNum = (l1 != null) ? l1.val : 0;\n int secondNum = (l2 != null) ? l2.val : 0;\n int sum = firstNum + secondNum + carry;\n carry = sum / 10;\n // creates new node with result and move the pointer\n ListNode newNode = new ListNode(sum % 10);\n currentNode.next = newNode;\n currentNode = currentNode.next;\n // moves to the next nodes\n if (l1 != null) l1 = l1.next;\n if (l2 != null) l2 = l2.next;\n }\n if (carry == 1) {\n currentNode.next = new ListNode(carry);\n }\n return result.next;\n }", "title": "" }, { "docid": "89295151cf2c3d6c9ef2a00c52d53dbf", "score": "0.5310097", "text": "private int getRecycleNum(int A, int B) {\n\t\tint ret = 0;\r\n\t\tSet<Integer> tmp = new HashSet<Integer>();\r\n\t\tfor(int num=A; num<=B; num++) {\r\n\t\t\tString numStr = Integer.toString(num);\r\n\t\t\tint length = numStr.length();\r\n\t\t\tfor(int i=0; i<length-1; i++) {\r\n\t\t\t\tString numStr2 = numStr.substring(1, numStr.length()) + numStr.charAt(0);\r\n\t\t\t\tint num2 = Integer.parseInt(numStr2);\r\n\t\t\t\tif(num2 <= B && num2 > num && !tmp.contains(num2)) {\r\n\t\t\t\t\tret++;\r\n\t\t\t\t}\r\n\t\t\t\ttmp.add(num2);\r\n\t\t\t\tnumStr = numStr2;\r\n\t\t\t}\r\n\t\t\ttmp.clear();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "c27cc3ed1f6d8a6f712fb81d4b60ad4a", "score": "0.5305136", "text": "< HEAD\n\t\n public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n \tListNode dummy = new ListNode(-1);\n \tListNode curr = dummy;\n \tint carry = 0;\n \tint d1 = 0;\n \tint d2 = 0;\n \tint sum = 0;\n \twhile(l1 != null || l2 != null) {\t// As long as there still have nodes in l1 or l2\n \t\td1 = l1 == null? 0 : l1.val;\n \t\td2 = l2 == null? 0 : l2.val;\n \t\tsum = d1 + d2 + carry;\n \t\tcarry = sum >= 10 ? 1 : 0;\n \t\tcurr.next = new ListNode(sum%10);\n \t\tcurr = curr.next;\n \t\tif(l1 != null) l1 = l1.next;\n \t\tif(l2 != null) l2 = l2.next; \t\t\n \t}\n \tif(carry == 1) {\n \t\tcurr.next = new ListNode(1);\n \t}\n \treturn dummy.next;\n }", "title": "" }, { "docid": "03c6ddbdbcc9c70ae2637c93a8b591f9", "score": "0.52990246", "text": "public String countAndSay2(int n) {\n if (n <= 0)\n return \"\";\n if (n == 1)\n return \"1\";\n if (n == 2)\n return \"11\";\n\n String temp = countAndSay2(n - 1);\n int len = temp.length() - 1;\n StringBuilder sb = new StringBuilder();\n int counter = 1;\n for (int i = 0; i <= len; i++) {\n // last digit only one.\n if (counter == 1 && i == len) {\n sb.append(counter + String.valueOf(temp.charAt(i)));\n break;\n }\n\n if (temp.charAt(i) == temp.charAt(i + 1)) {\n counter++;\n // reach last element\n if (i == len - 1) {\n sb.append(counter + String.valueOf(temp.charAt(i)));\n break;\n }\n continue;\n } else {\n sb.append(counter + String.valueOf(temp.charAt(i)));\n counter = 1;\n }\n }\n return sb.toString();\n\n }", "title": "" }, { "docid": "cc44a82af26f1f35e5c0bc931df2bbb2", "score": "0.5297459", "text": "public Triangle_dt next_12() {return this.abnext;}", "title": "" }, { "docid": "ef53613069a480b50bc4242820abe833", "score": "0.5291467", "text": "public void testNext()\n {\n test.next();\n\n test.add(\"1\");\n test.add(\"2\");\n test.add(\"3\");\n\n test.next();\n assertEquals(\"2\", test.getCurrent());\n\n test.next();\n assertEquals(\"1\", test.getCurrent());\n\n test.next();\n assertEquals(\"3\", test.getCurrent());\n\n test.add(\"4\");\n test.add(\"5\");\n test.add(\"6\");\n\n test.next();\n assertEquals(\"5\", test.getCurrent());\n\n test.next();\n assertEquals(\"4\", test.getCurrent());\n\n test.next();\n assertEquals(\"3\", test.getCurrent());\n\n test.next();\n assertEquals(\"2\", test.getCurrent());\n\n test.next();\n assertEquals(\"1\", test.getCurrent());\n\n test.next();\n assertEquals(\"6\", test.getCurrent());\n\n test.add(\"7\");\n test.add(\"8\");\n test.add(\"9\");\n test.add(\"10\");\n test.add(\"11\");\n\n test.next();\n assertEquals(\"10\", test.getCurrent());\n\n test.next();\n assertEquals(\"9\", test.getCurrent());\n\n test.next();\n assertEquals(\"8\", test.getCurrent());\n\n test.next();\n assertEquals(\"7\", test.getCurrent());\n\n test.next();\n assertEquals(\"6\", test.getCurrent());\n\n test.next();\n assertEquals(\"5\", test.getCurrent());\n\n test.next();\n test.next();\n test.next();\n test.next();\n test.next();\n assertEquals(\"11\", test.getCurrent());\n }", "title": "" }, { "docid": "ba5aa409c14f6f711e96b4ef189c2034", "score": "0.5285613", "text": "public void singleNumber2(ArrayList<Integer> list) {\n\t\tint []arr=new int[32];\n\t\tfor(int value:list) {\n\t\t\tint i=0;\n\t\t\twhile(value>0) {\n\t\t\t\tarr[i]+=value&1;\n\t\t\t\tvalue=value/2;\n\t\t\t\ti++;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tint result=0;\n\t\tint p=1;\n\t\tfor(int i=0;i<32;i++) {\n\t\t\tarr[i]=arr[i]%5;\n\t\t\tresult=result+arr[i]*p;\n\t\t\tp=2*p;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Result==\"+result);\n\t\t\n\t}", "title": "" }, { "docid": "1e50cdec5e1b3aa0b179a0febe206260", "score": "0.5275574", "text": "public:\n ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) {\n if (l1 == NULL && l2 == NULL) {\n ListNode* newNode = new ListNode(0);\n return newNode;\n }\n \n // sum and carrier\n ListNode* p1 = l1;\n ListNode* p2 = l2;\n ListNode* head = new ListNode(0);\n ListNode* cur = head;\n int sum = 0, carrier = 0;\n while (p1 != NULL || p2 != NULL){\n if (p1 != NULL && p2 != NULL) {\n sum = p1->value + p2->value + carrier;\n p1 = p1->next;\n p2 = p2->next;\n } else if (p1 == NULL && p2 != NULL) {\n sum = p2->value + carrier;\n p2 = p2->next;\n } else if (p1 != NULL && p2 == NULL) {\n sum = p1->value + carrier;\n p1 = p1->next;\n }\n cur->next = new ListNode(sum % 10);\n cur = cur->next;\n carrier = sum / 10;\n }\n \n if (carrier != 0) {\n cur->next = new ListNode(carrier);\n }\n \n ListNode* newHead = head->next;\n delete head;\n return newHead;\n }", "title": "" }, { "docid": "0e1c93bb3cad4c88a0e3acf4da3e37b6", "score": "0.52751774", "text": "public int rob(int[] num) {\n int prevMax = 0;\n int currMax = 0;\n for (int x : num) {\n int temp = currMax;\n currMax = Math.max(prevMax + x, currMax);\n prevMax = temp;\n }\n return currMax;\n }", "title": "" }, { "docid": "0b16464cbd50ba717d9e9511a4ca78ba", "score": "0.5271239", "text": "public int[] twoSum(int[] numbers, int target) {\n int head = 0, tail = numbers.length -1;\n while(head<tail){\n long sum = numbers[head] + numbers[tail];\n if(sum > target)\n tail--;\n else if(sum < target)\n head++;\n else \n break;\n }\n return new int[]{head+1, tail+1}; //both should add 1, cannot be ++\n \n }", "title": "" }, { "docid": "d8729586e832f418ced0122246d7e5cd", "score": "0.5265157", "text": "@Override\n\tpublic int nextInt(int n)\n\t{\n\t\tif (n <= 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"n <= 0: \" + n);\n\t\t}\n\t\tif ((n & -n) == n)\n\t\t{\n\t\t\treturn (int) ((n * (long) next(31)) >> 31);\n\t\t}\n\t\tint bits, val;\n\t\tdo\n\t\t{\n\t\t\tbits = next(31);\n\t\t\tval = bits % n;\n\t\t} while (bits - val + (n - 1) < 0);\n\t\treturn val;\n\t}", "title": "" }, { "docid": "8130ab30e0aa180b9d8ce84974feb01a", "score": "0.52649945", "text": "public static String getSequence(int num1, int num2) {\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\tfor (int i = 1; i <= num2; i++) {\n\t\t\tnum1 = num1 * 2;\n\t\t\tsb.append(num1 + \", \");\n\t\t\t\n\t\t}\n\t\t\n\t\treturn sb.substring(0,sb.length()-2).toString();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "5bd117aa3d7d9ebbe10d107566fb328d", "score": "0.5246466", "text": "public int sumEvenNums(int start, int finish) {\n\t\tint tmp = 0;\n\t\tfor (int i = start; i <= finish; i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\ttmp += i;\n\t\t\t}\n\t\t}\n\t\treturn tmp;\n\t}", "title": "" }, { "docid": "bbeaeb78be30ed88ce7e3e4cb00418d0", "score": "0.52452874", "text": "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int naturalNumber = scanner.nextInt();\n System.out.print(naturalNumber + \" \");\n int nextNumber = naturalNumber;\n while (nextNumber > 1){\n nextNumber = (nextNumber % 2 == 0) ? nextNumber / 2 : (nextNumber * 3) + 1;\n System.out.print(nextNumber + \" \");\n }\n }", "title": "" }, { "docid": "a2f2504c65c5d2a14b90bc729e02fe0d", "score": "0.5243465", "text": "public static int getMaximumOddNumberTraditionalWay(List<Integer> numbers, int begin, int end) {\n int max = 0;\n for (int i : numbers) {\n if ((i % 2 != 0) && (i > begin) && (i < end) && (i > max)) {\n max = i;\n }\n }\n return max;\n }", "title": "" }, { "docid": "de36ef3e09c044496951ed37efbd9c23", "score": "0.5241398", "text": "public Triangle_dt next_23() {return this.bcnext;}", "title": "" }, { "docid": "17b96aa9b7f0615f33efee5148ab4cef", "score": "0.52360857", "text": "public static int getSumFrom1toX (int x){\n\n\n int sum = 0 ;\n //TODO : OUR CODE GOES HERE\n for (int i = 1; i <= x ; i++) {\n sum += i ; // sum = sum + i ;\n }\n return sum ;\n\n }", "title": "" }, { "docid": "7eb3a947a8f794445dcf6c3d0541c71e", "score": "0.5235687", "text": "private static ListNode recursiveAddTwoNumber(ListNode l1, ListNode l2,int co) {\n\n if(null == l1 && null == l2){\n if(co > 0)\n return new ListNode(co);\n else\n return null;\n }\n\n int sumResult = l1.val + l2.val + co;\n int nodeVal = sumResult % 10;\n int carryOver = sumResult / 10;\n\n ListNode nextNode=recursiveAddTwoNumber(l1.next , l2.next , carryOver);\n ListNode current = new ListNode(nodeVal);\n current.next = nextNode;\n\n return current;\n }", "title": "" }, { "docid": "010fcb71214e1e5558229bde23d0a009", "score": "0.5234206", "text": "private int getNextFibonacci() {\n\t\tint current = fiba;\n\t\tint next = fiba + fibb;\n\t\tfibb = fiba;\n\t\tfiba = next;\n\n\t\tif (current > maxThreads) {\n\t\t\tresetFibonacci();\n\t\t\tcurrent = getNextFibonacci();\n\t\t}\n\n\t\tif (logger.isLoggable(Level.FINE)) {\n\t\t\tlogger.fine(\"fibonacci sequence generated: \" + current);\n\t\t}\n\t\treturn current;\n\t}", "title": "" }, { "docid": "2888dd3d03a7c4cb7b333f2cce84a39f", "score": "0.5234102", "text": "public static long numPhoneNumbers(int startdigit, int phonenumberlength) {\n \n // List of where integers where you can go from a particular integer\n ArrayList<ArrayList<Integer>> listOfNext = new ArrayList<>();\n \n // 0\n listOfNext.add(new ArrayList<Integer>());\n listOfNext.get(0).add(4);\n listOfNext.get(0).add(6);\n \n // 1\n listOfNext.add(new ArrayList<Integer>());\n listOfNext.get(1).add(6);\n listOfNext.get(1).add(8);\n \n // 2\n listOfNext.add(new ArrayList<Integer>());\n listOfNext.get(2).add(7);\n listOfNext.get(2).add(9);\n \n // 3\n listOfNext.add(new ArrayList<Integer>());\n listOfNext.get(3).add(4);\n listOfNext.get(3).add(8);\n \n // 4\n listOfNext.add(new ArrayList<Integer>());\n listOfNext.get(4).add(3);\n listOfNext.get(4).add(9);\n listOfNext.get(4).add(0);\n \n // 5\n listOfNext.add(new ArrayList<Integer>());\n \n // 6\n listOfNext.add(new ArrayList<Integer>());\n listOfNext.get(6).add(1);\n listOfNext.get(6).add(7);\n listOfNext.get(6).add(0);\n \n // 7\n listOfNext.add(new ArrayList<Integer>());\n listOfNext.get(7).add(2);\n listOfNext.get(7).add(6);\n \n // 8\n listOfNext.add(new ArrayList<Integer>());\n listOfNext.get(8).add(1);\n listOfNext.get(8).add(3);\n \n // 9\n listOfNext.add(new ArrayList<Integer>());\n listOfNext.get(9).add(4);\n listOfNext.get(9).add(2);\n \n long numTill[][] = new long[phonenumberlength][10];\n // First digit is already given. So we can only form one number of length 1.\n numTill[0][startdigit] = 1;\n \n for(int i = 1; i < phonenumberlength; i++){\n for(int num = 0; num < 10; num++){\n for(int to:listOfNext.get(num)){\n // We can come to num from all its neighbours.\n // So we will add all possible numbers of length i-1 that are neighnours of num.\n numTill[i][num] += numTill[i-1][to];\n }\n }\n }\n \n long ans = 0;\n // Sum all possible ending of length phonenumberlength\n for(int num = 0; num < 10; num++){\n ans += numTill[phonenumberlength-1][num];\n }\n return ans;\n }", "title": "" }, { "docid": "ba9443a1cd402204658fac0341a4198e", "score": "0.52220273", "text": "public static int calculateNextAssumingStart5(int mod, List<Integer> sequence) {\n int k0 = posMod(sequence.get(2) - sequence.get(1), mod);\n int k1 = posMod(sequence.get(2) - sequence.get(0), mod); \n int kbig = sequence.get(3);\n \n int s4 = posMod(kbig + k0, mod); \n Preconditions.checkState(s4 == sequence.get(4));\n int s5 = posMod(kbig + k1, mod);\n \n return s5;\n }", "title": "" }, { "docid": "b417beb933e17377d7375c36149d8ad1", "score": "0.52192074", "text": "public static void main(String[] args) {\n printNum(15);\n printNum(20);\n printNum(50);\n\n // count++ means count = count +1\n}", "title": "" }, { "docid": "2fda8ede413f7e7ca4918529d03a34c8", "score": "0.5213682", "text": "static int nextInt(int bound) {\n int bits, result;\n int mask = bound - 1;\n do {\n bits = next(31);\n result = bits % bound;\n } while(bits - result + mask < 0);\n return result;\n }", "title": "" }, { "docid": "fa079f4dc007b7ed3ab950942cb25d79", "score": "0.52113074", "text": "public static int calculateNextAssumingStart7(int mod, List<Integer> sequence) {\n int kBig = sequence.get(1);\n int k0 = posMod(sequence.get(2) - kBig, mod);\n int k1 = posMod(sequence.get(3) - kBig, mod);\n int kbig = sequence.get(2);\n \n int s4 = posMod(kbig + k0 + k1, mod);\n Preconditions.checkState(s4 == sequence.get(4));\n \n return -1;\n }", "title": "" }, { "docid": "1dbb6d19bc5cc7fe5f7ea9e6cc893589", "score": "0.5209616", "text": "private Integer getNextNode(ArrayList<Integer> path) {\n\t\tif(path.isEmpty())\n\t\t\treturn 0;\n\t\telse {\n\t\t\tif(path.size()-1>= 0) {\n\t\t\t Integer next = path.get(path.size()-1);\n\t\t\t path.remove(path.size()-1);\n\t\t\t return next;}\n\t\t\telse\n\t\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "b6534f53a80b9dd8126fdeb72a653a07", "score": "0.5206679", "text": "public void add(int number) {\n int l = 0, r = list.size()-1;\n while(l<=r){\n int m = l + (r-l)/2;\n if(list.get(m) == number){\n list.add(m, number);\n return;\n }else if( list.get(m) < number)\n l = m+1;\n else\n r = m - 1;\n }\n list.add(l, number);\n }", "title": "" }, { "docid": "cc78984d41854201c4bcdb2053da4a54", "score": "0.52025414", "text": "public static int getTheSumOfNumnberFrom1toN( int endingNumber ) {\r\n\t\t\r\n\t\tint sum = 0 ; \r\n\t\t\r\n\t\tfor (int i = 1; i <= endingNumber; i++) {\r\n\t\t\t\r\n\t\t\tsum = sum + i ; // sum += i ;\r\n\t\t\t\r\n\t\t}\r\n\t\treturn sum ; \r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8d158a46c7cff06244c592545b83ab1e", "score": "0.5200547", "text": "double getNextProposalNumber();", "title": "" }, { "docid": "e16ef74d3ed4d6ba47091b4ea740e1f3", "score": "0.5200217", "text": "static void calcNextRef() {\n\t\tr = nextRef;\n\t\tif (r >= 0 && r < 7) {\n\t\t\tint random = randInt(-1, 1);\n\t\t\t//System.out.println(\"Random: \" + random);\n\t\t\tnextRef += random;\n\t\t\tif (nextRef < 0) {\n\t\t\t\tnextRef = 0;\n\t\t\t}\n\t\t}\n\t\tif (r >= 7 && r <= 9) {\n\t\t\tint random = randInt(2, 8);\n\t\t\t//System.out.println(\"Random: \" + random);\n\t\t\tnextRef += random;\n\t\t\tif (nextRef > 9) {\n\t\t\t\tnextRef = 0;\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"Next Reference: \" + nextRef + \" id: \" + pages[nextRef].id);\n\t}", "title": "" }, { "docid": "783a47eaacc97ce28961965eb7845ea9", "score": "0.5195428", "text": "public static void main (String[] args){\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n int n4=n;\n int count=0;\n while(n>0)\n {\n n=n/10;\n count=count+1;\n }\n int count1=count;\n int x=1;\n int n1=0,n2=0;\n int s=0;\n while(count1>0)\n {\n n1=n4%10;\n s=n1+s;\n n4=n4/10;\n count1=count1-1;\n }\n System.out.println(s);\n\t}", "title": "" }, { "docid": "893b4d52bb6ad58200d0ef04bf9d3464", "score": "0.5190023", "text": "public static int part2v2(int input) {\r\n\t\tint currPos = 1;\r\n\t\tint result = 0;\r\n\t\tint limit = 50000000;\r\n\t\tint n = 1;\r\n\t\twhile (n < limit) {\r\n\t\t\tif (currPos == 1)\r\n\t\t\t\tresult = n;\r\n\t\t\t/*\r\n\t\t\t * How many steps fit between `currPos` and the next n to wrap? Call this `fits`.\r\n\t\t\t * Each time we add input + 1 steps, so: currPos + input * fits + fits >= n +\r\n\t\t\t * fits currPos + input * fits >= n\r\n\t\t\t */\r\n\t\t\tint fits = (n - currPos) / input;\r\n\r\n\t\t\t/*\r\n\t\t\t * We advance `fits` times (right before we wrap) and one more (wrap). As noted\r\n\t\t\t * above, we add (step_size + 1) each time, but we only add the very last step\r\n\t\t\t * after wrapping + writing.\r\n\t\t\t */\r\n\t\t\tn += (fits + 1);\r\n\t\t\tcurrPos = (currPos + (fits + 1) * (input + 1) - 1) % n + 1;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "5bb12609ce2bde0f4900dd85a2d04440", "score": "0.5190017", "text": "public void backtrack(int first, LinkedList<Integer> curr) {\n if (curr.size() == k)\r\n output.add(new LinkedList(curr));\r\n\r\n for (int i = first; i < n + 1; ++i) {\r\n // add i into the current combination\r\n curr.add(i);\r\n // use next integers to complete the combination\r\n backtrack(i + 1, curr);\r\n // backtrack\r\n curr.removeLast();\r\n }\r\n }", "title": "" }, { "docid": "7da28f8d52625b9e7b7c2afae7cdb58e", "score": "0.51882625", "text": "public String findNext(String tile) {\n int next = Integer.parseInt(tile.substring(1)) + 1;\n return tile.charAt(0) + Integer.toString(next);\n }", "title": "" }, { "docid": "e13a406d22e8285f343ea61e5b913d06", "score": "0.51864445", "text": "@Test\n public void testNext() {\n DoubleLinkedList<Integer> list = new DoubleLinkedList<Integer>();\n list.addFirst(1);\n Position<Integer> pos2 = list.addAfter(list.first(), 2);\n Position<Integer> pos3 = list.addAfter(pos2, 3);\n Position<Integer> pos4 = list.addAfter(pos3, 4);\n int elem2 = list.next(list.first()).getElement();\n int elem3 = list.next(pos2).getElement();\n int elem4 = list.next(pos3).getElement();\n Assert.assertEquals(elem2, 2);\n Assert.assertEquals(elem3, 3);\n Assert.assertEquals(elem4, 4);\n }", "title": "" }, { "docid": "2b2aa3d3c1912e86f8ce7cc63fb265fc", "score": "0.51855946", "text": "public static int calculateNextAssumingStart6(int mod, List<Integer> sequence) {\n int k0 = posMod(sequence.get(1) - sequence.get(0), mod);\n int k1 = posMod(sequence.get(4) - sequence.get(2), mod); \n int kbig = sequence.get(2);\n \n int s3 = posMod(kbig + k0, mod);;\n Preconditions.checkState(s3 == sequence.get(3));\n \n int s4 = posMod(kbig + k1, mod); \n Preconditions.checkState(s4 == sequence.get(4));\n \n int s5 = posMod(kbig + k1+k0, mod);\n \n return s5;\n }", "title": "" }, { "docid": "34ea0c5e2733d8d494419cd33dcc02e3", "score": "0.51842767", "text": "public static int[] plusOne_best(int[] digits) {\n int len = digits.length;\n for (int i = len - 1; i >= 0; i--) {\n digits[i] = (digits[i] + 1) % 10;\n if (digits[i] != 0) {\n return digits;\n }\n }\n\n int[] ans = new int[len + 1];\n ans[0] = 1;\n return ans;\n }", "title": "" }, { "docid": "4813e6e579a29c28b1c3195e1741d0ac", "score": "0.5183238", "text": "int nextReference(int currentReference) {\n\t\tRandom random = new Random();\n\t\tint c = 0;\n\n\t\t// check locality of reference\n\t\t// When 7 < r < 10 -> changes would be from 2 to 9\n\t\tif (!(random.nextInt(11) < 7)) { // 30% chance of a matching reference\n\t\t\tc = random.nextInt(7) + 2;\n\t\t} else {\n\t\t\t// When 0 < r < 7 -> changes would be from -1 to 1\n\t\t\tc = random.nextInt(3) - 1; // 70% chance of a matching reference\n\t\t}\n\t\treturn ((c + currentReference) % 11 + 11) % 11;\n\t}", "title": "" }, { "docid": "467f14e4e9a8365a057ee45d20f2f360", "score": "0.5177419", "text": "public static int createPair(int num) {\n\t\tint dir = StdRandom.uniform(4);\n\t\tint pair = -1;\n\t\tswitch(dir) {\n\t\t\tcase 0: pair = num+1;break;\n\t\t\tcase 1: pair = num-1;break;\n\t\t\tcase 2: pair = num+25;break;\n\t\t\tcase 3: pair = num-25;break;\n\t\t}\n//\t\tStdOut.print(\" out:\"+pair+\" \");\n\t\tif(pair>624 || pair<0) {\n//\t\t\tStdOut.print(\" in:\"+pair+\" \");\n\t\t\tpair = createPair(num);\n\t\t}\n\t\tif(pair%25==0 && dir==0) {\n//\t\t\tStdOut.print(\" right:\"+pair+\" \");\n\t\t\tpair = createPair(num);\n\t\t}\n\t\tif((pair+1)%25==0 && dir==1) {\n//\t\t\tStdOut.print(\" left:\"+pair+\" \");\n\t\t\tpair = createPair(num);\n\t\t}\n\t\treturn pair;\n\t}", "title": "" }, { "docid": "86fd783f8998595ef5b5973fd3e396c7", "score": "0.5173458", "text": "protected int getNextPickId() {\n return (truckList.getLast().getLoadPos() / 2);\n }", "title": "" }, { "docid": "36e038514746cb27707fd300006c0fbc", "score": "0.5172575", "text": "@Test\n public void testIteratorSequence(){\n\n MyLinkedList<Integer> seq = new MyLinkedList<Integer>();\n ListIterator<Integer> iter;\n // List: 0 1 2 3 4 5 6 7 8 9 10 ...\n // Build the list with integers 1 ... SEQMAX\n for(int k = 0; k <= SEQMAX; k++){\n seq.add(k, k);\n }\n // Now iterate through the list to near the middle, read the\n // previous two entries and verify the sum.\n iter = seq.listIterator();\n int sum = 0;\n for(int j = 1; j < SEQMAX/2; j++){\n sum = iter.next();\n }\n iter.previous();\n assertEquals(iter.previous() + iter.previous(), sum);\n // Go forward with the list iterator\n assertEquals(iter.next() + iter.next(), sum);\n }", "title": "" }, { "docid": "eb7ad70abb4985498aa7cc8f80a14e7c", "score": "0.5167703", "text": "public static ListNode addTwoNumbers(ListNode<Integer> l1, ListNode<Integer> l2) {\n int carry = 0;\n ListNode<Integer> node = null;\n ListNode<Integer> head = null;\n while (l1 != null || l2 != null || carry != 0) {\n int val = carry;\n val += l1 == null ? 0 : l1.val;\n val += l2 == null ? 0 : l2.val;\n if (val > 9) {\n val -= 10;\n carry = 1;\n } else {\n carry = 0;\n }\n if (node == null) {\n node = new ListNode(val);\n head = node;\n } else {\n ListNode cur = new ListNode(val);\n node.next = cur;\n node = cur;\n }\n l1 = l1 == null ? null : l1.next;\n l2 = l2 == null ? null : l2.next;\n }\n\n return head;\n }", "title": "" }, { "docid": "09e1b3af1cbeca5088762bdd8a6a3181", "score": "0.5157103", "text": "int sum1toN(int n) {\n if (n == 1) {return 1;}\n else {\n int smallerSum = sum1toN(n - 1);\n return smallerSum + n;\n }\n }", "title": "" } ]
6aca026d6d1d8551807bac835936a8dd
repeated .im.turms.proto.Message messages = 4;
[ { "docid": "f8dda110db775f9c16a19b793fcb1a41", "score": "0.0", "text": "private void addAllMessages(\n java.lang.Iterable<? extends im.turms.client.model.proto.model.message.Message> values) {\n ensureMessagesIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(values, messages_);\n }", "title": "" } ]
[ { "docid": "0658829e3a73dd0c0398bd4408b4db63", "score": "0.65407896", "text": "protobuf.Paxos.MessageOrBuilder getMessageOrBuilder();", "title": "" }, { "docid": "0658829e3a73dd0c0398bd4408b4db63", "score": "0.65407896", "text": "protobuf.Paxos.MessageOrBuilder getMessageOrBuilder();", "title": "" }, { "docid": "0658829e3a73dd0c0398bd4408b4db63", "score": "0.65407896", "text": "protobuf.Paxos.MessageOrBuilder getMessageOrBuilder();", "title": "" }, { "docid": "0658829e3a73dd0c0398bd4408b4db63", "score": "0.65407896", "text": "protobuf.Paxos.MessageOrBuilder getMessageOrBuilder();", "title": "" }, { "docid": "0658829e3a73dd0c0398bd4408b4db63", "score": "0.65407896", "text": "protobuf.Paxos.MessageOrBuilder getMessageOrBuilder();", "title": "" }, { "docid": "e2445b73b1309c22d22c9a89c1666992", "score": "0.6295444", "text": "protobuf.Paxos.Message getMessage();", "title": "" }, { "docid": "e2445b73b1309c22d22c9a89c1666992", "score": "0.6295444", "text": "protobuf.Paxos.Message getMessage();", "title": "" }, { "docid": "e2445b73b1309c22d22c9a89c1666992", "score": "0.6295444", "text": "protobuf.Paxos.Message getMessage();", "title": "" }, { "docid": "e2445b73b1309c22d22c9a89c1666992", "score": "0.6295444", "text": "protobuf.Paxos.Message getMessage();", "title": "" }, { "docid": "e2445b73b1309c22d22c9a89c1666992", "score": "0.6295444", "text": "protobuf.Paxos.Message getMessage();", "title": "" }, { "docid": "60ba44ed78a61aedd1e2c79531e94896", "score": "0.62747", "text": "benchmarks.google_message4.BenchmarkMessage4.Message0OrBuilder getField2521OrBuilder();", "title": "" }, { "docid": "8082729b42e0ee18a0e3d3ee78f5c078", "score": "0.6265947", "text": "com.bear.demo.NIO.protobuf.CmdBox.MessageOrBuilder getMessageOrBuilder();", "title": "" }, { "docid": "8da22996a1b16dc859a2ff51b1094a4a", "score": "0.6160913", "text": "com.google.protobuf2.Any getMessages(int index);", "title": "" }, { "docid": "1e61429ed29240c5a8864908a165356b", "score": "0.6119015", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37347OrBuilder();", "title": "" }, { "docid": "092cf9c6b989339da9bcb0ec3c835fed", "score": "0.61129624", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37354OrBuilder();", "title": "" }, { "docid": "52dd3c1a456343e8ec888b4fb8149f7e", "score": "0.61124384", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37376OrBuilder();", "title": "" }, { "docid": "d0e449f59fb3b43706d7f9add7d72f35", "score": "0.6108521", "text": "benchmarks.google_message4.BenchmarkMessage4.Message176OrBuilder getField37547OrBuilder();", "title": "" }, { "docid": "3725a5e39cddeefdb5977339baaee7c2", "score": "0.6107493", "text": "benchmarks.google_message4.BenchmarkMessage4.Message3804OrBuilder getField12916OrBuilder();", "title": "" }, { "docid": "5ed89f7e8665d337f9fa8650023050d7", "score": "0.61068714", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField7321OrBuilder();", "title": "" }, { "docid": "8327dd174d058d04613aae409882b60c", "score": "0.6105562", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField2519OrBuilder();", "title": "" }, { "docid": "4ac869a150e7a1b8390775b628f148b1", "score": "0.60995954", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField7332OrBuilder();", "title": "" }, { "docid": "1cb0d63c0cd8f2dd21498731fda084f9", "score": "0.6089206", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37367OrBuilder();", "title": "" }, { "docid": "026264f91bc476860ddb76618405e9aa", "score": "0.6086534", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37359OrBuilder();", "title": "" }, { "docid": "db86f07fcf285b5e9abfbadf14d35e26", "score": "0.60819596", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37273OrBuilder();", "title": "" }, { "docid": "b47c86a7b136fd303038de3d1253d063", "score": "0.60662144", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField8825OrBuilder();", "title": "" }, { "docid": "64946ee04648bf872091d29610808fdc", "score": "0.60661304", "text": "benchmarks.google_message4.BenchmarkMessage4.Message13000OrBuilder getField37548OrBuilder();", "title": "" }, { "docid": "204f3c0f364e8dbcaef8b3dbc5027171", "score": "0.6063174", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField7322OrBuilder();", "title": "" }, { "docid": "e2325cbaa72d6906d996a0952db583d8", "score": "0.6061237", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37518OrBuilder();", "title": "" }, { "docid": "d596e8f4d99c999920eafca4329f3a29", "score": "0.6060223", "text": "benchmarks.google_message4.BenchmarkMessage41.Message12825OrBuilder getField12894OrBuilder();", "title": "" }, { "docid": "ea3a0999d446a3cbe7aa29725fe23ff8", "score": "0.605981", "text": "benchmarks.google_message4.BenchmarkMessage41.Message8587OrBuilder getField12906OrBuilder();", "title": "" }, { "docid": "aac62f2a1f5a08d58b2a0cd60de1e9e9", "score": "0.60590047", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37274OrBuilder();", "title": "" }, { "docid": "7b0eb31106ff683aecccd9f220cd7c69", "score": "0.6057765", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField8837OrBuilder();", "title": "" }, { "docid": "927ba6eec4c580cf20595c9ec7f0670f", "score": "0.60556626", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37504OrBuilder();", "title": "" }, { "docid": "499c9ae8f6f4623c223e38442ff1571d", "score": "0.605481", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField8850OrBuilder();", "title": "" }, { "docid": "aec70b915f03dbb2e20de0e0251f7145", "score": "0.60524917", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField8819OrBuilder();", "title": "" }, { "docid": "d4f5dfada1e1c72efc8769d2aafb6572", "score": "0.6051673", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField12719OrBuilder();", "title": "" }, { "docid": "a1f16cb95b22f470f48ae26605d7925a", "score": "0.6051426", "text": "benchmarks.google_message4.BenchmarkMessage42.Message12818OrBuilder getField12921OrBuilder();", "title": "" }, { "docid": "ccb495bce7b22ec6a901dd30c708c774", "score": "0.60506904", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37272OrBuilder();", "title": "" }, { "docid": "ad65d5754ea54b03af7a981ad6c1a134", "score": "0.6049343", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField8858OrBuilder();", "title": "" }, { "docid": "7942bb1eb19272d874967c846c409295", "score": "0.6049032", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37372OrBuilder();", "title": "" }, { "docid": "773355009666d1c36b4c8d88cf0b3ef7", "score": "0.6046954", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField2393OrBuilder();", "title": "" }, { "docid": "53fc41e0230d69e323f1d4e44d4a94f9", "score": "0.60450006", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37513OrBuilder();", "title": "" }, { "docid": "5f59cdab6454e6ec03a0bd984d41b6f5", "score": "0.6042922", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField12987OrBuilder();", "title": "" }, { "docid": "29a273ddfa680647871ca428e564b057", "score": "0.60397834", "text": "@Test\n public void repeatedProtoMessageTest() throws Exception {\n JsonElement jsonElement =\n protoToFirestoreJson(\n ItemList.newBuilder()\n .addItem(Item.newBuilder().setDoubleField1(12.34).build())\n .addItem(Item.newBuilder().setDoubleField1(56.78).build())\n .build());\n assertEquals(getGoldenFile(\"repeated_proto_message_test.json\"), jsonElement);\n }", "title": "" }, { "docid": "a90c45420e3821de866a90e30b1a34fd", "score": "0.60391986", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37510OrBuilder();", "title": "" }, { "docid": "de7cd911e3b347ca8af81798b5129189", "score": "0.60358214", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField8787OrBuilder();", "title": "" }, { "docid": "b56ab9748a3c7a271d3112d208e2a4b4", "score": "0.60352004", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37506OrBuilder();", "title": "" }, { "docid": "eff5bd0c1a6506d098fdbf6228935f67", "score": "0.60345596", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37515OrBuilder();", "title": "" }, { "docid": "ae934b846ab398066aa9066b14137d50", "score": "0.6033665", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField2396OrBuilder();", "title": "" }, { "docid": "bb3b3c185bbca14bb4a66eb21c37cd02", "score": "0.6032403", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37271OrBuilder();", "title": "" }, { "docid": "ab600c9cb44873800a77d8a1732ec103", "score": "0.6030049", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField2395OrBuilder();", "title": "" }, { "docid": "d11f5dc8684e4db177ed912dcbac5f5d", "score": "0.6025198", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37517OrBuilder();", "title": "" }, { "docid": "7f6a4d6009753783aceae996caf14ce4", "score": "0.6023906", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37514OrBuilder();", "title": "" }, { "docid": "5fbc4f56d0b472d6d37f3f3ffcf3dc6f", "score": "0.60178715", "text": "benchmarks.google_message4.BenchmarkMessage4.Message12748OrBuilder getField37542OrBuilder();", "title": "" }, { "docid": "50156323802e886674fa84ca83c27fd4", "score": "0.6017801", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37516OrBuilder();", "title": "" }, { "docid": "d565e8f24c6065e865adea8e285fce55", "score": "0.60167277", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37505OrBuilder();", "title": "" }, { "docid": "db028d54f8e092a893c83764aac29bce", "score": "0.6013235", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField7323OrBuilder();", "title": "" }, { "docid": "458399eaa55da1d5086511cf73f03639", "score": "0.6008939", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37507OrBuilder();", "title": "" }, { "docid": "dbf8f9d6ad580f3798301de34fb7f566", "score": "0.6008127", "text": "benchmarks.google_message4.BenchmarkMessage41.Message3061OrBuilder getField3374OrBuilder();", "title": "" }, { "docid": "8bcdf19c796f4827620dfea3e25d5cb7", "score": "0.60027385", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField2394OrBuilder();", "title": "" }, { "docid": "fc95377bedd979be05c773e542055e86", "score": "0.59991914", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37270OrBuilder();", "title": "" }, { "docid": "86821510055ac23380b3f4108e1300cd", "score": "0.59985524", "text": "benchmarks.google_message4.BenchmarkMessage4.Message12870OrBuilder getField12917OrBuilder();", "title": "" }, { "docid": "64c78fc4c23255012ebb0912ed0ef6b2", "score": "0.5997335", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37509OrBuilder();", "title": "" }, { "docid": "a086a4dce6a313f34855bd77f8ca37d4", "score": "0.5995704", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField7335OrBuilder();", "title": "" }, { "docid": "f9efb937c67b6e1b901c7917db4954b2", "score": "0.59923", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField12983OrBuilder();", "title": "" }, { "docid": "016140a59975afc42215e23f1dd1e0c7", "score": "0.59862894", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37512OrBuilder();", "title": "" }, { "docid": "c36302ab1dde781ff296bab172d18a32", "score": "0.5985785", "text": "benchmarks.google_message4.BenchmarkMessage4.Message37326OrBuilder getField37360OrBuilder();", "title": "" }, { "docid": "e144b467789a049cfed031eae0ead23c", "score": "0.5985753", "text": "benchmarks.google_message4.BenchmarkMessage4.Message3069OrBuilder getField7333OrBuilder();", "title": "" }, { "docid": "0ac018d85cf67c8529e8322eac4bd48d", "score": "0.5983459", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField12920OrBuilder();", "title": "" }, { "docid": "19b1a91352dc1969b8c07a1cc31300d1", "score": "0.5982512", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField37511OrBuilder();", "title": "" }, { "docid": "b14a3b33758de5d442a2eec36e3a7449", "score": "0.59785134", "text": "benchmarks.google_message4.BenchmarkMessage41.Message8572OrBuilder getField8783OrBuilder();", "title": "" }, { "docid": "6d630fe704b56c64e47c4b6fbcb84998", "score": "0.5977891", "text": "benchmarks.google_message4.BenchmarkMessage4.Message37329OrBuilder getField37551OrBuilder();", "title": "" }, { "docid": "fea60eeff6a3b6fafa195e73b1379fe8", "score": "0.596891", "text": "benchmarks.google_message4.BenchmarkMessage4.Message12717OrBuilder getField37541OrBuilder();", "title": "" }, { "docid": "d75aa26b9d7e32e078b238465f19cfee", "score": "0.5967619", "text": "benchmarks.google_message4.BenchmarkMessage4.Message37326OrBuilder getField37377OrBuilder();", "title": "" }, { "docid": "3d81083c01e47e26ac19aa35f09d861a", "score": "0.59673566", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField12754OrBuilder();", "title": "" }, { "docid": "9fa7b751c32e2e8d97f45537006654c5", "score": "0.5966526", "text": "benchmarks.google_message4.BenchmarkMessage41.Message2463OrBuilder getField2522OrBuilder();", "title": "" }, { "docid": "174122d56a7f1b165b581ca50cf5b3f5", "score": "0.5966408", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField12912OrBuilder();", "title": "" }, { "docid": "a07c3628fcb8d85fc2506db92bc59919", "score": "0.5966132", "text": "benchmarks.google_message4.BenchmarkMessage4.Message12948OrBuilder getField12963OrBuilder();", "title": "" }, { "docid": "4e6c6b6eb933a5357587b8d6e129e534", "score": "0.5964335", "text": "benchmarks.google_message4.BenchmarkMessage4.Message37327OrBuilder getField37552OrBuilder();", "title": "" }, { "docid": "7551cd7a75f0cf6f873bf737cd518ee5", "score": "0.5962486", "text": "benchmarks.google_message4.BenchmarkMessage4.Message12799OrBuilder getField12914OrBuilder();", "title": "" }, { "docid": "757ab9a32979aa9f38d58b9975952690", "score": "0.59585214", "text": "benchmarks.google_message4.BenchmarkMessage4.Message37333OrBuilder getField37553OrBuilder();", "title": "" }, { "docid": "a5cadbba34e9dd75b7ae60770d23d2dc", "score": "0.5957811", "text": "benchmarks.google_message4.BenchmarkMessage4.Message8835OrBuilder getField37538OrBuilder();", "title": "" }, { "docid": "30b5baccf6c75980376445ee0b798743", "score": "0.59522396", "text": "benchmarks.google_message4.BenchmarkMessage4.Message12910OrBuilder getField37545OrBuilder();", "title": "" }, { "docid": "b2714910c0e1035811e3ae24870acd97", "score": "0.5948059", "text": "benchmarks.google_message4.BenchmarkMessage41.Message7287OrBuilder getField7324OrBuilder();", "title": "" }, { "docid": "848315201c4d27e05e2d49f16ad5b314", "score": "0.5945213", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField12962OrBuilder();", "title": "" }, { "docid": "2483e00db85674c90eb41a1331448296", "score": "0.59443986", "text": "benchmarks.google_message4.BenchmarkMessage41.Message1374OrBuilder getField2368OrBuilder();", "title": "" }, { "docid": "0a2aa793b0e128afaab3b464c0f797dc", "score": "0.59343314", "text": "com.bear.demo.NIO.protobuf.CmdBox.Message getMessage();", "title": "" }, { "docid": "5ce482bfaba252ff207600b69f5d13cc", "score": "0.5931749", "text": "benchmarks.google_message4.BenchmarkMessage4.Message8848OrBuilder getField37539OrBuilder();", "title": "" }, { "docid": "955a9fd36bb7f82ffe4bf583c5748542", "score": "0.59291124", "text": "benchmarks.google_message4.BenchmarkMessage4.Message37326OrBuilder getField37348OrBuilder();", "title": "" }, { "docid": "564951855561197f611592b113a53a30", "score": "0.5928926", "text": "benchmarks.google_message4.BenchmarkMessage42.UnusedEmptyMessageOrBuilder getField440OrBuilder();", "title": "" }, { "docid": "68ed12ce40b25b830e9c139fc78b2122", "score": "0.5926434", "text": "benchmarks.google_message4.BenchmarkMessage4.Message2356OrBuilder getField2520OrBuilder();", "title": "" }, { "docid": "6fcdb9fff3752c6f35551b2823e21178", "score": "0.59194195", "text": "com.netty.protobuf.Message.OneOfMessage.Dog getDog();", "title": "" }, { "docid": "bd56ceacec68a3d877d364e040d664c6", "score": "0.5918853", "text": "benchmarks.google_message4.BenchmarkMessage4.Message7319OrBuilder getField37543OrBuilder();", "title": "" }, { "docid": "583a095f06c94b1dd81611eb89bba08a", "score": "0.5916096", "text": "benchmarks.google_message4.BenchmarkMessage4.Message12687OrBuilder getField12725OrBuilder();", "title": "" }, { "docid": "ce06ae269f2a967b8ce63d3964eab1f8", "score": "0.5915622", "text": "benchmarks.google_message4.BenchmarkMessage4.Message13035OrBuilder getField37549OrBuilder();", "title": "" }, { "docid": "594d433ffdfe02467d64c6f828e4258d", "score": "0.59128267", "text": "benchmarks.google_message4.BenchmarkMessage4.Message37173OrBuilder getField37378OrBuilder();", "title": "" }, { "docid": "e5bacdbe455bc211b22237eb26255e03", "score": "0.5899889", "text": "benchmarks.google_message4.BenchmarkMessage41.Message11947OrBuilder getField12724OrBuilder();", "title": "" }, { "docid": "8263f3f6bb9df7d6c7474e5413ee4931", "score": "0.58992195", "text": "benchmarks.google_message4.BenchmarkMessage4.Message37335OrBuilder getField37554OrBuilder();", "title": "" }, { "docid": "6cb7088ee26235e47106e28e2943366a", "score": "0.5898987", "text": "benchmarks.google_message4.BenchmarkMessage4.Message7330OrBuilder getField37535OrBuilder();", "title": "" }, { "docid": "7d860860bf4a86c97749a3851d07f7a2", "score": "0.58919895", "text": "benchmarks.google_message4.BenchmarkMessage4.Message2517OrBuilder getField37534OrBuilder();", "title": "" }, { "docid": "eddcc1e1cb7fb2d983bab6927d6a32eb", "score": "0.5888799", "text": "benchmarks.google_message4.BenchmarkMessage4.Message7320OrBuilder getField7334OrBuilder();", "title": "" } ]
21196924d9051ea00d236bd972ccc129
repeated .dzhyun.Indicate Indicates = 1;
[ { "docid": "79a00663b830a27ca0d47df30b6e8713", "score": "0.0", "text": "java.util.List<? extends com.dzhyun.proto.DzhIndicate.IndicateOrBuilder> \n getIndicatesOrBuilderList();", "title": "" } ]
[ { "docid": "234880447333e443ded1f1ed184bd0ac", "score": "0.57219154", "text": "public void mo2583d(boolean z) {\n }", "title": "" }, { "docid": "cb45b15e96e3ab168cc94a7a852b73cd", "score": "0.56137687", "text": "com.dzhyun.proto.DzhIndicate.Indicate getIndicates(int index);", "title": "" }, { "docid": "d91f7c14e5e4731874f8bd276badd93e", "score": "0.55966866", "text": "public void mo2581c(boolean z) {\n }", "title": "" }, { "docid": "43d8c75f851ea98ed3670fdca50dc743", "score": "0.5511177", "text": "void addDummy() {\r\n addDummyByte = true;\r\n }", "title": "" }, { "docid": "c3ae18922fe5094eae7a2703a15c86f7", "score": "0.5506441", "text": "void mo5820a(C1878d dVar, long j, boolean z);", "title": "" }, { "docid": "e1952115bd16762a6b0d78300be7092b", "score": "0.54738355", "text": "void mo7019a(C1627c cVar, int i);", "title": "" }, { "docid": "44e60a0a31c4ff2b3874420e2c5d45ab", "score": "0.54723746", "text": "void mo19682a(C7605i iVar);", "title": "" }, { "docid": "45164bc41043d5d7547de72bb958f22d", "score": "0.54440475", "text": "public void H(boolean z) {\n this.AB = z;\n }", "title": "" }, { "docid": "287933e84cbfb1d1c9b575bc9e58370c", "score": "0.53838325", "text": "public void mo2284d() {\n }", "title": "" }, { "docid": "10631c6f40c5ad9852f5433d5f15dc81", "score": "0.5366596", "text": "public void mo3176i() {\n }", "title": "" }, { "docid": "a2e6a11bc5db4c3d4842e2c18a76dac6", "score": "0.5361093", "text": "public void mo1344a() {\n }", "title": "" }, { "docid": "926ff8445a14a31b740e925b7abce122", "score": "0.5333921", "text": "void mo82079a(boolean z);", "title": "" }, { "docid": "64c2ca6af6b0053c61d47a1918b92753", "score": "0.5314802", "text": "void mo35717a(boolean z, int i, C3580e eVar, int i2) throws IOException;", "title": "" }, { "docid": "88ecb62c7a1a93131fb72fdf892b6e96", "score": "0.531339", "text": "public void mo18969b() {\n }", "title": "" }, { "docid": "9d101a7eb1df6841e36e913b0095e2c2", "score": "0.53099674", "text": "public void mo3163b() {\n }", "title": "" }, { "docid": "6cf98e8606ed4b81847cef2503be2d2b", "score": "0.5302411", "text": "public void mo13368a() {\n }", "title": "" }, { "docid": "dee0cd255b5e5e81fdc6f72c266afe8c", "score": "0.53000075", "text": "void mo6756a(C0394bw bwVar);", "title": "" }, { "docid": "68a5dfb2aafc372def8fd19253b385fe", "score": "0.5291637", "text": "public void setIndAquis(byte value) {\n this.indAquis = value;\n }", "title": "" }, { "docid": "21d303feecd75e6275175757ff1982db", "score": "0.52884525", "text": "public final void mo4724pt(boolean z) {\n this.ycw = z;\n }", "title": "" }, { "docid": "a99817213d9c1d91cceb5826d89fa998", "score": "0.52874297", "text": "public void mo6983a(boolean z) {\n this.f4400o = z;\n }", "title": "" }, { "docid": "6e516d7c552dcd925edbe971705ed31a", "score": "0.52870023", "text": "public void mo41019a() {\n }", "title": "" }, { "docid": "f90820f1bfb498d734aefcf8d8bbac5b", "score": "0.5272318", "text": "void mo46639a(C28575a c28575a, boolean z);", "title": "" }, { "docid": "54ccc9c6d89a84da869ad5da77095133", "score": "0.52594674", "text": "private int getSimDataType() {\r\n\treturn fieldSimDataType;\r\n}", "title": "" }, { "docid": "7f33b94e05ba0673272b5be32d45ec84", "score": "0.52474445", "text": "public void mo1565c(ag agVar) {\n }", "title": "" }, { "docid": "b7283a9478e37da5b98238ac090cb818", "score": "0.52474207", "text": "void mo84893a(boolean z);", "title": "" }, { "docid": "3d928212a67c9f6daf25a7b1a70586e2", "score": "0.5242875", "text": "void mo48401a(TXSNALPacket tXSNALPacket, int i);", "title": "" }, { "docid": "aaef3664cebe8c2fd9024e94d7516c01", "score": "0.5232579", "text": "void mo7024a(C1627c cVar);", "title": "" }, { "docid": "214b23c4766b0869d637bb8f13cfd06f", "score": "0.5231921", "text": "public void mo63a() {\n }", "title": "" }, { "docid": "c537b3142c9c231c922a6e76c92b40d7", "score": "0.52160186", "text": "public void setUnknownNu( int n ) { unknownNu = n; }", "title": "" }, { "docid": "e02af96af510ec3642c2e83fd70c5353", "score": "0.52155924", "text": "public abstract void mo2941F0(boolean z);", "title": "" }, { "docid": "ce993065683d167d116790609d9c0f54", "score": "0.5212952", "text": "C1687ah mo7297a(C2778au auVar);", "title": "" }, { "docid": "2e5672491adddbeee6b449eec9b3f944", "score": "0.5203164", "text": "C7605i mo19679a(C7600e eVar, boolean[] zArr);", "title": "" }, { "docid": "1e341c56abbec257a6a0b64d10ef1ae2", "score": "0.5199328", "text": "void mo7025a(C1627c cVar, int i, int i2);", "title": "" }, { "docid": "c69d3be1dca48685031d2f2198cb4c5e", "score": "0.51932865", "text": "void mo7020a(C1627c cVar);", "title": "" }, { "docid": "6ba6f3cf3cb497d78cda5d0f146b110d", "score": "0.51915437", "text": "public void setIndComerc(byte value) {\n this.indComerc = value;\n }", "title": "" }, { "docid": "611b72db0f4e306aea73469edf598f96", "score": "0.5190668", "text": "void mo3173d(C0450h hVar);", "title": "" }, { "docid": "bf1b851ac7b457b49de3ff76febdf4a1", "score": "0.5182476", "text": "public void alg_INIT(){\nQO.value=false;\nCO.value=CI.value;}", "title": "" }, { "docid": "437695746ef413e2158b7de8927bc0f3", "score": "0.51810837", "text": "public interface C0983h {\n}", "title": "" }, { "docid": "64484444595df0ce72490d0072ef3903", "score": "0.5177621", "text": "public void mo1853d() {\n }", "title": "" }, { "docid": "5bbd0d9ec32843597b0ed3b538436fbf", "score": "0.51771545", "text": "public final void mo11116c() {\n }", "title": "" }, { "docid": "b7d413c7d8d3c873b707308b2e87d21b", "score": "0.5147028", "text": "public void mo8444b(boolean z) {\n this.f6245e = z;\n }", "title": "" }, { "docid": "038fb222bd1b32c1d9d567eba859dab8", "score": "0.5146992", "text": "boolean mo7078a(C15541f c15541f, C7616ad c7616ad, boolean z, int i);", "title": "" }, { "docid": "bdeb3803016ade8985079f7ff6d74c84", "score": "0.5146643", "text": "void mo36581a(C1207m c1207m, boolean z);", "title": "" }, { "docid": "d9e48f08d564ee68f52ac09ae2921f3d", "score": "0.5137628", "text": "public void setCODE_POSTAL_ELEVE(int aCODE_POSTAL_ELEVE){\n\tthis.CODE_POSTAL_ELEVE=aCODE_POSTAL_ELEVE;\r\n}", "title": "" }, { "docid": "ac92c76f02ee58e54007baf2f1134f3f", "score": "0.51353115", "text": "void mo19681a(C7601a aVar);", "title": "" }, { "docid": "362b0dcb9c4744f15b7bed77c1bce015", "score": "0.51266736", "text": "public void setUnknownXi( Integer n ) { unknownXi = n; }", "title": "" }, { "docid": "44705ea1a474b2420f44e524b39f328c", "score": "0.5126579", "text": "public void setP_RepartoSinHH(boolean param){\r\n \r\n // setting primitive attribute tracker to true\r\n localP_RepartoSinHHTracker =\r\n true;\r\n \r\n this.localP_RepartoSinHH=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "9cab65e796abf20b670b9c0c6af9f15f", "score": "0.51260626", "text": "@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\r\n @VTID(23)\r\n short oneD();", "title": "" }, { "docid": "13c7f80141fc8801857b67d3071f70d7", "score": "0.5123859", "text": "void mo8382a(C2240d dVar);", "title": "" }, { "docid": "40efb207ffd5336ee5262eb6a70a8fc9", "score": "0.51166", "text": "void mo84a(@C0193h0 String str, @C0193h0 C0019d dVar);", "title": "" }, { "docid": "a01b909de10c1a82951e29df268c8e6e", "score": "0.51140314", "text": "void mo7023a(C1627c cVar);", "title": "" }, { "docid": "cd899093996db97880b811cc871b093b", "score": "0.51124555", "text": "public final void mo16524b(boolean z) {\n this.f12317U = z;\n }", "title": "" }, { "docid": "7d714a926a1c957a8fdfce7a0c392540", "score": "0.51119095", "text": "public void setIndIncid(byte value) {\n this.indIncid = value;\n }", "title": "" }, { "docid": "69078ef27ff09a144ff31af5564754b2", "score": "0.5109242", "text": "interface C7601a {\n /* renamed from: a */\n C7605i mo19679a(C7600e eVar, boolean[] zArr);\n\n /* renamed from: a */\n void mo19681a(C7601a aVar);\n\n /* renamed from: a */\n void mo19682a(C7605i iVar);\n\n void clear();\n\n C7605i getKey();\n }", "title": "" }, { "docid": "6243a39e426b1a5a58df94fbe74f5aef", "score": "0.51086235", "text": "public void asP() {\n m18336a(this.dky);\n this.dkz = true;\n }", "title": "" }, { "docid": "9a93688254313d11c722482419463feb", "score": "0.5106387", "text": "void mo56060a(C45398i iVar);", "title": "" }, { "docid": "621fbc2d18c94f8a3d8f8b440e8c532e", "score": "0.5098356", "text": "public void setUnknownMu( int n ) { unknownMu = n; }", "title": "" }, { "docid": "7c2564da6a8fc4f3b19cea74fb5135ab", "score": "0.50977427", "text": "C4561q5 mo15411g();", "title": "" }, { "docid": "4ec7872eb9c94e10a9554087a6bc56a0", "score": "0.5094014", "text": "public void setLePhiHoSo(int LePhiHoSo);", "title": "" }, { "docid": "58b12f5ed837a6b2086f9a57a9519ee0", "score": "0.50938493", "text": "public void mo1567b(ag agVar) {\n }", "title": "" }, { "docid": "48d78b89c814b7834b2adb4454d05472", "score": "0.50873685", "text": "public final void mo6890fL(boolean z) {\n AppMethodBeat.m2504i(88980);\n if (TextUtils.isEmpty(this.kaS.aZW().code) || !z || this.kaS.aZW().vSb == 0 || this.kaS.aZV().vUE) {\n this.ksD.setVisibility(8);\n this.ksC.setVisibility(8);\n AppMethodBeat.m2505o(88980);\n return;\n }\n this.ksD.setVisibility(0);\n this.ksC.setVisibility(0);\n AppMethodBeat.m2505o(88980);\n }", "title": "" }, { "docid": "221bc24fe1a7551dfd2709094c44f4ec", "score": "0.5085695", "text": "private void dummyData(){\n }", "title": "" }, { "docid": "b9f6221c285226d7b6931623da583f2e", "score": "0.5083361", "text": "private synchronized void m49643a(boolean z) {\n this.f36088w = z;\n }", "title": "" }, { "docid": "2de394433008bb933e60c45bc7e170a5", "score": "0.50742114", "text": "public void mo672d(boolean z) {\n }", "title": "" }, { "docid": "97fe42c9ccf19d5b75120c80221a9a3a", "score": "0.50733167", "text": "public void setIdZona(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localIdZonaTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localIdZona=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "bdd2597bd15700502cd82d04f27aacff", "score": "0.5070607", "text": "public final T b() {\n block14 : {\n if (!this.f) {\n if (this.b == null) throw new NullPointerException(\"flagName must not be null\");\n }\n if (this.d >= (var1_1 = q3.i.get())) return this.e;\n var28_2 = this;\n // MONITORENTER : var28_2\n if (this.d >= var1_1) {\n // MONITOREXIT : var28_2\n return this.e;\n }\n var3_3 = q3.h;\n if (var3_3 == null) throw new IllegalStateException(\"Must call PhenotypeFlag.init() first\");\n var5_4 = d3.a((Context)((v2)var3_3).a).b(\"gms:phenotype:phenotype_flag:debug_bypass_phenotype\");\n if (var5_4 == null || !t2.c.matcher((CharSequence)var5_4).matches()) break block14;\n if (Log.isLoggable((String)\"PhenotypeFlag\", (int)3)) {\n var25_5 = String.valueOf((Object)this.a());\n var26_6 = var25_5.length() != 0 ? \"Bypass reading Phenotype values for flag: \".concat(var25_5) : new String(\"Bypass reading Phenotype values for flag: \");\n Log.d((String)\"PhenotypeFlag\", (String)var26_6);\n }\n ** GOTO lbl-1000\n }\n if (this.a.b != null) {\n var8_7 /* !! */ = f3.a(((v2)var3_3).a, this.a.b) != false ? y2.a((ContentResolver)((v2)var3_3).a.getContentResolver(), (Uri)this.a.b) : null;\n }\n var6_8 = ((v2)var3_3).a;\n var8_7 /* !! */ = r3.a((Context)var6_8, null);\n if (var8_7 /* !! */ != null && (var9_9 = var8_7 /* !! */ .a(this.a())) != null) {\n var10_10 = this.a(var9_9);\n } else lbl-1000: // 2 sources:\n {\n var10_10 = null;\n }\n if (var10_10 == null && (var10_10 = (var14_12 = (var12_11 = d3.a((Context)((v2)var3_3).a)).b(this.b)) != null ? this.a(var14_12) : null) == null) {\n var10_10 = this.c;\n }\n if ((var15_13 = (v3)((v2)var3_3).b.a()).a()) {\n var16_14 = (e3)var15_13.b();\n var17_15 = this.a.b;\n var18_16 = this.b;\n if (var16_14 == null) throw null;\n var19_17 = null;\n if (var17_15 != null) {\n var20_18 = var17_15.toString();\n var21_19 = (Map)var16_14.a.get((Object)var20_18);\n if (var21_19 == null) {\n var19_17 = null;\n } else {\n var22_20 = String.valueOf((Object)var18_16);\n var23_21 = var22_20.length() != 0 ? \"\".concat(var22_20) : new String(\"\");\n var19_17 = (String)var21_19.get((Object)var23_21);\n }\n }\n var10_10 = var19_17 == null ? this.c : this.a(var19_17);\n }\n this.e = var10_10;\n this.d = var1_1;\n return this.e;\n }\n}", "title": "" }, { "docid": "b08d3c5b8a31c690a724c8b88b2c6fa3", "score": "0.50671965", "text": "public final void mo24351fC(boolean z) {\n }", "title": "" }, { "docid": "830977100d2fdf90560159bd53dca3d3", "score": "0.5058571", "text": "void mo18067h();", "title": "" }, { "docid": "fad2de9562b6dd0a4d1c6688b483b08a", "score": "0.5055081", "text": "C0450h mo3159a(C0444e eVar, boolean[] zArr);", "title": "" }, { "docid": "8479207f50f0597810f65deb66809492", "score": "0.50522584", "text": "public void mo20355a(boolean z) {\n this.f10146u = z;\n }", "title": "" }, { "docid": "1d96c3893ad67b850022147260388a37", "score": "0.5051932", "text": "public interface Header1 extends IDataStruct {\n \n @Data(size=2)\n IString aAplCanl() ;\n \n @Data(size=12, signed=true, compression=COMP3)\n ILong xIdMovCriv() ;\n \n @Data(size=3)\n IString cPaisIsaOeAcrl() ;\n \n @Data(size=3)\n IString cMnemEgcAcrl() ;\n \n @Data(size=4, signed=true, compression=COMP3)\n IInt cOeEgcAcrl() ;\n \n @Data(size=4)\n IString cTermAcrl() ;\n \n @Data(size=3)\n IString cPaisIsaOeAlcl() ;\n \n @Data(size=3)\n IString cMnemEgcAlcl() ;\n \n @Data(size=4, signed=true, compression=COMP3)\n IInt cOeEgcAlcl() ;\n \n @Data(size=4)\n IString cTermAlcl() ;\n \n @Data(size=1)\n IString iMsgLong() ;\n @Data\n @Condition(\"S\")\n ICondition iMsgSup1300Sim() ;\n @Data\n @Condition(\"N\")\n ICondition iMsgSup1300Nao() ;\n \n \n }", "title": "" }, { "docid": "617997395ed04d60c3848d3261f67272", "score": "0.504613", "text": "public static void _08 () {\n }", "title": "" }, { "docid": "9c314fbecc1b99df6e03427323fcfff5", "score": "0.5036032", "text": "void mo1641a(boolean z);", "title": "" }, { "docid": "1cf9431b1fd76f033d415135894775df", "score": "0.5035082", "text": "public final void mo6646di(boolean z) {\n AppMethodBeat.m2504i(43158);\n C4990ab.m7417i(\"MicroMsg.MallFunctionSettingsUI\", \"click switch: %s, id: %s\", Boolean.valueOf(z), this.omr.wMe);\n if (z) {\n this.omr.jBT = 0;\n } else {\n this.omr.jBT = 1;\n }\n LinkedList linkedList = new LinkedList();\n linkedList.add(this.omr);\n MallFunctionSettingsUI mallFunctionSettingsUI = MallFunctionSettingsUI.this;\n C4990ab.m7416i(\"MicroMsg.MallFunctionSettingsUI\", \"do batch function operate\");\n C41294a c41294a = new C41294a(linkedList, mallFunctionSettingsUI.cQG);\n c41294a.acy().mo60487b(new C284702(c41294a));\n AppMethodBeat.m2505o(43158);\n }", "title": "" }, { "docid": "a11a4e74965fd3c6f63278ae45aa33f9", "score": "0.5034886", "text": "public final void mo24092wO() {\n }", "title": "" }, { "docid": "b679e3780d9cb4d7a799f885e2452610", "score": "0.5032128", "text": "public final void mo42437lV() {\n this.ayw = -1;\n }", "title": "" }, { "docid": "7c2f86cb55573e600e0810bc8a6c67e3", "score": "0.50316113", "text": "void mo24303a(C7907g gVar);", "title": "" }, { "docid": "be88fb5c464907180cc2e40e5b82dd32", "score": "0.5020609", "text": "public void mo56013a(boolean z) {\n this.f55949b = false;\n this.f55950c = z;\n }", "title": "" }, { "docid": "500aee70b971fb1429f30baabc586751", "score": "0.50199884", "text": "public interface C0516d {\n}", "title": "" }, { "docid": "0e0234cfbded78ae6a915c1bc4063666", "score": "0.5015202", "text": "public abstract void mo72563a(boolean z);", "title": "" }, { "docid": "4074c7fc8bb0e8e8ef58243f3ac63988", "score": "0.5010908", "text": "com.dzhyun.proto.DzhIndicate.IndiType getIndiType();", "title": "" }, { "docid": "a443397bc9ac24e2abd0080fd019ff18", "score": "0.5009135", "text": "public void mo11452a(boolean z) {\n }", "title": "" }, { "docid": "f9f813626e8959117c98e9e2df3ee2cb", "score": "0.5003709", "text": "public void mo3175h() {\n }", "title": "" }, { "docid": "e1c3bdddd092649b92a074115a556e98", "score": "0.49988377", "text": "public void mo65b() {\n }", "title": "" }, { "docid": "62de2050365871c20cb5dc1a8edd8103", "score": "0.49983183", "text": "public void setFlag(int flag){\n\textentLen.setFlag(flag);\n }", "title": "" }, { "docid": "a1122a117b220614779aaa23ce42a3c0", "score": "0.49958", "text": "public void mo2598a(boolean z) {\n if (z && this.j != null) {\n try {\n BDLocation bDLocation;\n try {\n bDLocation = new BDLocation(this.j);\n } catch (Exception e) {\n bDLocation = new BDLocation();\n bDLocation.setLocType(63);\n }\n if (bDLocation != null) {\n if (bDLocation.getLocType() == 161) {\n bDLocation.setCoorType(this.f2346b.f2363n.coorType);\n this.f2346b.f2364o.onReceiveLocation(bDLocation);\n }\n }\n } catch (Exception e2) {\n }\n }\n if (this.k != null) {\n this.k.clear();\n }\n }", "title": "" }, { "docid": "ff7ce5707146ad8f86b310ef18a74dc4", "score": "0.49948013", "text": "@Override\n\tpublic void insGoNo() {\n\t\t\n\t}", "title": "" }, { "docid": "da15ef4582e6806c27f26f90cfd20a3f", "score": "0.49946308", "text": "public void mo85558a(boolean z) {\n this.f61771b = z;\n }", "title": "" }, { "docid": "7b31fb5d7ef9c4d9879073d03fc35e3f", "score": "0.49934745", "text": "void mo81737b();", "title": "" }, { "docid": "1eb850cd140029c3284631b6ea4a3a92", "score": "0.49920335", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "8fc3f536354fa1886674af90db6c1ddf", "score": "0.4991444", "text": "public final void mo13174h0(boolean z) {\n Parcel g = mo13161g();\n int i = C2692v.f4586a;\n g.writeInt(z ? 1 : 0);\n mo13162k(12, g);\n }", "title": "" }, { "docid": "a9136801d345f8107f76893143eaf2a7", "score": "0.49904233", "text": "public final void mo16598a(boolean z) {\n this.f12415V = z;\n mo16601c();\n }", "title": "" }, { "docid": "072a7f77b35866e4349f7b946b84fb12", "score": "0.49880773", "text": "void mo40361a(boolean z);", "title": "" }, { "docid": "b694ace623adc60f078ee1b587783f62", "score": "0.49878246", "text": "public void mo43360f() {\n }", "title": "" }, { "docid": "632e9d01ff66c5d9c0f0302ce05124c6", "score": "0.49862757", "text": "void mo7244c();", "title": "" }, { "docid": "65d28b1dbec598becfe2a88ce8bd1304", "score": "0.49851483", "text": "public abstract void mo4057a(C0397b bVar);", "title": "" }, { "docid": "14afbf28a55b6ef9709cb51583f8371d", "score": "0.49850446", "text": "void mo30214a(C3153hs hsVar);", "title": "" }, { "docid": "d8211552b23c886f56d98e4efc7a55fa", "score": "0.49840173", "text": "private void OI() {\n\t\t\n\t}", "title": "" }, { "docid": "78e47897d92d59ba53e8927cf770e421", "score": "0.49831703", "text": "void mo56121h(boolean z);", "title": "" }, { "docid": "78370b5cacc1d92f124abf1223b73496", "score": "0.49799374", "text": "void mo81738c();", "title": "" }, { "docid": "5f195016d119ee56105d5441d1997132", "score": "0.49777582", "text": "void mo2770a(boolean z);", "title": "" } ]
805569977521c6425eb314f0896ef380
Make sure data in the table cannot be edited by default. Descendants may change this
[ { "docid": "8bbeceacd9f32ccd34520202f8b34d64", "score": "0.562349", "text": "@Override\n public boolean isCellEditable(int row, int column)\n {\n return false;\n }", "title": "" } ]
[ { "docid": "8affd48a620d005b19962355320ce363", "score": "0.6337301", "text": "protected void beforeAnySet() throws Exception {\n\tif ( DO.isReadOnly() )\n\t throw new DataObjectException( DO + \" is read-only.\" ); \n }", "title": "" }, { "docid": "d6871ac31f1543082e8a1ab357be3c5d", "score": "0.628816", "text": "@Override\n public void validateDataOnEntry()\n throws DataModelException {\n }", "title": "" }, { "docid": "8a66664c67a086b1629c4a8d56bf190f", "score": "0.6166062", "text": "@Override\n public boolean getEditable() {\n return false;\n }", "title": "" }, { "docid": "a4959bf981111254c7762908daffb7cd", "score": "0.61266994", "text": "private void conmuteFields() {\r\n\t\ttxMorningPrice.setEditable(!txMorningPrice.isEditable());\r\n\t\ttxSynopsis.setEditable(!txSynopsis.isEditable());\r\n\t\ttxTitle.setEditable(!txTitle.isEditable());\r\n\t\ttxNightPrice.setEditable(!txTitle.isEditable());\r\n\t\ttxDailyPrice.setEditable(!txTitle.isEditable());\r\n\t\ttxGenre.setEditable(!txGenre.isEditable());\r\n\t\ttxImagen.setEditable(!txImagen.isEditable());\r\n\t}", "title": "" }, { "docid": "f336f6624ef6f8e98391c3f8d469bf0c", "score": "0.603172", "text": "protected boolean getDefaultEditable() {\r\n return false;\r\n }", "title": "" }, { "docid": "170b44a22e3cc169859b10f7d8ab8634", "score": "0.59592927", "text": "private void check( ) throws Exception {\n\t\tgetName( );\n\t\tgetTable( );\n\t\ttable.getQuery( );\n\t\ttable.getPKcol( );\n\t\tString sUptadeTable = table.getUpdateTableName( );\n\t\tgetColumns( );\n\t\tfor( Column col : columns ) {\n\t\t\tcol.getName( );\n\t\t\tcol.getDBName( );\n\t\t\tcol.getType( );\n\t\t\tcol.getStyle( );\n\t\t\tif( col.isUpdate( ) && ( sUptadeTable == null || \"\".equals( sUptadeTable ) ) ) {\n\t\t\t\tLOG.warn( \"Updatable column \" + col.getName( ) + \" and no update table\" );\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "90e110b80afe1433d3027c2df39d2a15", "score": "0.5946308", "text": "public void ignoreAll() {\n \t\tfor (Table table: dataModel.getTables()) {\n \t\t\tfor (Association association: table.associations) {\n \t\t\t\tif (!association.isInsertDestinationBeforeSource()) {\n \t\t\t\t\tif (association.getName() != null && !\"\".equals(association.getName().trim())) {\n \t\t\t\t\t\tdataModel.getRestrictionModel().addRestriction(table, association, \"false\", \"GUI\", true);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\tif (!needsSave) {\n \t\t\tneedsSave = true;\n \t\t\textractionModelFrame.updateTitle(needsSave);\n \t\t}\n \t\ttree.repaint();\n \t\trestrictionsTable.setModel(restrictionTableModel());\n \t\tinitRestrictionEditor(currentAssociation, currentNode);\n \t\tgraphView.resetExpandedState();\n \t}", "title": "" }, { "docid": "138a09f6c36cbe2d9942e13b7224da0c", "score": "0.5904545", "text": "protected void validateEntity() {\r\n super.validateEntity();\r\n }", "title": "" }, { "docid": "0ba16d636b859f1a39cc8cc2bcd6e68e", "score": "0.5880899", "text": "void disableEdit() {\r\n\t\tedit = false;\r\n\t\tclearFields();\r\n\t}", "title": "" }, { "docid": "b850fee31ed0cf9c46d30b441d2519d9", "score": "0.5875468", "text": "public boolean canChangeData() {\n return true;\n }", "title": "" }, { "docid": "749bb16cd1ed4a5dd8553d821601ee98", "score": "0.5867912", "text": "public boolean isEditable() {\n\treturn (!isIndexed()) && (!isSummed());\n }", "title": "" }, { "docid": "b91c6f6f7728f9098f02598fd9e70593", "score": "0.5831154", "text": "private void setFieldsUnEditable() {\n //disable this fields for entry\n tcashpaid.setEditable(false);\n tcashpaid.setBackground(Color.LIGHT_GRAY);\n tcost.setEditable(false);\n tcost.setBackground(Color.LIGHT_GRAY);\n tquantity.setEditable(false);\n tquantity.setBackground(Color.LIGHT_GRAY);\n\n //setting values to fields\n tname.setText(null);\n targmant.setText(null);\n tprescription.setText(null);\n tcost.setText(null);\n treport.setText(null);\n tquantity.setText(null);\n ttotalcost.setText(null);\n tcashpaid.setText(null);\n tchange.setText(null);\n }", "title": "" }, { "docid": "d279b6bca11009450d0882ebd289616d", "score": "0.5827986", "text": "@Override\n\tpublic boolean isInsertable() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ea86e4336ae1a145796642b0ea872d50", "score": "0.5827509", "text": "public void forceEditableForTesting() {\n mForceEditableForTesting = true;\n }", "title": "" }, { "docid": "aa0c63f88ece781c99568370f824d6ac", "score": "0.5799176", "text": "@Override \n protected boolean isEntityUpdateable() {\n return true;\n }", "title": "" }, { "docid": "82b0c67ef144780af6688c4512b96398", "score": "0.57952374", "text": "public boolean isReadOnly() throws SQLException {\n/* 6708 */ return false;\n/* */ }", "title": "" }, { "docid": "b693b0116c15386c6754c1f7c37630f2", "score": "0.57782286", "text": "public boolean isEditing() { return false; }", "title": "" }, { "docid": "d2589c54e229c9fb2b32fa97c6f32424", "score": "0.5747566", "text": "@Override\n \tpublic boolean isAlwaysDirtyChecked() {\n \t\treturn true; \n \t}", "title": "" }, { "docid": "9ebbe021a9924d8f7c3fb8f755de146f", "score": "0.5735664", "text": "@Override\r\n\tpublic boolean isDirty() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "9ebbe021a9924d8f7c3fb8f755de146f", "score": "0.5735664", "text": "@Override\r\n\tpublic boolean isDirty() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "0138a593eba3c9368ba8d194f01d594e", "score": "0.5730972", "text": "@Override\n public void validateDataOnEntry()\n throws DataModelException {\n // TODO auto-generated method stub, to be implemented by parser\n }", "title": "" }, { "docid": "0138a593eba3c9368ba8d194f01d594e", "score": "0.5730972", "text": "@Override\n public void validateDataOnEntry()\n throws DataModelException {\n // TODO auto-generated method stub, to be implemented by parser\n }", "title": "" }, { "docid": "e3a74168c85466e1accd5a8ee608aad7", "score": "0.5724028", "text": "@Override\n public boolean hasPrimaryKey() {\n return false;\n }", "title": "" }, { "docid": "e19b3feaab5ad9b44de02ec78b6803fa", "score": "0.5722992", "text": "void updateOwnable() throws SQLException;", "title": "" }, { "docid": "78059419b148e6fd8ddd06ae47bd1686", "score": "0.5714533", "text": "@Override\n public void adjustData(Object data)\n {\n throw new RuntimeException(\"UserDependentSubsetModel: Call to adjustData() which is not allowed.\\n\");\n }", "title": "" }, { "docid": "a8ebb32d0e2437c8accd05c12b576e1a", "score": "0.5679459", "text": "public boolean dataDefinitionIgnoredInTransactions() throws SQLException {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ca555f2b5cc39cabfad65627d34ca6df", "score": "0.56597805", "text": "@Override\n\tpublic boolean isDirty() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7ffc804f5744c4d08ac1da1557820379", "score": "0.5654573", "text": "@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }", "title": "" }, { "docid": "7ffc804f5744c4d08ac1da1557820379", "score": "0.5654573", "text": "@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }", "title": "" }, { "docid": "7ffc804f5744c4d08ac1da1557820379", "score": "0.5654573", "text": "@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }", "title": "" }, { "docid": "7ffc804f5744c4d08ac1da1557820379", "score": "0.5654573", "text": "@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }", "title": "" }, { "docid": "4732a31278200eb0db8a85de4bdecf31", "score": "0.5652933", "text": "@Override\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return false;\n }", "title": "" }, { "docid": "9d53e338992a22142d9dc9bba2c43043", "score": "0.56518346", "text": "public boolean dataDefinitionIgnoredInTransactions() throws SQLException {\n/* 932 */ return false;\n/* */ }", "title": "" }, { "docid": "dbc5c836ec03adeb0ae89fbc8d29cdc8", "score": "0.5642345", "text": "public void stopChildrenCellEditing() {\r\n\r\n\t\tchildrenTable.getTableEditor().stopEditingCell();\r\n\t}", "title": "" }, { "docid": "f01b4e532269f48e2e69029821177625", "score": "0.56377846", "text": "@Override\r\n public boolean updateData() {\n return false;\r\n }", "title": "" }, { "docid": "9bf7cfbf0f5707f1b571205de2abebaa", "score": "0.56370676", "text": "@Test(expectedExceptions = BridgeSynapseNonRetryableException.class, expectedExceptionsMessageRegExp =\n \"Table has deleted and/or modified columns\")\n public void rejectDelete() throws Exception {\n List<ColumnModel> newColumnList = ImmutableList.of(makeColumn(\"bar\", null));\n synapseHelper.safeUpdateTable(SYNAPSE_TABLE_ID, newColumnList, false);\n }", "title": "" }, { "docid": "66e873ec4e0423abaaae259837661205", "score": "0.56342626", "text": "@Override\n\tint edit() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "8b6a55ae43e0260225449badd381f104", "score": "0.56234145", "text": "@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }", "title": "" }, { "docid": "d98112200bae9c50b461714f4634cc58", "score": "0.5621287", "text": "@Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }", "title": "" }, { "docid": "46427849c7e4e8d63cb2261503f83fdd", "score": "0.56161344", "text": "@Override\r\n\t\t public boolean isCellEditable(int row, int column)\r\n\t\t {\r\n\t\t return false;\r\n\t\t }", "title": "" }, { "docid": "9bc36ecedffc18059413274d3c4887bb", "score": "0.56159365", "text": "@Override\n\t\t\tpublic boolean readOnly()\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "eb22b5aa7d0b0b15dbd72b18dd4c3c13", "score": "0.5612527", "text": "private void tableNameChanged()\r\n {\n \r\n GetLastValue();\r\n if (askedChangeList ) return;\r\n if(! btnCloseActionPerformed()) // cancle the selection change \r\n {\r\n askedChangeList = true;\r\n treeCodeTable.setSelectionPath(selectedNode);\r\n askedChangeList = false;\r\n return;\r\n }\r\n \r\n\r\n saveRequired = false;\r\n perSelectedNode = selectedNode;\r\n selectedNode = treeCodeTable.getSelectionPath();\r\n tableStructureBean = tableStructureBean_temp;\r\n refreshTable();\r\n\r\n }", "title": "" }, { "docid": "1cd27bf469ba0b9650120c4d2b29799e", "score": "0.560586", "text": "@Override\r\n public boolean isCellEditable(int row, int column) {\r\n return false;\r\n }", "title": "" }, { "docid": "7d5ab2b4af5babe3e94500923bd3ba34", "score": "0.5593527", "text": "private boolean tableDataValid()\r\n { \r\n // if there are any form level validations that should go there\r\n int rowTotal = tblCodeTable.getRowCount();\r\n int colTotal = tblCodeTable.getColumnCount();\r\n for (int rowIndex = 0; rowIndex < rowTotal ; rowIndex++)\r\n {\r\n for (int colIndex = 0; colIndex < colTotal; colIndex++)\r\n {\r\n TableColumn column = codeTableColumnModel.getColumn(colIndex) ;\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n if (columnBean.getColumnEditable()\r\n && !columnBean.getColumnCanBeNull())\r\n {\r\n if ( tblCodeTable.getValueAt(rowIndex,colIndex) != null)\r\n {\r\n if (tblCodeTable.getValueAt(rowIndex,colIndex).equals(\"\")\r\n || tblCodeTable.getValueAt(rowIndex,colIndex).toString().trim().equals(\"\") )\r\n { \r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblCodeTable.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n \r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblCodeTable.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n }\r\n \r\n } \r\n return true ;\r\n }", "title": "" }, { "docid": "47cc8ffbeeddd052d5ca77c9dc7e1b09", "score": "0.5588392", "text": "public void updateEditable() {\n final MetaProperty property = boundedMetaProperty();\n if (property != null) {\n SwingUtilitiesEx.invokeLater(new Runnable() {\n @Override\n public void run() {\n entityGridInspector.setEnabled(property.isEditable());\n }\n });\n }\n }", "title": "" }, { "docid": "bafc364d11344a4d3b07f098d5572c12", "score": "0.55845755", "text": "@Override\r\n\tpublic boolean validateFields() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f150daef7634b83094349864cac90b7d", "score": "0.5563512", "text": "@Override\n protected boolean hasVersionNoValue(Entity entity) {\n return false;\n }", "title": "" }, { "docid": "a9c91e914a24b4de4c1ffc7f6fee6545", "score": "0.5563194", "text": "@Override\r\n protected boolean hasVersionNoValue(Entity entity) {\r\n return false;\r\n }", "title": "" }, { "docid": "5283134ebe673beabc6d969d5d2bf86e", "score": "0.55607986", "text": "@Override\n public boolean isCellEditable(int row, int column) {\n //all cells false\n return false;\n }", "title": "" }, { "docid": "c29788c8a38fa9f3454f440e8a05a725", "score": "0.5553888", "text": "public void tableChanged(TableModelEvent e) {\n if (editable){\n for (int i = 0; i < StockPro.getRowCount(); i++){\n if (StockPro.getValueAt(i, 4) == null || StockPro.getValueAt(i, 4).equals(\"\")){\n return;\n }\n }\n editable = false;\n modelo.setRowCount(modelo.getRowCount() + 1);\n editable = true;\n }\n }", "title": "" }, { "docid": "296ea7c7d02dab31d565c12cfac40228", "score": "0.55522925", "text": "@Override\r\n\tprotected void validateUpdate() throws Exception {\n\r\n\t}", "title": "" }, { "docid": "1c1993b2c96acfe8bccf2e4d431a6a0d", "score": "0.55472577", "text": "public boolean isEditingRule()\n {\n return false;\n }", "title": "" }, { "docid": "273686c2e5884d60e08828c1c02bc6c3", "score": "0.5541133", "text": "@Override\n\tprotected boolean databaseUpdate(Connection conn) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d305c29388532b5b61116166ab824b06", "score": "0.5538641", "text": "public boolean isEditable () {\n return Utils.isOwner();\n }", "title": "" }, { "docid": "121970b185f72504fe363f13cb667faf", "score": "0.55292505", "text": "protected boolean isEditAllowed() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d6b0cff0c881e5ce70b52d09ef692980", "score": "0.5526352", "text": "@Override\r\n\tpublic boolean isEditable() {\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "35355e06eaf3c768ce5693bddfb8a3b2", "score": "0.5524876", "text": "@Override\r\n public boolean isCellEditable(int row, int col) {\r\n\r\n return false;\r\n\r\n }", "title": "" }, { "docid": "30c25560933da198b44c314e0fb69fb3", "score": "0.55235225", "text": "@Override\r\n\tpublic boolean isReadOnly() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "5dbfa4f5f6d4d3859933cde8b1e28547", "score": "0.55198234", "text": "boolean isDataEditable();", "title": "" }, { "docid": "5bafedecbf9dbe7e0ea5ae1c484bc674", "score": "0.5504938", "text": "@Override\n\tpublic boolean isCellEditable(int row, int col) {\n\t return false;\n\t}", "title": "" }, { "docid": "c83a9fbe3c5468c78477fcaf8e88642a", "score": "0.546652", "text": "public boolean isInEditMode() {\n return false;\n }", "title": "" }, { "docid": "e863ae2197906476c7769b9d0cc725ae", "score": "0.5458581", "text": "public boolean isReadOnly() throws SQLException {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "89919e72d01387c66d4ef407f1b990f8", "score": "0.5458574", "text": "@Override\n\tpublic boolean efetuar() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "99afcfa272c221a358781c8fd399102d", "score": "0.5455634", "text": "@Override\n\tpublic boolean isReadOnly() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "721fa24aa09ac6978f20e837364cef5e", "score": "0.54423416", "text": "public boolean IsDirty() {\n/* 173 */ throw new UnsupportedOperationException();\n/* */ }", "title": "" }, { "docid": "8024b065cea51272c5d97cc11dc72492", "score": "0.544227", "text": "@Override\n protected boolean isTypeNotPersistent()\n {\n return false;\n }", "title": "" }, { "docid": "8a5f9dbc012685e57fb41f396d367014", "score": "0.5427856", "text": "public boolean canBeUpdated() {\n return false;\n }", "title": "" }, { "docid": "10082e47fe78badc4557dd4df1d8d3b9", "score": "0.54278195", "text": "protected abstract boolean canUpdate(T row);", "title": "" }, { "docid": "f05a4857a0b2a355723701ebfb45761b", "score": "0.54253155", "text": "@Override\r\n\tprotected boolean beforeDelete() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "41383f3789ab7dfa23a0932c529c6f6b", "score": "0.5419469", "text": "public boolean shouldExecuteUnsafeSchemaChanges() {\n return UPDATE_SCHEMA_MODE_ALL.equals(autoUpdateSchemaMode);\n }", "title": "" }, { "docid": "ff152bc9d8368dad96abc9a112293d9f", "score": "0.54172975", "text": "public boolean isEditable() {\n\t\treturn allocationPercentual<100.0f && completePercentual<100.0f;\n\t}", "title": "" }, { "docid": "89b736c27e8f1e80c60ffc12499b36b2", "score": "0.5415813", "text": "void setUnmodified() {\n this.modified = false;\n }", "title": "" }, { "docid": "0b7d65302377a5af4765f3656ba1330a", "score": "0.54146224", "text": "@Override\n\t public boolean isCellEditable(int rowIndex, int columnIndex) {\n\t return false;\n\t }", "title": "" }, { "docid": "bfdf13b5dbe39727a208c50518b40f0e", "score": "0.5412659", "text": "private boolean isValidTable(int tid) {\n return reservationDao.findByINT_PK(tid) == null ? false : true;\n }", "title": "" }, { "docid": "4f04ea32110672d99546b06a876fc44c", "score": "0.5412299", "text": "private void bloquearCampos() {\n jForCdTipoMovimento.setEditable(false);\n jTexNomeTipoMovimento.setEditable(false);\n jTexCdContaReduzida.setEditable(false);\n jTexNomeContaReduzida.setEditable(false);\n jComSituacaoLancamento.setEditable(false);\n jComSituacaoContraPartida.setEditable(false);\n jComSituacao.setEditable(false);\n }", "title": "" }, { "docid": "68f531d08eee86b61e877cb926df4088", "score": "0.54104835", "text": "public boolean isReadOnly() {\n/* 139 */ return false;\n/* */ }", "title": "" }, { "docid": "383c1977d5bc52fe967c6340ce531a33", "score": "0.5409746", "text": "@Override\r\n\t\t\tpublic boolean isCellEditable(int row, int column) {\r\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "77bb8f1b42b42a14040c8b012b39dd19", "score": "0.5405017", "text": "@Override\n public boolean hasCompoundPrimaryKey() {\n return false;\n }", "title": "" }, { "docid": "be485a8df14894e5e9238d127c83f57d", "score": "0.5402831", "text": "@Override\n public boolean isCellEditable(Object node, int column) {\n return getColumnClass(column) == TreeTableModel.class;\n }", "title": "" }, { "docid": "04fcea7c88a3791b09e2290aebb447d4", "score": "0.540159", "text": "public abstract void rejectChanges();", "title": "" }, { "docid": "0910c0eb97b7bf4efa95af5b24857f43", "score": "0.540118", "text": "public void readOnly() {\n\t\ttry\n\t\t{\n\t\t\treadOnly(true);\n\t\t}\n\t\tcatch(Exception ex){}\n\t}", "title": "" }, { "docid": "ceb1a6b4ac2b9a262ae8e97c974e771f", "score": "0.540109", "text": "public MemoizeTable() {\n children_ = new TreeMap<>();\n isViolating_ = null;\n }", "title": "" }, { "docid": "f25b11dc93ff5b407fc1a8a5c68e4b0a", "score": "0.53972363", "text": "@Override\n\t@TransactionAttribute(TransactionAttributeType.NEVER)\n\tpublic void methodChildTrasactiontNever() {\n\n\t}", "title": "" }, { "docid": "49957f174204424114d4888e264211b4", "score": "0.53896904", "text": "public void setEditable(){\r\n patientTabletv.setEditable(true);\r\n //patient id editable\r\n patientIdColumn.setEditable(true);\r\n patientIdColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n patientIdColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<patient, String>>() {\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<patient, String> t){\r\n patient pat = ((patient) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if field is empty show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Patient ID\")\r\n .text(\"Text Fields must not be left Empty, please insert a valid Patient ID that does not already exist!\")\r\n .showError();\r\n }\r\n //if ID is a duplicate, show error\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Patient ID\")\r\n .text(\"A Patient with this ID already exists, please insert a valid Patient ID that does not already exist!\")\r\n .showError();\r\n }\r\n //else update patient ID\r\n else {\r\n String dataUpdate = \"update patient set patientID = ? where patientName = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, pat.getNameProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n pat.setIdProperty(t.getNewValue());\r\n }\r\n }\r\n\r\n });\r\n //patient Name editable\r\n patientNameColumn.setEditable(true);\r\n patientNameColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n patientNameColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<patient, String>>() {\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<patient, String> t){\r\n patient pat = ((patient) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if field is empty show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Patient Name\")\r\n .text(\"Patient Name Text Field is Empty! Text Fields must not be left empty, please insert a valid Patient Name!\")\r\n .showError();\r\n }\r\n //else update patient name\r\n else {\r\n String dataUpdate = \"update patient set patientName = ? where patientID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, pat.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n pat.setNameProperty(t.getNewValue());\r\n }\r\n }\r\n });\r\n //patient age editable\r\n patientAgeColumn.setEditable(true);\r\n patientAgeColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n patientAgeColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<patient, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<patient, String> t){\r\n patient pat = ((patient) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is empty show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Patient Age\")\r\n .text(\"Patient Age Text Field is Empty! Text Fields must not be left empty, please insert a valid Patient Age!\")\r\n .showError();\r\n }\r\n //else update patient age\r\n else {\r\n String dataUpdate = \"update patient set patientAge = ? where patientID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, pat.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n pat.setAgeProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n /*\r\n //gender editable\r\n genderColumn.setEditable(true);\r\n genderColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n genderColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<patient, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<patient, String> t){\r\n patient pat = ((patient) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n //insert error here\r\n }\r\n else {\r\n String dataUpdate = \"update patient set gender = ? where patientID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, pat.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n pat.setGenderProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n }); */\r\n //patient weight editable\r\n patientWeightColumn.setEditable(true);\r\n patientWeightColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n patientWeightColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<patient, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<patient, String> t){\r\n patient pat = ((patient) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if field is empty,show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Patient Weight\")\r\n .text(\"Patient Weight Text Field is Empty! Text Fields must not be left empty, please insert a valid Patient Weight!\")\r\n .showError();\r\n }\r\n //else update patient weight\r\n else {\r\n String dataUpdate = \"update patient set patientWeight = ? where patientID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, pat.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n pat.setWeightProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n //patient gender editable\r\n genderColumn.setEditable(true);\r\n genderColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n genderColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<patient, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<patient, String> t){\r\n patient pat = ((patient) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Patient Gender\")\r\n .text(\"Patient Gender Text Field is Empty! Text Fields must not be left empty, please insert a valid Patient Gender(M or F)!\")\r\n .showError();\r\n }\r\n //else update Gender\r\n else {\r\n String dataUpdate = \"update patient set gender = ? where patientID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, pat.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n pat.setGenderProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n\r\n patientPhoneColumn.setEditable(true);\r\n patientPhoneColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n patientPhoneColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<patient, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<patient, String> t){\r\n patient pat = ((patient) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Patient Phone Number\")\r\n .text(\"Patient Phone Number Text Field is Empty! Text Fields must not be left empty, please insert a valid Patient Phone Number!\")\r\n .showError();\r\n }\r\n //else update patient phone number\r\n else {\r\n String dataUpdate = \"update patient set patientPhone = ? where patientID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, pat.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n pat.setPhoneProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n\r\n treatmentIDColumn.setEditable(true);\r\n treatmentIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n treatmentIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<patient, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<patient, String> t){\r\n patient pat = ((patient) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Patient Treatment ID\")\r\n .text(\"Patient's Treatment ID Text Field is Empty! Text Fields must not be left empty, please insert a valid Patient Treatment ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (t.getNewValue() > number of treatment ID's){\r\n //show error saying this treatment does not exists in database\r\n }\r\n */\r\n //else update patient treatment ID\r\n else {\r\n String dataUpdate = \"update patient set treatmentID = ? where patientID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, pat.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n pat.setTreatmentIDProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n\r\n doctorIDColumn.setEditable(true);\r\n doctorIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n doctorIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<patient, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<patient, String> t){\r\n patient pat = ((patient) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Patient's Doctor ID\")\r\n .text(\"Patient's Doctor ID Text Field is Empty! Text Fields must not be left empty, please insert a valid Patient Doctor ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (t.getNewValue() > number of treatment ID's){\r\n //show error saying this treatment does not exists in database\r\n }\r\n */\r\n //else update doctor ID\r\n else {\r\n String dataUpdate = \"update patient set doctorID = ? where patientID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, pat.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n pat.setDoctorIDProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n\r\n roomIDColumn.setEditable(true);\r\n roomIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n roomIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<patient, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<patient, String> t){\r\n patient pat = ((patient) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Patient's Room ID\")\r\n .text(\"Patient's Room ID Text Field is Empty! Text Fields must not be left empty, please insert a valid Patient Room ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (t.getNewValue() > number of treatment ID's){\r\n //show error saying this treatment does not exists in database\r\n }\r\n */\r\n //else update patient room id\r\n else {\r\n String dataUpdate = \"update patient set roomID = ? where patientID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, pat.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n pat.setRoomIDProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n\r\n\r\n stayLengthColumn.setEditable(true);\r\n stayLengthColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n stayLengthColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<patient, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<patient, String> t){\r\n patient pat = ((patient) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Patient's Stay Length\")\r\n .text(\"Patient's Stay Length Text Field is Empty! Text Fields must not be left empty, please insert a valid Patient Stay Length(days)!\")\r\n .showError();\r\n }\r\n //else update stay length\r\n else {\r\n String dataUpdate = \"update patient set stayLength = ? where patientID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, pat.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n pat.setStayLengthProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n\r\n\r\n\r\n }", "title": "" }, { "docid": "97d09de752e9dcd26ea4d4a9707a9ac1", "score": "0.53889173", "text": "@Override\r\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please be advised any changes made on this document will not get saved !\", \"Read Only Document!\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t}", "title": "" }, { "docid": "5ffdbe6a2a2cc4a498c576be6804aa87", "score": "0.5387271", "text": "private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n \n }", "title": "" }, { "docid": "73ff3b7c61c53776fbfafe4e570fc766", "score": "0.53716004", "text": "public final boolean isEditable() {\n/* 334 */ return isSet(4);\n/* */ }", "title": "" }, { "docid": "90e9d6c2ba692189f56a739d7d78708e", "score": "0.5370041", "text": "@Override\r\n\tprotected boolean validateData() {\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "1f995f6bb0cb604e92eb874491843bb4", "score": "0.5368", "text": "@Override\n public boolean validemil(Owner owner) {\n\n return true;\n }", "title": "" }, { "docid": "3052568e603f38f356fea049748e8e1e", "score": "0.5367594", "text": "public abstract boolean isEditable();", "title": "" }, { "docid": "831027b8f1900cf8d955f967ec098213", "score": "0.53646266", "text": "@Override\n protected boolean computeValue() {\n return myToDoTable.getItems().isEmpty();\n }", "title": "" }, { "docid": "86fd7ae7624f4a3d930f1065e453495e", "score": "0.5362589", "text": "@Override\r\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "8fc6ce27570300b91fb1acc5bb7c6c1d", "score": "0.53603685", "text": "public boolean shouldExecuteSafeSchemaChanges() {\n return UPDATE_SCHEMA_MODE_SAFE.equals(autoUpdateSchemaMode) || shouldExecuteUnsafeSchemaChanges();\n }", "title": "" }, { "docid": "3cd52aa46a3c86a072da5c2534c04532", "score": "0.53519666", "text": "protected void doCheck()\r\n {\r\n this.doMakeDirty();\r\n }", "title": "" }, { "docid": "456d859a3ce8d8ef4b4c5dd527b8e44b", "score": "0.5349518", "text": "@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "456d859a3ce8d8ef4b4c5dd527b8e44b", "score": "0.5349518", "text": "@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "456d859a3ce8d8ef4b4c5dd527b8e44b", "score": "0.5349518", "text": "@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "456d859a3ce8d8ef4b4c5dd527b8e44b", "score": "0.5349518", "text": "@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "456d859a3ce8d8ef4b4c5dd527b8e44b", "score": "0.5349518", "text": "@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "05810fcf9b72ce38a4046b2ddbb07f0f", "score": "0.0", "text": "@Override\n\tpublic List<Product> getProductsByCategoryAboveNumber(Category category,\n\t\t\tDouble number) {\n\t\treturn productRepository.findByCategoryAndTotalQtyGreaterThan(category,\n\t\t\t\tnumber);\n\t}", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.683166", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.6759037", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.65934426", "text": "@Override\r\n\tpublic int attaquer() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.6495273", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64788014", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.64438814", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64132667", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "592b765f0188dd7fa8d3f1f3683fa9d7", "score": "0.6288692", "text": "@Override\n\tprotected void generateData() {\n\t\t\n\t}", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6278265", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.627307", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6230805", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6218232", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.61276793", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.6106058", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.6091998", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.60919195", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.6056225", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.6056225", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.6051942", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.60334814", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.6020782", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.60200036", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60182846", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.60130405", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.59880686", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.5985307", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.5983962", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "8a997a9a187c71891dd8b44afdbaa2a2", "score": "0.59796757", "text": "private void noOtomatis(){\n\n \n \n \n\n }", "title": "" }, { "docid": "0056b38abf02cf94e7a1afab1755d909", "score": "0.5966222", "text": "@Override\r\n\tpublic void defendre() {\n\t\t\r\n\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.59625846", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.59581125", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.5950843", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.59355927", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59236866", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.5923617", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "fb8e5a5b14d5c382d38f4afcb6d4f55d", "score": "0.5912414", "text": "@Override\r\n\tpublic void reculer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.58978367", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.58937496", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.58575684", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.58575684", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.58465433", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "c34617230b51592fc8652a6c8fc39d7b", "score": "0.5841233", "text": "@Override\n\t\t public int describeContents() { \n\t\t return 0;\n\t\t }", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.5837016", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74acf90efa52ac7bee2d28c6dee180bf", "score": "0.58089393", "text": "public void mo25302P() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069366", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58058965", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "4958a5331fdb65d09e333f006441f701", "score": "0.5800014", "text": "@Override\n public int size() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.57937914", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "2a790ebdc342a2b85b21b58d99e8bb02", "score": "0.5793193", "text": "@Override\n\tpublic void landen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792168", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.5790246", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "925ab02db0448f51f913efd603e7b5b4", "score": "0.57877487", "text": "@Override\n\tpublic void breathe() {\n\n\t\t\n\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.57877403", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.57877403", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.57749856", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.57749856", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e7dbef6468de164eadd6d220b4ed2936", "score": "0.57626516", "text": "@Override\n\tpublic void vegetais() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57592577", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57542926", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.57540697", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749888", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749888", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749888", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749888", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749888", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749888", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.5747476", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "bf96ef68c4dc727efe52fcae4e20a6c6", "score": "0.5736645", "text": "@Override\r\n public int getType() {\n return 1;\r\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5733414", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5733414", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.5731375", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b16d59a149827c698e510477f7a4e9d", "score": "0.5729455", "text": "public void mo9585b() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.5723384", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.57154554", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.5711764", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.57058245", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56993437", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.5699094", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.5694379", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.5693656", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "ddd8d8a26991b887b8f19171d700e1d3", "score": "0.56922054", "text": "@Override\n\tpublic void proveerdatos() {\n\t\t\n\t}", "title": "" }, { "docid": "e21063ae833db842230f1d37006a0359", "score": "0.5684849", "text": "@Override public int getAtaque(){\n\n return 0;\n\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669301", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.5662731", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "2aed4e4b25907c376dc30c486b4f975f", "score": "0.56577325", "text": "public final void mo73469b() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655569", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655569", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655569", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655569", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
ad10e0cb7b2e72c2fc964b022e578fd7
Initialize the backref/lastline tuple.
[ { "docid": "855c03699622c986c5ee4455546b8a5b", "score": "0.71550226", "text": "private void lazyBackrefAndLastline() {\n if (backrefAndLastline == null) backrefAndLastline = new BackrefAndLastline();\n }", "title": "" } ]
[ { "docid": "778353b0beaeb453bc563f76a517f747", "score": "0.58436596", "text": "public IRubyObject setLastLine(IRubyObject lastline) {\n lazyBackrefAndLastline();\n return this.backrefAndLastline.lastline = lastline;\n }", "title": "" }, { "docid": "e653c802c95b498aeecedbba4a46e5bd", "score": "0.5756142", "text": "public IRubyObject setBackRef(IRubyObject backref) {\n lazyBackrefAndLastline();\n return this.backrefAndLastline.backref = backref;\n }", "title": "" }, { "docid": "c42b591c5178c4b381efe3ad2726c835", "score": "0.55421424", "text": "Buffer getInitialLine();", "title": "" }, { "docid": "4d7fa94b106836d2e44cc1e4716c7a6e", "score": "0.53770214", "text": "public LineFollower()\n {\n }", "title": "" }, { "docid": "1dfea5c71b0b1d3c1190ca9fe46447ff", "score": "0.53522706", "text": "private TraceRecord() {\n hintString = null;\n next = null;\n pos = -1;\n }", "title": "" }, { "docid": "36f0c69b48a90a2bd7b6281fb41dad7e", "score": "0.53161377", "text": "public BrokenLine ()\r\n {\r\n }", "title": "" }, { "docid": "3e603496b9c32916bff31969e84676b9", "score": "0.5308851", "text": "private boolean hasLastline() {\n return backrefAndLastline == null || backrefAndLastline.lastline == null;\n }", "title": "" }, { "docid": "8de23bc4fe563ce6498efaf0951118d5", "score": "0.52123874", "text": "private Frame(Frame frame) {\n assert frame.block != null : \"Block uses null object pattern. It should NEVER be null\";\n \n this.self = frame.self;\n this.name = frame.name;\n this.klazz = frame.klazz;\n this.fileName = frame.fileName;\n this.line = frame.line;\n this.block = frame.block;\n this.visibility = frame.visibility;\n this.isBindingFrame = frame.isBindingFrame;\n this.jumpTarget = frame.jumpTarget;\n \n // we force the lazy allocation of backref/lastline here to allow\n // closures to update the original frame\n frame.lazyBackrefAndLastline();\n this.backrefAndLastline = frame.backrefAndLastline;\n }", "title": "" }, { "docid": "7047e4671fcec495869be24dae78f286", "score": "0.5196707", "text": "@Test\n public void testSetLastPosition() {\n\n /*\n * Pretend that the last file is file 79.\n */\n fileManager.setLastPosition(// next available LSN\n DbLsn.makeLsn(79L, 88L),\n DbLsn.makeLsn(79L, 77),\n 66L);\n\n /* Put an entry down, should fit within file 79. */\n long prevOffset = bumpLsn(11L);\n assertEquals(DbLsn.makeLsn(79L, 88L), fileManager.getLastUsedLsn());\n assertEquals(77L, prevOffset);\n\n /* Put another entry in, should go to the next file. */\n prevOffset = bumpLsn(22L);\n assertEquals(DbLsn.makeLsn(80L, FileManager.firstLogEntryOffset()),\n fileManager.getLastUsedLsn());\n assertEquals(0, prevOffset);\n }", "title": "" }, { "docid": "1fbf209b00d9b43fc76b04e45d5f11f6", "score": "0.517092", "text": "protected void initStartingPosition( long endOfFileLsn, Long fileNum) throws IOException, DatabaseException {\n eof=false;\n readBufferFileNum=fileNum.longValue();\n readBufferFileEnd=0;\n nextEntryOffset=readBufferFileEnd;\n }", "title": "" }, { "docid": "bfd6edccfe10ce603198563766251847", "score": "0.51675713", "text": "public IRubyObject getLastLine() {\n if (hasLastline()) {\n return self.getRuntime().getNil();\n }\n return backrefAndLastline.lastline;\n }", "title": "" }, { "docid": "c5c9a2d0fce71ac26949324d2572024d", "score": "0.5147203", "text": "public void init(History history) {\n }", "title": "" }, { "docid": "131d8be29b6ba87867c406bd5a2dd513", "score": "0.507034", "text": "public AddressHistory()\n {\n \taddressID = Long.valueOf(0);\n \taddressOne = \"\";\n\t\taddressTwo = \"\";\n\t\tcity = \"\";\n\t\tstateProvinceRegion = \"\";\n\t\tpostCode = \"\";\n\t\tcountry = Long.valueOf(\"0\");\n\t\t\n }", "title": "" }, { "docid": "64a78bcf2fa21599a0fe3feae8fac348", "score": "0.5026811", "text": "public LinesListClass(){\n head = tail; \n }", "title": "" }, { "docid": "3451385874d48661682c7d6b2b32743b", "score": "0.50249034", "text": "private boolean hasBackref() {\n return backrefAndLastline == null || backrefAndLastline.backref == null;\n }", "title": "" }, { "docid": "fd17a880c625db1792aa4351ff09df99", "score": "0.5011774", "text": "public History (int max) {\n history = new Object[max+1];\n start = end = curr = 0;\n }", "title": "" }, { "docid": "6719f52485eed124cd727d111d2dab4a", "score": "0.4967925", "text": "final void setLastPosition() {_lastSPos = new SPosition(this);}", "title": "" }, { "docid": "1ed222e849441a059efcb26765280a56", "score": "0.49591768", "text": "public void setLine0(String line0) {\n this.line0 = line0;\n }", "title": "" }, { "docid": "d493298208c8ff6d55a682a06b9b91d5", "score": "0.49520326", "text": "public IRubyObject getBackRef() {\n if (hasBackref()) {\n return self.getRuntime().getNil();\n }\n return backrefAndLastline.backref;\n }", "title": "" }, { "docid": "72a4d0333564b9adb9ef5d0db09a7b19", "score": "0.4948371", "text": "public void initialize() {\n first = null;\n last = null;\n size = 0;\n dictionary = new Hashtable();\n }", "title": "" }, { "docid": "d7b9a4f4c17a6b62acb8a0a4f66fca6f", "score": "0.4939893", "text": "void setLnTlToBr(org.openxmlformats.schemas.drawingml.x2006.main.CTLineProperties lnTlToBr);", "title": "" }, { "docid": "02217e16d63af84ce6d6b761e3274dcf", "score": "0.49104816", "text": "void setLnB(org.openxmlformats.schemas.drawingml.x2006.main.CTLineProperties lnB);", "title": "" }, { "docid": "60b8129cc3c9f0eb0fb9307ddfe7a3fc", "score": "0.4880781", "text": "public Line() {\n p1 = new Point();\n p2 = new Point();\n }", "title": "" }, { "docid": "6f5081232ea4a8f012846ce17d5aeb5d", "score": "0.48740786", "text": "public void setBaseline(String baselineLocation) {\n this.referenceBaselineLocation = baselineLocation;\n }", "title": "" }, { "docid": "2b0aa5f70d707944f3bcdd692285ae2c", "score": "0.48728788", "text": "protected Location(int line) {\n\t\tsuper(line);\n\t}", "title": "" }, { "docid": "b56c54aff8fb01172a15ffbef8c68315", "score": "0.4835411", "text": "private AudioLine initialiseLine(DataLine.Info info, AudioFormat format)\n throws LineUnavailableException, IllegalArgumentException\n {\n //Throws IllegalArgumentException if it can't find a line\n SourceDataLine l = (SourceDataLine) AudioSystem.getLine(info);\n printDebug(\"buffer size: \" + l.getBufferSize());\n return new AudioLine(l, format);\n }", "title": "" }, { "docid": "02ec76b019130e87568b3e1cc2282bef", "score": "0.4833644", "text": "public RollbackRecord(BasicLogRecord rec) {\r\n\t\tthis.txNum = (Long) rec.nextVal(BIGINT).asJavaVal();\r\n\t\tlsn = rec.getLSN();\r\n\t}", "title": "" }, { "docid": "b0d160f65f9e8bf5b75dff272386a3c4", "score": "0.48286575", "text": "public Cell ()\r\n\t{\r\n\t\thistory= new LinkedList<History>();\r\n\t}", "title": "" }, { "docid": "ebcc6aa6258c365123303a105cb6cb07", "score": "0.48271927", "text": "public void initialise()\n {\n head = null;\n tail = null;\n }", "title": "" }, { "docid": "0a082cd5e349ce2e98de2c59126f887a", "score": "0.48166227", "text": "public void initialize() {\n\t\teventCounter = 0;\n\t\ttraceEvents = new ArrayList<String>();\n\t\ttraceEvents2 = new ArrayList<String>();\n\t\ttraceList = new HashBag<List<String>>();\n\t\ttraceArrayList = new ArrayList<List<String>>();\n\t}", "title": "" }, { "docid": "b2d3c8bb19b6987738495d6b248b2b90", "score": "0.4808942", "text": "public MyStringBuilder2()\n\t{\n\t\tfirstC = null;\n\t\tlastC = null;\n\t\tlength = 0;\n\t\n\t}", "title": "" }, { "docid": "43918fa576b81acb0fbe139710a47d96", "score": "0.4803446", "text": "public void init(){\n\t\tLocation curr = getLocation();\n\t\tArrayList<Location> temp = new ArrayList<Location>();\n\t\t// Push the first location into the first arrayList\n\t\ttemp.add(curr);\n\t\tcrossLocation.push(temp);\n\t\t// Push into the current way stack\n\t\tcurrentWay.push(curr);\n\t\t// First adjust the direction probability\n\t\tadjustDirPro();\n\t}", "title": "" }, { "docid": "6f65988dfdbc755d3d02f9007e05e1dc", "score": "0.47930554", "text": "public RpkitPreviousLocationRecord() {\n super(RpkitPreviousLocation.RPKIT_PREVIOUS_LOCATION);\n }", "title": "" }, { "docid": "03f2834d299928a63b63be6239f3f99d", "score": "0.47793543", "text": "private void init() {\n head = new LinkedList.Node<E>(null);\n tail = new LinkedList.Node<E>(null);\n head.setNext(tail);\n tail.setPrevious(head);\n size = 0;\n }", "title": "" }, { "docid": "1d49f05084dae2c56b9b9f2fd1dcb41d", "score": "0.4773181", "text": "public Reference() {\n this(null, null, -1);\n }", "title": "" }, { "docid": "06e930009fa2c871542780bda498f86d", "score": "0.47230154", "text": "protected void InitParLevel()\n\t{\n\t\tboolean parEnd = false;\n\t\t\n\t\ttry\n\t\t{\n\t\t\t\n\t\t\tBufferedReader reader ;\n\t\t\tArrayList <Integer> levelZeroRefBreaks = new ArrayList<Integer>();\n\t\t\t\n\t\t\tif (this.inputFile != null)\n\t\t\t\treader = new BufferedReader(new FileReader(this.inputFile));\n\t\t\telse \n\t\t\t\treader = new BufferedReader(new StringReader(this.text));\n\t\t\t\n\t\t\tString line;\n\t\t\tStringBuilder curPar = new StringBuilder();\n\t\t\t\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t{\n\t\t\t\tif (line.isEmpty() )\n\t\t\t\t{\n\t\t\t\t\tif ( parEnd == true)\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\telse // we encountered the end of a paragraph\n\t\t\t\t\t{\n\t\t\t\t\t\tparEnd = true;\n\t\t\t\t\t\tthis.chunks.add(curPar.toString());\n\t\t\t\t\t\tcurPar = new StringBuilder();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tparEnd = false;\n\t\t\t\tMatcher m = this.segmPattern.matcher(line);\n\t\t\t\tif (m.matches())\n\t\t\t\t\tlevelZeroRefBreaks.add( this.chunks.size() - 1 );\n\t\t\t\telse\n\t\t\t\t\tcurPar.append(\" \" + line);\n\t\t\t\n\t\t\t}\n\t\t\t//include the last paragraph\n\t\t\tif (curPar.toString().isEmpty() == false )\n\t\t\t\tthis.chunks.add(curPar.toString());\n\t\t\t\n\t\t\tthis.refBreaks.put(this.defaultLevel, levelZeroRefBreaks);\n\t\t\t\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Exception in SimpleFileDataSource.InitParLevel(): \" + e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "e9b44c9ca47144fe84a29c184e835aba", "score": "0.4713748", "text": "private void initLines() {\n this.width = getWidth();\n this.height = getHeight();\n\n /*Call to main activity to enable listeners on seekbars*/\n ((CameraActivity) getContext()).enableSeekBarsListeners();\n\n lines.add(new Line(\"Left line\",0,0,0,height));\n lines.add(new Line(\"Right line\",width,0,width,height));\n lines.add(new Line(\"Top line\",0,0,width,0));\n lines.add(new Line(\"Bottom line\",0,height,width,height));\n }", "title": "" }, { "docid": "3e07c99e430921f50fce25efc9238d5d", "score": "0.47123164", "text": "public History (History h) {\n this.history = new Object[h.history.length];\n System.arraycopy (h.history, 0, this.history, 0, h.history.length);\n this.start = h.start;\n this.end = h.end;\n this.curr = h.curr;\n }", "title": "" }, { "docid": "9fa47c53ac96bc635d4c80dac6fc1e3a", "score": "0.46934035", "text": "public Invoice_Line() {\n\t\t// Start of user code constructor for Invoice_Line)\n\t\tsuper();\n\t\t// End of user code\n\t}", "title": "" }, { "docid": "4691ce24e2657e335dc15a85dd897c3e", "score": "0.46907738", "text": "public void setLastTail(SnakeNode previousTail) {\n this.lastTail = new SnakeNode(previousTail.x, previousTail.y, previousTail.nodeDirection);\n }", "title": "" }, { "docid": "fbd7ab764eec6025b80871d2a7b52c82", "score": "0.46887502", "text": "Test() {\n fb_h = new ArrayList<>();\n fb_l = new ArrayList<>();\n fb_r = new ArrayList<>();\n head_relation2tail = new HashMap<>();\n }", "title": "" }, { "docid": "3ad5aa156ecd88a0d71b4d5ee722e600", "score": "0.46790245", "text": "public void init() {\r\n\r\n\t\t// Builds the attribute sets\r\n\t\tbuildAttributeSets();\r\n\t\t\r\n\t\ttry {\r\n\r\n\t\t\t// Changes the styled document\r\n\t\t\tprocessChangedLines(0, getLength());\r\n\t\t\t\t\t\r\n\t\t} catch (BadLocationException exception) {\r\n\r\n\t\t\t// Updates the log\r\n\t\t\tAcideLog.getLog().error(exception.getMessage());\r\n\t\t\texception.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "42b0853a84fa53883e1769797db46c32", "score": "0.4670701", "text": "public PatchEntry() {\n this.diffs = new ArrayList<Difference>();\n this.sourceStart = 0;\n this.targetStart = 0;\n this.sourceLength = 0;\n this.targetLength = 0;\n }", "title": "" }, { "docid": "98d4622f1ff743506ad4db1a6bebcb42", "score": "0.465964", "text": "public void init() {\n this.head = this.tail = this.currentIteration = null;\n this.currentCount = this.totalCount = 0;\n }", "title": "" }, { "docid": "b1751a7d3dc1f7f9f513e12f0bfa7162", "score": "0.46582487", "text": "public int getLastLineNumber(){\n return pythonState.getPhysicalLineNumber();\n }", "title": "" }, { "docid": "7d374536589db110ecc85ad99a823715", "score": "0.46527055", "text": "void setLnL(org.openxmlformats.schemas.drawingml.x2006.main.CTLineProperties lnL);", "title": "" }, { "docid": "da93554906d925c381d4fd1bde2574ca", "score": "0.46453753", "text": "protected void init() {\n this.position = 0;\n greatestInstant = 0;\n recycleMe = true; //always recycle unless explicitly told otherwise\n }", "title": "" }, { "docid": "dc41173e2555afa31208701d4677f03e", "score": "0.4635924", "text": "protected void init() {\n finished = false;\n parsed =false;\n version = 0;\n off = 0;\n version();\n }", "title": "" }, { "docid": "f0092fe82c8fa56aba0bebdf636db2a1", "score": "0.46172306", "text": "public String getLine0() {\n return line0;\n }", "title": "" }, { "docid": "09874327ac96a46eee5ee05fcc8843f9", "score": "0.46169516", "text": "public Track(){\r\n head=null;\r\n tail=null;\r\n cursor=null;\r\n }", "title": "" }, { "docid": "09690ca896831f77672f728ffc02fff2", "score": "0.46003044", "text": "SLLIterator() {\n\t cursor = head;\n\t prev = null;\n ready = false;\n\t}", "title": "" }, { "docid": "26af5fdd0ac34e490811031a9862449f", "score": "0.45968968", "text": "public BackTracker(){\n super(1, 1, World.EAST, 0);\n steps = new ArrayList<Integer>();\n }", "title": "" }, { "docid": "057c425b0a76b26b18d6c8e6c422f619", "score": "0.45845142", "text": "public History() {\n\n\t\tsetNationalID(new byte[2]);\n\t\tsetPlatformID(new byte[10]);\n\t\tsetRecords(new ProcessingRecordsCollection());\n\t\tsetSize(21);\n\t}", "title": "" }, { "docid": "eccd2b591b5d709792e8198f5918741a", "score": "0.45844027", "text": "public LoottrackerlinkRecord()\n\t{\n\t\tsuper(Loottrackerlink.LOOTTRACKERLINK);\n\t}", "title": "" }, { "docid": "4335b5b357f88241cedce659e613c7c4", "score": "0.45830488", "text": "public int last() {\n/* 162 */ this.cachedBreakPositions = null;\n/* 163 */ this.dictionaryCharCount = 0;\n/* 164 */ this.positionInCache = 0;\n/* 165 */ return super.last();\n/* */ }", "title": "" }, { "docid": "a964d43ad356e622edd01ef51600a1c1", "score": "0.45758805", "text": "public Stack() {\t\t\n\n\t\tfirst = null; \n\t\tlast = null; \n\t}", "title": "" }, { "docid": "4bee495a90c80207d35dfc692919e610", "score": "0.4574191", "text": "LWCLocationNoLine createLWCLocationNoLine();", "title": "" }, { "docid": "41777f00bb005b50bd0cd7eee9847ee4", "score": "0.45703617", "text": "public History ()\n {\n this.list = new ArrayList < Object > ();\n this.index = -1;\n this.addNextObject = true;\n }", "title": "" }, { "docid": "2bb3418f1a2d7d20a05256d8a6f00ca1", "score": "0.456102", "text": "private final void setHeadTail() {\n\t\tthis.headBuffer.setNext(tailBuffer);\n\t\tthis.headBuffer.setPrevious(null);\n\t\tthis.tailBuffer.setNext(null);\n\t\tthis.tailBuffer.setPrevious(headBuffer);\n\t}", "title": "" }, { "docid": "5be5d69d58fc709cb973b9b3e9de667f", "score": "0.4554882", "text": "@Override\r\n protected WtNode before(WtNode node) {\n sb = new StringBuilder();\r\n line = new StringBuilder();\r\n extLinkNum = 1;\r\n pastBod = false;\r\n needNewlines = 0;\r\n needSpace = false;\r\n noWrap = false;\r\n sections = new LinkedList<Integer>();\r\n return super.before(node);\r\n }", "title": "" }, { "docid": "49ed9ba985878c6c7b9291219f0cf7a2", "score": "0.45529336", "text": "public SLL() {\n this.first = null;\n }", "title": "" }, { "docid": "82d54dbe55c0d86bf2360feff08f4da3", "score": "0.4552734", "text": "public LinkedList() {\n first = last = new Node<>(null, null);\n }", "title": "" }, { "docid": "5c3374008ab5f7893a4b6bacce056f5e", "score": "0.4546012", "text": "public ASTLinePy() {\n\n\t}", "title": "" }, { "docid": "43c48f1e14b10c3c0453ce45a38e1975", "score": "0.45353076", "text": "protected void createBlockPointers(Block ancestorBlock) {\n this.ancestorBlock = ancestorBlock;\n // if the last FOText is a sibling, point to it, and have it point here\n if (ancestorBlock.lastFOTextProcessed != null) {\n if (ancestorBlock.lastFOTextProcessed.ancestorBlock\n == this.ancestorBlock) {\n prevFOTextThisBlock = ancestorBlock.lastFOTextProcessed;\n prevFOTextThisBlock.nextFOTextThisBlock = this;\n } else {\n prevFOTextThisBlock = null;\n }\n }\n }", "title": "" }, { "docid": "f8af3aebd0982cd6a24a83ea19dcef9e", "score": "0.45249864", "text": "public void initReader(InputStream is) throws IOException\n {\n lnr = new LineNumberReader(new InputStreamReader(is));\n }", "title": "" }, { "docid": "1e9b172d155d584a4237afcd4622702c", "score": "0.45203784", "text": "public String getRef() {\n\t\tif (currentLineToks != null) {\n\t\t\treturn currentLineToks[3];\n\t\t} else {\n\t\t\treturn \"?\";\n\t\t}\n\t}", "title": "" }, { "docid": "6b5eae1a50b63e55ea4f0911748608bc", "score": "0.4516989", "text": "public FollowerRecord() {\n\t\tsuper(tech.codingclub.helix.tables.Follower.FOLLOWER);\n\t}", "title": "" }, { "docid": "4eae23544406ed23be193538a1e1f669", "score": "0.45146504", "text": "public String getDefline()\n\t{\n\t\treturn defline;\n\t}", "title": "" }, { "docid": "47e50ee5c28db2b0abf5dab62878c40d", "score": "0.45124754", "text": "public GenLL() {\r\n\t\thead = curr = prev = null;\r\n\t}", "title": "" }, { "docid": "f023ccb81df5c74eb4924632b742acdd", "score": "0.4506551", "text": "public void setEndLineNumber(int foo) { endLineNumber = foo; }", "title": "" }, { "docid": "f023ccb81df5c74eb4924632b742acdd", "score": "0.4506551", "text": "public void setEndLineNumber(int foo) { endLineNumber = foo; }", "title": "" }, { "docid": "f023ccb81df5c74eb4924632b742acdd", "score": "0.4506551", "text": "public void setEndLineNumber(int foo) { endLineNumber = foo; }", "title": "" }, { "docid": "ae0f02579a1d3748a38c65777b00b641", "score": "0.44918156", "text": "void setNroLinRef(int nroLinRef);", "title": "" }, { "docid": "613bd32808bd6eb1415b4d47485bf805", "score": "0.4487405", "text": "protected void init() {\n warcTargetUriProfile = UriProfile.RFC3986;\n uriProfile = UriProfile.RFC3986;\n recordHeaderMaxSize = 8192;\n payloadHeaderMaxSize = 32768;\n lineReader = HeaderLineReader.getReader();\n lineReader.bNameValue = false;\n lineReader.encoding = HeaderLineReader.ENC_US_ASCII;\n headerLineReader = HeaderLineReader.getReader();\n headerLineReader.bNameValue = true;\n headerLineReader.encoding = HeaderLineReader.ENC_UTF8;\n headerLineReader.bLWS = true;\n headerLineReader.bQuotedText = true;\n headerLineReader.bEncodedWords = true;\n fieldParsers = new WarcFieldParsers();\n }", "title": "" }, { "docid": "b6e412ba4dfbfbe0b36d03b2b3f7dcd4", "score": "0.44797236", "text": "public void resetToBeforeFirstEntry() {\n beforeFirst = true;\n afterLast = false;\n rowNodeStackIndex = -1;\n currentRowNode = null;\n rowLength = 0;\n familyOffset = familyBuffer.length;\n familyLength = 0;\n qualifierOffset = blockMeta.getMaxQualifierLength();\n qualifierLength = 0;\n nubCellsRemain = false;\n currentCellIndex = -1;\n timestamp = -1L;\n type = DEFAULT_TYPE;\n absoluteValueOffset = 0;//use 0 vs -1 so the cell is valid when value hasn't been initialized\n valueLength = 0;// had it at -1, but that causes null Cell to add up to the wrong length\n tagsOffset = blockMeta.getMaxTagsLength();\n tagsLength = 0;\n }", "title": "" }, { "docid": "7273c4331885ffcd845345ec856a10d8", "score": "0.44741783", "text": "public RoadSegment() {\r\n startPoint = null;\r\n endPoint = null;\r\n }", "title": "" }, { "docid": "dd234a51e8f6ab0b388c2edeaf8bf81c", "score": "0.44720057", "text": "@Override\n public void initialize(List<String> lines) throws ParseException {\n int countIndex = ParseUtils.getLineIndexThatStartWithPrefix(lines, \"Count\");\n updates=new ArrayList<>();\n this.count =Long.valueOf(ParseUtils.removePrefix(lines.get(countIndex), \"Count\"));\n for(int i=0 ; i< this.count;i++){\n int startIndex=ParseUtils.getLineIndexThatStartWithPrefix(lines, \"[\"+i+\"]\");\n int endIndex=(i+1< this.count)?ParseUtils.getLineIndexThatStartWithPrefix(lines, \"[\"+(i+1)+\"]\"):lines.size();\n updates.add(new UpdateObject(lines.subList(startIndex, endIndex)));\n }\n }", "title": "" }, { "docid": "6890cf6df3bebd360188b154d641130f", "score": "0.44694462", "text": "public FrameRecord()\r\n\t{\r\n\t\tframe = 0;\r\n\t\tkeys = null;\r\n\t\tmouse = null;\r\n\t}", "title": "" }, { "docid": "1ca9576ac62177995ab2191f739c86b3", "score": "0.44681585", "text": "public static void resetLineNumber() {\n lineCounter = 0;\n }", "title": "" }, { "docid": "5b73a9c65918b31c50c73336f1dae054", "score": "0.44625342", "text": "public void init(ParsingState inLineCommentParsingState, ParsingState inBlockCommentParsingState, ParsingState inSingleQuotesParsingState, ParsingState inDoubleQuotesParsingState, boolean backSlashEscapingEnabled) {\r\n this.inLineCommentParsingState = inLineCommentParsingState;\r\n this.inBlockCommentParsingState = inBlockCommentParsingState;\r\n this.inSingleQuotesParsingState = inSingleQuotesParsingState;\r\n this.inDoubleQuotesParsingState = inDoubleQuotesParsingState;\r\n this.backSlashEscapingEnabled = backSlashEscapingEnabled;\r\n }", "title": "" }, { "docid": "1dbceab66234e2cad1040fe11940a160", "score": "0.44603094", "text": "public RecordBookmarkFragment() {\r\n }", "title": "" }, { "docid": "45c6613f5f20a613af05b7deae27be83", "score": "0.44598326", "text": "public RollbackRecord(long txNum) {\r\n\t\tthis.txNum = txNum;\r\n\t\tthis.lsn = null;\r\n\t}", "title": "" }, { "docid": "44effaf67963f78c9b17944678150378", "score": "0.4459287", "text": "public static int lookupLineEnd() {\n\t\treturn lookupLineNumberFromPerek(5, 0);\n\t}", "title": "" }, { "docid": "fa6677fcef2e271c499a24bcecaa1996", "score": "0.4459217", "text": "private BratEntity(final Iterator<String> line) {\n try {\n this.attributes = Maps.newHashMap();\n this.id = Integer.parseInt(line.next().substring(1));\n this.type = line.next();\n this.startOffset = Long.parseLong(line.next());\n this.endOffset = Long.parseLong(line.next());\n if (startOffset == endOffset) {\n string = null;\n }\n else {\n string = line.next();\n }\n } catch (NoSuchElementException e) {\n final Iterable<String> itb = () -> line;\n System.out.printf(\"Cannot create entity from line: |%s|\\n\\n\",\n StreamSupport.stream(itb.spliterator(), false).reduce(\"\", (s1, s2) -> s1 + \" | \" + s2));\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "042cacef115f408c44f8c1bab5c79d47", "score": "0.4456932", "text": "public BrokenLine (Point... points)\r\n {\r\n resetPoints(Arrays.asList(points));\r\n }", "title": "" }, { "docid": "4280dd8c603613e6fcd2b9af889bbcc4", "score": "0.44537926", "text": "public History() {\n // Empty.\n }", "title": "" }, { "docid": "d1004d61503ceb188326b1a49ef8bce0", "score": "0.4453209", "text": "void setLnR(org.openxmlformats.schemas.drawingml.x2006.main.CTLineProperties lnR);", "title": "" }, { "docid": "92ddfc691c51beb91045824f4f2a315e", "score": "0.4450068", "text": "private void processBackNode(IfaceValue ref,IfaceType settype)\n{\n cur_state = work_queue.getState(ast_where);\n ASTNode node = ast_where.getAstNode();\n after_node = ast_where.getAfterChild();\n here_location = null;\n IfaceValue nextref = null;\n\n if (FaitLog.isTracing()) {\n String cls = node.getClass().getName();\n int idx = cls.lastIndexOf(\".\");\n cls = cls.substring(idx+1);\n String aft = (after_node == null ? \"\" : \"*\");\n String cnts = node.toString().replace(\"\\n\",\" \");\n if (cnts.length() > 64) cnts = cnts.substring(0,62) + \"...\";\n FaitLog.logD(\"BACK \" + aft + cls + \" \" + node.getStartPosition() + \" \" + cnts + \" \" +\n\t settype + \" \" + ref.getRefSlot() + \" \" + ref.getRefStack() + \" \" + ref.getRefField());\n }\n\n switch (node.getNodeType()) {\n case ASTNode.ANNOTATION_TYPE_DECLARATION :\n case ASTNode.ANNOTATION_TYPE_MEMBER_DECLARATION :\n case ASTNode.ANONYMOUS_CLASS_DECLARATION :\n case ASTNode.ARRAY_TYPE :\n case ASTNode.BLOCK_COMMENT :\n case ASTNode.COMPILATION_UNIT :\n case ASTNode.EMPTY_STATEMENT :\n case ASTNode.ENUM_CONSTANT_DECLARATION :\n case ASTNode.ENUM_DECLARATION :\n case ASTNode.IMPORT_DECLARATION :\n case ASTNode.JAVADOC :\n case ASTNode.LINE_COMMENT :\n case ASTNode.MARKER_ANNOTATION :\n case ASTNode.MEMBER_REF :\n case ASTNode.MEMBER_VALUE_PAIR :\n case ASTNode.METHOD_REF :\n case ASTNode.METHOD_REF_PARAMETER :\n case ASTNode.MODIFIER :\n case ASTNode.NAME_QUALIFIED_TYPE :\n case ASTNode.NORMAL_ANNOTATION :\n case ASTNode.PACKAGE_DECLARATION :\n case ASTNode.PARAMETERIZED_TYPE :\n case ASTNode.PRIMITIVE_TYPE :\n case ASTNode.QUALIFIED_TYPE :\n case ASTNode.SIMPLE_TYPE :\n case ASTNode.SINGLE_MEMBER_ANNOTATION :\n case ASTNode.TAG_ELEMENT :\n case ASTNode.TEXT_ELEMENT :\n case ASTNode.TYPE_DECLARATION :\n case ASTNode.TYPE_DECLARATION_STATEMENT :\n case ASTNode.TYPE_PARAMETER :\n case ASTNode.UNION_TYPE :\n case ASTNode.WILDCARD_TYPE :\n\t nextref = ref;\n\t break;\n case ASTNode.ARRAY_ACCESS :\n\t nextref = visitBack((ArrayAccess) node,ref);\n\t break;\n case ASTNode.ARRAY_CREATION :\n\t nextref = visitBack((ArrayCreation) node,ref);\n\t break;\n case ASTNode.ARRAY_INITIALIZER :\n\t nextref = visitBack((ArrayInitializer) node,ref);\n\t break;\n case ASTNode.ASSERT_STATEMENT :\n\t nextref = visitBack((AssertStatement) node,ref);\n\t break;\n case ASTNode.ASSIGNMENT :\n\t nextref = visitBack((Assignment) node,ref,settype);\n\t break;\n case ASTNode.BLOCK :\n\t nextref = ref;\n\t break;\n case ASTNode.BOOLEAN_LITERAL :\n\t nextref = adjustRef(ref,0,1);\n\t break;\n case ASTNode.BREAK_STATEMENT :\n\t nextref = ref;\n\t break;\n case ASTNode.CAST_EXPRESSION :\n\t nextref = ref;\n\t break;\n case ASTNode.CATCH_CLAUSE :\n\t nextref = visitBack((CatchClause) node,ref);\n\t break;\n case ASTNode.CHARACTER_LITERAL :\n\t nextref = adjustRef(ref,0,1);\n\t break;\n case ASTNode.CLASS_INSTANCE_CREATION :\n\t nextref = visitBack((ClassInstanceCreation) node,ref);\n\t break;\n case ASTNode.CONDITIONAL_EXPRESSION :\n\t nextref = visitBack((ConditionalExpression) node,ref);\n\t break;\n case ASTNode.CONSTRUCTOR_INVOCATION :\n\t nextref = visitBack((ConstructorInvocation) node,ref);\n\t break;\n case ASTNode.CONTINUE_STATEMENT :\n\t nextref = ref;\n\t break;\n case ASTNode.CREATION_REFERENCE :\n\t nextref = visitBack((CreationReference) node,ref);\n\t break;\n case ASTNode.DO_STATEMENT :\n\t nextref = visitBack((DoStatement) node,ref);\n\t break;\n case ASTNode.ENHANCED_FOR_STATEMENT :\n\t nextref = visitBack((EnhancedForStatement) node,ref);\n\t break;\n case ASTNode.EXPRESSION_METHOD_REFERENCE :\n\t nextref = visitBack((ExpressionMethodReference) node,ref);\n\t break;\n case ASTNode.EXPRESSION_STATEMENT :\n\t nextref = visitBack((ExpressionStatement) node,ref);\n\t break;\n case ASTNode.FIELD_ACCESS :\n\t nextref = visitBack((FieldAccess) node,ref);\n\t break;\n case ASTNode.FIELD_DECLARATION :\n\t nextref = ref;\n\t break;\n case ASTNode.FOR_STATEMENT :\n\t nextref = visitBack((ForStatement) node,ref);\n\t break;\n case ASTNode.IF_STATEMENT :\n\t nextref = visitBack((IfStatement) node,ref);\n\t break;\n case ASTNode.INFIX_EXPRESSION :\n\t nextref = visitBack((InfixExpression) node,ref,settype);\n\t break;\n case ASTNode.INSTANCEOF_EXPRESSION :\n\t nextref = visitBack((InstanceofExpression) node,ref);\n\t break;\n case ASTNode.LABELED_STATEMENT :\n\t nextref = ref;\n\t break;\n case ASTNode.LAMBDA_EXPRESSION :\n\t nextref = visitBack((LambdaExpression) node,ref);\n\t break;\n case ASTNode.METHOD_DECLARATION :\n\t nextref = visitBack((MethodDeclaration) node,ref,settype);\n\t break;\n case ASTNode.METHOD_INVOCATION :\n\t nextref = visitBack((MethodInvocation) node,ref,settype);\n\t break;\n case ASTNode.NULL_LITERAL :\n\t nextref = adjustRef(ref,0,1);\n\t break;\n case ASTNode.NUMBER_LITERAL :\n\t nextref = adjustRef(ref,0,1);\n\t break;\n case ASTNode.PARENTHESIZED_EXPRESSION :\n\t nextref = ref;\n\t break;\n case ASTNode.POSTFIX_EXPRESSION :\n\t nextref = visitBack((PostfixExpression) node,ref,settype);\n\t break;\n case ASTNode.PREFIX_EXPRESSION :\n\t nextref = visitBack((PrefixExpression) node,ref,settype);\n\t break;\n case ASTNode.QUALIFIED_NAME :\n\t nextref = visitBack((QualifiedName) node,ref);\n\t break;\n case ASTNode.RETURN_STATEMENT :\n\t nextref = visitBack((ReturnStatement) node,ref);\n\t break;\n case ASTNode.SIMPLE_NAME :\n\t nextref = visitBack((SimpleName) node,ref);\n\t break;\n case ASTNode.SINGLE_VARIABLE_DECLARATION :\n\t nextref = visitBack((SingleVariableDeclaration) node,ref);\n\t break;\n case ASTNode.STRING_LITERAL :\n\t nextref = adjustRef(ref,0,1);\n\t break;\n case ASTNode.SUPER_CONSTRUCTOR_INVOCATION :\n\t nextref = null;\n\t break;\n case ASTNode.SUPER_METHOD_INVOCATION :\n\t nextref = null;\n\t break;\n case ASTNode.SUPER_FIELD_ACCESS :\n\t nextref = adjustRef(ref,0,1);\n\t break;\n case ASTNode.SUPER_METHOD_REFERENCE :\n\t nextref = visitBack((SuperMethodReference) node,ref);\n\t break;\n case ASTNode.SWITCH_STATEMENT :\n\t nextref = visitBack((SwitchStatement) node,ref);\n\t break;\n case ASTNode.SWITCH_CASE :\n\t nextref = ref;\n\t break;\n case ASTNode.SYNCHRONIZED_STATEMENT :\n\t nextref = visitBack((SynchronizedStatement) node,ref);\n\t break;\n case ASTNode.TEXT_BLOCK :\n\t nextref = adjustRef(ref,0,1);\n\t break;\n case ASTNode.THIS_EXPRESSION :\n\t nextref = adjustRef(ref,0,1);\n\t break;\n case ASTNode.THROW_STATEMENT :\n\t nextref = visitBack((ThrowStatement) node,ref);\n\t break;\n case ASTNode.TRY_STATEMENT :\n\t nextref = visitBack((TryStatement) node,ref);\n\t break;\n case ASTNode.TYPE_LITERAL :\n\t nextref = adjustRef(ref,0,1);\n\t break;\n case ASTNode.TYPE_METHOD_REFERENCE :\n\t nextref = visitBack((TypeMethodReference) node,ref);\n\t break;\n case ASTNode.VARIABLE_DECLARATION_EXPRESSION :\n\t nextref = ref;\n\t break;\n case ASTNode.VARIABLE_DECLARATION_FRAGMENT :\n\t nextref = visitBack((VariableDeclarationFragment) node,ref);\n\t break;\n case ASTNode.VARIABLE_DECLARATION_STATEMENT :\n\t nextref = ref;\n\t break;\n case ASTNode.WHILE_STATEMENT :\n\t nextref = visitBack((WhileStatement) node,ref);\n\t break;\n default :\n\t FaitLog.logE(\"Unknown node type \" + node);\n\t break;\n }\n\n if (nextref != null) {\n queueBackRefs(getHere(),cur_state,nextref,settype);\n }\n}", "title": "" }, { "docid": "f64ce067eb364fc9e7effa60207845cc", "score": "0.44487652", "text": "private void setLastAnchor(View anchor) {\n synchronized (this) {\n mLastAnchor = anchor;\n }\n }", "title": "" }, { "docid": "fc72a96ce5d7aaaeb7ec30888a5d0043", "score": "0.4445911", "text": "public void init() {\r\n\t\tthis.shapes = new LinkedList<PlacedShape>();\r\n\t\tthis.moves = new Stack<Move>();\r\n\t\tthis.redoStack = new Stack<Move>();\r\n\t}", "title": "" }, { "docid": "6a563986c60404d6126345b803813a04", "score": "0.44431108", "text": "void initialize(String initialCheckpoint,\n InitialPositionInStreamExtended initialPositionInStream);", "title": "" }, { "docid": "afef6cbf92db15dc23caf32f8469cc52", "score": "0.44385576", "text": "public LinkedList() {\n m_header = new Entry(null, null, null);\n m_header.m_next = m_header.m_previous = m_header;\n }", "title": "" }, { "docid": "e47c1884169b0bc836ac19f8ee84f82e", "score": "0.4434502", "text": "@Override\n public void initialize() {\n counter = 0;\n prevSenseBall0 = m_tower.senses_ball_Top0(); // Track the initial state of the top sensor\n }", "title": "" }, { "docid": "ba10a0d00e998b82cf6bb58599b79d5c", "score": "0.44333372", "text": "private void lastRecLocation(RandomAccessFile ras, RandomAccessFile ras1) {\n \t\n \tif(LastRecordLoc == 0) {\n \t\t\tLastRecordLoc = 160;\n \t\t try {\n \t\t\t\tras.seek(160);\n \t\t\t} catch (IOException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t\telse {\n \t\ttry {\n \t\t\tras.seek(LastRecordLoc + sizeOfRecord);\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\tLastRecordLoc += sizeOfRecord;\n \t\t}\n \t\n }", "title": "" }, { "docid": "1cbd307bb6ae824e3221cf9a13bf7dde", "score": "0.4431206", "text": "protected void initialize() {\n \tlift.downPosition();\n }", "title": "" }, { "docid": "b8a6288eb829d38609fbe9aab7e14d5a", "score": "0.4426986", "text": "public void setPrevLoc(int lc) {\n\t\tprevLoc = lc;\n\t}", "title": "" }, { "docid": "da2585c7bb715eb15951b7882c9aa156", "score": "0.44254017", "text": "protected LatLonLines(LatLonLines that)\n throws RemoteException, VisADException {\n\n super(that);\n\n latLines = that.latLines; // immutable\n minValue = that.minValue; // immutable\n maxValue = that.maxValue; // immutable\n spacing = that.spacing; // immutable\n base = that.base; // immutable\n isLat = that.isLat;\n\n createLines();\n }", "title": "" }, { "docid": "3ba46037f2afcf5764187c6e00966c4d", "score": "0.44210717", "text": "public QueueReferenceBased()\n {\n back = null;\n }", "title": "" }, { "docid": "0af4fba5be431e2d6ebc1f143a5f00a3", "score": "0.44201007", "text": "public LineRoute() {\n this.runLines = new ArrayList<>();\n }", "title": "" }, { "docid": "868cd66ae6f18992384391e515dc5ebb", "score": "0.4412027", "text": "public void init(final BKAlignedLayout theBal) {\n this.bal = theBal;\n blockFinished.clear();\n postProcessables.clear();\n }", "title": "" } ]
03752c6a7e94e1ad1f9682e07d1e4f4e
This method was generated by Apache iBATIS ibator. This method returns the value of the database column IRP_EDUCATION.SCHOOLCLASS
[ { "docid": "ac696f37197ad1ef29c54a62845d34ed", "score": "0.7080932", "text": "public String getSchoolclass() {\r\n return schoolclass;\r\n }", "title": "" } ]
[ { "docid": "86e2087d9e2f6e0020dc4c5b59b3907d", "score": "0.6109361", "text": "public void setSchoolclass(String schoolclass) {\r\n this.schoolclass = schoolclass;\r\n }", "title": "" }, { "docid": "5e6d60e6ea11747ce931cc3d75b4c84d", "score": "0.58818775", "text": "public Short getSchooltype() {\r\n return schooltype;\r\n }", "title": "" }, { "docid": "2ba71468b1cb684e4c1b5213da25a79a", "score": "0.58262676", "text": "public String getSchool() {\n\t\treturn this.school;\n\t}", "title": "" }, { "docid": "4cac5718222dec845bcaede6a134734d", "score": "0.5811728", "text": "public String getSchool() {\r\n\t\treturn school;\r\n\t}", "title": "" }, { "docid": "1adab771934e1df1c57a3afca807fbac", "score": "0.5785222", "text": "public String getClassGrade() {\n return mClassGrade;\n }", "title": "" }, { "docid": "17c6e030bc6c6e336999e14391be5af5", "score": "0.57639223", "text": "public String getSchoolCode() {\n\t\treturn schoolCode;\n\t}", "title": "" }, { "docid": "b7036f261ad65ab058302d0b03dd7deb", "score": "0.57335097", "text": "public String getSchool() {\r\n return school;\r\n }", "title": "" }, { "docid": "b7036f261ad65ab058302d0b03dd7deb", "score": "0.57335097", "text": "public String getSchool() {\r\n return school;\r\n }", "title": "" }, { "docid": "a1ee6aa6aa5bcb1a225425192eaf3f04", "score": "0.57118726", "text": "java.lang.String getSchoolName();", "title": "" }, { "docid": "c10e85250064dc643cfb0f6b9d328b27", "score": "0.56266636", "text": "public String getStudentSchool() {\n return studentSchool;\n }", "title": "" }, { "docid": "12034961e528a2165c76a7230663cd9d", "score": "0.56181043", "text": "public String getSchool() {\n return school;\n }", "title": "" }, { "docid": "12034961e528a2165c76a7230663cd9d", "score": "0.56181043", "text": "public String getSchool() {\n return school;\n }", "title": "" }, { "docid": "fb018940d44065f924b362f6ffd7e63a", "score": "0.5613807", "text": "public String getClassName() {\n return XMLUtilities.extract(ddl, \"/hyrex/@class\");\n }", "title": "" }, { "docid": "81c7b440fc1cb1a381b2f56acfa37dd3", "score": "0.55692834", "text": "public String getSchoolName() {\n return this.schoolName;\n }", "title": "" }, { "docid": "36fed2815a579604ad8ddc154cec5a49", "score": "0.5535422", "text": "public String getClinicalTypesClass() {\r\n return clinicalTypesClass;\r\n }", "title": "" }, { "docid": "c79533101369c0b9534468a94dd74b1f", "score": "0.5515986", "text": "@ApiModelProperty(value = \"Study Class of User .\")\n\tpublic Integer getStudyClass() \n\t{\n\t\treturn studyClass;\n\t}", "title": "" }, { "docid": "3d67162d8630f78df88c69ef3eec4d5f", "score": "0.54574865", "text": "public String getSchoolName() {\n return schoolName;\n }", "title": "" }, { "docid": "0dd08cbb3fdc889dbaf94f5cb7ba0046", "score": "0.54501545", "text": "public String getSclass() {\n return sclass;\n }", "title": "" }, { "docid": "d7f6bd622a810c56e9c59af2bef447a9", "score": "0.54133314", "text": "public String getGraduateSchool() {\r\n\t\treturn graduateSchool;\r\n\t}", "title": "" }, { "docid": "0fd2a8bb47777b7e75f149f4a520fbe3", "score": "0.53973293", "text": "public String getSchoolname() {\r\n return schoolname;\r\n }", "title": "" }, { "docid": "519040a203e208a3c9e631bdba628c39", "score": "0.5248422", "text": "public Integer getClassification() {\n\t\treturn classification;\n\t}", "title": "" }, { "docid": "9aeee1681d22a3e053cb108f9352bd34", "score": "0.52405286", "text": "public org.semanticwb.platform.SemanticObject getHClass()\r\n {\r\n org.semanticwb.platform.SemanticObject ret=null;\r\n ret=getSemanticObject().getObjectProperty(swbxf_heClass);\r\n return ret;\r\n }", "title": "" }, { "docid": "2a9cb02dbfe7731d17e0c7a301def6be", "score": "0.5204909", "text": "public java.lang.String getClassName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSNAME$0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "title": "" }, { "docid": "d31d3f7a1467baae6ed796c642857bb3", "score": "0.5203461", "text": "public String charClass() {\n\t\treturn data.getString(\"h_class\");\n\t}", "title": "" }, { "docid": "c95a075b8516f5f246d90f977b3a0f38", "score": "0.51673514", "text": "public String getClassification()\n\t{\n\t\treturn this.classification;\n\t}", "title": "" }, { "docid": "c475b68dc4c188e31263d1f2aa0d88cb", "score": "0.5143402", "text": "public Integer getSchoolId() {\n return schoolId;\n }", "title": "" }, { "docid": "41eb66520a4595fe3f82dcedee5cecba", "score": "0.5142262", "text": "public abstract int getStudentClasses();", "title": "" }, { "docid": "03caccef905fbda556f03cb8545f08f3", "score": "0.51362944", "text": "public int getSchoolId() {\r\n return schoolId;\r\n }", "title": "" }, { "docid": "86b1d01bae4abcee07052f8b08f5bdd7", "score": "0.51328135", "text": "@Override\r\n\tpublic School getSchool(String schoolName) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "1479c5b9509353bdd8be8e94984cc426", "score": "0.51294094", "text": "public java.lang.String getSzCdSchoolDistrict()\r\n {\r\n return this._szCdSchoolDistrict;\r\n }", "title": "" }, { "docid": "77afc3a1f8c5db2fd1a1b2e3f2a35d2d", "score": "0.51171017", "text": "String getSchoolName(){\r\n return this.schoolName ;\r\n }", "title": "" }, { "docid": "05123c6bba48b5df45f618895b612a9f", "score": "0.50873727", "text": "public static String getClassByStud(String ID){\n\t\t\n\t\tHashMap <String,String> msgServer = new HashMap <String,String>();\n\t\tmsgServer.put(\"msgType\", \"select\");\n\t\tmsgServer.put(\"query\", \"select ClassName from student_class where StudentID='\"+ID+\"';\");\n\t\tArrayList<String> result = sendMsg(msgServer);\t\n\t\t\n\t\tif (result == null)\n\t\t\treturn null;\n\t\t\n\t\treturn result.get(0);\n\t}", "title": "" }, { "docid": "011f1dbeb4dc802de8384479ae1c9d73", "score": "0.50345457", "text": "static ResultSet getClassList(String classID) throws SQLException, ClassNotFoundException {\r\n if (conn == null) {\r\n getConnection();\r\n }\r\n\r\n classID = classID.toLowerCase();\r\n PreparedStatement prep = conn.prepareStatement(\"SELECT * FROM Students WHERE LOWER(Class) = ?;\");\r\n prep.setString(1, classID);\r\n return prep.executeQuery();\r\n }", "title": "" }, { "docid": "65b95fc932bddca13df61b6887aa5955", "score": "0.50202507", "text": "String getHighestQualification(){\n\t\treturn highqual;\n\t}", "title": "" }, { "docid": "ba9e7dd6d5fa96bea85e151d499796b8", "score": "0.49990404", "text": "public Class getRandomClass() {\n User randomUser = getRandomNotInfectedUser();\n int randomNumber = getRandomNumber(randomUser.getAllClasses().size());\n return randomUser.getAllClasses().get(randomNumber);\n }", "title": "" }, { "docid": "fff4815abb2521288bb3399e731542ff", "score": "0.4974638", "text": "private static ClassGradebook getClass(Gradebook bkVar) {\n\t\tString scanInput;\n\t\twhile(true) { //if invalid course, prompts for another\n\t\t\tSystem.out.println(\"What is the name of the course?\");\n\t\t\tsleepLocal();\n\t\t\tscanInput = sc.nextLine();\n\t\t\tif(bkVar.ClassMap.containsKey(scanInput)) { //if is in map of classes\n\t\t\t\tfor(Map.Entry<String,ClassGradebook> theEntry : bkVar.ClassMap.entrySet()) { //loops over entries in collection of classes\n\t\t\t\t\tif(scanInput.equals(theEntry.getKey())) { //if input name of class equals map key\n\t\t\t\t\t\treturn theEntry.getValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(scanInput + \" is not a valid course\");\n\t\t\t\tif(gradeBk.ClassMap.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"There are no courses entered in the gradebook\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"Courses entered in gradebook are\");\n\t\t\t\t\tSystem.out.println(getCourses());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "49cf315143a57eee1894fd9d0f5800e8", "score": "0.49532965", "text": "public String getCollege() { return this.college; }", "title": "" }, { "docid": "a61116d1b14001ab751ffedd91d0978a", "score": "0.49291268", "text": "public SmsMsgClass getMessageClass()\n {\n switch (getGroup())\n {\n case GENERAL_DATA_CODING:\n // General Data Coding Indication\n if (dcs_ == 0x00)\n {\n return SmsMsgClass.CLASS_UNKNOWN;\n }\n \n switch (dcs_ & 0x13)\n {\n case 0x10: return SmsMsgClass.CLASS_0;\n case 0x11: return SmsMsgClass.CLASS_1;\n case 0x12: return SmsMsgClass.CLASS_2;\n case 0x13: return SmsMsgClass.CLASS_3;\n default: return SmsMsgClass.CLASS_UNKNOWN;\n }\n \n case DATA_CODING_MESSAGE:\n // Data coding/message class\n switch (dcs_ & 0x03)\n {\n case 0x00: return SmsMsgClass.CLASS_0;\n case 0x01: return SmsMsgClass.CLASS_1;\n case 0x02: return SmsMsgClass.CLASS_2;\n case 0x03: return SmsMsgClass.CLASS_3;\n default: return SmsMsgClass.CLASS_UNKNOWN;\n }\n \n default:\n return SmsMsgClass.CLASS_UNKNOWN;\n }\n }", "title": "" }, { "docid": "f0a42bbe9efb07dc654bbbe534e1c36e", "score": "0.49144784", "text": "public String getClassNameValue() {\n return (String) getValue();\n }", "title": "" }, { "docid": "8268da76b8325d06ca58ec6fd25e6e82", "score": "0.4896321", "text": "public int getFishInSchool() {\r\n\t\treturn this.sizeOfSchool;\r\n\t}", "title": "" }, { "docid": "a850c0d87556fa06fa4651d99edb8ff7", "score": "0.48813036", "text": "private int fixClassID(Race r, String classString, int sex){\n\t\tswitch(r){\n\t\tcase Human:\n\t\t\tif(FIGHTER.equals(classString))\n\t\t\t\treturn 0x0;\n\t\t\telse if(WIZARD.equals(classString))\n\t\t\t\treturn 0x0a;\n\t\tcase Elf:\n\t\t\tif(FIGHTER.equals(classString))\n\t\t\t\treturn 0x12;\n\t\t\telse if(WIZARD.equals(classString))\n\t\t\t\treturn 0x19;\n\t\tcase DarkElf:\n\t\t\tif(FIGHTER.equals(classString))\n\t\t\t\treturn 0x1f;\n\t\t\telse if(WIZARD.equals(classString))\n\t\t\t\treturn 0x26;\n\t\tcase Orc:\n\t\t\tif(FIGHTER.equals(classString))\n\t\t\t\treturn 0x2c;\n\t\t\telse if(WIZARD.equals(classString))\n\t\t\t\treturn 0x31;\n\t\tcase Dwarf:\n\t\t\tif(FIGHTER.equals(classString))\n\t\t\t\treturn 0x35;\n\t\tcase Kamael:\n\t\t\tif(sex != 1)\n\t\t\t\treturn 0x7b;\n\t\t\telse \n\t\t\t\treturn 0x7c;\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "4868fad0b6a39d3f52b6e498ef8f1314", "score": "0.48768052", "text": "@Column(name = \"GA_EMPLOY_CLASS_DES\")\n\tpublic String getEmployeeClassDescription()\n\t{\n\t\treturn employeeClassDescription;\n\t}", "title": "" }, { "docid": "392a6085a162a918887563ef3c4b67b8", "score": "0.4874556", "text": "public OWLClass getOWLClass() {\n\t\treturn cla;\n\t}", "title": "" }, { "docid": "42b6ae783c7da72c0ef09c353e6c1d4c", "score": "0.48732674", "text": "@Override\n\tpublic String getEscolha_classe() {\n\t\treturn escolha_classe;\n\t}", "title": "" }, { "docid": "7d1a7e98c2afdb74730d6080b6e36826", "score": "0.48416287", "text": "public MedicalSchool getMedicalSchool() {\n return medicalSchool;\n }", "title": "" }, { "docid": "cd59ed6ff9bdf55504975120af88b5d6", "score": "0.48189536", "text": "public String getCollegeName() {\n return collegeName;\n }", "title": "" }, { "docid": "59db1fac1c91cebeb90c72f73bb8e8c8", "score": "0.48137358", "text": "public University getUniversity(String school) {\n\t\tString[][] schoolList = dbLibrary.university_getUniversities();\n\t\tfor (int n = 0; n < schoolList.length; n++) {\n\n\t\t\tif (schoolList[n][0].equals(school)) {\n\n\t\t\t\tString[][] emphases = dbLibrary.university_getEmphases();\n\t\t\t\tint emphCounter = 0;\n\t\t\t\tfor (int i = 0; i < emphases.length; i++) {\n\t\t\t\t\tif (emphases[i][0].equals(school)) {\n\t\t\t\t\t\temphCounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString[] returnEmphases = new String[emphCounter];\n\t\t\t\tint placer = 0;\n\t\t\t\tfor (int i = 0; i < emphases.length; i++) {\n\t\t\t\t\tif (emphases[i][0].equals(school)) {\n\t\t\t\t\t\treturnEmphases[placer] = emphases[i][1];\n\t\t\t\t\t\tplacer++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn new University(schoolList[n][0], schoolList[n][1], schoolList[n][2], schoolList[n][3],\n\t\t\t\t\t\tschoolList[n][4], schoolList[n][5], schoolList[n][6], schoolList[n][7], schoolList[n][8],\n\t\t\t\t\t\tschoolList[n][9], schoolList[n][10], schoolList[n][11], schoolList[n][12], schoolList[n][13],\n\t\t\t\t\t\tschoolList[n][14], schoolList[n][15], returnEmphases);\n\n\t\t\t}\n\t\t}\n\t\treturn null;\n\n\t}", "title": "" }, { "docid": "2a7392c0ebf2dea5b8b65574205e30c6", "score": "0.48079878", "text": "com.google.protobuf.ByteString getSchoolNameBytes();", "title": "" }, { "docid": "b3ea6ff3dc441a7b686fee3a492cc75a", "score": "0.48007134", "text": "public static PersonAttributeType getHealthCenterAttributeType(){\r\n PersonAttributeType ret = null;\r\n String st = Context.getAdministrationService().getGlobalProperty(PrimaryCareConstants.GLOBAL_PROPERTY_HEALTH_CENTER_ATTRIBUTE_TYPE);\r\n if (st != null && !st.equals(\"\")){\r\n ret = Context.getPersonService().getPersonAttributeTypeByName(st);\r\n }\r\n return ret;\r\n }", "title": "" }, { "docid": "e2705a6713b3613b53c4849e2f75001e", "score": "0.4793981", "text": "public void setSchooltype(Short schooltype) {\r\n this.schooltype = schooltype;\r\n }", "title": "" }, { "docid": "a54c867ca8858647900252e4bca4bf41", "score": "0.47878888", "text": "public Integer getCollegeNature() {\n return collegeNature;\n }", "title": "" }, { "docid": "87b82bb71cd4c5e37bef44daef6bf7e3", "score": "0.47848806", "text": "public int getPlayerClass()\n\t{\n\t\treturn clas;\n\t}", "title": "" }, { "docid": "a92ded499478f66da4e6c89494297d2f", "score": "0.47840768", "text": "public String getClassValue() {\n return this.classVal;\n }", "title": "" }, { "docid": "e175bfea784a0308e275cffc2842dcd5", "score": "0.47802433", "text": "public School getSchool() {\r\n long __key = this.schoolID;\r\n if (school__resolvedKey == null || !school__resolvedKey.equals(__key)) {\r\n if (daoSession == null) {\r\n throw new DaoException(\"Entity is detached from DAO context\");\r\n }\r\n SchoolDao targetDao = daoSession.getSchoolDao();\r\n School schoolNew = targetDao.load(__key);\r\n synchronized (this) {\r\n school = schoolNew;\r\n \tschool__resolvedKey = __key;\r\n }\r\n }\r\n return school;\r\n }", "title": "" }, { "docid": "ec87300988e36de5d8f371e662342209", "score": "0.47769627", "text": "public void setSchool(String school) {\r\n this.school = school;\r\n }", "title": "" }, { "docid": "949af6c36d8f01eccfbfb630db907cdc", "score": "0.47758865", "text": "private void loadClassesInSchoolCombo(final TimeTableLessonWindow window, final String schoolId,\n\t\t\tfinal String defaultValue) {\n\t\tGWT.log(\"SCHOOL ID \" + schoolId);\n\t\tLinkedHashMap<String, Object> map = new LinkedHashMap<>();\n\t\tmap.put(RequestConstant.GET_SCHOOL_CLASSES_IN_SCHOOL, schoolId);\n\t\tmap.put(RequestConstant.LOGIN_TOKEN, SessionManager.getInstance().getLoginToken());\n\n\t\tSC.showPrompt(\"\", \"\", new SwizimaLoader());\n\n\t\tdispatcher.execute(new RequestAction(RequestConstant.GET_SCHOOL_CLASSES_IN_SCHOOL, map),\n\t\t\t\tnew AsyncCallback<RequestResult>() {\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tSystem.out.println(caught.getMessage());\n\t\t\t\t\t\tSC.warn(\"ERROR\", caught.getMessage());\n\t\t\t\t\t\tGWT.log(\"ERROR \" + caught.getMessage());\n\t\t\t\t\t\tSC.clearPrompt();\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onSuccess(RequestResult result) {\n\t\t\t\t\t\tSC.clearPrompt();\n\t\t\t\t\t\tSessionManager.getInstance().manageSession(result, placeManager);\n\n\t\t\t\t\t\tif (result != null) {\n\n\t\t\t\t\t\t\tLinkedHashMap<String, String> valueMap = new LinkedHashMap<>();\n\n\t\t\t\t\t\t\tfor (SchoolClassDTO schoolClassDTO : result.getSchoolClassDTOs()) {\n\t\t\t\t\t\t\t\tvalueMap.put(schoolClassDTO.getId(), schoolClassDTO.getName());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twindow.getSchoolClassCombo().setValueMap(valueMap);\n\n\t\t\t\t\t\t\tif (defaultValue != null) {\n\t\t\t\t\t\t\t\twindow.getSchoolClassCombo().setValue(defaultValue);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSC.warn(\"ERROR\", \"Unknow error\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t}", "title": "" }, { "docid": "b1a80b1643db343f377cb6e1642ef95a", "score": "0.47745633", "text": "public String getStudent_type_name() {\r\n return student_type_name;\r\n }", "title": "" }, { "docid": "817067b8591ce783de82082daeaf1693", "score": "0.47669843", "text": "public String getTriggerClass() {\n\t\tif (null != this.triggerClass) {\n\t\t\treturn this.triggerClass;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"triggerClass\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "3ea1bbad007ffd0b6669b37c518a02b7", "score": "0.47599173", "text": "public IrClassType getClassType() {\r\n\t\treturn classType;\r\n\t}", "title": "" }, { "docid": "60b7d25d3af728ab2065eecf21b30f95", "score": "0.47581223", "text": "public School_Object(String name, String student_type, int enrollment_size, String school_classification)\n {\n this.School_name = name;\n \n if (student_type.equalsIgnoreCase(\"Adult\"))\n {\n this.Student_Type = \"Adult\";\n }\n else\n {\n this.Student_Type = \"Child\";\n }\n \n if ( enrollment_size <=1000 || enrollment_size >=0)\n {\n this.Enrollment_Size = enrollment_size;\n }\n else\n {\n this.Enrollment_Size = 1;\n }\n \n if (school_classification.equalsIgnoreCase(\"Private\"))\n {\n this.School_classification = school_classification;\n }\n else\n {\n this.School_classification = \"Public\";\n }\n \n }", "title": "" }, { "docid": "e5eec8e1f2f12190d75b938d7e030c1f", "score": "0.47513238", "text": "public void setSchool(String school) {\n this.school = school;\n }", "title": "" }, { "docid": "34a0e7c8b065efd3c7e1173b07646b27", "score": "0.47457707", "text": "public void setSchoolName(String schoolName) {\n this.schoolName = schoolName;\n }", "title": "" }, { "docid": "34a0e7c8b065efd3c7e1173b07646b27", "score": "0.47457707", "text": "public void setSchoolName(String schoolName) {\n this.schoolName = schoolName;\n }", "title": "" }, { "docid": "98e2129818861d8482029424497b4f27", "score": "0.47449544", "text": "public String getStudentMajor() {\n return studentMajor;\n }", "title": "" }, { "docid": "7de84d451bac8d957bcf3695d8e0d425", "score": "0.47283435", "text": "public void setSchool(String school) {\r\n\t\tthis.school = school;\r\n\t}", "title": "" }, { "docid": "e4f28e2e3683b5e08b6ab8f8d0304bc8", "score": "0.4727952", "text": "public int getDualClassLevelHighest() {\n\t\tint nLevel = 0;\n\t\t\n\t\tfor(PCClass cC : getMyClass())\n\t\t\tif (cC.isLockedClass() && cC.getLevel()> nLevel)\n\t\t\t\tnLevel = cC.getLevel();\n\t\t\n\t\treturn nLevel;\n\t}", "title": "" }, { "docid": "bd621e3c15324ec508b74eaa9c37bdb3", "score": "0.47182494", "text": "public String getClassificationAttributeName() {\n return classificationConstraints.getAttributeName();\n }", "title": "" }, { "docid": "745ba6127e5be2d80e463234be021484", "score": "0.4712685", "text": "public String GetCourseGrade(){\r\n return this.courseGrade;\r\n }", "title": "" }, { "docid": "7116eec45e77706bbcce7a2b86717065", "score": "0.47045833", "text": "public String getSujectClass() {\r\n\t\treturn sujectClass;\r\n\t}", "title": "" }, { "docid": "6aa092d1d9305bb28046431f096109d5", "score": "0.47035217", "text": "public BigDecimal getCLASS() {\r\n return CLASS;\r\n }", "title": "" }, { "docid": "0185b6503dbfc8a3c0c1f05ff2b4b071", "score": "0.46979865", "text": "public abstract CLASS getCollisionClass();", "title": "" }, { "docid": "35eaee3c06fe2c73f902602f403a2154", "score": "0.469303", "text": "public String getClasstype() {\n\t\treturn classtype;\n\t}", "title": "" }, { "docid": "3aa3103139b251815940e6f743c6503d", "score": "0.4690701", "text": "public String getHighestConfidenceType(){\r\n\t return highestConfidenceType;\r\n\t }", "title": "" }, { "docid": "62606454769e5e6afd075b486bdb0898", "score": "0.46860576", "text": "public String getSelectedSuiteClass() {\n return cboSuiteClass().getSelectedItem().toString();\n }", "title": "" }, { "docid": "93b1c648be3333b08a003fe03a9f0c9d", "score": "0.4683996", "text": "public int getPrimaryClassLevel() {\n\t\tint nLevel = 0;\n\t\tPCClass cC = getPrimaryDualClass();\n\t\tif (cC != null)\n\t\t\tnLevel = cC.getLevel();\n\t\treturn nLevel;\n\t}", "title": "" }, { "docid": "9ec2c43fe4de6566c5a65102b0b09aee", "score": "0.46743932", "text": "public char returnDClassChoice() {\r\n\t\treturn testForDClass;\r\n\t}", "title": "" }, { "docid": "91ee3d0308b30ed48e5dfb501941f246", "score": "0.46468264", "text": "public static String getClassName(int mid) {\n\t\tif (!init_done || map2.isEmpty() || !map2.containsKey(mid)) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn map2.get(mid).class_name;\n\t}", "title": "" }, { "docid": "5d5ce64cce69074006026fb3caf04872", "score": "0.46413913", "text": "java.lang.String getSchoolNameSnippet();", "title": "" }, { "docid": "e7e2b106b595cafa14c9b4221ca80649", "score": "0.46371445", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.ECFClassOfBusiness_Ext getClassOfBusiness() {\n return (typekey.ECFClassOfBusiness_Ext)__getInternalInterface().getFieldValue(CLASSOFBUSINESS_PROP.get());\n }", "title": "" }, { "docid": "fc3ac3d74ab8be7c88f1452f677e6333", "score": "0.46324763", "text": "public static DatabaseReference getAllSchoolsRef(){\n return getBaseRef().child(SCHOOLS);\n }", "title": "" }, { "docid": "8639f6c84656c8704ed4ecd5539ea9d7", "score": "0.46199167", "text": "byte lookupCharacterClass(String characterClassName);", "title": "" }, { "docid": "0b6def382bb1e8c3dce69a138c2afbf0", "score": "0.46168384", "text": "public void setSchoolCode(String schoolCode) {\n\t\tthis.schoolCode = schoolCode;\n\t}", "title": "" }, { "docid": "bec1931b5a86d66815e5dc630c03e3f7", "score": "0.46098882", "text": "public org.apache.xmlbeans.XmlString xgetClassName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CLASSNAME$0);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "5e25399eb6041f36b36251f4cba40b81", "score": "0.4609158", "text": "public Integer getSchoolExpId() {\n return schoolExpId;\n }", "title": "" }, { "docid": "29f04c6919b8e27f2ac71ae20b0689ac", "score": "0.4609024", "text": "public Cursor getSchool(long rowID) throws SQLException \n\t{\n\t\t//Cursor mCursor = data.query(true, DATABASE_TABLE, new String[]{KEY_ROWID, KEY_COUNTY, KEY_DISTRICT}, KEY_ROWID + \"=\" + rowID, null, null, null, null, null);\n\t/*\tCursor mCursor = data.query(true, DATABASE_TABLE, new String[]{KEY_ROWID, KEY_COUNTY, KEY_DISTRICT, KEY_SCHOOL, KEY_STREET, \n\t\t\t\tKEY_ABR, KEY_CITY, KEY_ZIP, KEY_STATE, KEY_API}, KEY_API +\"=\" +rowID, null, null, null, null, null);\n\t*/\t\n\t\t\n\t\t//RAW QUERY EXAMPLE\n\tString q= \"SELECT rowid _id, * FROM School_DB\";\n\t\t//String q= \"SELECT * FROM School_DB WHERE School =\" + rowID +\";\";\n\t\tCursor mCursor = data.rawQuery(q, null);\n\t\t\n\tif (mCursor != null)\n\t\t{\n\t\t\tmCursor.moveToFirst();\n\t\t}\n\t\t\n\t\treturn mCursor; \n\t}", "title": "" }, { "docid": "c5884e0f121d37562725501cf4224bdd", "score": "0.45916685", "text": "public String getClassName() {\n return (mClassDetails == null || mClassDetails.getClassName() == null) ?\n \"\" : mClassDetails.getClassName();\n }", "title": "" }, { "docid": "32ce744efd61b8a3e92f6f93e2c75f57", "score": "0.45908374", "text": "public CWE getOrganizationNameTypeCode() {\n return this.organizationNameTypeCode;\n }", "title": "" }, { "docid": "bdcae439e1d11e409e37e8fc1324f76a", "score": "0.45880696", "text": "public Integer getStudent_type_id() {\r\n return student_type_id;\r\n }", "title": "" }, { "docid": "bb63ae74294bae00cd22eca96c54d1ab", "score": "0.45865166", "text": "public String getSchool_addr() {\r\n return school_addr;\r\n }", "title": "" }, { "docid": "65e3c35b5a84d546afd6d7e24c934633", "score": "0.45754677", "text": "public void setSchoolName(String SchoolName) {\n this.SchoolName = SchoolName;\n }", "title": "" }, { "docid": "64104291c22ff0352e12054b9df996e2", "score": "0.45622167", "text": "public java.lang.String getSzCdPersonHighestEduc()\r\n {\r\n return this._szCdPersonHighestEduc;\r\n }", "title": "" }, { "docid": "23471a33c2a3d134388bb4260033baee", "score": "0.4560316", "text": "String getSteelGrade();", "title": "" }, { "docid": "cd06c9dba0435bf2857398beb997cce4", "score": "0.4554656", "text": "public int getClassification() {\r\n return this.myIDFile.getClassification();\r\n }", "title": "" }, { "docid": "23d542cd6e6fcf4c505a78ebe7e14b64", "score": "0.45429277", "text": "public java.lang.String getSzCdDocClass()\r\n {\r\n return this._szCdDocClass;\r\n }", "title": "" }, { "docid": "fab16f7ac0b7d04457328328797f12a2", "score": "0.4541853", "text": "public java.lang.String getClassType(){return this.classType;}", "title": "" }, { "docid": "5ded46a14f30ba4045e788b4a0ca1732", "score": "0.45298982", "text": "@Transient\n\tpublic Class<?> getClassType() {\n\t\treturn Exam.class;\n\t}", "title": "" }, { "docid": "e35e9048801eb2a8620380f975f2c8b7", "score": "0.4526282", "text": "public University getUniversity2(String school) {\n\t\tString[][] schoolList = dbLibrary.university_getUniversities();\n\t\tString[][] namesWithEmphases = dbLibrary.university_getNamesWithEmphases();\n\t\tUniversity returnUniversity = null;\n\t\t// Making a ArrayList first, because we cannot sure the length of the emphases\n\t\t// array\n\t\tArrayList<String> empha = new ArrayList<>();\n\t\tfor (int i = 0; i < namesWithEmphases.length; i++) {\n\t\t\tif (namesWithEmphases[i][0].equals(school)) {\n\t\t\t\tempha.add(namesWithEmphases[i][1]);\n\t\t\t}\n\t\t}\n\t\t// Filling the emphases array here\n\t\tString[] emphases = new String[empha.size()];\n\t\tfor (int i = 0; i < empha.size(); i++) {\n\t\t\temphases[i] = empha.get(i);\n\t\t}\n\t\t// Making a new instance of University then return it\n\t\tfor (int n = 0; n < schoolList.length; n++) {\n\t\t\tif (schoolList[n][0].equals(school)) {\n\t\t\t\treturnUniversity = new University(schoolList[n][0], schoolList[n][1], schoolList[n][2],\n\t\t\t\t\t\tschoolList[n][3], schoolList[n][4], schoolList[n][5], schoolList[n][6], schoolList[n][7],\n\t\t\t\t\t\tschoolList[n][8], schoolList[n][9], schoolList[n][10], schoolList[n][11], schoolList[n][12],\n\t\t\t\t\t\tschoolList[n][13], schoolList[n][14], schoolList[n][15], emphases);\n\t\t\t}\n\t\t}\n\t\treturn returnUniversity;\n\t}", "title": "" }, { "docid": "6b36c1a9f196e84ea2b750395a0da985", "score": "0.45214915", "text": "public int getCourseworkType() {\r\n\t\treturn this.courseworkType;\r\n\t}", "title": "" }, { "docid": "81f1dcdc5127f7ecf17ddadac35afeea", "score": "0.45204774", "text": "ArrayList<Student> getClassList()\n\t{\n\t\treturn classList;\n\t}", "title": "" }, { "docid": "ed7f711e481d40a8f1486e6c78c89212", "score": "0.45160854", "text": "public IIndustryClassificationDAC getIndustryClassificationDAC()\r\n\t{\r\n\t\treturn industryClassificationDAC;\r\n\t}", "title": "" } ]
2523f454aa8056ca16714ccb35d20837
Tries to increment the count under capacity provided with expiration for the given resource. Throws an Exception when limit is exceeded
[ { "docid": "b2e361d6dcd471ede3cf71e7d5a699c4", "score": "0.49670544", "text": "T addAndGetWithinLimit(RateLimitRequest limitRequest);", "title": "" } ]
[ { "docid": "3439c56648fdc23ee466c78f17c522b3", "score": "0.646781", "text": "public void incrementCount() {\n if (++count > maximalCount) {\n throw new MaxCountExceededException(maximalCount);\n }\n }", "title": "" }, { "docid": "c84b47a4068078e65268dff5de214ee7", "score": "0.6412479", "text": "protected void incrementConsumed(int resourceUse){\r\n\t\tfor (int i = 1; i <= resourceUse; i++){\r\n\t\t\tincrementConsumed();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4733e9d1d1e58f6103f222ab6656e0c2", "score": "0.62706995", "text": "@Override\n protected void adjustCapacity() {\n while (!(BigInteger.valueOf(capacity).isProbablePrime(20))) {\n capacity++;\n }\n }", "title": "" }, { "docid": "ed33ebd8a359c2f3fd6206b649f42dd4", "score": "0.62239426", "text": "public synchronized void increaseCount(int count)\n\t{\n\t\tavailableResources += count;\n\t\tnotify();\n\t}", "title": "" }, { "docid": "37b4b1d6ca99e2971ef50b96a75cd32c", "score": "0.60093886", "text": "public void setCapacity(int capacity) {\n this.capacity += capacity;\n }", "title": "" }, { "docid": "7951fc6a5b9d0b5354fdd29942d19fa8", "score": "0.5856438", "text": "private void increaseCapacity() {\r\n int nextCapacity = (capacity * CAPACITY_INCREASE_FACTOR) + 1; //even numbers cannot be prime\r\n double i = 3.0;\r\n\r\n while(i <= Math.floor(Math.sqrt(nextCapacity))){\r\n if((nextCapacity*10 / i) % 10 == 0){\r\n i = 3.0; // reset counter\r\n nextCapacity += 2; // increase to the next odd number\r\n } else {\r\n i += 2;\r\n }\r\n }\r\n capacity = nextCapacity;\r\n }", "title": "" }, { "docid": "0fd28c9ffabc03c8ba6e401a0bdd814f", "score": "0.58107543", "text": "private int incrementCounter() {\n\n int temp;\n lock.lock();\n\n try {\n if (counter > counterLimit) {\n return counter;\n }\n System.out.println(this.toString());\n temp = counter;\n counter = temp + 1;\n } finally {\n lock.unlock();\n }\n return temp;\n\n }", "title": "" }, { "docid": "1cf1a714554db35be608d823c5762f44", "score": "0.56479377", "text": "public void expandCapacity(int a) {\n this.capacity += a;\n }", "title": "" }, { "docid": "8e9eb7a783917aff9e4da7f7c336a942", "score": "0.56328773", "text": "private int sizeFor(int capacity) {\n capacity |= capacity >>> 1;\n capacity |= capacity >>> 2;\n capacity |= capacity >>> 4;\n capacity |= capacity >>> 8;\n capacity |= capacity >>> 16;\n return capacity + 1;\n }", "title": "" }, { "docid": "09ba298fed10f06987d0e07f904cee03", "score": "0.5629115", "text": "long capacity();", "title": "" }, { "docid": "030e36db095c14888d7cfaad59273116", "score": "0.56196976", "text": "@Override\n public void success() {\n inFlight.decrementAndGet();\n double newLimit = accumulateAndGetLimit(inFlightSnapshot, LimitUpdater.SUCCESS);\n if (log.isDebugEnabled()) {\n log.debug(\"Increasing limit {}\", SafeArg.of(\"newLimit\", newLimit));\n }\n }", "title": "" }, { "docid": "de58e8f435a6a5b4a790c0b8f254758d", "score": "0.5614371", "text": "public int remainingCapacity();", "title": "" }, { "docid": "0f5c81470ceb87a8ec6948bab79e26f3", "score": "0.5611933", "text": "public void increase(){\n\t\tthis.count.incrementAndGet();\n\t}", "title": "" }, { "docid": "8a5f5a2b05d0efe0b17655c2fbbc5ca5", "score": "0.5580856", "text": "void ensureCapacity(int capacity);", "title": "" }, { "docid": "0abd06990a8f1494e8637b500f1e67d9", "score": "0.55777985", "text": "int getCapacity();", "title": "" }, { "docid": "05e4cf189b0bc5ec51d8c876cd062dbe", "score": "0.5524251", "text": "public void setCapacity(int value) {\n this.capacity = value;\n }", "title": "" }, { "docid": "05e4cf189b0bc5ec51d8c876cd062dbe", "score": "0.5524251", "text": "public void setCapacity(int value) {\n this.capacity = value;\n }", "title": "" }, { "docid": "e64dcabd8f973fd6b70f4c5425b1375e", "score": "0.55130714", "text": "void incrJobSubmissionRetryCount();", "title": "" }, { "docid": "e04609d77811ac184d2af04ff3f144a8", "score": "0.55018014", "text": "public abstract void setCapacity(int number);", "title": "" }, { "docid": "7214ebf1105b133c6a797c8903ebf913", "score": "0.54720455", "text": "public void setCapacity(int c) {\n this.capacity=c;\n}", "title": "" }, { "docid": "cef4d0f639ef992679480efb1c9658b9", "score": "0.5467267", "text": "public void setCapacity(final int c)\r\n {\r\n this.capacity = c;\r\n }", "title": "" }, { "docid": "1fbf916d82e432563cafcf0f3fdc1b91", "score": "0.54666597", "text": "public Locker(int capacity){\n this.capacity = capacity;\n this.availableCapacity = capacity;\n }", "title": "" }, { "docid": "cc66cc8faddcd73e1813d1d3c34ff5d7", "score": "0.5414551", "text": "public void setCapacity(int capacity)\n {\n this._capacity = capacity;\n this._has_capacity = true;\n }", "title": "" }, { "docid": "577528f07b8c436a5ad1d75f5ccc6d0b", "score": "0.54072416", "text": "public abstract int getCapacity();", "title": "" }, { "docid": "4d7face38deed82aac9e2c8bf9093e98", "score": "0.54033047", "text": "public int getCapacity();", "title": "" }, { "docid": "0cba56c9ba2a5e5f0ea43e4eafcc6695", "score": "0.5393557", "text": "public void checkCapacity(int requiredCapacity) {\n\t\tif(getCapacity() == 0)\n\t\t{\n\t\t\tchangeCapacity(DEFAULT);\n\t\t}\n\t\tif(getCapacity() < requiredCapacity)\n\t\t{\n\t\t\tif(getCapacity()*DOUBLING < requiredCapacity)\n\t\t\t{\n\t\t\t\tchangeCapacity(requiredCapacity);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tchangeCapacity(getCapacity()*DOUBLING);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9f24721e15123813299e775ead80c214", "score": "0.5373648", "text": "public int incrementCount(int n) throws IllegalArgumentException {\n if (n < 0)\n throw new IllegalArgumentException(\"n must not be smaller than 0.\");\n\n int newCount = getCount() + n;\n setCount(newCount);\n\n return newCount;\n }", "title": "" }, { "docid": "9f1853511c78c4e308a2b8c85cb1751a", "score": "0.53729314", "text": "int capacity();", "title": "" }, { "docid": "9f1853511c78c4e308a2b8c85cb1751a", "score": "0.53729314", "text": "int capacity();", "title": "" }, { "docid": "d6c5324d454f5b15efdca05b96a6ea08", "score": "0.5371604", "text": "void setCapacity(int capacity);", "title": "" }, { "docid": "0ffc3d0207ceb83761bf85d8253ab905", "score": "0.53596884", "text": "void setCapacity(int capacity) {\n this.capacity = capacity;\n }", "title": "" }, { "docid": "be906e5a9b4edcced2f6729f0c862d90", "score": "0.53542906", "text": "public void setCapacity(Integer c) {\n\t\tcapacity = c;\n\t}", "title": "" }, { "docid": "e6d505f1c798720b7bf85789ae82ab5b", "score": "0.5353321", "text": "public abstract int capacity();", "title": "" }, { "docid": "a0b7b8d58d01950f4ece8bba89fa75bc", "score": "0.534018", "text": "public void increment() {\r\n\t\tif (this.currentValue == MAX_VALUE) {\r\n\t\t\tthis.currentValue = 0;\r\n\t\t} else {\r\n\t\t\tthis.currentValue++;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6aab4eec939eba7f70b0447bf91385ca", "score": "0.5337698", "text": "public long incrementMisses(){\n\t\tfinal long newValue = misses.incrementAndGet();\n\t\t\n\t\tif (newValue == Long.MAX_VALUE){\n\t\t\tmisses.set(1);\n\t\t\toldMisses = 0;\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\treturn newValue;\n\t}", "title": "" }, { "docid": "d7e9b9969891fbb104aefae0626bebf7", "score": "0.53347665", "text": "public int getCapacity( );", "title": "" }, { "docid": "c60b7d27bff234e7bc267480218dd902", "score": "0.53325003", "text": "public void incrementRetryAttempt()\n {\n // Codes_SRS_IOTHUBTRANSPORTPACKET_34_009: [This function shall increment the saved retry attempt count by 1.]\n this.currentRetryAttempt++;\n }", "title": "" }, { "docid": "eda0b570ca6badb7a824e87c8f0077b4", "score": "0.53041077", "text": "public void setCapacity(int capacity) \r\n\t{\r\n\t\tthis.capacity = capacity;\r\n\t}", "title": "" }, { "docid": "e33365b1b963ea055a75a622d5fe5f06", "score": "0.52996594", "text": "@Test\r\n public void testAddItemCapacityRe() {\r\n clean();\r\n int item = indexItem();\r\n if (item > 0) {\r\n locker.addItem(items[item], 1);\r\n int amountAdd = addToGetHalf(items[item]);\r\n int itemsToAddLocker = getItemsKeptInLocker(items[item]);\r\n longTermStorage.resetInventory();\r\n int n = locker.addItem(items[item], amountAdd);\r\n assertEquals(\"return value is wrong\", 1, n);\r\n } else {\r\n System.out.println(\"error - or the capacity of locker too small or a smaller volume item needed\");\r\n }\r\n }", "title": "" }, { "docid": "49b419e9f53abfdc28225a67ce210524", "score": "0.52987975", "text": "public synchronized void up(int amount) {\n\n\t\tif (amount < 0) {\n\t\t\tthrow new IllegalArgumentException(\"Amount must be positive\");\n\t\t}\n\n\t\tthis.resourceCount += amount;\n\t\tthis.notify();\n\t}", "title": "" }, { "docid": "54f915b9e5d5d50ca4125cf6170d6b33", "score": "0.5287879", "text": "@Override\n\tpublic void increase_capacity (int capacity) {\n\t\n\t\t// If increasing capacity, resize accumulator\n\n\t\tif (capacity > acc_capacity) {\n\t\t\tacc_capacity = capacity;\n\t\t\tOEArraysCalc.resize_each_array_column (acc_counts, acc_capacity);\n\t\t}\n\n\t\treturn;\n\t}", "title": "" }, { "docid": "fa9982b415299bc4f5b2067a41dd8171", "score": "0.52732694", "text": "public long tryNext() throws InsufficientCapacityException {\n/* 158 */ return tryNext(1);\n/* */ }", "title": "" }, { "docid": "eeb00af2c430b97a028719ad4c17271f", "score": "0.5270068", "text": "public void setCapacity(int capacity) {\n\t\tthis.capacity = capacity;\n\t}", "title": "" }, { "docid": "eeb00af2c430b97a028719ad4c17271f", "score": "0.5270068", "text": "public void setCapacity(int capacity) {\n\t\tthis.capacity = capacity;\n\t}", "title": "" }, { "docid": "17572eb3c3ab37f75831e14d2b9b1401", "score": "0.526489", "text": "double getCapacity();", "title": "" }, { "docid": "9ca858ba5a76fc9b73089b51a2e5625e", "score": "0.5244357", "text": "public void setCapacity(int newCapacity) throws IllegalArgumentException {\r\n\t\tif (!isValidCapacity(newCapacity))\r\n\t\t\tthrow new IllegalArgumentException(\"Not valid capacity for purse\");\r\n\t\tcapacity = newCapacity;\r\n\t}", "title": "" }, { "docid": "afbaf83b30132fef94a933b4a264225f", "score": "0.5207406", "text": "public int findNextCapacity(int capacity) {\r\n\t\tint nextCapacity = capacity * 2;\r\n\t\tboolean isPrime = checkPrime(nextCapacity);\r\n\t\twhile(isPrime == false) {\r\n\t\t\tnextCapacity += 1;\r\n\t\t\tisPrime = checkPrime(nextCapacity);\r\n\t\t}\r\n\t\treturn nextCapacity;\r\n\t}", "title": "" }, { "docid": "8b6844bd0bed4ff2e5c7f98d7d7bbca5", "score": "0.5206873", "text": "public int getRemainingLimitStatus();", "title": "" }, { "docid": "f72aa356a1a5257194736a21cdfc761f", "score": "0.5191941", "text": "@Override\n\tpublic void incrementCount() {\n\t\t\n\t}", "title": "" }, { "docid": "e29a2b21e04615c6509895600e38498c", "score": "0.5177444", "text": "public void incrementCount() {\n\t\tthis.count++;\n\t}", "title": "" }, { "docid": "e29a2b21e04615c6509895600e38498c", "score": "0.5177444", "text": "public void incrementCount() {\n\t\tthis.count++;\n\t}", "title": "" }, { "docid": "ddefafa49e9ce80ad09c7b6989271830", "score": "0.5174687", "text": "@Override\r\n public void consume(){\r\n if(this.premium_request > 0){\r\n this.premium_request--;\r\n }else{\r\n super.consume();\r\n }\r\n }", "title": "" }, { "docid": "452782d2c6d8f2b1cff46118194c4254", "score": "0.5173382", "text": "private void grow(int capacity) {\n/* 277 */ if (capacity <= this.a.length)\n/* */ return; \n/* 279 */ if (this.a != ObjectArrays.DEFAULT_EMPTY_ARRAY) {\n/* 280 */ capacity = (int)Math.max(\n/* 281 */ Math.min(this.a.length + (this.a.length >> 1), 2147483639L), capacity);\n/* 282 */ } else if (capacity < 10) {\n/* 283 */ capacity = 10;\n/* 284 */ } if (this.wrapped) {\n/* 285 */ this.a = ObjectArrays.forceCapacity(this.a, capacity, this.size);\n/* */ } else {\n/* 287 */ Object[] t = new Object[capacity];\n/* 288 */ System.arraycopy(this.a, 0, t, 0, this.size);\n/* 289 */ this.a = (K[])t;\n/* */ } \n/* 291 */ assert this.size <= this.a.length;\n/* */ }", "title": "" }, { "docid": "e21be8188d9d9a2a24b99e7eae913ea2", "score": "0.5164604", "text": "protected abstract void growTo(int min);", "title": "" }, { "docid": "aaed637908e2efccce2258298be576c3", "score": "0.5156802", "text": "public abstract int getMaxCapacity();", "title": "" }, { "docid": "38f6c748006e71853f94c6637cf4b8f1", "score": "0.5145975", "text": "public void gainResource(int amount) {\n resources += amount;\n }", "title": "" }, { "docid": "c36e19f78dc45c7ec0914147e0afe28e", "score": "0.51402116", "text": "public void increment_total_prohibited(){total_prohibited_items++;}", "title": "" }, { "docid": "f0e07e0b94ec1a42ebde79a2cbb87cfc", "score": "0.51244575", "text": "public long incrementHits(){\n\t\tfinal long newValue = hits.incrementAndGet();\n\t\t\n\t\tif (newValue == Long.MAX_VALUE){\n\t\t\thits.set(1);\n\t\t\toldHits = 0;\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\treturn newValue;\n\t}", "title": "" }, { "docid": "b2bc47a2c4ebcccccce2d5c8275a7d43", "score": "0.5117802", "text": "@SuppressWarnings(\"rawtypes\")\n\tstatic protected int releaseResource(Resource resource, Map resourceCache) {\n\t\tInteger refCount = referenceCounts.get(resource);\n\t\t\n\t\tif (refCount != null) {\n\t\t\trefCount--;\n\t\t\treferenceCounts.put(resource, refCount);\n\t\t\t\n\t\t\tif (refCount == 0) {\n\t\t\t\t// log.debug(\"Reference count to 0; disposing of resource: \" + resource);\n\t\t\t\t\n\t\t\t\tresource.dispose();\n\t\t\t\treferenceCounts.remove(resource);\n\t\t\t\t\n\t\t\t\tObject cacheKey = null;\n\t\t\t\tfor (Object key : resourceCache.keySet()) {\n\t\t\t\t\tObject entry = resourceCache.get(key);\n\t\t\t\t\tif (entry.equals(resource)) {\n\t\t\t\t\t\tcacheKey = key;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (cacheKey != null) {\n\t\t\t\t\tresourceCache.remove(cacheKey);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\trefCount = 0;\n\t\t}\n\t\t\n\t\treturn refCount;\n\t}", "title": "" }, { "docid": "3328d8f2a588564a3190b2d6c38ca601", "score": "0.51160586", "text": "public ConnectionCapacity(int count, Class type) {\n this.count = count;\n this.type = type;\n }", "title": "" }, { "docid": "82d783764d64bc87c82ecaf7dee50aa3", "score": "0.5114857", "text": "public int getCapacity()\n {\n return this._capacity;\n }", "title": "" }, { "docid": "5f2bea3ce333ae7b60df212401703621", "score": "0.5113345", "text": "protected void incrementRequestCount()\n {\n m_cRequestCount++;\n }", "title": "" }, { "docid": "75f53f5d2618c12425e2cad45d19849a", "score": "0.5104367", "text": "public void incrementCount() {\n cnt++;\n }", "title": "" }, { "docid": "a9fb2de13d27191257a7b1f7b21cbb3c", "score": "0.5101578", "text": "public void incrementAttemptsValue() {\n this.attempts++;\n }", "title": "" }, { "docid": "2d98f48358c113c1f7d6cf663d552294", "score": "0.5098972", "text": "public int repairCost(){\n return (capacity * 100000);\n }", "title": "" }, { "docid": "5040fee2950e8c79238737906cb7604e", "score": "0.5093337", "text": "@Override\n public int capacity() {\n\n return capacity;\n }", "title": "" }, { "docid": "7fd82ff71363afda7017dd11bfdb3be6", "score": "0.5079507", "text": "public int getCapacity(){\n return this.capacity;\n }", "title": "" }, { "docid": "bfb8503dc71954eb62dda4f2a7f32655", "score": "0.5078261", "text": "int getCurrentCount();", "title": "" }, { "docid": "95bcaef2702445b30f45e002d8a34b87", "score": "0.5057652", "text": "private synchronized void increment() {\n count++;\n }", "title": "" }, { "docid": "714c69de990fae50537c2ecc39f00f54", "score": "0.5057121", "text": "public synchronized void increment() {\n\t\tcount++;\n\t}", "title": "" }, { "docid": "5a61cb35400547f8f2447085e83ea108", "score": "0.5048696", "text": "public int getCapacity()\r\n {\r\n return this.capacity;\r\n }", "title": "" }, { "docid": "afa770ad69bcae0e7f0774fbc0f8f5b3", "score": "0.50434494", "text": "protected void incrementTotalUpdatesRequired()\r\n {\r\n ++totalUpdatesRequired_;\r\n }", "title": "" }, { "docid": "06edf4b526baa6957b5f0067bd2240d8", "score": "0.5042761", "text": "@Override\r\n\tpublic int capacity() {\n\t\treturn cap;\r\n\t}", "title": "" }, { "docid": "ca44a168328a16bab1abd7f12432baf5", "score": "0.50391006", "text": "@Test\n public void putConcurrentLimitedHashMapSizeGreaterThanCapacity() {\n cache = new ConcurrentHeapCache<Object, Object>(cacheLoader, evictionListener, indexHandler, 0);\n Object object = new Object();\n cache.cache.put(object, object);\n doReturn(object).when(entry).getKey();\n doReturn(object).when(entry).getValue();\n doNothing().when(evictionListener).onEviction(object, object);\n doNothing().when(indexHandler).add(object, object);\n cache.put(object, object);\n verify(indexHandler, times(2)).add(object, object);\n }", "title": "" }, { "docid": "e84765c84013013e2565a8414d69b824", "score": "0.50379485", "text": "public int getCapacity() {\n return this.capacity;\n }", "title": "" }, { "docid": "d3bceea18cedf63d192ea4626c0a1c46", "score": "0.50350386", "text": "public void increment() {\n count++;\n }", "title": "" }, { "docid": "75ae81f8b339a1e7dac89d10e5263bc4", "score": "0.50350165", "text": "@Override\n public int getPermit() {\n lastInstanceQuotaStarted.compareAndExchange(0, System.currentTimeMillis());\n if (permitsLeft.getAndAccumulate(1, (current, j) -> current > 0 ? current - j : 0) > 0) {\n return 1;\n }\n\n long currentInstance = System.currentTimeMillis();\n long expected = lastInstanceQuotaStarted.get();\n //if there is request to obtain a permit before quota ends i.e the rate gets higher than the threshold and not previously locked then increase delay by lockedTime(5 seconds)\n if (expected + timeQuota > currentInstance && locked.compareAndSet(false, true)) {\n lastInstanceQuotaStarted.compareAndExchange(expected, expected + lockedTime);\n logger.debug(\"Delayed quota for {} till {}\", name, expected + lockedTime);\n }\n //another quota can be allocated\n if (lastInstanceQuotaStarted.get() + timeQuota <= currentInstance && permitsLeft.compareAndSet(0, permits - 1)) {\n lastInstanceQuotaStarted.set(currentInstance);\n locked.set(false);\n logger.debug(\"Added {} permits for {}\", permits, name);\n return 1;\n }\n \n if (permitsLeft.getAndAccumulate(1, (current, j) -> current > 0 ? current - j : 0) > 0) {\n return 1;\n }\n\n return 0;\n }", "title": "" }, { "docid": "85cf1c2eb6e5ec5ec644510182f05bb7", "score": "0.5029979", "text": "private int capacity(){\r\n return this.capa;\r\n }", "title": "" }, { "docid": "d7bdde647743f01c1c5e606b1ff6b7c3", "score": "0.5028467", "text": "@Override\n public int capacity()\n {\n return capacity;\n }", "title": "" }, { "docid": "66eba71f02764cb98405646e6d48fe01", "score": "0.502227", "text": "public void increaseCapacityTo(int capacity) {\n if(this.capacity >= capacity) {\n return;\n }\n \n this.capacity = capacity;\n Item[] temp = new Item[capacity];\n \n for(int i = 0; i < items.length; i++) {\n temp[i] = items[i];\n }\n for(int i = items.length; i < temp.length; i++) {\n temp[i] = null;\n }\n \n items = temp;\n }", "title": "" }, { "docid": "ca6de1ffa8bcca0ffdaa64a1758e1cff", "score": "0.5020421", "text": "long getLimit();", "title": "" }, { "docid": "4dfe006a00051c1c7c860ae39f741fbd", "score": "0.50177956", "text": "public void putResource(Integer resource) {\n /* Note use of auto-unboxing */\n used[resource] = false;\n semaphore.release();\n }", "title": "" }, { "docid": "0c213438ff0a0dcd1acb6ce72be59531", "score": "0.50120866", "text": "int getCapacity() {\n return capacity_;\n }", "title": "" }, { "docid": "86cb589891e6acd64d3f55d37c1835da", "score": "0.5011594", "text": "public void addOccurrence()\n {\n n = n + 1 > Integer.MAX_VALUE ? Integer.MAX_VALUE : n + 1;\n }", "title": "" }, { "docid": "1082e1810488a748e615c0b4c53f3cb1", "score": "0.5009306", "text": "private void incrementCount() {\n count++;\n }", "title": "" }, { "docid": "1c86c23864debc76e0f955af735760f9", "score": "0.50047964", "text": "protected void increment(int index) {\r\n\t\tint low = index * c;\r\n\t\tint high = (index + 1) * c;\r\n\r\n\t\t// Do a binary +1 on the slice of length c\r\n\t\tboolean incremented = false;\r\n\t\tfor (int i = (high - 1); i >= low; i--) {\r\n\t\t\tif (!counts.get(i)) {\r\n\t\t\t\tcounts.set(i);\r\n\t\t\t\tincremented = true;\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tcounts.set(i, false);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// If the counter overflowed, call the handler\r\n\t\t// and set the counter to the maximum value\r\n\t\tif (!incremented) {\r\n\t\t\toverflowHandler.onOverflow();\r\n\t\t\tfor (int i = (high - 1); i >= low; i--) {\r\n\t\t\t\tcounts.set(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b2fdc6b86ff23631f20ab9f14c0e1523", "score": "0.50031775", "text": "public void increaseAvailableID(){\n lowestAvailableID++;\n }", "title": "" }, { "docid": "ca391325cc3cfca9cc8831b4fbf12914", "score": "0.49960965", "text": "public void setCapacity(int capacity) {\r\n\t\tif (capacity < size || capacity < 0) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\tthis.capacity = capacity;\r\n\t}", "title": "" }, { "docid": "c4b8e7244550a3c90865724dc69660f2", "score": "0.49930632", "text": "int getCapacity() {\n return capacity;\n }", "title": "" }, { "docid": "75b56c7b6836091b6a64e90c174ae24e", "score": "0.49928784", "text": "public int getCapacity() \r\n\t{\r\n\t\treturn this.capacity;\r\n\t}", "title": "" }, { "docid": "f6571a870f5599315a2ac089320d13ab", "score": "0.49913445", "text": "public int releaseExtraResources() {\n synchronized (lock) {\n int numReleasedResources = 0;\n if (requestsQueue.isEmpty()) {\n log.debug(\"Resource Requests Queue is empty.\");\n if (hostAffinityEnabled) {\n List<String> allocatedHosts = getAllocatedHosts();\n for (String host : allocatedHosts) {\n log.info(\"Releasing extra resources on host: {}\", host);\n numReleasedResources += releaseResourcesForHost(host);\n }\n } else {\n numReleasedResources += releaseResourcesForHost(ANY_HOST);\n }\n clearState();\n }\n return numReleasedResources;\n }\n }", "title": "" }, { "docid": "6bfdd895c24904d073b5976bb460241b", "score": "0.4984244", "text": "@Test\r\n public void testAddItemCapacity() {\r\n clean();\r\n int item = indexItem();\r\n if (item > 0) {\r\n locker.addItem(items[item], 1);\r\n int amountAdd = addToGetHalf(items[item]);\r\n int itemsToAddLocker = getItemsKeptInLocker(items[item]);\r\n longTermStorage.resetInventory();\r\n locker.addItem(items[item], amountAdd);\r\n assertEquals(\"locker addition failed\", itemsToAddLocker,\r\n locker.getItemCount(items[item].getType()));\r\n } else {\r\n System.out.println(\"error - or the capacity of locker too small or a smaller volume item needed\");\r\n }\r\n }", "title": "" }, { "docid": "519ba83d83dd39bce50d49d80276f79c", "score": "0.49781895", "text": "public void increaseNumOfCustomersLeft() {\n this.values[NUMBER_OF_CUSTOMER_LEFT]++;\n }", "title": "" }, { "docid": "6752fe56f19b386160d9c2c81f22f250", "score": "0.49769408", "text": "public synchronized void increment(long t) {\n\t\tif (this.times.size() == this.retention) {\n\t\t\tthis.times.poll();\n\t\t}\n\t\tthis.times.add(t);\n\t\tthis.count++; //NOSONAR - false positive, we're synchronized\n\t}", "title": "" }, { "docid": "1438929a277d165ae124768568eb954d", "score": "0.49731165", "text": "protected void addTotalRequests(){\r\n totalRequests++;\r\n }", "title": "" }, { "docid": "2cf0d05296eb258fb5bf4056cbf9420b", "score": "0.49716032", "text": "@Override\n\tpublic int increaseQuantity() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "b94f71d4df85bdcc849561911a4653cf", "score": "0.49711785", "text": "int remainingHitsToUpgrade();", "title": "" }, { "docid": "5101f7be398e3c2b7689ed480708abed", "score": "0.49632928", "text": "public MaximumQuantityExceededExceptionTest(int availableQuantityquantiti) {\n\t\t// \n\t}", "title": "" }, { "docid": "82bcf40eb8a933c63d1a605a2f6ac406", "score": "0.49625427", "text": "public void countIsAlreadyAcquired() {\n countAlreadyAcquired.incrementAndGet();\n }", "title": "" }, { "docid": "e13d88c66a127f4fc68e781477f12075", "score": "0.49614242", "text": "void realloc(boolean throwIfFail) {\n/* 91 */ int newLength = (this.capacity <= 65536) ? (this.capacity << 1) : (this.capacity + this.capacity >> 1);\n/* 92 */ long newMemoryAddress = PlatformDependent.reallocateMemory(this.memoryAddress, (newLength * KQUEUE_EVENT_SIZE));\n/* 93 */ if (newMemoryAddress != 0L) {\n/* 94 */ this.memoryAddress = newMemoryAddress;\n/* 95 */ this.capacity = newLength;\n/* */ return;\n/* */ } \n/* 98 */ if (throwIfFail) {\n/* 99 */ throw new OutOfMemoryError(\"unable to allocate \" + newLength + \" new bytes! Existing capacity is: \" + this.capacity);\n/* */ }\n/* */ }", "title": "" } ]
335c345a8a19118aaec7878b6ba2e471
Extract key from given ResultSet.
[ { "docid": "5ba44dd950498eb33277fee65afa520f", "score": "0.64571565", "text": "public static Long getId(ResultSet key) throws SQLException {\n if (key.getMetaData().getColumnCount() != 1) {\n throw new IllegalArgumentException(\"Given ResultSet contains more columns\");\n }\n if (key.next()) {\n Long result = key.getLong(1);\n if (key.next()) {\n throw new IllegalArgumentException(\"Given ResultSet contains more rows\");\n }\n return result;\n } else {\n throw new IllegalArgumentException(\"Given ResultSet contain no rows\");\n }\n }", "title": "" } ]
[ { "docid": "e0c9ecfea45aeaa5d74f1171855915d3", "score": "0.62080914", "text": "String getKeyColumn();", "title": "" }, { "docid": "2c0c5fab99d3a051e02b0e5febfead7f", "score": "0.5952916", "text": "public abstract String getKeyColumn();", "title": "" }, { "docid": "73a0d1db70710c15975b58b833c4478f", "score": "0.5937475", "text": "public String getKeycolumn();", "title": "" }, { "docid": "27016708ca1577fe22c1dafc5fd5cb79", "score": "0.593742", "text": "public String getResultKey(){\n if (this.key != null){\n return this.key.toString();\n }\n return null;\n }", "title": "" }, { "docid": "6b2e8be6ccece813b60590209136e793", "score": "0.59171665", "text": "T extractFromResultSet(ResultSet resultSet) throws SQLException;", "title": "" }, { "docid": "cce424f68b60216697ae4385cee55a19", "score": "0.586666", "text": "public String mapToRowKey(Tuple tuple);", "title": "" }, { "docid": "063143a2a0e7a80ee3060a0f81b4c53a", "score": "0.5800988", "text": "static int getKeyOffset(Result r) {\n // Special case for when Result was instantiated via KeyValue array (no bytes in that case) versus returned from a scanner\n return (r.getBytes() == null ? r.raw()[0].getOffset() : (r.getBytes().getOffset() + Bytes.SIZEOF_INT /* KV length in Result */)) + KeyValue.ROW_OFFSET /* key offset in KV */ + Bytes.SIZEOF_SHORT /* key length */;\n }", "title": "" }, { "docid": "c43f682675b3a398115c626ea0787855", "score": "0.5707593", "text": "public Row GetRow(String key);", "title": "" }, { "docid": "bdc91a237fa98379c281c244baa271e0", "score": "0.5671123", "text": "Expression getKeyExpr();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56596005", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56591827", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56591827", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56591827", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56591827", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56591827", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56591827", "text": "java.lang.String getKey();", "title": "" }, { "docid": "446b8003d53c58ca6c5e5afaa6b16c80", "score": "0.5626101", "text": "java.lang.String getKey1();", "title": "" }, { "docid": "bc498f3c906d3ad15d43316e2e576274", "score": "0.56192446", "text": "private PkFieldInfo getPKSQLField(Class<?> type, String rPrefix, ResultSet rs)\n {\n \t// Determine the SQL FieldName\n String pkSQLField = DataMgr.getPkFieldCache().get(type);\n if (pkSQLField == null)\n {\n \tString pkField = PrimaryKeyData.getPKField(type);\n \tif (pkField != null)\n \t{\n\t\t\t\tpkSQLField = rPrefix + pkField;\n\n\t\t\t\tif (!DisableCache)\n\t\t\t\t\tDataMgr.getPkFieldCache().put(type, pkSQLField);\n \t}\n }\n \n if (pkSQLField == null)\n \treturn null;\n \n // Determine the current primary key (if it's available)\n String origPk = null;\n int pkIdx = -1;\n try {\n\t ResultSetMetaData rsmd = rs.getMetaData();\n\t int numberOfColumns = rsmd.getColumnCount();\n\t for (int i = 1; pkIdx == -1 && i <= numberOfColumns; i++)\n\t {\n\t \tif (pkSQLField.equals( rsmd.getColumnLabel(i) ))\n\t \t\tpkIdx = i;\n\t }\n } catch (SQLException se) {}\n \n if (pkIdx > -1)\n {\n\t try {\n\t\t\t\torigPk = rs.getString(pkIdx);\n\t } catch (SQLException se) {}\n }\n \n // Setup return info\n \tPkFieldInfo ret = new PkFieldInfo();\n ret.pkSQLField = pkSQLField;\n ret.origPk = origPk;\n return ret;\n }", "title": "" }, { "docid": "d9a5840af5e432df6088740578ef3afc", "score": "0.55481315", "text": "public String GetValue(String key, String colname);", "title": "" }, { "docid": "40293ab8acde25d4537397b5b9a7ebc3", "score": "0.5514548", "text": "TKey getKey();", "title": "" }, { "docid": "6a66059d91189c3206fadf299793c953", "score": "0.54684025", "text": "public Comparable getKey(int index) {\n/* 198 */ Comparable result = null;\n/* 199 */ if (index < 0 || index >= getItemCount())\n/* */ {\n/* 201 */ throw new IndexOutOfBoundsException(\"Invalid 'index': \" + index);\n/* */ }\n/* 203 */ if (this.extract == TableOrder.BY_ROW) {\n/* 204 */ result = this.source.getColumnKey(index);\n/* */ }\n/* 206 */ else if (this.extract == TableOrder.BY_COLUMN) {\n/* 207 */ result = this.source.getRowKey(index);\n/* */ } \n/* 209 */ return result;\n/* */ }", "title": "" }, { "docid": "3c747ba0fdf04cdcf0cc46358236f22e", "score": "0.5462125", "text": "java.lang.String getKey2();", "title": "" }, { "docid": "a741f8b0f9062c816fdd8ebb27a279e5", "score": "0.5449247", "text": "org.apache.xmlbeans.XmlString xgetKey2();", "title": "" }, { "docid": "b6d1c7f80e794c1a5b5d522542b6949e", "score": "0.5447135", "text": "public static ImmutableBytesWritable getKey(Result r) {\n return getKey(r, 0);\n }", "title": "" }, { "docid": "2706aab1a03e64f37b7994299d91d555", "score": "0.5437205", "text": "static Klant extractKlantFromResultSet(ResultSet rs) throws SQLException {\n Klant klant = new Klant();\n klant.setKlantNr(rs.getInt(\"idklant\"));\n klant.setVoorNaam(rs.getString(\"voornaam\"));\n klant.setTussenVoegsel(rs.getString(\"tussenvoegsel\"));\n klant.setAchterNaam(rs.getString(\"achternaam\"));\n klant.setWoonplaats(rs.getString(\"woonplaats\"));\n klant.setHuisNummer(rs.getString(\"huisnummer\"));\n klant.setStraat(rs.getString(\"straat\"));\n klant.setPostcode(rs.getString(\"postcode\"));\n klant.setLand(rs.getString(\"land\"));\n klant.setTelefoonNr(rs.getString(\"telefoon\"));\n klant.setEmail(rs.getString(\"email\"));\n klant.setCheckInDatum(rs.getDate(\"checkindatum\"));\n\n return klant;\n }", "title": "" }, { "docid": "193a85aae7f3a27b220094d960736084", "score": "0.54242647", "text": "java.lang.String getKeyId();", "title": "" }, { "docid": "193a85aae7f3a27b220094d960736084", "score": "0.54242647", "text": "java.lang.String getKeyId();", "title": "" }, { "docid": "193a85aae7f3a27b220094d960736084", "score": "0.54242647", "text": "java.lang.String getKeyId();", "title": "" }, { "docid": "193a85aae7f3a27b220094d960736084", "score": "0.54242647", "text": "java.lang.String getKeyId();", "title": "" }, { "docid": "193a85aae7f3a27b220094d960736084", "score": "0.54242647", "text": "java.lang.String getKeyId();", "title": "" }, { "docid": "193a85aae7f3a27b220094d960736084", "score": "0.54242647", "text": "java.lang.String getKeyId();", "title": "" }, { "docid": "193a85aae7f3a27b220094d960736084", "score": "0.54242647", "text": "java.lang.String getKeyId();", "title": "" }, { "docid": "193a85aae7f3a27b220094d960736084", "score": "0.54242647", "text": "java.lang.String getKeyId();", "title": "" }, { "docid": "193a85aae7f3a27b220094d960736084", "score": "0.54242647", "text": "java.lang.String getKeyId();", "title": "" }, { "docid": "193a85aae7f3a27b220094d960736084", "score": "0.54242647", "text": "java.lang.String getKeyId();", "title": "" }, { "docid": "193a85aae7f3a27b220094d960736084", "score": "0.54242647", "text": "java.lang.String getKeyId();", "title": "" }, { "docid": "2de8c9e516ebfc1f4a95d5bc23dbfa12", "score": "0.5423621", "text": "public abstract T getTuple(ResultSet result);", "title": "" }, { "docid": "7ffd7066f9346012d6097d50d24143eb", "score": "0.54027903", "text": "protected String getColumnKey(String columnName) {\n\t\treturn columnName;\n\t}", "title": "" }, { "docid": "f029684579ea484dd49b3f3dfe6e54b5", "score": "0.5398654", "text": "Object getKeyColumnValue( String key ) {\n return this.keyColumns.get( key );\n }", "title": "" }, { "docid": "edb07ce0baccfa3ae8b1def608c54763", "score": "0.5387005", "text": "@Override\n\t\t public Object mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t \treturn rs.getString(\"mid\");\n\t\t }", "title": "" }, { "docid": "6326319ff821136a9eabbdb9cc73e7ef", "score": "0.5379923", "text": "public String getUserKey(final String username) {\n try {\n final PreparedStatement statement = connection.prepareStatement(\n \"SELECT (user_key) FROM \" + USER_TABLE + \" WHERE username = ?\");\n statement.setString(1, username);\n\n final ResultSet rs = statement.executeQuery();\n\n if (rs.next()) {\n return rs.getString(1);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.5357122", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.5357122", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.5357122", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.5357122", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.5357122", "text": "String getKey();", "title": "" }, { "docid": "dd1d869cf8b8f195927b9aaf08021aad", "score": "0.53504884", "text": "private String extractKey(String line) {\n return null;\n }", "title": "" }, { "docid": "59b750185a29573b7c6ee51d9a5affa3", "score": "0.5348965", "text": "public abstract String generateFirstRowKey(final long id);", "title": "" }, { "docid": "88e8ce6368ff0a9171176a52b00e9f53", "score": "0.5346425", "text": "JdbcIndexMetaData.Entry getPrimaryKey();", "title": "" }, { "docid": "c042b90c1212b43349c09b61a149eba4", "score": "0.534629", "text": "public String getRowKey() {\n Property p = getProperty(\"RowKey\");\n return p == null ? null : (String) p.getValue();\n }", "title": "" }, { "docid": "3ad414ef7df6d311f977eccaf66ba0ce", "score": "0.5324835", "text": "org.apache.xmlbeans.XmlString xgetKey1();", "title": "" }, { "docid": "fed07701080815a8e1b9bcce46e0521a", "score": "0.5306254", "text": "T getKeyAt(int index);", "title": "" }, { "docid": "b1db3893d52b621b1427efca2cb24cbc", "score": "0.5289958", "text": "SuccessRecord selectByPrimaryKey(SuccessRecordKey key);", "title": "" }, { "docid": "776d98441abb9633f7a91bd7bbcfa1a2", "score": "0.52890795", "text": "Object getSingleExcelRow(String key);", "title": "" }, { "docid": "6cbc6b313f7d55d291557f1ca1ae15c2", "score": "0.5275672", "text": "public String getKeyString();", "title": "" }, { "docid": "5e30e538d3cf726948e885f6916aa8c1", "score": "0.52570146", "text": "@Override\n public Account getRowData(String rowKey) {\n \n List<Account> results = (List<Account>) getWrappedData();\n \n for(Account result : results) {\n if(result.getPersonid().equals(rowKey))\n return result; \n } \n \n return null; \n }", "title": "" }, { "docid": "49aaff544b45cd1032fb70ea10faad6a", "score": "0.5252454", "text": "public U getKey();", "title": "" }, { "docid": "2a7b747d50ca4e629959d707540b0c9c", "score": "0.5239365", "text": "void extractData(ResultSet rs) throws SQLException;", "title": "" }, { "docid": "493e0e2529e350b2ba061aa693ef120a", "score": "0.52383775", "text": "public ResultSet queryDatabaseForDataRow(Connection conn, String pKey)\r\n\t{\r\n\t\tResultSet rs = null;\r\n\t\tString selectStmt = \"SELECT * FROM ARMOR WHERE Ar_ID=\" + pKey;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tStatement stmt = conn.createStatement();\r\n\r\n\t\t\trs = stmt.executeQuery(selectStmt);\r\n\t\t\trs.next();\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn rs;\r\n\t}", "title": "" }, { "docid": "2a4d1a1834b420ee72d5d05d49ac15b2", "score": "0.5236733", "text": "public Object getResult(ResultSet rs, String columnName)\r\n\t\t\tthrows SQLException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "5b1c1dc5c723bdf1bb98a301b424e53d", "score": "0.5236667", "text": "String getColumnKey(String name) {\n return COLUMN_CONTEXT_PREFIX + name;\n }", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.52362233", "text": "int getKey();", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.52362233", "text": "int getKey();", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.52362233", "text": "int getKey();", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.52362233", "text": "int getKey();", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.52362233", "text": "int getKey();", "title": "" }, { "docid": "71c4c9c0da8987483d3edf38fd56e38f", "score": "0.52030486", "text": "Student selectByPrimaryKey(String xh);", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.51984876", "text": "K getKey();", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.51984876", "text": "K getKey();", "title": "" }, { "docid": "cb5ed683ad0c5478d25001f8eac0d26a", "score": "0.51948637", "text": "public String rowKey() {\n return this.rowKey;\n }", "title": "" }, { "docid": "c3dc9f93d829b422d9e247ccc028c5c8", "score": "0.5190331", "text": "long getKey();", "title": "" }, { "docid": "7996a9b02196a7dbecea2b24e0cb0882", "score": "0.5189508", "text": "public abstract String getKey();", "title": "" }, { "docid": "7996a9b02196a7dbecea2b24e0cb0882", "score": "0.5189508", "text": "public abstract String getKey();", "title": "" }, { "docid": "7996a9b02196a7dbecea2b24e0cb0882", "score": "0.5189508", "text": "public abstract String getKey();", "title": "" }, { "docid": "70beed6e86bd8363db0b274074f2d674", "score": "0.51743823", "text": "@Override\n\tpublic int selectKey() throws Exception {\n\t\treturn galleryDAO.selectKey();\n\t}", "title": "" }, { "docid": "0d88cdcb9e9c16d4893cbc01cc2e8bda", "score": "0.5174055", "text": "long getKey ();", "title": "" }, { "docid": "f3f8fe0813fd5629fb106c8ea650dc35", "score": "0.51715916", "text": "T findOne(K key) throws SQLException;", "title": "" }, { "docid": "7d29e377fc326d1addd076184a07ce5e", "score": "0.51683116", "text": "TKey<?, ?> getKey(String elemName);", "title": "" }, { "docid": "5be53fbc08da8b0bdbbd2900640bc3f2", "score": "0.5149418", "text": "public RelTitular selectByPrimaryKey(RelTitularKey key) throws SQLException {\r\n\t\tRelTitular record = (RelTitular) getSqlMapClientTemplate()\r\n\t\t\t\t.queryForObject(\r\n\t\t\t\t\t\t\"cementerio_reltitular.ibatorgenerated_selectByPrimaryKey\",\r\n\t\t\t\t\t\tkey);\r\n\t\treturn record;\r\n\t}", "title": "" }, { "docid": "8ddbfd87cbec724c6687b156f8c2d107", "score": "0.5146605", "text": "public static String getKeyQuery(String queryString, String name) {\n Matcher m = FROM_PATTERN.matcher(queryString);\n if (m.find()) {\n StringBuilder sb = new StringBuilder(\"SELECT \");\n sb.append(getAlias(queryString));\n sb.append(\".\");\n sb.append(name);\n sb.append(\" \");\n sb.append(m.group());\n return sb.toString();\n }\n\n return null;\n }", "title": "" }, { "docid": "dc04eaac84b9464c73860a32e760d48e", "score": "0.51459783", "text": "Func selectByPrimaryKey(String name);", "title": "" }, { "docid": "98c6fab5bcf15508f505b68e6beaf780", "score": "0.5142434", "text": "ExamineDict selectByPrimaryKey(Long id);", "title": "" }, { "docid": "fa7544460fb367a8ddedf0f3f3866511", "score": "0.5137003", "text": "@Override\n public Status read(String table, String key, Set<String> fields,\n Map<String, ByteIterator> result) {\n try {\n PreparedStatement stmt = (fields == null) ? READ_ALL_STMT.get() : READ_STMTS.get(fields);\n\n // Prepare statement on demand\n if (stmt == null) {\n Select.Builder selectBuilder;\n\n if (fields == null) {\n selectBuilder = QueryBuilder.select().all();\n } else {\n selectBuilder = QueryBuilder.select();\n for (String col : fields) {\n ((Select.Selection) selectBuilder).column(col);\n }\n }\n\n stmt = session.prepare(selectBuilder.from(table)\n .where(QueryBuilder.eq(YCSB_KEY, QueryBuilder.bindMarker()))\n .limit(1));\n stmt.setConsistencyLevel(readConsistencyLevel);\n if (trace) {\n stmt.enableTracing();\n }\n\n PreparedStatement prevStmt = (fields == null) ?\n READ_ALL_STMT.getAndSet(stmt) :\n READ_STMTS.putIfAbsent(new HashSet<>(fields), stmt);\n if (prevStmt != null) {\n stmt = prevStmt;\n }\n }\n\n LOGGER.debug(stmt.getQueryString());\n LOGGER.debug(\"key = {}\", key);\n\n ResultSet rs = session.execute(stmt.bind(key));\n\n if (rs.isExhausted()) {\n return Status.NOT_FOUND;\n }\n\n // Should be only 1 row\n Row row = rs.one();\n ColumnDefinitions cd = row.getColumnDefinitions();\n\n for (ColumnDefinitions.Definition def : cd) {\n ByteBuffer val = row.getBytesUnsafe(def.getName());\n if (val != null) {\n result.put(def.getName(), new ByteArrayByteIterator(val.array()));\n } else {\n result.put(def.getName(), null);\n }\n }\n\n return Status.OK;\n\n } catch (Exception e) {\n LOGGER.error(MessageFormatter.format(\"Error reading key: {}\", key).getMessage(), e);\n return Status.ERROR;\n }\n\n }", "title": "" }, { "docid": "075ed2c303cda76b95555841fec0912d", "score": "0.5128439", "text": "ISqlJetCursor lookup(String indexName, Object... key) throws SqlJetException;", "title": "" }, { "docid": "01f3af6f23896e83eca46b1a4471daf7", "score": "0.5122997", "text": "org.apache.xmlbeans.XmlString xgetKey3();", "title": "" }, { "docid": "4ebac793f8a24f2cb3b28261307bc1a5", "score": "0.5117004", "text": "com.factset.protobuf.stach.v2.table.MetadataItemProto.MetadataItem getRowMetadataOrThrow(\n java.lang.String key);", "title": "" }, { "docid": "49020e004286f57efde0d5f6611f9a2f", "score": "0.5109358", "text": "com.google.datastore.v1.Key getKey();", "title": "" }, { "docid": "6fa166a820f2c3422737cc66af5d9803", "score": "0.5109233", "text": "T mapRow(ResultSet rs, int rowNum) throws SQLException;", "title": "" }, { "docid": "a9eb04ed3f28c201d07d8728729c32df", "score": "0.5091556", "text": "Criterion getKey()\r\n\t{\r\n\t\treturn new SimpleKey(m_exampleId);\r\n\t}", "title": "" }, { "docid": "0ae42f5426ec5084a968968fef04b419", "score": "0.50811046", "text": "public ArtifactExtractedInfo rowKey(final String rowKey) {\n setRowKey(rowKey);\n return this;\n }", "title": "" }, { "docid": "33a6dee79a753332f1a831c203aa360e", "score": "0.50798786", "text": "public abstract String[] getKeyColumnNames();", "title": "" }, { "docid": "7da8a9e350a85004664ebf08ffe2048a", "score": "0.5076561", "text": "protected Key keyAt(int index) {\n\n try {\n Entry entryAt = (Entry)seq.element(index);\n return entryAt.key;\n } catch (Exception e) {\n System.out.println(e);\n }\n\n return null;\n }", "title": "" }, { "docid": "90a116e64bfe339026acd04845c9c4ed", "score": "0.50698644", "text": "java.lang.String getKey3();", "title": "" }, { "docid": "e54181ad3f83c695072f376fe9859bb6", "score": "0.50679845", "text": "int keyAt(int index);", "title": "" }, { "docid": "0554f6ab81613f24a5bb45e66c2e7a2f", "score": "0.50635326", "text": "SysDictionary selectByPrimaryKey(Long id);", "title": "" }, { "docid": "63db6565e4f9e3a6c19e5bcfe2870686", "score": "0.50628936", "text": "public Object retrieve(String key) throws KeyNotFoundInTableException {\n\n Key searchKey = new Key(key);\n int index = findPosition(searchKey);\n if (index >= 0) try {\n Entry searchEntry = (Entry)seq.element(index);\n //move-to-front, then return\n seq.delete(index);\n seq.insertFirst(searchEntry);\n return searchEntry.value;\n } catch (Exception e) {\n System.out.println(e);\n }\n else {\n throw new KeyNotFoundInTableException();\n }\n return null;\n }", "title": "" }, { "docid": "36dd4dc2b7ba849c0111ddcb204ad9b8", "score": "0.5041034", "text": "MyObject selectMyObjectByPrimaryKey(MyObjectKey _key) throws SQLException;", "title": "" }, { "docid": "2fdf7d13ddb16fdff03fa45f9938cb61", "score": "0.503481", "text": "public java.sql.ResultSet getImportedKeys(\n String catalog,\n String schema,\n String table)\n throws SQLException\n {\n return new PSResultSet();\n }", "title": "" }, { "docid": "d39ad2343307baa614239cc02637964c", "score": "0.5030678", "text": "public Long getRowKey() {\n return (Long) getAttributeInternal(ROWKEY);\n }", "title": "" }, { "docid": "2383b50a4e018cafcf1017c893d20c09", "score": "0.5026171", "text": "@Override\r\n public Viesti findOne(Integer key) throws SQLException {\n \r\n Connection conn = tietokanta.getConnection();\r\n PreparedStatement stmt = conn.prepareStatement(\"SELECT * FROM Viesti WHERE id = ?\");\r\n stmt.setObject(1, key);\r\n \r\n ResultSet rs = stmt.executeQuery();\r\n \r\n if (!rs.next()) {\r\n return null;\r\n }\r\n \r\n Integer id = rs.getInt(\"id\");\r\n String sisalto = rs.getString(\"sisältö\");\r\n Timestamp aika = rs.getTimestamp(\"lähetysaika\");\r\n String lahettaja = rs.getString(\"lähettäjä\");\r\n Integer keskustelu = rs.getInt(\"keskustelu\");\r\n \r\n rs.close();\r\n stmt.close();\r\n conn.close();\r\n \r\n return new Viesti(id, sisalto, aika, lahettaja, keskustelu);\r\n }", "title": "" } ]
cc463ec53587c41406eb7509774cd7df
/ReflectionUtils .getAllMethods(aClass, ReflectionUtils.withAnnotation(VertxRegister.class)) .stream() .collect(Collectors.toMap(method > String.format("%s%s", method.getName(), Arrays.toString(method.getGenericExceptionTypes())), method > method, (o, o2) > o2.getDeclaringClass() == aClass ? o2 : o)) .entrySet() .stream() .map(Map.Entry::getValue)
[ { "docid": "57231a6917b70e7ed073efaceb0e8839", "score": "0.6938732", "text": "@Override\n public synchronized void scan(Class<?> aClass, Map<String, Entry> map) {\n Arrays.stream(this.getMethod(aClass, ReflectionUtils.withAnnotation(VertxRegister.class)))\n .forEach(method -> {\n VertxRegister annotation = method.getDeclaredAnnotation(VertxRegister.class);\n try {\n Class vertCls = annotation.value();\n Type retunType = (method.getGenericReturnType()), innertype;\n innertype = (this.isFunctionInterface(retunType)\n && retunType instanceof ParameterizedType) ? ((ParameterizedType) retunType).getActualTypeArguments()[0] : void.class;\n\n if (vertCls == Verticle.class) return;\n VertxRegisterEntry vertxRegisterEntry;\n String key = this.key(vertCls, innertype, aClass);\n if (map.containsKey(key)) {\n vertxRegisterEntry = (VertxRegisterEntry) map.get(key);\n vertxRegisterEntry.methods.add(method);\n } else {\n vertxRegisterEntry = new VertxRegisterEntry();\n vertxRegisterEntry.verticleClass = vertCls;\n vertxRegisterEntry.VertxRegisterInnerType = innertype;\n vertxRegisterEntry.ServiceClass = aClass;\n vertxRegisterEntry.methods = new HashSet<>();\n vertxRegisterEntry.methods.add(method);\n map.put(key, vertxRegisterEntry);\n }\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n }\n });\n }", "title": "" } ]
[ { "docid": "3d386ff59beff826f5cf298c3b8e1488", "score": "0.5587828", "text": "abstract public Map<String,Set<MethodReflective>> getDeclaredMethods();", "title": "" }, { "docid": "1874d40fab8a3b085fb206ecb9576883", "score": "0.5388065", "text": "public interface MethodMapping extends MemberMapping<MethodMapping, ClassMapping> {\n\n /**\n * Gets the signature of this method mapping.\n *\n * @return The signature\n */\n MethodSignature getSignature();\n\n /**\n * Gets the de-obfuscated signature of this method mapping.\n *\n * @return The de-obfuscated signature\n * @since 0.5.0\n */\n default MethodSignature getDeobfuscatedSignature() {\n return new MethodSignature(this.getDeobfuscatedName(), this.getMappings().deobfuscate(this.getDescriptor()));\n }\n\n /**\n * Gets the {@link MethodDescriptor} of the method.\n *\n * @return The method descriptor\n * @see MethodSignature#getDescriptor()\n */\n default MethodDescriptor getDescriptor() {\n return this.getSignature().getDescriptor();\n }\n\n /**\n * Gets the obfuscated descriptor of the method.\n *\n * @return The obfuscated descriptor\n * @see MethodSignature#getDescriptor()\n * @see MethodDescriptor#toString()\n */\n default String getObfuscatedDescriptor() {\n return this.getDescriptor().toString();\n }\n\n /**\n * Gets the de-obfuscated descriptor of the method.\n *\n * @return The de-obfuscated descriptor\n * @see MethodSignature#getDescriptor()\n * @see MappingSet#deobfuscate(MethodDescriptor)\n */\n default String getDeobfuscatedDescriptor() {\n return this.getDeobfuscatedSignature().getDescriptor().toString();\n }\n\n /**\n * Gets an immutable view of all the {@link MethodParameterMapping}s\n * that belong to this method.\n *\n * @return The parameter mappings\n * @since 0.4.0\n */\n Collection<MethodParameterMapping> getParameterMappings();\n\n /**\n * Creates a {@link MethodParameterMapping} parented by this method, of\n * the given integer index.\n *\n * @param index The index of the parameter\n * @param deobfuscatedName The de-obfuscated name to give the parameter\n * @return The parameter mapping\n * @since 0.4.0\n */\n MethodParameterMapping createParameterMapping(final int index, final String deobfuscatedName);\n\n /**\n * Gets a {@link MethodParameterMapping}, if present, of the given\n * integer index.\n *\n * @param index The index of the parameter\n * @return The parameter mapping, wrapped in an {@link Optional}\n * @since 0.4.0\n */\n Optional<MethodParameterMapping> getParameterMapping(final int index);\n\n /**\n * Gets, or creates should it not exist, a parameter mapping of the\n * given integer index.\n *\n * @param index The index of the parameter\n * @return The parameter mapping\n * @since 0.4.0\n */\n default MethodParameterMapping getOrCreateParameterMapping(final int index) {\n return this.getParameterMapping(index)\n .orElseGet(() -> this.createParameterMapping(index, String.valueOf(index)));\n }\n\n /**\n * Establishes whether the method mapping contains a parameter mapping\n * of the integer index.\n *\n * @param index The index of the parameter\n * @return {@code true} should a parameter mapping of the given\n * index exists in the method mapping; {@code false} otherwise\n * @since 0.4.0\n */\n boolean hasParameterMapping(final int index);\n\n /**\n * Establishes whether the method mapping has a de-obfuscation mapping, or\n * has some mappings within it.\n *\n * @return {@code true} if the method mappings has mappings;\n * {@code false} otherwise\n * @since 0.4.0\n */\n default boolean hasMappings() {\n return this.hasDeobfuscatedName() ||\n this.getParameterMappings().stream().anyMatch(Mapping::hasDeobfuscatedName);\n }\n\n @Override\n default String getFullObfuscatedName() {\n return String.format(\"%s/%s\", this.getParent().getFullObfuscatedName(), this.getObfuscatedName());\n }\n\n @Override\n default String getFullDeobfuscatedName() {\n return String.format(\"%s/%s\", this.getParent().getFullDeobfuscatedName(), this.getDeobfuscatedName());\n }\n\n @Override\n default MethodMapping reverse(final ClassMapping parent) {\n final MethodMapping mapping = parent.createMethodMapping(this.getDeobfuscatedSignature(), this.getObfuscatedName());\n this.getParameterMappings().forEach(param -> param.reverse(mapping));\n return mapping;\n }\n\n @Override\n default MethodMapping merge(final MethodMapping with, final ClassMapping parent) {\n return MappingSetMerger.create(this.getMappings(), with.getMappings()).mergeMethod(this, with, parent);\n }\n\n @Override\n default MethodMapping copy(final ClassMapping parent) {\n final MethodMapping mapping = parent.createMethodMapping(this.getSignature(), this.getDeobfuscatedName());\n this.getParameterMappings().forEach(param -> param.copy(mapping));\n return mapping;\n }\n\n}", "title": "" }, { "docid": "25b2cacc4374e7ffe47ee4a68264b9a3", "score": "0.53799146", "text": "private APIResponse getMethodsThroughReflection () {\n\n List<APIMethod> stringList = new ArrayList<APIMethod>();\n Method[] methods = this.getClass().getMethods();\n\n for (Method method : methods) {\n\n Annotation[] annotations = method.getDeclaredAnnotations();\n\n for(Annotation annotation : annotations){\n if(annotation instanceof Path){\n Path myAnnotation = (Path) annotation;\n APIMethod apiMethod = new APIMethod();\n apiMethod.setSignature(myAnnotation.value());\n apiMethod.setStatus(\"online\");\n apiMethod.setVersion(\"0.0.1\");\n stringList.add(apiMethod);\n }\n }\n }\n\n Map<String, Object> stringObjectMap = new HashMap<String, Object>();\n\n stringObjectMap.put(\"stats\", \"online\");\n stringObjectMap.put(\"methods\", stringList);\n APIResponse apiResponse = new APIResponse(stringObjectMap, 200);\n\n\n return apiResponse;\n }", "title": "" }, { "docid": "84850abe50c03acfa5ba368b2f024022", "score": "0.53369665", "text": "private static java.lang.reflect.Method[] getExportedPropertyMethods(java.lang.Class<?> r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.view.ViewDebug.getExportedPropertyMethods(java.lang.Class):java.lang.reflect.Method[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.view.ViewDebug.getExportedPropertyMethods(java.lang.Class):java.lang.reflect.Method[]\");\n }", "title": "" }, { "docid": "b5b1e087534702e5ad6ae7e5fffdbce4", "score": "0.53015804", "text": "public void testMethodLambda(){\n _class _c = _class.of(\"aaaa.V\").method(new Object(){ void myMethod(String a){ System.out.println(\"a : \"+a); } } );\r\n \r\n //_c = _class.of(\"aaaa.V\").method(\"myMethod\", (String a)-> System.out.println(\"a : \"+a));\r\n _c = _class.of(\"aaaa.V\").method(new Object(){ \r\n void myMethod(String a, Map<Integer,String>mi){ \r\n System.out.println(\"a : \"+a+\" \"+mi); \r\n } \r\n } );\r\n assertTrue( _c.hasImport(Map.class) );\r\n //_c = _class.of(\"aaaa.V\").method(\"myMethod\", (String a, Map<Integer,String>mi)-> System.out.println(\"a : \"+a+\" \"+ mi));\r\n\r\n }", "title": "" }, { "docid": "98882139abf7e9e1c9a60dadf3e592a8", "score": "0.5251242", "text": "@Test\r\n\tpublic void testBuildFieldMethodMap() {\r\n\t\t\r\n\t\tLOG.info(\"testBuildFieldMethodMap\");\r\n\t\t\r\n\t\tMap<String, Method> methodsMap = new TreeMap<String, Method>();\r\n\t\t\r\n\t\tMap<String, Field> fieldsMap = new TreeMap<String, Field>();\r\n\t\t\r\n\t\tmethodsMap = reflectionUtil.getMethodsMap(new ExampleDTO());\r\n\t\t\r\n\t\tfieldsMap = reflectionUtil.getFieldsMap(new ExampleDTO());\r\n\t\t\r\n\t\tMap<String, Method> fieldMethodMap = reflectionUtil.buildFieldMethodMap(fieldsMap, methodsMap);\r\n\t\t\r\n\t\tLOG.info(\"fieldMethodMap \" + fieldMethodMap);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4234a7e55a60198659f31f5b9ca0d317", "score": "0.5249236", "text": "@Override\n\tprotected Map<String, String> getKeyMethodMap() {\n\t\tMap<String, String> map = new HashMap<String, String>();\n\t\t\n\t\treturn map;\n\t}", "title": "" }, { "docid": "687dd54a9a85e66e8cdac71b3b696c5c", "score": "0.52478635", "text": "protected Map<String,Method> extractSettersMap (final Class<V> valsClass)\n {\n final Collection<? extends Method> sl=AttributeMethodType.getAccessibleSetters(valsClass);\n final int numSetters=(null == sl) ? 0 : sl.size();\n if (numSetters <= 0)\n return null;\n\n Map<String,Method> sMap=null;\n Collection<Method> dups=null;\n for (final Method m : sl)\n {\n final String name=AttributeMethodType.SETTER.getPureAttributeName(m);\n if ((null == name) || (name.length() <= 0))\n continue; // should not happen\n\n if (null == sMap)\n sMap = new TreeMap<String,Method>(String.CASE_INSENSITIVE_ORDER);\n\n final Method prev=sMap.put(name, m);\n if (prev != null)\n {\n if (null == dups)\n dups = new LinkedList<Method>();\n dups.add(prev);\n }\n }\n\n return handleDuplicateMethods(valsClass, sMap, dups);\n }", "title": "" }, { "docid": "804ca6d985d0119d2f97c97a10fdb758", "score": "0.5241805", "text": "@Test\n public void testClass2() throws Exception {\n\n Class<TestClass2> c = TestClass2.class;\n\n Method[] methods = c.getDeclaredMethods();\n for (Method method : methods) {\n String name = method.getName();\n System.out.println();\n System.out.println(\"method.name = \" + name);\n\n Class returnType = method.getReturnType();\n System.out.println(\"method.returnType = \" + returnType);\n\n Class[] parameterTypes = method.getParameterTypes();\n for (Class parameterType : parameterTypes) {\n System.out.println(\"method.parameterType = \" + parameterType);\n }\n\n TypeVariable<Method>[] typeParameters = method.getTypeParameters();\n if (typeParameters.length > 0) {\n for (TypeVariable<Method> typeParameter : typeParameters) {\n String name1 = typeParameter.getName();\n System.out.println(\"method.typeParameter.name = \" + name1);\n Type[] bounds = typeParameter.getBounds();\n for (Type bound : bounds) {\n System.out.println(\"method.typeParameter.bound = \" + bound);\n }\n }\n\n Type genericReturnType = method.getGenericReturnType();\n System.out.println(\"method.genericReturnType = \" + genericReturnType);\n\n Type[] genericParameterTypes = method.getGenericParameterTypes();\n for (Type genericParameterType : genericParameterTypes) {\n System.out.println(\"method.genericParameterType = \" + genericParameterType);\n }\n }\n }\n\n }", "title": "" }, { "docid": "4b7531caf698b24de5b2aba2a3c63dc8", "score": "0.5221502", "text": "@SuppressWarnings(\"rawtypes\")\n @Override\n public List<MetaMethod> getMetaMethods() {\n List<MetaMethod> methods = new ArrayList<MetaMethod>();\n\n for (Class classToExtend : CLASS_TO_EXTEND) {\n for (final Method m : classToExtend.getMethods()) {\n for (Class c : m.getParameterTypes()) {\n if (Function.class.isAssignableFrom(c)) {\n methods.add(createMetaMethod(m));\n // break out of parameter-type loop\n break;\n }\n }\n }\n }\n\n return methods;\n }", "title": "" }, { "docid": "c50579be7258fc4909c2ad5d0eea1e79", "score": "0.52046674", "text": "public static Map<String, Method> getPutters(final Class<?> type) throws ComponentException {\n Map<String, Method> putters = new HashMap<>();\n\n for (Method method : type.getMethods()) {\n String name = method.getName();\n if (name.startsWith(\"put\")) {\n if (name.length() == 3) {\n throw new ComponentException(\"Error getting putter '\" + name + \"' for '\" + type.getName() + \"', invalid name\");\n }\n\n Class<?> returnType = method.getReturnType();\n if (returnType != void.class) {\n throw new ComponentException(\"Error getting putter '\" + name + \"' for '\" + type.getName() + \"', does not return void\");\n }\n\n Class<?>[] types = method.getParameterTypes();\n if (types.length != 2) {\n throw new ComponentException(\"Error getting putter '\" + name + \"' for '\" + type.getName() + \"', does not accept two arguments\");\n }\n\n String putterName = parameterName(name);\n\n if (putters.containsKey(putterName)) {\n throw new ComponentException(\"Error getting putter '\" + name + \"' for '\" + type.getName() + \"', overloaded name\");\n }\n\n putters.put(putterName, method);\n }\n }\n\n return putters;\n }", "title": "" }, { "docid": "dbde406ab9009877c847ccd07aff48fd", "score": "0.51981926", "text": "public java.util.List<String> getMethodList(){\n try{\n java.lang.reflect.Method[] methods = obj.getClass().getMethods();\n java.util.List<String> methodsList=new java.util.ArrayList<String>();\n for (int i=0;i<methods.length;i++) methodsList.add(methods[i].getName());\n return methodsList;\n }catch (Exception e){\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "0e51538bd7d4f99e637dbd2dd5028a6e", "score": "0.5170948", "text": "private static Map<String, List<MethodInfo>> filterMethodInformation( final Set<String> usedFullyQualifiedClassNames,\n final Map<String, List<MethodInfo>> projectMethodInformation ) {\n final Map<String, List<MethodInfo>> scopedMethodInformation = new HashMap<String, List<MethodInfo>>();\n for ( Map.Entry<String, List<MethodInfo>> e : projectMethodInformation.entrySet() ) {\n final String miQualifiedType = e.getKey();\n if ( isTypeUsed( miQualifiedType,\n usedFullyQualifiedClassNames ) ) {\n scopedMethodInformation.put( miQualifiedType,\n e.getValue() );\n }\n }\n return scopedMethodInformation;\n }", "title": "" }, { "docid": "921766648b2a839a0589b7f74ba60a75", "score": "0.51416624", "text": "private void setupAllSupportedBindings() {\n Class<?> classType = this.getClass();\r\n Method methods[] = classType.getDeclaredMethods();\r\n for (Method method : methods) {\r\n Annotation annotations [] = method.getAnnotations();\r\n Preconditions.checkState(annotations.length == 1,\r\n \"Found more than one annotation for method %s\", methods.toString());\r\n Annotation annotation = annotations[0];\r\n Class<?> returnType = method.getReturnType();\r\n do {\r\n producerMethodMap.put(new ProducerNode(returnType, annotation), method);\r\n for (Class<?> interfaceClass : returnType.getInterfaces()) {\r\n producerMethodMap.put(new ProducerNode(interfaceClass, annotation), method);\r\n }\r\n returnType = returnType.getSuperclass();\r\n } while (returnType.equals(Object.class));\r\n }\r\n }", "title": "" }, { "docid": "13f6e9ffba3c4281429c3eab8b966757", "score": "0.5136257", "text": "private static Map<String, Method> getMapOfSetFields(Method[] methodsSets) {\r\n\t\tMap<String, Method> mapToReturn = new HashMap<String, Method>();\r\n\t\tfor (Method methodSet : methodsSets) {\r\n\t\t\tString nameMethodSet = methodSet.getName();\r\n\t\t\tif (nameMethodSet != null && nameMethodSet.startsWith(\"set\")) {\r\n\t\t\t\tString fieldData = nameMethodSet.substring(3);\r\n\t\t\t\tmapToReturn.put(fieldData, methodSet);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mapToReturn;\r\n\t}", "title": "" }, { "docid": "37a9a9063984e6789ca2ab949590b2fa", "score": "0.5086329", "text": "private static java.lang.reflect.Method[] capturedViewGetPropertyMethods(java.lang.Class<?> r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.view.ViewDebug.capturedViewGetPropertyMethods(java.lang.Class):java.lang.reflect.Method[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.view.ViewDebug.capturedViewGetPropertyMethods(java.lang.Class):java.lang.reflect.Method[]\");\n }", "title": "" }, { "docid": "577af280ac69c3def8b0ef4462d4dd22", "score": "0.50756824", "text": "private void scanAndRegisterAttMaps(ClassLoader loader) {\n\r\n java.util.ServiceLoader<FunctionProvider> functionProviders = java.util.ServiceLoader.load(FunctionProvider.class);\r\n\r\n Map<String,Function<String,Object>> functionMap = new HashMap<>();\r\n\r\n for (FunctionProvider functionProvider : functionProviders) {\r\n Map<String, Function<String, Object>> funMap = functionProvider.getFunctionMap();\r\n functionMap.putAll(funMap);\r\n }\r\n\r\n if(!functionMap.isEmpty()) {\r\n //now register the function map to the registry\r\n registry.register(Constants.FUNCTION_MAP, functionMap);\r\n }\r\n\r\n //scan and load the attribute providers\r\n java.util.ServiceLoader<AttributeProvider> attributeProviders = java.util.ServiceLoader.load(AttributeProvider.class);\r\n\r\n Map<String,Function<Object,?>> attributeMap = new HashMap<>();\r\n\r\n for (AttributeProvider attributeProvider : attributeProviders) {\r\n attributeProvider.setContext(registry);\r\n Map<String, Function<Object, ?>> attMap = attributeProvider.getAttributeMap();\r\n attributeMap.putAll(attMap);\r\n }\r\n\r\n if(!attributeMap.isEmpty()){\r\n //now register the function map to the registry\r\n registry.register(Constants.ATTRIBUTE_MAP, attributeMap);\r\n }\r\n\r\n }", "title": "" }, { "docid": "eddbd693dcd848c98a9bf8e204b4f4bb", "score": "0.50593215", "text": "@Override\n\tprotected Map getKeyMethodMap() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e40df94a0c025f0a392398fded6f7653", "score": "0.49998847", "text": "public static Map<String, Method> getCommandMap(Class<? extends Robot> r) {\r\n\t\r\n\t\tif (!RobotMethodLoader.robotCommandMap.containsKey(r)) {\r\n\t\t\tHashMap<String, Method> commandMap = new HashMap<String, Method>();\r\n\t\t\tRobotMethodLoader.robotCommandMap.put(r, commandMap);\r\n\t\t\tMethod[] methods = r.getMethods();\r\n\t\t\tfor (Method m : methods)\r\n\t\t\t\tif (m.isAnnotationPresent(RobotCommand.class))\r\n\t\t\t\t\tcommandMap.put(m.getAnnotation(RobotCommand.class).commandName(), m);\r\n\t\t}\r\n\t\treturn RobotMethodLoader.robotCommandMap.get(r);\r\n\t}", "title": "" }, { "docid": "cc8da37837e85479d2cfc15c0b76141e", "score": "0.4991438", "text": "public interface IBaseRequest<T> {\n\n default IdentityHashMap<String,Object> beanToMap(Object... params){\n IdentityHashMap<String,Object> p = new IdentityHashMap<>();\n Stream.of(params)\n .forEach(\n o->{\n if (o instanceof Map){\n p.putAll((Map<? extends String, ?>) o);\n }\n else{\n //只判断俩层\n Set<Field> fieldList = new HashSet<Field>(){{\n addAll(Arrays.asList(o.getClass().getSuperclass().getDeclaredFields()));\n addAll(Arrays.asList(o.getClass().getDeclaredFields()));\n }}\n ;\n fieldList.forEach(field_ -> {\n try {\n if(!field_.isAccessible()) field_.setAccessible(true);\n if (field_.get(o)!=null){\n p.put(new String(field_.getName()),field_.get(o));\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n });\n }\n }\n );\n return p;\n }\n}", "title": "" }, { "docid": "839d8432844d4872d768c953bd4766de", "score": "0.4970379", "text": "public interface MethodProperties {\n}", "title": "" }, { "docid": "8ab08601c62c66510cc1b0d97dbda5d6", "score": "0.49499872", "text": "public @NotNull HashMap<String, WisperMethod> getInstanceMethods()\n {\n return instanceMethods;\n }", "title": "" }, { "docid": "e1df352724acc4d93cbef5d626d0f4e5", "score": "0.4930013", "text": "protected static final Map[] getFieldsMaps(final Class objectClass) {\r\n\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \"Getting field maps, in class Mapping\" );\r\n }\r\n\r\n final int GETTER = 0;\r\n final int SETTER = 1;\r\n\r\n\t\tfinal Method[] methods = objectClass.getMethods();\r\n\r\n\t\t// create map with all getters and setters\r\n // use a list for the cases where there are more than one getter or setter\r\n // we will use this list to match up the \"correct\" getters and setters later\r\n\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Assembling lists of all getters and setters.\" );\r\n }\r\n\r\n//\t\tfinal Map<String, Method[]> allMethods = new HashMap();\r\n final Map<String, List<Method>[]> allMethods = new HashMap();\r\n for (Method method : methods) {\r\n\t\t\tfinal String name = method.getName();\r\n\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Examining method: \" + name );\r\n }\r\n\r\n // get the field name from the method name; if the method name is invalid, skip this method.\r\n final String suffix = extractFieldName( name );\r\n if ( suffix == null ) {\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Skipping method: \" + name + \"; Invalid name.\" );\r\n }\r\n continue;\r\n }\r\n\r\n//\t\t\tfinal String suffix = name.substring(3); // strip off the leading \"get\" or \"set\"\r\n\r\n // Check to see if this datum is already mapped. If not, initialize this datum in the map.\r\n//\t\t\tMethod[] getterSetter = allMethods.get(suffix);\r\n\t\t\tList<Method>[] getterSetter = allMethods.get(suffix);\r\n\t\t\tif (getterSetter == null) {\r\n\t\t\t\tgetterSetter = new List[2];\r\n getterSetter[GETTER] = new ArrayList<Method>();\r\n getterSetter[SETTER] = new ArrayList<Method>();\r\n\t\t\t\tallMethods.put(suffix, getterSetter);\r\n\t\t\t}\r\n\r\n//\t\t\tif (name.startsWith(\"get\")) {\r\n if (name.startsWith(\"get\") || name.startsWith(\"is\")) {\r\n// || annotation != null && annotation.getter()\r\n//\t\t\t\tgetterSetter[GETTER] = method;\r\n getterSetter[GETTER].add(method);\r\n\t\t\t} else if (name.startsWith(\"set\")) {\r\n//\t\t\t\tgetterSetter[SETTER] = method;\r\n getterSetter[SETTER].add(method);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// assemble annotations, getters and setters maps\r\n\t\t// a field is only taken into consideration if it has a getter and a\r\n\t\t// setter\r\n // also create map containing the return type (ie, column data type)\r\n // for each getter (ie, each column)\r\n\r\n\t\tfinal Map<String, net.sf.persist.annotations.Column> annotationsMap = new HashMap();\r\n\t\tfinal Map<String, Method> gettersMap = new HashMap();\r\n\t\tfinal Map<String, Method> settersMap = new HashMap();\r\n final Map<String, Class> typesMap = new HashMap();\r\n\r\n\t\tfor (String suffix : allMethods.keySet()) {\r\n\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Winnowing and verifying lists of getters and setters for datum suffixed: \" + suffix );\r\n }\r\n\r\n\t\t\tfinal List<Method>[] getterSetter = allMethods.get(suffix);\r\n\r\n\t\t\t// only consider fields to have both getters and setters\r\n// if (getterSetter[GETTER] != null && getterSetter[SETTER] != null) {\r\n// if (getterSetter[GETTER].size() != 0 && getterSetter[SETTER].size() != 0) {\r\n if ( getterSetter[GETTER].size() == 0 || getterSetter[SETTER].size() == 0 ) {\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \" Found invalid number of getters and setters, require at least one of each.\" );\r\n Log.debug( Log.ENGINE, \" Found \" + getterSetter[GETTER].size() + \" getters and \" +\r\n getterSetter[SETTER].size() + \" setters. Moving to next datum suffix.\" );\r\n }\r\n }\r\n else {\r\n\r\n\t\t\t\t// field name (prefix with first char in lower case)\r\n // commented out so that we can do it all at once in the extractFieldName method\r\n//\t\t\t\tfinal String fieldName = suffix.substring(0, 1).toLowerCase() + suffix.substring(1);\r\n final String fieldName = suffix;\r\n\r\n\r\n // whittle down the list of getters and setters to a single, matched pair\r\n ArrayList<Method> temp;\r\n\r\n // first ... getters\r\n // we make the assumption that \"valid\" getters should not have parameters\r\n temp = new ArrayList<Method>();\r\n for (Method m : getterSetter[GETTER]) {\r\n if (m.getParameterTypes().length > 0) {\r\n// getterSetter[GETTER].remove(m);\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \" Getter [\" + m + \"] discarded; has multiple parameters: \" + m.getParameterTypes().length );\r\n }\r\n continue;\r\n }\r\n if (m.getReturnType() == void.class) {\r\n// getterSetter[GETTER].remove(m);\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \" Getter [\" + m + \"] discarded; has void as return parameter.\" );\r\n }\r\n continue;\r\n }\r\n if ( ! Persist.isNativeType( m.getReturnType())) {\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \" Getter [\" + m + \"] discarded; not a supported data type.\" );\r\n }\r\n continue;\r\n }\r\n temp.add(m);\r\n }\r\n getterSetter[GETTER] = temp;\r\n\r\n // now verify that we have only one getter in the list; if not, skip to next \"suffix\"\r\n if ( getterSetter[GETTER].size() != 1 ) {\r\n// throw new PersistException(\"After winnowing list of getters, there are none left!\");\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \" After winnowing list of getters, there are \" + getterSetter[GETTER].size() +\r\n \" left! (Should have only one (1).) Moving to next datum suffix.\" );\r\n }\r\n continue;\r\n }\r\n\r\n // now ... setters\r\n // Retrieve return type of remaining getter. All setters will be compared to this.\r\n Class returnType = getterSetter[GETTER].get( 0 ).getReturnType();\r\n\r\n // we make the assumption that valid setters should only have one parameter and\r\n // that it must be the same type as that returned by the getter\r\n temp = new ArrayList<Method>();\r\n for (Method m : getterSetter[SETTER]) {\r\n Class[] paramTypes = m.getParameterTypes();\r\n if (paramTypes.length != 1) {\r\n// getterSetter[SETTER].remove(m);\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \" Setter [\" + m + \"] discarded; should have one (1) parameter, but has: \" +\r\n paramTypes.length );\r\n }\r\n continue;\r\n }\r\n if (paramTypes[0] != returnType) {\r\n// getterSetter[SETTER].remove(m);\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \" Setter [\" + m + \"] discarded; should take parameter type: \" + returnType.toString() +\r\n \" but takes: \" + paramTypes[0].toString() );\r\n }\r\n continue;\r\n }\r\n temp.add(m);\r\n }\r\n getterSetter[SETTER] = temp;\r\n \r\n // now verify that we have only one setter in the list; if not, skip to next \"suffix\"\r\n if ( getterSetter[SETTER].size() != 1 ) {\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \" After winnowing list of setters, there are \" + getterSetter[SETTER].size() +\r\n \" left! (Should have only one (1).) Moving to next datum suffix.\" );\r\n }\r\n continue;\r\n }\r\n \r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \" Finished winnowing list of getters and setters:\" );\r\n Log.debug( Log.ENGINE, \" Found getter [ \" + getterSetter[GETTER].get(0) +\r\n \" ] which returns a [ \" + getterSetter[GETTER].get(0).getReturnType() + \" ]\" );\r\n Log.debug( Log.ENGINE, \" Found setter [ \" + getterSetter[SETTER].get(0) +\r\n \" ] which takes a [ \" + getterSetter[SETTER].get(0).getParameterTypes()[0] + \" ]\" ); \r\n Log.debug( Log.ENGINE, \" Verifying methods and annotations.\" );\r\n }\r\n\r\n // now we can proceed knowning\r\n\r\n\t\t\t\t// column annotation\r\n\t\t\t\tfinal net.sf.persist.annotations.Column getterAnnotation = getterSetter[GETTER].get(0)\r\n\t\t\t\t\t\t.getAnnotation(net.sf.persist.annotations.Column.class);\r\n\t\t\t\tfinal net.sf.persist.annotations.Column setterAnnotation = getterSetter[SETTER].get(0)\r\n\t\t\t\t\t\t.getAnnotation(net.sf.persist.annotations.Column.class);\r\n\r\n\t\t\t\t// if NoColumn is specified, don't use the field\r\n\t\t\t\tfinal net.sf.persist.annotations.NoColumn noPersistGetter = getterSetter[GETTER].get(0)\r\n\t\t\t\t\t\t.getAnnotation(net.sf.persist.annotations.NoColumn.class);\r\n\r\n\t\t\t\tfinal net.sf.persist.annotations.NoColumn noPersistSetter = getterSetter[SETTER].get(0)\r\n\t\t\t\t\t\t.getAnnotation(net.sf.persist.annotations.NoColumn.class);\r\n\r\n\t\t\t\t// check conflicting NoColumn and Column annotations\r\n\t\t\t\tif (noPersistGetter != null || noPersistSetter != null) {\r\n\t\t\t\t\tif (getterAnnotation != null || setterAnnotation != null) {\r\n\t\t\t\t\t\tthrow new PersistException(\"Field [\" + fieldName + \"] from class [\" + objectClass.getName()\r\n\t\t\t\t\t\t\t\t+ \"] has conflicting NoColumn and Column annotations\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// assert that getters and setters have valid and compatible types\r\n // these have already been checked (as non-fatal errors) in the \"winnowing\" code above\r\n // and can probably be removed\r\n\t\t\t\tif (getterSetter[SETTER].get(0).getParameterTypes().length != 1) {\r\n\t\t\t\t\tthrow new PersistException(\"Setter [\" + getterSetter[SETTER]\r\n\t\t\t\t\t\t\t+ \"] should have a single parameter but has \" + getterSetter[SETTER].get(0).getParameterTypes().length);\r\n\t\t\t\t}\r\n\t\t\t\tif (getterSetter[GETTER].get(0).getReturnType() == void.class) {\r\n\t\t\t\t\tthrow new PersistException(\"Getter [\" + getterSetter[GETTER] + \"] must have a return parameter\");\r\n\t\t\t\t}\r\n\t\t\t\tif (getterSetter[GETTER].get(0).getReturnType() != getterSetter[SETTER].get(0).getParameterTypes()[0]) {\r\n\t\t\t\t\tthrow new PersistException(\"Getter [\" + getterSetter[GETTER] + \"] and setter [\" + getterSetter[SETTER]\r\n\t\t\t\t\t\t\t+ \"] have incompatible types\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// check for annotations on the getter/setter\r\n\t\t\t\tnet.sf.persist.annotations.Column annotation = null;\r\n\r\n\t\t\t\tif (getterAnnotation != null && setterAnnotation != null) {\r\n\r\n\t\t\t\t\t// if both getter and setter have annotations, make sure\r\n\t\t\t\t\t// they are equals\r\n\t\t\t\t\tif (!getterAnnotation.equals(setterAnnotation)) {\r\n\r\n\t\t\t\t\t\tfinal String getterAnn = getterAnnotation.toString().substring(\r\n\t\t\t\t\t\t\t\tgetterAnnotation.toString().indexOf('(') + 1,\r\n\t\t\t\t\t\t\t\tgetterAnnotation.toString().lastIndexOf(')'));\r\n\r\n\t\t\t\t\t\tfinal String setterAnn = setterAnnotation.toString().substring(\r\n\t\t\t\t\t\t\t\tsetterAnnotation.toString().indexOf('(') + 1,\r\n\t\t\t\t\t\t\t\tsetterAnnotation.toString().lastIndexOf(')'));\r\n\r\n\t\t\t\t\t\tthrow new PersistException(\"Annotations for getter [\" + getterSetter[GETTER] + \"] and setter [\"\r\n\t\t\t\t\t\t\t\t+ getterSetter[SETTER] + \"] have different annotations [\" + getterAnn + \"] [\" + setterAnn\r\n\t\t\t\t\t\t\t\t+ \"]\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tannotation = getterAnnotation;\r\n\t\t\t\t} else if (getterAnnotation != null) {\r\n\t\t\t\t\tannotation = getterAnnotation;\r\n\t\t\t\t} else if (setterAnnotation != null) {\r\n\t\t\t\t\tannotation = setterAnnotation;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// make getter and setter accessible\r\n\t\t\t\tgetterSetter[GETTER].get(0).setAccessible(true);\r\n\t\t\t\tgetterSetter[SETTER].get(0).setAccessible(true);\r\n\r\n\t\t\t\tannotationsMap.put(fieldName, annotation);\r\n\t\t\t\tgettersMap.put(fieldName, getterSetter[GETTER].get(0));\r\n\t\t\t\tsettersMap.put(fieldName, getterSetter[SETTER].get(0));\r\n typesMap.put( fieldName, getterSetter[GETTER].get(0).getReturnType() );\r\n\r\n\t\t\t}\r\n\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Done processing datum suffixed: \" + suffix );\r\n }\r\n\t\t}\r\n\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Recorded types for following suffixes: \" + typesMap.keySet().toString() );\r\n }\r\n\r\n\t\treturn new Map[] { annotationsMap, gettersMap, settersMap, typesMap };\r\n\t}", "title": "" }, { "docid": "e3f2786c64c2a3b12059708d3ab14311", "score": "0.49275288", "text": "public static Type[] getArgumentTypes(Method method) {\n/* 327 */ Class[] classes = method.getParameterTypes();\n/* 328 */ Type[] types = new Type[classes.length];\n/* 329 */ for (int i = classes.length - 1; i >= 0; i--) {\n/* 330 */ types[i] = getType(classes[i]);\n/* */ }\n/* 332 */ return types;\n/* */ }", "title": "" }, { "docid": "369231485a9cd9dceddc96a4d4caf541", "score": "0.49264678", "text": "private static Map<MethodDescriptor, MethodDescriptor>\n delegatedMethodDescriptorsByBridgeMethodDescriptor(Type type) {\n Map<MethodDescriptor, MethodDescriptor> delegateMethodDescriptorsByBridgeMethodDescriptor =\n new LinkedHashMap<>();\n\n // case 1. exposed non-JsMember to the exposing JsMethod.\n for (Method method : type.getMethods()) {\n MethodDescriptor declaredMethodDescriptor = method.getDescriptor();\n\n MethodDescriptor exposedNonJsMember = getExposedNonJsMember(declaredMethodDescriptor);\n if (exposedNonJsMember != null) {\n delegateMethodDescriptorsByBridgeMethodDescriptor.put(\n exposedNonJsMember, declaredMethodDescriptor);\n }\n }\n\n // case 2. accidental overridden methods.\n for (MethodDescriptor accidentalOverriddenMethod :\n type.getDeclaration().getAccidentallyOverriddenMethodDescriptors()) {\n MethodDescriptor overridingMethod =\n type.getDeclaration()\n .getOverridingMethodDescriptorInSuperclasses(accidentalOverriddenMethod);\n if (overridingMethod == null) {\n continue;\n }\n // if for the overridden and overriding methods, one is JsMember, and the other is not,\n // generate a bridge method from the overridden method to the overriding method.\n boolean isJsMemberOne = overridingMethod.isOrOverridesJsMember();\n boolean isJsMemberOther = accidentalOverriddenMethod.isOrOverridesJsMember();\n if (isJsMemberOne != isJsMemberOther) {\n delegateMethodDescriptorsByBridgeMethodDescriptor.put(\n accidentalOverriddenMethod, overridingMethod);\n }\n }\n\n return delegateMethodDescriptorsByBridgeMethodDescriptor;\n }", "title": "" }, { "docid": "5e54e35c49080bf00e2c2ade973974d1", "score": "0.4923787", "text": "private Map<Class, Class> registrationMappingDtoVsRepository() throws Exception { \n Map<Class, Class> mapTypes = new HashMap<>();\n \n mapTypes.put(PlayerDto.class, PlayerMongoRepository.class); \n \n return mapTypes;\n }", "title": "" }, { "docid": "e17afd8b1e961bf1264a9923b7811b93", "score": "0.4920977", "text": "public MethodProxy[] methods();", "title": "" }, { "docid": "0d24add744bb8047934c825762cdf3ec", "score": "0.4912472", "text": "private Set<CxxMemberImplInfo> getClassMethodsAndVars() {\n return info.getMembers().stream()\n .filter(member -> !(member instanceof OperatorInfo))\n .map(member -> new CxxMemberImplInfo(member, info))\n .collect(Collectors.toSet());\n }", "title": "" }, { "docid": "aede9a133e0f95ef7d9f01178588684c", "score": "0.49046975", "text": "private ImmutableList<MethodDescriptor> getMethodDescriptors() {\n return Streams.concat(\n getPolymorphicMethods().stream(),\n getDeclaredMethodDescriptors().stream()\n .filter(Predicates.not(MethodDescriptor::isPolymorphic)))\n .collect(toImmutableList());\n }", "title": "" }, { "docid": "4a710679eb2a11cebc61740bba6fdff6", "score": "0.49023435", "text": "String[] getExceptionNames(Method method) {\n ArrayList<String> list = new ArrayList<>();\n for (Class<?> type : method.getExceptionTypes())\n list.add(Type.getType(type).getInternalName());\n return list.toArray(new String[list.size()]);\n }", "title": "" }, { "docid": "98ca01890f3d8245e3385e04dcc7dfd7", "score": "0.48953143", "text": "Map<String, Class<?>> getParameterTypes();", "title": "" }, { "docid": "a0475cffbbeb79f6be2270b6f1c9aa29", "score": "0.48929682", "text": "protected abstract Map<String, T> getFacadeImplBeansMap();", "title": "" }, { "docid": "92558e7ed556939aa8418dc021f59840", "score": "0.48901984", "text": "@Override\n public void registerClasses(@Nonnull Kryo kryo) {\n kryo.register(Object[].class);\n kryo.register(scala.Tuple2[].class);\n kryo.register(scala.Tuple3[].class);\n kryo.register(int[].class);\n kryo.register(double[].class);\n kryo.register(short[].class);\n kryo.register(long[].class);\n kryo.register(byte[].class);\n kryo.register(Class[].class);\n kryo.register(long[].class);\n kryo.register(boolean[].class);\n kryo.register(String[].class);\n kryo.register(String[].class);\n Class cls = scala.reflect.ClassTag.class;\n kryo.register(cls);\n // kryo.register(scala.reflect.ClassTag$$anon$1.class);\n\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n// doRegistration(kryo,\"XXX\");\n doRegistration(kryo, \"java.util.HashMap\");\n doRegistration(kryo, \"java.util.ArrayList\");\n doRegistration(kryo, \"org.apache.spark.util.collection.CompactBuffer\");\n doRegistration(kryo, \"scala.collection.mutable.WrappedArray$ofRef\");\n doRegistration(kryo, \"java.util.HashMap\");\n doRegistration(kryo, \"com.lordjoe.distributed.SparkUtilities\");\n doRegistration(kryo, \"com.lordjoe.distributed.SparkUtilities$1\");\n doRegistration(kryo, \"com.lordjoe.distributed.SparkUtilities$IdentityFunction\");\n doRegistration(kryo, \"com.lordjoe.distributed.SparkUtilities$TupleValues\");\n doRegistration(kryo, \"com.lordjoe.distributed.hydra.SparkFileOpener\");\n doRegistration(kryo, \"org.slf4j.impl.Log4jLoggerAdapter\");\n doRegistration(kryo, \"org.systemsbiology.hadoop.DelegatingFileStreamOpener\");\n doRegistration(kryo, \"org.systemsbiology.hadoop.FileStreamOpener\");\n doRegistration(kryo, \"org.systemsbiology.hadoop.HadoopMajorVersion\");\n doRegistration(kryo, \"org.systemsbiology.hadoop.StreamOpeners$ResourceStreamOpener\");\n doRegistration(kryo, \"org.systemsbiology.xtandem.XTandemMain\");\n\n doRegistration(kryo, \"com.lordjoe.distributed.SparkUtilities\");\n doRegistration(kryo, \"com.lordjoe.distributed.SparkUtilities$1\");\n doRegistration(kryo, \"com.lordjoe.distributed.SparkUtilities$IdentityFunction\");\n doRegistration(kryo, \"com.lordjoe.distributed.SparkUtilities$TupleValues\");\n doRegistration(kryo, \"com.lordjoe.distributed.spark.accumulators.SparkAccumulators\");\n doRegistration(kryo, \"com.lordjoe.utilities.ElapsedTimer\");\n doRegistration(kryo, \"org.systemsbiology.xtandem.XTandemMain\");\n doRegistration(kryo, \"org.systemsbiology.xtandem.XTandemMain\");\n\n\n doRegistration(kryo, \"org.openscience.cdk.silent.AtomContainerSet\");\n doRegistration(kryo, \"org.openscience.cdk.silent.Atom\");\n }", "title": "" }, { "docid": "4f5ce1802fcf0f4752bd895b4bdf8695", "score": "0.48769775", "text": "public static HashMap<String, MethodHandle> getFieldNameToMethodHandle(final Class<?> cls) {\n final var fieldNameToMethodHandle = new HashMap<String, MethodHandle>();\n final var inaccessibleProperties = new HashSet<String>();\n for (Class<?> c = cls; c != null && c != Object.class; c = c.getSuperclass()) {\n // Look for getter methods before fields\n for (final Method m : c.getDeclaredMethods()) {\n // Skip static methods\n if ((m.getModifiers() & Modifier.STATIC) != 0) {\n continue;\n }\n // Look for getter methods\n String propName = null;\n if (m.getParameterCount() == 0) {\n final var methodName = m.getName();\n if (methodName.startsWith(\"get\") && methodName.length() > 3) {\n propName = Character.toLowerCase(methodName.charAt(3)) + methodName.substring(4);\n } else if (methodName.startsWith(\"is\") && methodName.length() > 2) {\n propName = Character.toLowerCase(methodName.charAt(2)) + methodName.substring(1);\n }\n }\n // Ignore non-getter methods\n if (propName == null) {\n continue;\n }\n // Don't override properties in subclasses with properties in superclasses \n if (fieldNameToMethodHandle.containsKey(propName)) {\n continue;\n }\n // Make method public if necessary\n if (((m.getModifiers() & Modifier.PUBLIC) == 0)\n && ServerxVerticle.serverProperties.enableNonPublicDataModelFields) {\n try {\n m.setAccessible(true);\n } catch (InaccessibleObjectException | SecurityException e) {\n // Ignore -- the unreflect() call will probably fail though\n }\n }\n // Unreflect method\n try {\n final var methodHandle = MethodHandles.lookup().unreflect(m);\n fieldNameToMethodHandle.put(propName, methodHandle);\n } catch (final IllegalAccessException e) {\n // Record that property could not be accessed\n inaccessibleProperties.add(propName);\n }\n }\n // Look for fields, only using them if a corresponding getter was not found\n for (final Field f : c.getDeclaredFields()) {\n // Skip static fields\n if ((f.getModifiers() & Modifier.STATIC) != 0) {\n continue;\n }\n // Don't override properties in subclasses with properties in superclasses,\n // or properties found in getter names with properties found in field names\n final var fieldName = f.getName();\n if (fieldNameToMethodHandle.containsKey(fieldName)) {\n continue;\n }\n // Make field public if necessary\n if (((f.getModifiers() & Modifier.PUBLIC) == 0)\n && ServerxVerticle.serverProperties.enableNonPublicDataModelFields) {\n try {\n f.setAccessible(true);\n } catch (InaccessibleObjectException | SecurityException e) {\n // Ignore -- the unreflect() call will probably fail though\n }\n }\n // Unreflect field\n try {\n final var methodHandle = MethodHandles.lookup().unreflectGetter(f);\n fieldNameToMethodHandle.put(f.getName(), methodHandle);\n // Since field was found, remove reference to any failed getter\n inaccessibleProperties.remove(fieldName);\n } catch (final IllegalAccessException e) {\n // Record that field could not be accessed\n inaccessibleProperties.add(fieldName);\n }\n }\n }\n final var isTemplate = TemplateModel.class.isAssignableFrom(cls);\n ServerxVerticle.logger.log(Level.INFO,\n \"Properties of \" + (isTemplate ? TemplateModel.class.getSimpleName() : \"class\") + \" \"\n + cls.getName() + \": \" + String.join(\", \", fieldNameToMethodHandle.keySet()));\n if (!inaccessibleProperties.isEmpty()) {\n ServerxVerticle.logger.log(Level.WARNING,\n \"Inaccessible properties of \" + (isTemplate ? TemplateModel.class.getSimpleName() : \"class\")\n + \" \" + cls.getName() + \": \" + String.join(\", \", inaccessibleProperties));\n }\n return fieldNameToMethodHandle;\n }", "title": "" }, { "docid": "8c038433edc795c436360fdca9be3fc2", "score": "0.48635978", "text": "public static Map<String, Method> getAdders(final Class<?> type) throws ComponentException {\n Map<String, Method> adders = new HashMap<>();\n\n for (Method method : type.getMethods()) {\n String name = method.getName();\n if (name.startsWith(\"add\")) {\n if (name.length() == 3) {\n throw new ComponentException(\"Error getting adder '\" + name + \"' for '\" + type.getName() + \"', invalid name\");\n }\n\n Class<?> returnType = method.getReturnType();\n if (returnType != void.class) {\n throw new ComponentException(\"Error getting adder '\" + name + \"' for '\" + type.getName() + \"', does not return void\");\n }\n\n Class<?>[] types = method.getParameterTypes();\n if (types.length != 1) {\n throw new ComponentException(\"Error getting adder '\" + name + \"' for '\" + type.getName() + \"', does not accept one argument\");\n }\n\n String adderName = parameterName(name);\n\n if (adders.containsKey(adderName)) {\n throw new ComponentException(\"Error getting adder '\" + name + \"' for '\" + type.getName() + \"', overloaded name\");\n }\n\n adders.put(adderName, method);\n }\n }\n\n return adders;\n }", "title": "" }, { "docid": "43cefb6b0a62b767f5c17c21396228b0", "score": "0.48536155", "text": "@Test\n public void testIsRegistered() throws Exception {\n// assertFalse(c.register(ContainerResponseFilterImpl.class,\n// Collections.<Class<?>, Integer>singletonMap(ContainerResponseFilter.class, 1000)));\n doTestIsFilterRegistered(new ContainerResponseFilterImpl(), ContainerResponseFilterImpl.class);\n }", "title": "" }, { "docid": "d44705de98b2a58b38791a81119f8ab6", "score": "0.48140493", "text": "public @NotNull HashMap<String, WisperMethod> getStaticMethods()\n {\n return staticMethods;\n }", "title": "" }, { "docid": "56c7e0f4f0fa8b505a29fb9489798f3e", "score": "0.4812432", "text": "private static List<Method> createBridgeMethods(Type type) {\n DeclaredTypeDescriptor unparameterizedEnclosingTypeDescriptor =\n type.getDeclaration().toUnparameterizedTypeDescriptor();\n List<Method> generatedBridgeMethods = new ArrayList<>();\n Set<String> generatedBridgeMethodMangledNames = new HashSet<>();\n Set<String> existingMethodMangledNames =\n type.getMethods().stream()\n .map(method -> ManglingNameUtils.getMangledName(method.getDescriptor()))\n .collect(toImmutableSet());\n for (Entry<MethodDescriptor, MethodDescriptor> entry :\n delegatedMethodDescriptorsByBridgeMethodDescriptor(type).entrySet()) {\n MethodDescriptor bridgeMethodDescriptor = entry.getKey();\n\n String manglingName = ManglingNameUtils.getMangledName(bridgeMethodDescriptor);\n if (generatedBridgeMethodMangledNames.contains(manglingName)\n || existingMethodMangledNames.contains(manglingName)) {\n // Do not generate duplicate methods that have the same signature of the existing methods\n // in the type.\n continue;\n }\n\n /**\n * The bridge method search finds methods in their original declaration type (searching just\n * declared types is a performance optimization). As a result it may refer to type parameters\n * in its declaration type, those need to be specialized to the type arguments on the current\n * type.\n */\n bridgeMethodDescriptor =\n bridgeMethodDescriptor.specializeTypeVariables(\n unparameterizedEnclosingTypeDescriptor.getSpecializedTypeArgumentByTypeParameters());\n\n Method bridgeMethod =\n createBridgeMethod(\n type.getSourcePosition(),\n unparameterizedEnclosingTypeDescriptor,\n bridgeMethodDescriptor,\n entry.getValue());\n\n generatedBridgeMethods.add(bridgeMethod);\n generatedBridgeMethodMangledNames.add(manglingName);\n }\n return generatedBridgeMethods;\n }", "title": "" }, { "docid": "fa9e4ac1199cee5907087679516b74dd", "score": "0.48079342", "text": "@Test\n public void testAllMethodsChecked() throws Exception {\n Method [] methods = UpdateRequestProcessor.class.getDeclaredMethods();\n TreeSet<String> foundNames = new TreeSet<String>();\n for (Method method : methods) {\n if (Modifier.isPublic(method.getModifiers())) {\n foundNames.add(method.getName());\n }\n }\n assertEquals(methodNames.size(), foundNames.size());\n assertTrue(foundNames.containsAll(methodNames));\n }", "title": "" }, { "docid": "f3f174cad52e3811717ce9c4a17690ae", "score": "0.48021212", "text": "@Test\r\n\tpublic void testMethodHasParameters() {\r\n\t\t\r\n\t\tLOG.info(\"testMethodHasParameters\");\r\n\t\t\r\n\t\tboolean resp = false;\r\n\t\t\r\n\t\tMap<String, Method> methodsMap = new TreeMap<String, Method>();\r\n\t\t\r\n\t\tmethodsMap = reflectionUtil.getMethodsMap(new String());\r\n\t\t\r\n\t\tassertTrue(methodsMap != null, \"El mapa deberia ser diferente de null\");\r\n\t\t\r\n\t\tMethod method = methodsMap.get(\"valueOf\");\r\n\t\t\r\n\t\tassertTrue(method != null, \"El metodo deberia ser diferente de null\");\r\n\t\t\r\n\t\tresp = reflectionUtil.methodHasParameters(method);\r\n\t\t\r\n\t\tLOG.info(\"El metodo [\" + method + \"] contiene parametros? -> \" + resp);\r\n\t\t\r\n\t\tassertTrue(resp, \"El metodo deberia contener parametros\");\r\n\t\t\r\n\t\tmethod = methodsMap.get(\"trim\");\r\n\t\t\r\n\t\tassertTrue(method != null, \"El metodo deberia ser diferente de null\");\r\n\t\t\r\n\t\tresp = reflectionUtil.methodHasParameters(method);\r\n\t\t\r\n\t\tLOG.info(\"El metodo [\" + method + \"] contiene parametros? -> \" + resp);\r\n\t\t\r\n\t\tassertFalse(resp, \"El metodo no deberia contener parametros\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "be648cd2e8d61abf65dc4c851e880087", "score": "0.47970867", "text": "public Map<Object,String> getWebServiceEndpointKeys()\n {\n final Map<?,?> m = WebServiceMgrBackEnd.getManager().getWebServicesMap();\n \n final Map<Object,String> result =\n TypeCast.checkMap( m, Object.class, String.class );\n \n return result;\n }", "title": "" }, { "docid": "8ffd5d00867699e6e0a657399816f4c2", "score": "0.4796568", "text": "@Override\n\tprotected void addOptionalGetInstanceHeaders(GetMethod getMethod) \n\t{\n\t}", "title": "" }, { "docid": "4a5313b21389562dd6fa94c6955cb9c4", "score": "0.4790474", "text": "@Override\r\n\tprotected Map getKeyMethodMap() {\n\t\tHashMap map = new HashMap();\r\n\t\tmap.put(\"shop\", \"shopping\");\r\n\t\tmap.put(\"shopcat\", \"shopcat\");\r\n\t\tmap.put(\"shopcatadd\", \"shopcatadd\");\r\n\t\treturn map;\r\n\t}", "title": "" }, { "docid": "479b2f67bc2487b4c3c32b9b38a752f6", "score": "0.4789196", "text": "@RequiresNonNull(\"map\")\n private void registerOpTypeMethod(\n @UnderInitialization ReflectiveConvertletTable this,\n final Method method) {\n if (!isPublic(method)) {\n return;\n }\n if (!method.getName().startsWith(\"convert\")) {\n return;\n }\n if (!RexNode.class.isAssignableFrom(method.getReturnType())) {\n return;\n }\n final Class[] parameterTypes = method.getParameterTypes();\n if (parameterTypes.length != 3) {\n return;\n }\n if (parameterTypes[0] != SqlRexContext.class) {\n return;\n }\n final Class opClass = parameterTypes[1];\n if (!SqlOperator.class.isAssignableFrom(opClass)) {\n return;\n }\n final Class parameterType = parameterTypes[2];\n if (!SqlCall.class.isAssignableFrom(parameterType)) {\n return;\n }\n map.put(opClass, (SqlRexConvertlet) (cx, call) -> {\n try {\n @SuppressWarnings(\"argument.type.incompatible\")\n RexNode result =\n (RexNode) method.invoke(ReflectiveConvertletTable.this, cx,\n call.getOperator(), call);\n return requireNonNull(result,\n () -> \"null result from \" + method + \" for call \" + call);\n } catch (IllegalAccessException | InvocationTargetException e) {\n throw new RuntimeException(\"while converting \" + call, e);\n }\n });\n }", "title": "" }, { "docid": "2d9aded7904bb430ed0f8e3c0f262afd", "score": "0.47883683", "text": "private static String[] exceptionNames(Executable member) {\n Class<?>[] exceptionClasses = member.getExceptionTypes();\n String[] exceptionNames = new String[exceptionClasses.length];\n Arrays.setAll(exceptionNames, i -> Type.getInternalName(exceptionClasses[i]));\n return exceptionNames;\n }", "title": "" }, { "docid": "5791d58da9bb93ce3d8d79b7b3b3fee9", "score": "0.47871682", "text": "private static Map<String, MetricFunction> loadFunctions() throws Exception {\n Map<String, MetricFunction> functions = new HashMap<>();\n final ClassLoader loader = AggregationBuilder.class.getClassLoader();\n ImmutableSet<ClassPath.ClassInfo> clazz = ClassPath.from(loader).getTopLevelClasses(METRIC_FUNCTION_PATH);\n for (final ClassPath.ClassInfo c : clazz) {\n final Class<?> func = c.load();\n if(!func.isInterface()) {\n MetricFunction f = (MetricFunction) Class.forName(func.getName()).newInstance();\n functions.put(f.name().toLowerCase(), f);\n }\n }\n return functions;\n }", "title": "" }, { "docid": "6bdd2a4b04992e49c94b28cc864957e2", "score": "0.47835216", "text": "protected Map getKeyMethodMap() {\n Map map = new HashMap();\r\n map.put(\"button.sure\", \"sure\");\r\n map.put(\"button.back\", \"back\");\r\n map.put(\"button.allsure\", \"allsure\");\r\n return map;\r\n }", "title": "" }, { "docid": "9f50fa0fa4618f22098662e66d70223f", "score": "0.4779472", "text": "protected Method getMethod(String name, boolean isStatic)\r\n/* 26: */ {\r\n/* 27: */ try\r\n/* 28: */ {\r\n/* 29: 30 */ Method method = this.clazz.getDeclaredMethod(name, new Class[] { Map.class });\r\n/* 30: 32 */ if (!ConfigurationSerializable.class.isAssignableFrom(method.getReturnType())) {\r\n/* 31: 33 */ return null;\r\n/* 32: */ }\r\n/* 33: 35 */ if (Modifier.isStatic(method.getModifiers()) != isStatic) {\r\n/* 34: 36 */ return null;\r\n/* 35: */ }\r\n/* 36: 39 */ return method;\r\n/* 37: */ }\r\n/* 38: */ catch (NoSuchMethodException ex)\r\n/* 39: */ {\r\n/* 40: 41 */ return null;\r\n/* 41: */ }\r\n/* 42: */ catch (SecurityException ex) {}\r\n/* 43: 43 */ return null;\r\n/* 44: */ }", "title": "" }, { "docid": "bc735787857bebc80559427b8c08bdd2", "score": "0.4769837", "text": "public interface FindClassMethodsInt {\n boolean deliverEvent(Property[] p);\n boolean displayEvent(Property[] p, long[] l, byte[] b);\n boolean displayEvent(Property[] p, long l, byte b);\n}", "title": "" }, { "docid": "dd48d2bb3a23dae53a0dc85c98fa9412", "score": "0.4755447", "text": "List<EventHandlerMethod<T, ?>> getMethods();", "title": "" }, { "docid": "0e48b7929a9e73778c5967e3d63ee983", "score": "0.47363746", "text": "private <S> Map<String, Field> getFieldsOfClass(final Class<S> sourceClass) {\n return Arrays.stream(sourceClass.getDeclaredFields())\n .map(field -> {\n if (field.isAnnotationPresent(BeanAlias.class)) {\n return Map.entry(field.getAnnotation(BeanAlias.class).value(), field);\n }\n return Map.entry(field.getName(), field);\n })\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));\n }", "title": "" }, { "docid": "18be5c4c18c258471d5afc0e2bc29e3d", "score": "0.4730967", "text": "@Override\n\tpublic void visit(Method m) {\n\n\t}", "title": "" }, { "docid": "f8ce41074bfa3742f026d2293ad54c3e", "score": "0.47219107", "text": "@RequiresNonNull(\"map\")\n private void registerNodeTypeMethod(\n @UnderInitialization ReflectiveConvertletTable this,\n final Method method) {\n if (!isPublic(method)) {\n return;\n }\n if (!method.getName().startsWith(\"convert\")) {\n return;\n }\n if (!RexNode.class.isAssignableFrom(method.getReturnType())) {\n return;\n }\n final Class[] parameterTypes = method.getParameterTypes();\n if (parameterTypes.length != 2) {\n return;\n }\n if (parameterTypes[0] != SqlRexContext.class) {\n return;\n }\n final Class parameterType = parameterTypes[1];\n if (!SqlNode.class.isAssignableFrom(parameterType)) {\n return;\n }\n map.put(parameterType, (SqlRexConvertlet) (cx, call) -> {\n try {\n @SuppressWarnings(\"argument.type.incompatible\")\n RexNode result =\n (RexNode) method.invoke(ReflectiveConvertletTable.this, cx, call);\n return requireNonNull(result,\n () -> \"null result from \" + method + \" for call \" + call);\n } catch (IllegalAccessException | InvocationTargetException e) {\n throw new RuntimeException(\"while converting \" + call, e);\n }\n });\n }", "title": "" }, { "docid": "7fcdbcda5c3648e44c1ffc7bb32548f9", "score": "0.4721628", "text": "protected HashMap<Method,ArrayList<ArrayList>> getMethod(ArrayList<String> sentence, Class<?> testClass){\n String keyword = sentence.get(0);\n Method[] methods = testClass.getDeclaredMethods();\n List<Method> filtered = new ArrayList<>();\n HashMap<Method, ArrayList<ArrayList>> right_method = new HashMap<>();\n if(keyword.equals(\"Given\")) {\n filtered = Arrays.stream(methods).filter(m -> m.isAnnotationPresent(Given.class)).collect(Collectors.toList());\n for( Method m: filtered){\n ArrayList<ArrayList> temp_params = compareGiven(sentence, m.getAnnotation(Given.class));\n if(!(temp_params.isEmpty())){\n m.setAccessible(true);\n right_method.put(m,temp_params);\n break;\n }\n }\n return right_method;\n }\n else if(keyword.equals(\"When\")) {\n filtered = Arrays.stream(methods).filter(m -> m.isAnnotationPresent(When.class)).collect(Collectors.toList());\n for( Method m: filtered){\n ArrayList<ArrayList> temp_params = compareWhen(sentence, m.getAnnotation(When.class));\n if(!(temp_params.isEmpty())){\n m.setAccessible(true);\n right_method.put(m,temp_params);\n break;\n }\n }\n return right_method;\n }\n else {\n filtered = Arrays.stream(methods).filter(m -> m.isAnnotationPresent(Then.class)).collect(Collectors.toList());\n for( Method m: filtered){\n ArrayList<ArrayList> temp_params = compareThen(sentence, m.getAnnotation(Then.class));\n if(!(temp_params.isEmpty())){\n m.setAccessible(true);\n right_method.put(m,temp_params);\n break;\n }\n }\n return right_method;\n }\n }", "title": "" }, { "docid": "1c93928539b78deff4ca6ac49f4eab81", "score": "0.4709591", "text": "private void setMethodHandlers() throws PidomeJSONRPCException {\r\n if(parsedObject.containsKey(\"method\")){\r\n try {\r\n String[] methodSplitted = ((String)parsedObject.get(\"method\")).split(\"\\\\.\");\r\n methodCatId = methodSplitted[0];\r\n methodExecId= methodSplitted[1];\r\n } catch(IndexOutOfBoundsException ex){\r\n throw new PidomeJSONRPCException(requestId, PidomeJSONRPCException.JSONError.METHOD_NOT_FOUND);\r\n }\r\n } else {\r\n /// No method supplied, so it is not a broadcast. It is a response so get it byu requesting it's id.\r\n }\r\n }", "title": "" }, { "docid": "1b5aaa32bd659a01dafb1dfb529ed684", "score": "0.4700649", "text": "@Override protected TreeMapper findMethodMapping(S6SolutionSet ss,MethodDeclaration md,\n\t\t\t\t\t\t S6Request.MethodSignature ms,\n\t\t\t\t\t\t S6Solution sol)\n{\n if (JavaAst.checkMethodSignature(md,ms,S6SignatureType.PARAMETERS)) return null;\n if (!JavaAst.checkMethodSignature(md,ms,S6SignatureType.RETURN_EXCEPTIONS)) return null;\n\n int mds = md.getModifiers();\n if (!Modifier.isStatic(mds)) return null;\n if (ms.isStatic()) return null;\n\n JcompTyper jt = JavaAst.getTyper(md);\n\n String cnm = null;\n if (ss.getSearchType() != S6SearchType.METHOD) {\n ASTNode an = md;\n while (an != null && !(an instanceof AbstractTypeDeclaration)) an = an.getParent();\n if (an == null) return null;\n AbstractTypeDeclaration tan = (AbstractTypeDeclaration) an;\n cnm = JavaAst.getJavaTypeName(tan);\n }\n else {\n JavaContext ctx = JavaAst.getS6Context(md);\n if (ctx == null) return null;\n String cpkg = ss.getRequest().getPackage();\n if (cpkg == null) cpkg = ctx.getContextPackage();\n String ccls = ctx.getContextClass();\n if (ccls == null) return null;\n if (cpkg == null) cnm = ccls;\n else cnm = cpkg + \".\" + ccls;\n }\n if (cnm == null) return null;\n\n JcompSymbol param = null;\n SingleVariableDeclaration paramdecl = null;\n HashSet<SingleVariableDeclaration> used = new HashSet<SingleVariableDeclaration>();\n\n for (Iterator<?> it = md.parameters().iterator(); it.hasNext(); ) {\n SingleVariableDeclaration svd = (SingleVariableDeclaration) it.next();\n JcompType t2 = JavaAst.getJavaType(svd);\n if (t2.getName().equals(cnm)) {\n\t used.add(svd);\n\t param = JavaAst.getDefinition(svd);\n\t paramdecl = svd;\n\t break;\n }\n }\n if (param == null) return null;\n\n for (String ptyp : ms.getParameterTypeNames()) {\n JcompType t1 = jt.findSystemType(ptyp);\n if (t1 == null) return null;\n boolean fnd = false;\n for (Iterator<?> it1 = md.parameters().iterator(); !fnd && it1.hasNext(); ) {\n\t SingleVariableDeclaration nvd = (SingleVariableDeclaration) it1.next();\n\t if (used.contains(nvd)) continue;\n\t JcompType t2 = JavaAst.getJavaType(nvd);\n\t if (t2.isCompatibleWith(t1)) {\n\t used.add(nvd);\n\t fnd = true;\n\t break;\n\t }\n }\n if (!fnd) return null;\n }\n\n CheckAssigned ca = new CheckAssigned(param);\n md.accept(ca);\n boolean asg = ca.isAssigned();\n\n ElimThisParam tm = new ElimThisParam(md,paramdecl,param,asg);\n\n return tm;\n}", "title": "" }, { "docid": "031f9d44c5af5e79168945eb8d4ca763", "score": "0.4697334", "text": "protected void putMethod(Method method, Class<?> c) {\n String methName = method.getName();\n println(methName + \" method \" + c.getName() + \" \");\n }", "title": "" }, { "docid": "478386fab7b4e81c65fcc939b2784672", "score": "0.4683552", "text": "public void collectEnhanceableMethods(\n TypeLiteral<?> hostType,\n Consumer<Method> methodVisitor,\n Map<Method, Method> bridgeDelegates) {\n\n Map<String, Method> leafMethods = new HashMap<>();\n Map<String, Method> bridgeTargets = new HashMap<>();\n\n // First resolve the 'leaf' methods; these represent the latest declaration of each method in\n // the class hierarchy (ie. ignoring super-class declarations with the same parameter types)\n\n for (Method candidate : candidates) {\n String parametersKey = parametersKey(candidate.getParameterTypes());\n Method existingLeafMethod = leafMethods.putIfAbsent(parametersKey, candidate);\n if (existingLeafMethod == null) {\n if (candidate.isBridge()) {\n // Record that we've started looking for the bridge's delegate\n bridgeTargets.put(parametersKey, null);\n }\n } else if (existingLeafMethod.isBridge()) {\n // Are we looking at another method with identical parameters in the leaf class?\n if (existingLeafMethod.getDeclaringClass() == candidate.getDeclaringClass()) {\n if (!candidate.isBridge()) {\n // Leaf has a matching non-bridge method; choose that as the method to enhance\n leafMethods.put(parametersKey, candidate);\n bridgeTargets.remove(parametersKey);\n } else if (existingLeafMethod\n .getReturnType()\n .isAssignableFrom(candidate.getReturnType())) {\n // Leaf has multiple matching bridge methods; choose the more specific return type\n leafMethods.put(parametersKey, candidate);\n }\n } else if (!candidate.isBridge()) {\n // Found potential bridge delegate in superclass with identical parameters\n bridgeTargets.putIfAbsent(parametersKey, candidate);\n }\n }\n }\n\n // Discard any 'final' methods, as they cannot be enhanced, and report non-bridge leaf methods\n\n for (Map.Entry<String, Method> methodEntry : leafMethods.entrySet()) {\n Method method = methodEntry.getValue();\n if ((method.getModifiers() & FINAL) != 0) {\n bridgeTargets.remove(methodEntry.getKey());\n } else if (!method.isBridge()) {\n methodVisitor.accept(method);\n }\n }\n\n // This leaves bridge methods which need further resolution; specifically around finding the\n // real bridge delegate so we can call it using invokevirtual from our enhanced method rather\n // than relying on super-class invocation to the original bridge method (as this would bypass\n // interception if the delegate method was itself intercepted by a different interceptor!)\n\n for (Map.Entry<String, Method> targetEntry : bridgeTargets.entrySet()) {\n Method originalBridge = leafMethods.get(targetEntry.getKey());\n Method superTarget = targetEntry.getValue();\n\n Method enhanceableMethod = originalBridge;\n\n // scan all methods looking for the bridge delegate by comparing generic parameters\n // (these are the kind of bridge methods that were added to account for type-erasure)\n for (Method candidate : candidates) {\n if (!candidate.isBridge()) {\n @SuppressWarnings(\"ReferenceEquality\")\n boolean sameMethod = candidate == superTarget;\n if (sameMethod) {\n\n // if we haven't matched our bridge by generic type and our non-bridge super-method has\n // identical parameters and return type to the original (and isn't from an interface)\n // then ignore the original bridge method and enhance the super-method instead - this\n // helps improve interception behaviour when AOP matchers skip all synthetic methods\n if (originalBridge.getReturnType() == superTarget.getReturnType()\n && !superTarget.getDeclaringClass().isInterface()) {\n enhanceableMethod = superTarget;\n }\n\n break; // we've reached the non-bridge super-method so default to super-class invocation\n }\n // compare bridge method against resolved candidate\n if (resolvedParametersMatch(originalBridge, hostType, candidate)\n || (superTarget != null\n // compare candidate against resolved super-method\n && resolvedParametersMatch(candidate, hostType, superTarget))) {\n\n // found a bridge target that differs by raw types but matches after generic resolution;\n // record this delegation so we can call it from our enhanced method with invokevirtual\n bridgeDelegates.put(originalBridge, candidate);\n break;\n }\n }\n }\n\n // bridge methods aren't typically final, but just in case...\n if ((enhanceableMethod.getModifiers() & FINAL) == 0) {\n methodVisitor.accept(enhanceableMethod);\n }\n }\n }", "title": "" }, { "docid": "40eef8b7037d46302f41b771b72878d5", "score": "0.46744412", "text": "@ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.SYN)\n @ASTNodeAnnotation.Source(aspect=\"MemberMethods\", declaredAt=\"C:\\\\Develop\\\\Diplom\\\\git_repo\\\\measure-extractor\\\\extendj\\\\java4\\\\frontend\\\\LookupMethod.jrag:520\")\n public Map<String, SimpleSet<MethodDecl>> methodsSignatureMap() {\n ASTNode$State state = state();\n if (methodsSignatureMap_computed == ASTNode$State.NON_CYCLE || methodsSignatureMap_computed == state().cycle()) {\n return methodsSignatureMap_value;\n }\n methodsSignatureMap_value = methodsSignatureMap_compute();\n if (state().inCircle()) {\n methodsSignatureMap_computed = state().cycle();\n \n } else {\n methodsSignatureMap_computed = ASTNode$State.NON_CYCLE;\n \n }\n return methodsSignatureMap_value;\n }", "title": "" }, { "docid": "2b06a887ee289700a945cf00cfc1cc25", "score": "0.46685123", "text": "void createJavaMethods(Ruby runtime) {\n if (methods != null) {\n if (methods.size() == 1) {\n javaMethod = JavaMethod.create(runtime,(Method)methods.get(0));\n } else {\n javaMethods = new IntHashMap();\n matchingMethods = new IntHashMap(); \n for (Iterator iter = methods.iterator(); iter.hasNext() ;) {\n Method method = (Method)iter.next();\n // TODO: deal with varargs\n //int arity = method.isVarArgs() ? -1 : method.getParameterTypes().length;\n int arity = method.getParameterTypes().length;\n RubyArray methodsForArity = (RubyArray)javaMethods.get(arity);\n if (methodsForArity == null) {\n methodsForArity = RubyArray.newArrayLight(runtime);\n javaMethods.put(arity,methodsForArity);\n }\n methodsForArity.append(JavaMethod.create(runtime,method));\n }\n }\n methods = null;\n }\n }", "title": "" }, { "docid": "8f9ab975289bfb27fe33034d0c33ab7e", "score": "0.46618155", "text": "Object getRegistrations();", "title": "" }, { "docid": "34b62a6f6b4f23207501a833fa0cdbfa", "score": "0.46613145", "text": "private static final String getMethodG2TypeWithClass(Object type)\n {\n \n if (type instanceof com.gensym.util.Structure)\n {\n\ttry {\n\t return \"CLASS \" + ((Symbol)((Structure)type).getAttributeValue(CLASS_)).toString();\n\t} catch (NoSuchAttributeException e) {\n\t throw new RuntimeException(\"Expected to find CLASS attribute in method result types\");\n\t}\n } \n else\n return ((Symbol)type).toString();\n }", "title": "" }, { "docid": "b5c03f5a0228994fbcb9f6e4aafc42c8", "score": "0.46595094", "text": "public HashMap<String,Class<?>> keysToTypes();", "title": "" }, { "docid": "f8d44814e6676789a69d3d72dcd809a5", "score": "0.46563956", "text": "protected static Map< Method, Integer > initEffectMethods() {\n effectMethods = new TreeMap<Method, Integer>( methodComparator );\r\n effectMethods.putAll( TimeVaryingMap.initEffectMethods() );\r\n Method m = getSendMethod();\r\n if ( m != null ) effectMethods.put( m, 1 );\r\n// m = getSendMethod2();\r\n// if ( m != null ) effectMethods.add( m );\r\n m = getSendIfMethod();\r\n if ( m != null ) effectMethods.put( m, 1 );\r\n m = getReceiveMethod();\r\n if ( m != null ) effectMethods.put( m, 0 );\r\n// m = getReceiveWithIntegerMethod();\r\n// if ( m != null ) effectMethods.add( m );\r\n return effectMethods;\r\n }", "title": "" }, { "docid": "5e30cb690034a41ff0dc0a75f33335b9", "score": "0.46557656", "text": "public static Map<Class<?>, Class<?>> getWTPMap() {\n return wrapperToPrimitives;\n }", "title": "" }, { "docid": "bd3571baf3ae0bc656bb4dfa1e5aa96b", "score": "0.46469462", "text": "@SuppressWarnings({\"ConstantConditions\"})\r\n @NotNull\r\n public static Map<String, String> getAllGetterMethods(PsiClass psiClass, String currentMethodName) {\r\n Map<String, String> methodNames = new HashMap<String, String>();\r\n PsiMethod[] psiMethods = null;\r\n String prefix = \"\";\r\n //flat field\r\n if (!currentMethodName.contains(\".\")) {\r\n psiMethods = psiClass.getAllMethods();\r\n } else {\r\n String[] path = (currentMethodName + \" \").split(\"\\\\.\"); //space added to avoid \".\" ended property\r\n PsiClass tempClass = psiClass;\r\n for (int i = 0; i < path.length - 1; i++) {\r\n String getterMethod = \"get\" + StringUtil.capitalize(path[i]);\r\n tempClass = findGetterMethodReturnType(tempClass, getterMethod);\r\n if (tempClass == null) break;\r\n prefix = prefix + path[i] + \".\";\r\n }\r\n }\r\n if (psiMethods != null && psiMethods.length > 0) {\r\n for (PsiMethod psiMethod : psiMethods) {\r\n String methodName = psiMethod.getName();\r\n if (methodName.startsWith(\"get\") && psiMethod.getParameterList().getParametersCount() == 0) {\r\n String name = prefix + StringUtil.decapitalize(methodName.replaceFirst(\"get\", \"\"));\r\n String type = psiMethod.getReturnType().getPresentableText();\r\n methodNames.put(name, type);\r\n }\r\n if (methodName.startsWith(\"is\") && psiMethod.getParameterList().getParametersCount() == 0) {\r\n String name = prefix + StringUtil.decapitalize(methodName.replaceFirst(\"is\", \"\"));\r\n String type = psiMethod.getReturnType().getPresentableText();\r\n methodNames.put(name, type);\r\n }\r\n }\r\n }\r\n methodNames.remove(\"class\"); //getClass is controled by JVM\r\n return methodNames;\r\n }", "title": "" }, { "docid": "85fe02d078737d161bada8c7f93c88a7", "score": "0.4646923", "text": "private Set<BridgeMethodDesc> collectBridgeMembers() {\n // Add methods from info\n final HashSet<BridgeMethodDesc> methods = new HashSet<>();\n\n // Add methods from all other super C++ interfaces\n final HashSet<CxxClassInfo> processed = new HashSet<>();\n processed.add(info);\n HashSet<CxxClassInfo> toProcess = new HashSet<>(info.getCxxSupers());\n toProcess.removeAll(processed);\n processed.addAll(toProcess);\n while (!toProcess.isEmpty()) {\n for (CxxClassInfo current : toProcess) {\n methods.addAll(current.getMemberBridgeMethods());\n }\n\n HashSet<CxxClassInfo> newToProcess = new HashSet<>();\n for (CxxClassInfo current : toProcess) {\n newToProcess.addAll(current.getCxxSupers());\n }\n toProcess = newToProcess;\n toProcess.removeAll(processed);\n processed.addAll(toProcess);\n }\n\n return methods;\n }", "title": "" }, { "docid": "c0b83b845ffd1febd251820429cee744", "score": "0.46448052", "text": "private MethodMetadata getAddInterceptors() {\n\n // Define method name\n JavaSymbolName methodName = new JavaSymbolName(\"addInterceptors\");\n\n // Define method parameter types\n List<AnnotatedJavaType> parameterTypes = new ArrayList<AnnotatedJavaType>();\n parameterTypes.add(AnnotatedJavaType.convertFromJavaType(new JavaType(\n \"org.springframework.web.servlet.config.annotation.InterceptorRegistry\")));\n\n // Define method parameter names\n List<JavaSymbolName> parameterNames = new ArrayList<JavaSymbolName>();\n parameterNames.add(new JavaSymbolName(\"registry\"));\n\n if (governorHasMethod(methodName,\n AnnotatedJavaType.convertFromAnnotatedJavaTypes(parameterTypes))) {\n return getGovernorMethod(methodName,\n AnnotatedJavaType.convertFromAnnotatedJavaTypes(parameterTypes));\n }\n\n // Generate body\n InvocableMemberBodyBuilder bodyBuilder = new InvocableMemberBodyBuilder();\n\n bodyBuilder.appendFormalLine(\"registry.addInterceptor(localeChangeInterceptor());\");\n\n // Use the MethodMetadataBuilder for easy creation of MethodMetadata\n MethodMetadataBuilder methodBuilder =\n new MethodMetadataBuilder(getId(), Modifier.PUBLIC, methodName, JavaType.VOID_PRIMITIVE,\n parameterTypes, parameterNames, bodyBuilder);\n\n // Add Bean annotation\n methodBuilder.addAnnotation(new AnnotationMetadataBuilder(JavaType.OVERRIDE));\n\n return methodBuilder.build(); // Build and return a MethodMetadata\n // instance\n }", "title": "" }, { "docid": "f612971d775db307fd08cf4c4b19b721", "score": "0.46412995", "text": "public void addInstanceMethod(@NotNull WisperMethod method)\n {\n instanceMethods.put(method.getMapName(), method);\n }", "title": "" }, { "docid": "0c7d9c0102c6872d236dc5ef13e99365", "score": "0.46371523", "text": "private static final Symbol getMethodG2Type(Object type)\n {\n \n if (type instanceof com.gensym.util.Structure)\n {\n\ttry {\n\t return ((Symbol)((Structure)type).getAttributeValue(CLASS_));\n\t} catch (NoSuchAttributeException e) {\n\t throw new RuntimeException(\"Expected to find CLASS attribute in method result types\");\n\t}\n } \n else\n return ((Symbol)type);\n }", "title": "" }, { "docid": "f0402dab4e552a0ee7e85c3d1303f544", "score": "0.46301454", "text": "public HashMap<String, String> getHandlers();", "title": "" }, { "docid": "c771b74f25c352c158f8ae062525769e", "score": "0.46018267", "text": "private void registerProviderBean2Map(String basePackage) {\n Reflections reflections = new Reflections(basePackage);\n Set<Class<?>> providerClass = reflections.getTypesAnnotatedWith(Provider.class);\n for (Class<?> clazz : providerClass) {\n Provider provider = clazz.getAnnotation(Provider.class);\n Class<?> interfaceClass = provider.interfaceClass();\n String version = provider.version();\n String serviceName = ServiceNameUtils.getServiceName(interfaceClass, version);\n Object providerBean;\n try {\n providerBean = clazz.newInstance();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n providerBeans.put(serviceName, providerBean);\n }\n }", "title": "" }, { "docid": "38bc54f32f6b564942732947c09200e1", "score": "0.45955405", "text": "@Override\n public void analyze(ClassLoader classLoader, Method method)\n {\n \n }", "title": "" }, { "docid": "38bc54f32f6b564942732947c09200e1", "score": "0.45955405", "text": "@Override\n public void analyze(ClassLoader classLoader, Method method)\n {\n \n }", "title": "" }, { "docid": "a166f2f73eeaf3349b6d6a2b364f9e54", "score": "0.45828563", "text": "private static Map<String, Class<?>> initializeClassForMap() {\n\t\tMap<String, Class<?>> val = new HashMap<String, Class<?>> ();\n\t\tfor (Map.Entry<Class<?>, String> e : prefixFor.entrySet()) {\n\t\t\tval.put(e.getValue(), e.getKey());\n\t\t}\n\t\tval.put(\"T\", PhyloTree.class);\n\t\treturn val;\n\t}", "title": "" }, { "docid": "27ad654634f104300ca8eff1fa6d2425", "score": "0.45730627", "text": "private static void addNameClassMappings(Ruby runtime, Map<String, JavaClass> nameClassMap) {\n JavaClass booleanPrimClass = JavaClass.get(runtime, Boolean.TYPE);\n JavaClass booleanClass = JavaClass.get(runtime, Boolean.class);\n nameClassMap.put(\"boolean\", booleanPrimClass);\n nameClassMap.put(\"Boolean\", booleanClass);\n nameClassMap.put(\"java.lang.Boolean\", booleanClass);\n \n JavaClass bytePrimClass = JavaClass.get(runtime, Byte.TYPE);\n JavaClass byteClass = JavaClass.get(runtime, Byte.class);\n nameClassMap.put(\"byte\", bytePrimClass);\n nameClassMap.put(\"Byte\", byteClass);\n nameClassMap.put(\"java.lang.Byte\", byteClass);\n \n JavaClass shortPrimClass = JavaClass.get(runtime, Short.TYPE);\n JavaClass shortClass = JavaClass.get(runtime, Short.class);\n nameClassMap.put(\"short\", shortPrimClass);\n nameClassMap.put(\"Short\", shortClass);\n nameClassMap.put(\"java.lang.Short\", shortClass);\n \n JavaClass charPrimClass = JavaClass.get(runtime, Character.TYPE);\n JavaClass charClass = JavaClass.get(runtime, Character.class);\n nameClassMap.put(\"char\", charPrimClass);\n nameClassMap.put(\"Character\", charClass);\n nameClassMap.put(\"Char\", charClass);\n nameClassMap.put(\"java.lang.Character\", charClass);\n \n JavaClass intPrimClass = JavaClass.get(runtime, Integer.TYPE);\n JavaClass intClass = JavaClass.get(runtime, Integer.class);\n nameClassMap.put(\"int\", intPrimClass);\n nameClassMap.put(\"Integer\", intClass);\n nameClassMap.put(\"Int\", intClass);\n nameClassMap.put(\"java.lang.Integer\", intClass);\n \n JavaClass longPrimClass = JavaClass.get(runtime, Long.TYPE);\n JavaClass longClass = JavaClass.get(runtime, Long.class);\n nameClassMap.put(\"long\", longPrimClass);\n nameClassMap.put(\"Long\", longClass);\n nameClassMap.put(\"java.lang.Long\", longClass);\n \n JavaClass floatPrimClass = JavaClass.get(runtime, Float.TYPE);\n JavaClass floatClass = JavaClass.get(runtime, Float.class);\n nameClassMap.put(\"float\", floatPrimClass);\n nameClassMap.put(\"Float\", floatClass);\n nameClassMap.put(\"java.lang.Float\", floatClass);\n \n JavaClass doublePrimClass = JavaClass.get(runtime, Double.TYPE);\n JavaClass doubleClass = JavaClass.get(runtime, Double.class);\n nameClassMap.put(\"double\", doublePrimClass);\n nameClassMap.put(\"Double\", doubleClass);\n nameClassMap.put(\"java.lang.Double\", doubleClass);\n \n JavaClass bigintClass = JavaClass.get(runtime, BigInteger.class);\n nameClassMap.put(\"big_int\", bigintClass);\n nameClassMap.put(\"big_integer\", bigintClass);\n nameClassMap.put(\"BigInteger\", bigintClass);\n nameClassMap.put(\"java.math.BigInteger\", bigintClass);\n \n JavaClass bigdecimalClass = JavaClass.get(runtime, BigDecimal.class);\n nameClassMap.put(\"big_decimal\", bigdecimalClass);\n nameClassMap.put(\"BigDecimal\", bigdecimalClass);\n nameClassMap.put(\"java.math.BigDecimal\", bigdecimalClass);\n \n JavaClass objectClass = JavaClass.get(runtime, Object.class);\n nameClassMap.put(\"object\", objectClass);\n nameClassMap.put(\"Object\", objectClass);\n nameClassMap.put(\"java.lang.Object\", objectClass);\n \n JavaClass stringClass = JavaClass.get(runtime, String.class);\n nameClassMap.put(\"string\", stringClass);\n nameClassMap.put(\"String\", stringClass);\n nameClassMap.put(\"java.lang.String\", stringClass);\n }", "title": "" }, { "docid": "24287e204db5b1f386ee239de5cc31be", "score": "0.45672697", "text": "static void dumpMethods(ClassGen gen) {\n\n System.out.printf(\"Class %s methods:%n\", gen.getClassName());\n for (Method m : gen.getMethods()) {\n System.out.printf(\" %s%n\", m);\n }\n }", "title": "" }, { "docid": "5596c7894cd875b6d60f417e536e844d", "score": "0.4562861", "text": "public Map<String,Invocable> getNotNativeInvocables() {\n return filterInvocables( (byte) ~NATIVE );\n }", "title": "" }, { "docid": "534ee82f9e5a89ffad113202e2cee153", "score": "0.45546937", "text": "private void scanClassToInitBean(Class<?> configClass) throws IllegalAccessException, InstantiationException, InvocationTargetException {\n Method[] methods = configClass.getDeclaredMethods();\n Object configClassObj = configClass.newInstance();\n for (Method m : methods) {\n Annotation[] ann = m.getDeclaredAnnotations();\n for(Annotation a : ann) {\n if (a instanceof DzBean) {\n m.setAccessible(true);\n Object obj = m.invoke(configClassObj,null);\n Class returnType = m.getReturnType();\n beanContext.put(returnType, obj);\n String beanName = ((DzBean) a).value();\n beanName = beanName.trim().equals(\"\")?returnType.toString():beanName;\n beanNames.put(beanName,obj);\n }\n }\n }\n }", "title": "" }, { "docid": "b967d922450c442d34b9384a7f1e390f", "score": "0.45524356", "text": "Map<UUID, IMember> getMemberMap();", "title": "" }, { "docid": "ae5591c8b5b5d9402ac9171d2a460016", "score": "0.45440206", "text": "public interface EndpointMapping extends Mapping {\n Class<?> getEndpoint();\n\n Method getEndpointMethod();\n}", "title": "" }, { "docid": "6ec9df2537b03a02ba136778e97eb8cc", "score": "0.45325157", "text": "protected Map<String,Invocable> filterInvocables(byte flags) {\n Map<String,Invocable> result = new HashMap<String,Invocable>();\n List<Invocable> selectedOverloadInvocables;\n for( Map.Entry<String,Overload> entry : sequenceMap.entrySet() ) {\n selectedOverloadInvocables = filterInvocables(entry.getValue(), flags);\n for(Invocable selectedInvocable : selectedOverloadInvocables) {\n result.put(entry.getKey(), selectedInvocable);\n }\n }\n return result;\n }", "title": "" }, { "docid": "9fd6972fcee79016b2858364a9131133", "score": "0.45231974", "text": "public static Map<String, Map<Class<?>, Method>> getSetters(final Class<?> type) throws ComponentException {\n Map<String, Map<Class<?>, Method>> setters = new HashMap<>();\n\n for (Method method : type.getMethods()) {\n String name = method.getName();\n if (name.startsWith(\"set\")) {\n if (name.length() == 3) {\n throw new ComponentException(\"Error getting setter '\" + name + \"' for '\" + type.getName() + \"', invalid name\");\n }\n\n Class<?> returnType = method.getReturnType();\n if (returnType != void.class) {\n throw new ComponentException(\"Error getting setter '\" + name + \"' for '\" + type.getName() + \"', does not return void\");\n }\n\n Class<?>[] types = method.getParameterTypes();\n if (types.length != 1) {\n throw new ComponentException(\"Error getting setter '\" + name + \"' for '\" + type.getName() + \"', does not accept one argument\");\n }\n\n String setterName = parameterName(name);\n\n if (!setters.containsKey(setterName)) {\n setters.put(setterName, new HashMap<>());\n }\n\n setters.get(setterName).put(types[0], method);\n }\n }\n\n return setters;\n }", "title": "" }, { "docid": "ff22dfcd4485ef86817e4d6874cac29a", "score": "0.45174995", "text": "private void enhanceMethod(ClassWriter cw, Method method, int methodIndex) {\n MethodVisitor mv =\n cw.visitMethod(\n FINAL | (method.getModifiers() & ~(ABSTRACT | NATIVE | SYNCHRONIZED)),\n method.getName(),\n Type.getMethodDescriptor(method),\n null,\n exceptionNames(method));\n\n mv.visitVarInsn(ALOAD, 0);\n mv.visitInsn(DUP);\n mv.visitFieldInsn(GETFIELD, proxyName, HANDLERS_NAME, HANDLERS_DESCRIPTOR);\n pushInteger(mv, methodIndex);\n mv.visitInsn(AALOAD);\n mv.visitInsn(SWAP);\n // we don't use the method argument in InterceptorStackCallback.invoke, so can use null here\n mv.visitInsn(ACONST_NULL);\n packArguments(mv, method.getParameterTypes());\n\n mv.visitMethodInsn(INVOKEINTERFACE, HANDLER_TYPE, \"invoke\", CALLBACK_DESCRIPTOR, true);\n\n Class<?> returnType = method.getReturnType();\n if (returnType == void.class) {\n mv.visitInsn(RETURN);\n } else if (returnType.isPrimitive()) {\n Type primitiveType = Type.getType(returnType);\n unbox(mv, primitiveType);\n mv.visitInsn(primitiveType.getOpcode(IRETURN));\n } else {\n mv.visitTypeInsn(CHECKCAST, Type.getInternalName(returnType));\n mv.visitInsn(ARETURN);\n }\n\n mv.visitMaxs(0, 0);\n mv.visitEnd();\n }", "title": "" }, { "docid": "f5fac15cfdcb0866b5f50d28df8045b6", "score": "0.45156604", "text": "org.wso2.choreo.connect.discovery.api.Operation getMethods(int index);", "title": "" }, { "docid": "2cd9014b83792c8f543cc46c9c37dfb0", "score": "0.450727", "text": "private static Method[] typeWrites(Class<?> clazz) {\n // find the methods that use a derived DataOutput instance as first parameter\n Method[] mwrites = clazz.getDeclaredMethods();\n List<Method> keepers = new ArrayList<>(mwrites.length);\n for (Method kwrite : mwrites) {\n Class<?>[] parms = kwrite.getParameterTypes();\n if (\"write\".equals(kwrite.getName())) {\n if (parms.length > 0 && DataOutput.class.isAssignableFrom(parms[0])) {\n kwrite.setAccessible(true);\n keepers.add(kwrite);\n }\n }\n }\n if (keepers.isEmpty()) {\n throw new ProxyException(clazz + \": serialization proxy can not find suitable write method\");\n }\n // order the array of write methods by comparing their signatures\n Method[] kwrites = keepers.toArray(new Method[0]);\n Arrays.sort(kwrites, Type::compareSignatures);\n return kwrites;\n }", "title": "" }, { "docid": "be3f27cecf825e2c9a21cc1c31431d84", "score": "0.44992307", "text": "public void collectReturnTypes(TypeConstant[] atypeRet)\n {\n throw notCodeContainer();\n }", "title": "" }, { "docid": "82044fce3a6771a1591150a78120d93f", "score": "0.4496414", "text": "private <T extends TBase<T, F>, F extends TFieldIdEnum> Map<String, TField> computeFieldNameMap(\n Class<?> clazz) {\n final Map<String, TField> map = new HashMap<>();\n\n if (isTBase(clazz)) {\n // Get the metaDataMap for this Thrift class\n @SuppressWarnings(\"unchecked\")\n final Map<? extends TFieldIdEnum, FieldMetaData> metaDataMap =\n FieldMetaData.getStructMetaDataMap((Class<T>) clazz);\n\n for (Entry<? extends TFieldIdEnum, FieldMetaData> e : metaDataMap.entrySet()) {\n final String fieldName = e.getKey().getFieldName();\n final FieldMetaData metaData = e.getValue();\n updateClassMap(metaData, clazz);\n\n // Workaround a bug in the generated thrift message read()\n // method by mapping the ENUM type to the INT32 type\n // The thrift generated parsing code requires that, when expecting\n // a value of enum, we actually parse a value of type int32. The\n // generated read() method then looks up the enum value in a map.\n final byte type = TType.ENUM == metaData.valueMetaData.type ? TType.I32\n : metaData.valueMetaData.type;\n\n map.put(fieldName,\n new TField(fieldName,\n type,\n e.getKey().getThriftFieldId()));\n }\n } else { // TApplicationException\n map.put(\"message\", new TField(\"message\", (byte)11, (short)1));\n map.put(\"type\", new TField(\"type\", (byte)8, (short)2));\n }\n\n return map;\n }", "title": "" }, { "docid": "00ff666d15c68b97bfe7cf3a98225dea", "score": "0.44892433", "text": "java.util.List<net.java.dev.wadl.x2009.x02.MethodDocument.Method> getMethodList();", "title": "" }, { "docid": "02ae161df52e74901f1353db4e557dda", "score": "0.4480837", "text": "private static java.lang.reflect.Field[] getExportedPropertyFields(java.lang.Class<?> r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.view.ViewDebug.getExportedPropertyFields(java.lang.Class):java.lang.reflect.Field[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.view.ViewDebug.getExportedPropertyFields(java.lang.Class):java.lang.reflect.Field[]\");\n }", "title": "" }, { "docid": "286f6119d96eb09c70b5b998ae3822df", "score": "0.4476034", "text": "private static native Object[] getClassSignatureAnnotation(Class clazz);", "title": "" }, { "docid": "3d3a6899f01a333ccaccbe04c5e6daae", "score": "0.44671196", "text": "protected abstract List<Server> methodServers(MethodElement element, VisitorContext context);", "title": "" }, { "docid": "c0e291bd60dd2043d514c8dd82f34389", "score": "0.44623244", "text": "public interface BeanUtilsPlugin {\n\n /**\n * Holder for the getter types (standard and generic ones).\n * \n * @author <a href=\"mailto:Vladimir.Hudec@gmail.com\">Vladimir Hudec</a>\n */\n public class GetterType {\n public Class<?> type;\n public Type genericType;\n public Class<?> typeClass;\n public String methodName;\n\n public GetterType(Method m) {\n methodName = m.getName();\n type = m.getReturnType();\n genericType = m.getGenericReturnType();\n if (genericType != null && genericType instanceof ParameterizedType)\n typeClass = (Class<?>) ((ParameterizedType) genericType).getActualTypeArguments()[0];\n }\n }\n\n /**\n * Returns the new class instance\n * \n * @param runtimeCtx\n * the public runtime context\n * @param clazz\n * the class to be constructed\n * @return the new class instance. Null in the case of any error.\n */\n public Object getInstance(SqlRuntimeContext runtimeCtx, Class<?> clazz);\n\n /**\n * Returns the Java type info for the attribute, if there is one.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param clazz\n * the class for which the attribute type is requested\n * @param attrName\n * the name of the attribute which type is requested\n * @return the object that represents the Java type info. Null in the case there's no such attribute.\n */\n public Class<?> getAttributeType(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName);\n\n /**\n * Returns the Java parameterized type info for the attribute, if there is one.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param clazz\n * the class for which the attribute type is requested\n * @param attrName\n * the name of the attribute which type is requested\n * @return the object that represents the Java parameterized type info. Null in the case there's no such attribute.\n */\n public Class<?>[] getAttributeParameterizedTypes(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName);\n\n /**\n * Returns the attribute getter method types, if there is one.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param clazz\n * the class for which the getter is requested\n * @param attrName\n * the name of the attribute which getter is requested\n * @return The method that should be used to read the property value. Null in the case there's no such attribute's\n * getter.\n */\n public GetterType getGetterType(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName);\n\n /**\n * Returns the attribute getter method types, if there is one.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param bean\n * the bean for which the getter is requested\n * @param attrName\n * the name of the attribute which getter is requested\n * @return The getter method types that should be used to read the property value. Null in the case there's no such\n * attribute's getter.\n */\n public GetterType getGetterType(SqlRuntimeContext runtimeCtx, Object bean, String attrName);\n\n /**\n * Checks the attribute getter method existence.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param bean\n * the bean for which the getter is checked\n * @param attrName\n * the name of the attribute which getter is checked\n * @return True if there's the attribute getter method\n */\n public boolean checkAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName);\n\n /**\n * Returns the value of the specified simple attribute of the specified bean.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param bean\n * the bean for which the attribute value is requested\n * @param attrName\n * the name of the attribute which value is requested\n * @return the attribute value\n * @exception SqlRuntimeException\n * in the case of any error\n */\n public Object getAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName) throws SqlRuntimeException;\n\n /**\n * Sets the value of the specified simple attribute of the specified bean, if there is one.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param bean\n * the bean for which the attribute value is to be modified\n * @param attrName\n * the name of the attribute to be modified\n * @param attrValue\n * the value to which the attribute should be set\n * @param attrTypes\n * the possible attribute types\n * @return True if the attribute was successfully modified\n */\n public boolean simpleSetAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName, Object attrValue,\n Class<?>... attrTypes);\n\n /**\n * Sets the value of the specified simple attribute of the specified bean.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param bean\n * the bean for which the attribute value is to be modified\n * @param attrName\n * the name of the attribute to be modified\n * @param attrValue\n * the value to which the attribute should be set\n * @exception SqlRuntimeException\n * in the case of any error\n */\n public void setAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName, Object attrValue)\n throws SqlRuntimeException;\n\n /**\n * Checks the class method existence.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param clazz\n * the class for which the method existence is checked\n * @param methodName\n * the name of the method to be checked\n * @param argTypes\n * the method parameters types\n * @return True if there's such a method\n */\n public boolean checkMethod(SqlRuntimeContext runtimeCtx, Class<?> clazz, String methodName, Class<?>... argTypes);\n\n /**\n * Checks the bean method existence.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param bean\n * the bean for which the method existence is checked\n * @param methodName\n * the name of the method to be checked\n * @param args\n * the method parameters\n * @return True if there's such a method\n */\n public boolean checkMethod(SqlRuntimeContext runtimeCtx, Object bean, String methodName, Object... args);\n\n /**\n * Invokes the class method with the specified name and parameters. The method can be a static one.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param clazz\n * the class which method is going to be invoked\n * @param methodName\n * the requested method name\n * @param args\n * the method parameters\n * @return the result of the method invocation\n * @exception SqlRuntimeException\n * in the case of any error\n */\n public Object invokeMethod(SqlRuntimeContext runtimeCtx, Class<?> clazz, String methodName, Object... args)\n throws SqlRuntimeException;\n\n /**\n * Invokes the bean method with the specified name and parameters.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param bean\n * the bean which method is going to be invoked\n * @param methodName\n * the requested method name\n * @param args\n * the method parameters\n * @return the result of the method invocation\n * @exception SqlRuntimeException\n * in the case of any error\n */\n public Object invokeMethod(SqlRuntimeContext runtimeCtx, Object bean, String methodName, Object... args)\n throws SqlRuntimeException;\n\n /**\n * Returns the bean enumeration value.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param bean\n * the bean of the enumeration type\n * @return the enumeration value. Null in the case of any error.\n */\n public Object getEnumToValue(SqlRuntimeContext runtimeCtx, Object bean);\n\n /**\n * Returns the bean enumeration type.\n * \n * @param runtimeCtx\n * the public runtime context\n * @param clazz\n * the class of the enumeration type\n * @return the enumeration type. Null in the case of any error.\n */\n public Class<?> getEnumToClass(SqlRuntimeContext runtimeCtx, Class<?> clazz);\n\n /**\n * Returns the enumeration instance for the enumeration value\n * \n * @param runtimeCtx\n * the public runtime context\n * @param clazz\n * the class of the enumeration type\n * @param val\n * the enumeration value\n * @return the enumeration instance. Null in the case of any error.\n */\n public Object getValueToEnum(SqlRuntimeContext runtimeCtx, Class<?> clazz, Object val);\n}", "title": "" }, { "docid": "959ffb8831334538c6c20d36ac05e0c4", "score": "0.44481906", "text": "static final String getMethodType(ClassGenerationContext classGenerationContext, Object type)\n {\n // Thread.dumpStack(); // DEBUG\n if (type instanceof com.gensym.util.Structure)\n {\n\ttry {\n\t return classGenerationContext.getJavaTypeNameForG2Type((Symbol)((Structure)type).getAttributeValue(CLASS_));\n\t} catch (NoSuchAttributeException e) {\n\t throw new RuntimeException(\"Expected to find CLASS attribute in method result types\");\n\t}\n } \n else\n return classGenerationContext.getJavaTypeNameForG2Type ((Symbol)type);\n }", "title": "" }, { "docid": "84d2a34c6c6ef19fbcca4cc7c471dda6", "score": "0.4446117", "text": "private Map<SupportedService, ConsoleService> createServiceMap() {\n\t\tMap<SupportedService, ConsoleService> serviceMap = new HashMap<SupportedService, ConsoleService>();\n\t\tserviceMap.put(SupportedService.METRICS_QUERY_SERVICE, new MetricsQueryServiceImpl());\n\t\treturn serviceMap;\n\t}", "title": "" }, { "docid": "c43cacb25f5f74f67c44eaeb52c5bdd9", "score": "0.44393086", "text": "private Method[] getAllSetters() {\n\t\tfinal List<Method> allSetters = new ArrayList<>();\n\t\taddAllSetters(beanClass, allSetters);\n\t\treturn allSetters.toArray(new Method[allSetters.size()]);\n\t}", "title": "" }, { "docid": "2cf947cb7d1d8bc4d9024b747375758f", "score": "0.4437162", "text": "private static Map<String, Field> mapFieldNameField(Class aClass) {\n Map<String, Field> result = new HashMap<>(16);\n for (Field field : aClass.getDeclaredFields())\n result.put(field.getName().toLowerCase(), field);\n\n return result;\n }", "title": "" }, { "docid": "fe46cbbe43f06fe611d4ab6b9c30bea1", "score": "0.44358748", "text": "public OfMethodExceptionTypes(Method method) {\n this.method = method;\n }", "title": "" }, { "docid": "c0de7b4ba9367625b7068443f43aeb30", "score": "0.44298753", "text": "public List<String> getMethodCoverage() {\n \n List<String> list = new ArrayList<String>();\n \n for (ClassCode clazz : classCoverage) {\n \n for (String string : clazz.getMethodsCoverage()) {\n list.add(string);\n }\n }\n \n return list;\n }", "title": "" }, { "docid": "a93bdc4f845f3a9d8aad92dd127ec8c6", "score": "0.44266757", "text": "protected static List<LocalVariable> getMethodParameters(String methodSig) {\n return methodArgMap.get(methodSig);\n }", "title": "" } ]
731000e2f6a59fb38e645905f9ea7f16
Creates a new instance of ASNAnyType
[ { "docid": "71be0bd02b2bd2f03943ffecd7d4d344", "score": "0.82812214", "text": "public ASNAnyType() {\n setType (ANY);\n }", "title": "" } ]
[ { "docid": "7c7ff4a6d3619811369e859de169f65b", "score": "0.68353766", "text": "public void testFactoryCreateFromAny ()\n {\n org.omg.CORBA.Any any = null;\n\n any = orb.create_any ();\n EnumTypeHelper.insert (any, EnumType.from_int (0));\n\n createDynAnyFromAny (any);\n }", "title": "" }, { "docid": "b150432e5a84f40f9d118d5cfd9a8ee4", "score": "0.6520363", "text": "public org.omg.DynamicAny.DynAny create_dyn_any (org.omg.CORBA.Any any)\n throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode\n {\n return DynAnyUtil.createMostDerivedDynAny(any, orb, true);\n }", "title": "" }, { "docid": "2de08c6e75dd864a7b1889177aaa6450", "score": "0.6375103", "text": "public void testGenerateAnyFromDynAny ()\n {\n String msg;\n org.omg.CORBA.Any any = null;\n org.omg.CORBA.TypeCode tc = null;\n org.omg.DynamicAny.DynEnum dynAny = null;\n org.omg.DynamicAny.DynEnum dynAny2 = null;\n\n tc = EnumTypeHelper.type ();\n dynAny = createDynAnyFromTypeCode (tc);\n\n any = orb.create_any ();\n any = dynAny.to_any ();\n dynAny2 = createDynAnyFromAny (any);\n\n msg = \"Failed to initialize an Any object from a DynAny object \";\n msg += \"using the DynAny::to_any operation\";\n assertTrue (msg, dynAny.equal (dynAny2));\n }", "title": "" }, { "docid": "7e174b313191b155a93d79bd3b5b933a", "score": "0.6355136", "text": "private DynAnyComplexImpl() {\n/* 60 */ this((ORB)null, (Any)null, false);\n/* */ }", "title": "" }, { "docid": "c8d597976321e64a31423d8d1f76720b", "score": "0.6230065", "text": "public void testInitDynAnyFromAny ()\n {\n String msg;\n org.omg.CORBA.Any any = null;\n org.omg.CORBA.TypeCode tc = null;\n org.omg.DynamicAny.DynEnum dynAny = null;\n org.omg.DynamicAny.DynEnum dynAny2 = null;\n\n tc = EnumTypeHelper.type ();\n dynAny = createDynAnyFromTypeCode (tc);\n\n any = orb.create_any ();\n EnumTypeHelper.insert (any, EnumType.from_int (1));\n dynAny2 = createDynAnyFromAny (any);\n\n msg = \"Failed to initialize a DynAny object from an Any object \";\n msg += \"using the DynAny::from_any operation\";\n try\n {\n dynAny.from_any (any);\n }\n catch (Throwable ex)\n {\n fail (msg + \": \" + ex);\n }\n assertTrue (msg, dynAny.equal (dynAny2));\n }", "title": "" }, { "docid": "c608fff828ca17e309dcb7e6caab7178", "score": "0.61210173", "text": "public void testDynAnyTypeCode ()\n {\n String msg;\n org.omg.CORBA.TypeCode tc = null;\n org.omg.DynamicAny.DynEnum dynAny = null;\n\n tc = orb.create_enum_tc (ID, NAME, ENUM);\n dynAny = createDynAnyFromTypeCode (tc);\n\n msg = \"Incorrect TypeCode retrieved from DynAny::type operation\";\n assertTrue (msg, dynAny.type ().equal (tc));\n }", "title": "" }, { "docid": "0b0c972e149f7318658d63fd9d56da83", "score": "0.6080919", "text": "private org.omg.DynamicAny.DynEnum createDynAnyFromAny\n (org.omg.CORBA.Any any)\n {\n String msg;\n org.omg.DynamicAny.DynEnum dynAny = null;\n\n try\n {\n dynAny = (org.omg.DynamicAny.DynEnum) factory.create_dyn_any (any);\n }\n catch (Throwable ex)\n {\n msg = \"Factory failed to create DynAny from Any using \";\n msg += \"DynAny::create_dyn_any operation: \" + ex;\n fail (msg);\n }\n return dynAny;\n }", "title": "" }, { "docid": "4d3acd97882fc528aa61b06bfee43d28", "score": "0.60797083", "text": "public void testInitFromAnyTypeMismatchEx ()\n {\n String msg;\n org.omg.CORBA.Any any = null;\n org.omg.CORBA.TypeCode tc = null;\n org.omg.DynamicAny.DynEnum dynAny = null;\n\n any = orb.create_any ();\n any.insert_string (\"Hello\");\n\n tc = orb.create_enum_tc (ID, NAME, ENUM);\n dynAny = createDynAnyFromTypeCode (tc);\n\n msg = \"TypeMismatch exception not thrown by DynAny::from_any \";\n msg += \"operation when DynAny and Any operands have different types\";\n try\n {\n dynAny.from_any (any);\n\n fail (msg);\n }\n catch (org.omg.DynamicAny.DynAnyPackage.TypeMismatch ex)\n {\n // success\n }\n catch (org.omg.DynamicAny.DynAnyPackage.InvalidValue ex)\n {\n fail (msg + \": \" + ex);\n }\n }", "title": "" }, { "docid": "f9c8843244cb76a6cc95fbc7c4620e21", "score": "0.6015861", "text": "BPAnyObject createBPAnyObject();", "title": "" }, { "docid": "5044e120a4bde5334c6af67550a02046", "score": "0.600659", "text": "public org.omg.DynamicAny.DynAny create_dyn_any_from_type_code (org.omg.CORBA.TypeCode type)\n throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode\n {\n return DynAnyUtil.createMostDerivedDynAny(type, orb);\n }", "title": "" }, { "docid": "26a36db7656f7288f637ae976ce5a23b", "score": "0.589468", "text": "private org.omg.DynamicAny.DynEnum createDynAnyFromTypeCode\n (org.omg.CORBA.TypeCode tc)\n {\n String msg;\n org.omg.DynamicAny.DynEnum dynAny = null;\n\n try\n {\n dynAny = (org.omg.DynamicAny.DynEnum)\n factory.create_dyn_any_from_type_code (tc);\n }\n catch (Throwable ex)\n {\n msg = \"Factory failed to create DynAny from TypeCode using \";\n msg += \"DynAny::create_dyn_any_from_type_code operation: \" + ex;\n fail (msg);\n }\n return dynAny;\n }", "title": "" }, { "docid": "770d7bbd40ac589a6e96ea09dda6f78c", "score": "0.5815127", "text": "public void testInitDynAnyFromDynAny ()\n {\n String msg;\n org.omg.CORBA.Any any = null;\n org.omg.CORBA.TypeCode tc = null;\n org.omg.DynamicAny.DynEnum dynAny = null;\n org.omg.DynamicAny.DynEnum dynAny2 = null;\n\n tc = EnumTypeHelper.type ();\n dynAny = createDynAnyFromTypeCode (tc);\n\n any = orb.create_any ();\n EnumTypeHelper.insert (any, EnumType.from_int (1));\n dynAny2 = createDynAnyFromAny (any);\n\n msg = \"Failed to initialize a DynAny object from another DynAny \";\n msg += \"object using the DynAny::assign operation\";\n try\n {\n dynAny.assign (dynAny2);\n }\n catch (Throwable ex)\n {\n fail (msg + \": \" + ex);\n }\n assertTrue (msg, dynAny.equal (dynAny2));\n }", "title": "" }, { "docid": "592ae9b3fb8ff54da03511b8df9881a3", "score": "0.57509154", "text": "public Object visitAnyTypeDenoter(AnyTypeDenoter ast, Object o) {\r\n return StdEnvironment.anyType;\r\n }", "title": "" }, { "docid": "94a493d8515f244e5bfdf7d5f9da6824", "score": "0.56495744", "text": "public final void mOCLANYTYPE() throws RecognitionException {\n try {\n int _type = OCLANYTYPE;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // Simpleocl.g:12041:11: ( ( 'OclAny' ) )\n // Simpleocl.g:12042:2: ( 'OclAny' )\n {\n // Simpleocl.g:12042:2: ( 'OclAny' )\n // Simpleocl.g:12042:2: 'OclAny'\n {\n match(\"OclAny\"); \n\n\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "758254b5f83f231cd13de3721821b08e", "score": "0.5649371", "text": "BasicType createBasicType();", "title": "" }, { "docid": "081ebfa736b3421951afb55bad02f6b7", "score": "0.5434796", "text": "public UAny_expr(String unarop, PAny_expr panyExpr) {\r\n\t\tsuper();\r\n\t\tsetUnarop(new Unarop(unarop));\r\n\t\tsetAny_expr(new Any_expr(panyExpr));\r\n\t}", "title": "" }, { "docid": "5757db28cb2c3930577cd702f3fc5812", "score": "0.5433822", "text": "public final EObject ruleAny() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n AntlrDatatypeRuleToken lv_name_2_0 = null;\n\n\n enterRule(); \n \n try {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2174:28: ( ( () otherlv_1= 'Any' ( (lv_name_2_0= ruleEString ) ) ) )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2175:1: ( () otherlv_1= 'Any' ( (lv_name_2_0= ruleEString ) ) )\n {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2175:1: ( () otherlv_1= 'Any' ( (lv_name_2_0= ruleEString ) ) )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2175:2: () otherlv_1= 'Any' ( (lv_name_2_0= ruleEString ) )\n {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2175:2: ()\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2176:5: \n {\n\n current = forceCreateModelElement(\n grammarAccess.getAnyAccess().getAnyAction_0(),\n current);\n \n\n }\n\n otherlv_1=(Token)match(input,48,FollowSets000.FOLLOW_48_in_ruleAny4174); \n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnyAccess().getAnyKeyword_1());\n \n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2185:1: ( (lv_name_2_0= ruleEString ) )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2186:1: (lv_name_2_0= ruleEString )\n {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2186:1: (lv_name_2_0= ruleEString )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2187:3: lv_name_2_0= ruleEString\n {\n \n \t newCompositeNode(grammarAccess.getAnyAccess().getNameEStringParserRuleCall_2_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleAny4195);\n lv_name_2_0=ruleEString();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_2_0, \n \t\t\"EString\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "5c7bcd1675da088c9788670654013ebe", "score": "0.54019904", "text": "protected boolean initializeComponentsFromAny() {\n/* 325 */ TypeCode typeCode1 = this.any.type();\n/* 326 */ TypeCode typeCode2 = null;\n/* */ \n/* 328 */ DynAny dynAny = null;\n/* 329 */ String str = null;\n/* 330 */ int i = 0;\n/* */ \n/* */ try {\n/* 333 */ i = typeCode1.member_count();\n/* 334 */ } catch (BadKind badKind) {}\n/* */ \n/* */ \n/* 337 */ InputStream inputStream = this.any.create_input_stream();\n/* */ \n/* 339 */ allocComponents(i);\n/* */ \n/* 341 */ for (byte b = 0; b < i; b++) {\n/* */ \n/* 343 */ try { str = typeCode1.member_name(b);\n/* 344 */ typeCode2 = typeCode1.member_type(b); }\n/* 345 */ catch (BadKind badKind) { }\n/* 346 */ catch (Bounds bounds) {}\n/* */ \n/* 348 */ Any any = DynAnyUtil.extractAnyFromStream(typeCode2, inputStream, this.orb);\n/* */ \n/* */ try {\n/* 351 */ dynAny = DynAnyUtil.createMostDerivedDynAny(any, this.orb, false);\n/* */ \n/* */ \n/* */ }\n/* 355 */ catch (InconsistentTypeCode inconsistentTypeCode) {}\n/* */ \n/* 357 */ addComponent(b, str, any, dynAny);\n/* */ } \n/* 359 */ return true;\n/* */ }", "title": "" }, { "docid": "58d8658b45c01c5c67b24f013392d812", "score": "0.53609186", "text": "public void testFactoryCreateFromTypeCode ()\n {\n org.omg.CORBA.TypeCode tc = null;\n\n tc = orb.create_enum_tc (ID, NAME, ENUM);\n createDynAnyFromTypeCode (tc);\n }", "title": "" }, { "docid": "df9fb5e3697383534da14430b8ed5ba2", "score": "0.534917", "text": "Datatype createDatatype();", "title": "" }, { "docid": "32da6f8b3b8a98507c5c80f7182df25b", "score": "0.5331068", "text": "protected boolean initializeComponentsFromAny() {\n // This typeCode is of kind tk_array.\n TypeCode typeCode = any.type();\n int length = getBound();\n TypeCode contentType = getContentType();\n InputStream input;\n\n try {\n input = any.create_input_stream();\n } catch (BAD_OPERATION e) {\n return false;\n }\n\n components = new DynAny[length];\n anys = new Any[length];\n\n for (int i=0; i<length; i++) {\n // _REVISIT_ Could use read_xxx_array() methods on InputStream for efficiency\n // but only for primitive types\n anys[i] = DynAnyUtil.extractAnyFromStream(contentType, input, orb);\n try {\n // Creates the appropriate subtype without copying the Any\n components[i] = DynAnyUtil.createMostDerivedDynAny(anys[i], orb, false);\n } catch (InconsistentTypeCode itc) { // impossible\n }\n }\n return true;\n }", "title": "" }, { "docid": "1e348d7cd47848972cd34c704f7d05c2", "score": "0.5300418", "text": "protected DynAnyComplexImpl(ORB paramORB, TypeCode paramTypeCode) {\n/* 72 */ super(paramORB, paramTypeCode);\n/* */ \n/* */ \n/* */ \n/* 76 */ this.index = 0;\n/* */ }", "title": "" }, { "docid": "2635135b9ffb241cd2a3b12d5c08e681", "score": "0.5276961", "text": "@SuppressWarnings({\"ErrorNotRethrown\"})\n\tprivate Any alloc_any() throws DevFailed\n\t{\n\t\tAny out_any = null;\n\t\ttry\n\t\t{\t\n\t\t\tout_any = Util.instance().get_orb().create_any();\n\t\t}\n\t\tcatch (OutOfMemoryError ex)\n\t\t{\n\t\t\tUtil.out3.println(\"Bad allocation while in alloc_any Command method()\");\n\t\t\tExcept.throw_exception(\"API_MemoryAllocation\",\n\t\t\t\t\t \"Can't allocate memory in server\",\n\t\t\t\t\t \"Command::alloc_any\");\n\t\t}\n\t\treturn out_any;\n\t}", "title": "" }, { "docid": "cef46a11a0dfebe74b6cc269e12780f0", "score": "0.5256575", "text": "public final EObject entryRuleOclAnyType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleOclAnyType = null;\n\n\n try {\n // InternalDOcl.g:4125:51: (iv_ruleOclAnyType= ruleOclAnyType EOF )\n // InternalDOcl.g:4126:2: iv_ruleOclAnyType= ruleOclAnyType EOF\n {\n newCompositeNode(grammarAccess.getOclAnyTypeRule()); \n pushFollow(FOLLOW_1);\n iv_ruleOclAnyType=ruleOclAnyType();\n\n state._fsp--;\n\n current =iv_ruleOclAnyType; \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": "39b5c8e4ee698d8fe973a176c9b26c3c", "score": "0.52399385", "text": "public void setAnyValue(final AnyValueType anyValue) {\n if (this.anyValue == null) {\n this.anyValue = new ArrayList<AnyValueType>();\n }\n this.anyValue.add(anyValue);\n }", "title": "" }, { "docid": "6cf755e55cef9df107205e0359578e1e", "score": "0.5152468", "text": "public void testFactoryCreateFromIDLTypeCode ()\n {\n org.omg.CORBA.TypeCode tc = null;\n\n tc = EnumTypeHelper.type ();\n createDynAnyFromTypeCode (tc);\n }", "title": "" }, { "docid": "b5601ec7adf48c2615981b27eaead04d", "score": "0.5145252", "text": "SimpleType createSimpleType();", "title": "" }, { "docid": "9d4e82f4cf09cb3205c0ad56fb5be472", "score": "0.51421934", "text": "public void testCompareDynAny ()\n {\n String msg;\n org.omg.CORBA.Any any = null;\n org.omg.DynamicAny.DynEnum dynAny = null;\n org.omg.DynamicAny.DynEnum dynAny2 = null;\n\n any = orb.create_any ();\n EnumTypeHelper.insert (any, EnumType.from_int (0));\n dynAny = createDynAnyFromAny (any);\n dynAny2 = createDynAnyFromAny (any);\n\n msg = \"Comparing two equal DynAny values using DynAny::equal failed\";\n assertTrue (msg, dynAny.equal (dynAny2));\n }", "title": "" }, { "docid": "15cbaa23ebe01b5290f916e4da849dd6", "score": "0.50300175", "text": "public final EObject ruleOclAnyType() throws RecognitionException {\n EObject current = null;\n\n Token lv_name_0_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalDOcl.g:4138:2: ( ( (lv_name_0_0= 'OclAny' ) ) )\n // InternalDOcl.g:4139:2: ( (lv_name_0_0= 'OclAny' ) )\n {\n // InternalDOcl.g:4139:2: ( (lv_name_0_0= 'OclAny' ) )\n // InternalDOcl.g:4140:3: (lv_name_0_0= 'OclAny' )\n {\n // InternalDOcl.g:4140:3: (lv_name_0_0= 'OclAny' )\n // InternalDOcl.g:4141:4: lv_name_0_0= 'OclAny'\n {\n lv_name_0_0=(Token)match(input,96,FOLLOW_2); \n\n \t\t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getOclAnyTypeAccess().getNameOclAnyKeyword_0());\n \t\t\t\n\n \t\t\t\tif (current==null) {\n \t\t\t\t\tcurrent = createModelElement(grammarAccess.getOclAnyTypeRule());\n \t\t\t\t}\n \t\t\t\tsetWithLastConsumed(current, \"name\", lv_name_0_0, \"OclAny\");\n \t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "7e3b2f83ed5a1c9ab04ce083f32041b5", "score": "0.5028075", "text": "public void setAnyValue(final List<AnyValueType> anyValue) {\n this.anyValue = anyValue;\n }", "title": "" }, { "docid": "94cdab5858e6f456a14755e2aa7cc8ba", "score": "0.50279295", "text": "public void testCopyDynAny ()\n {\n String msg;\n org.omg.CORBA.TypeCode tc = null;\n org.omg.DynamicAny.DynEnum dynAny = null;\n org.omg.DynamicAny.DynEnum dynAny2 = null;\n\n tc = EnumTypeHelper.type ();\n dynAny = createDynAnyFromTypeCode (tc);\n dynAny2 = (org.omg.DynamicAny.DynEnum) dynAny.copy ();\n\n msg = \"The DynAny object created with the DynAny::copy operation \";\n msg += \"is not equal to the DynAny object it was copied from\";\n assertTrue (msg, dynAny.equal (dynAny2));\n }", "title": "" }, { "docid": "f130a6f306b73e6e879a1abb05c910b0", "score": "0.50074804", "text": "public ExtensionType()\n {\n super(null);\n }", "title": "" }, { "docid": "3d92bd6f068c369b474ac255f2b9adb4", "score": "0.49875876", "text": "UnionType createUnionType();", "title": "" }, { "docid": "6fc43a1d322c79a9db7b75b8ecd1f761", "score": "0.49795404", "text": "public static Aggregation any() {\n return new NoParamAggregation(Kind.ANY);\n }", "title": "" }, { "docid": "ae54ebff23d51ba8b56f9e07f29cfdfd", "score": "0.49445805", "text": "public TTSEnvelopeType() {\n super();\n }", "title": "" }, { "docid": "f4712d37bc4c5691a440e5b9947661f3", "score": "0.48530063", "text": "public Type() {\n this(\"TYPE\", null);\n }", "title": "" }, { "docid": "736a7819c79e7cab22626ff2082ac8ec", "score": "0.47974244", "text": "public void testDestroyDynAny ()\n {\n String msg;\n org.omg.CORBA.Any any = null;\n org.omg.DynamicAny.DynEnum dynAny = null;\n\n any = orb.create_any ();\n EnumTypeHelper.insert (any, EnumType.from_int (1));\n dynAny = createDynAnyFromAny (any);\n dynAny.destroy ();\n\n try\n {\n dynAny.type ();\n\n msg = \"Failed to destroy DynAny using DynAny::destroy operation - \";\n msg += \"calling DynAny::type operation on a destroyed DynAny object \";\n msg += \"did not raise OBJECT_NOT_EXIST exception\";\n fail (msg);\n }\n catch (org.omg.CORBA.OBJECT_NOT_EXIST ex)\n {\n // success\n }\n\n msg = \"Failed to destroy DynAny using DynAny::destroy operation - \";\n msg += \"calling DynAny::current_component operation on a destroyed \";\n msg += \"DynAny object did not raise OBJECT_NOT_EXIST exception\";\n try\n {\n dynAny.current_component ();\n\n fail (msg);\n }\n catch (org.omg.CORBA.OBJECT_NOT_EXIST ex)\n {\n // success\n }\n catch (org.omg.DynamicAny.DynAnyPackage.TypeMismatch ex)\n {\n fail (msg + \": \" + ex);\n }\n }", "title": "" }, { "docid": "3181da1c59c950248d7cf9418f69f015", "score": "0.47934636", "text": "public Types createTypes();", "title": "" }, { "docid": "d340d1433059e7fcf28d84233e4c403e", "score": "0.47427955", "text": "public MARTE_PrimitivesTypesFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "6a09f8a7540dfb3ff2c9001f0a5e9932", "score": "0.47319707", "text": "protected TextGuiTestObject Cbo_Type(TestObject anchor, long flags) \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"Cbo_Type\"), anchor, flags);\n\t}", "title": "" }, { "docid": "83e20477b0a1c46f4599e06d61f44881", "score": "0.47205478", "text": "Type createType();", "title": "" }, { "docid": "83e20477b0a1c46f4599e06d61f44881", "score": "0.47205478", "text": "Type createType();", "title": "" }, { "docid": "41007df94235b1847db7334046dcaf3b", "score": "0.4697735", "text": "public abstract AbstractProteinInference createInstanceOf();", "title": "" }, { "docid": "5252dbc891c4dba8c1c9427ccbb9da85", "score": "0.46944764", "text": "DataType createDataType();", "title": "" }, { "docid": "6f170a1f4c1f54ded199551c0af37b47", "score": "0.46841815", "text": "public static void insert(org.omg.CORBA.Any a, pUniversite.IUniversite t)\r\n {\r\n a.insert_Object(t , type());\r\n }", "title": "" }, { "docid": "3477d536fb43e5753b97bef0f4d65d4e", "score": "0.46832332", "text": "@Override\n public ITypes orwithBinary(Binary b) {\n return FlyweightNull.getFNull().createNull();\n }", "title": "" }, { "docid": "1c5e699b8256b52df5a3732d678aa713", "score": "0.46700796", "text": "TypeDefinition createTypeDefinition();", "title": "" }, { "docid": "1e7c4a23617da842515c798ef357d8fd", "score": "0.4650876", "text": "ComplexType createComplexType();", "title": "" }, { "docid": "9409e088ca10ccc69fb5e64038c11396", "score": "0.46497974", "text": "public final any_key_return any_key() throws RecognitionException {\n any_key_return retval = new any_key_return();\n retval.start = input.LT(1);\n\n\n Object root_0 = null;\n\n Token SQL92_RESERVED_ANY361=null;\n\n Object SQL92_RESERVED_ANY361_tree=null;\n\n try {\n // main.java.PLSQLKeys.g:1761:5: ( SQL92_RESERVED_ANY )\n // main.java.PLSQLKeys.g:1761:10: SQL92_RESERVED_ANY\n {\n root_0 = (Object)adaptor.nil();\n\n\n SQL92_RESERVED_ANY361=(Token)match(input,SQL92_RESERVED_ANY,FOLLOW_SQL92_RESERVED_ANY_in_any_key11538); \n SQL92_RESERVED_ANY361_tree = \n (Object)adaptor.create(SQL92_RESERVED_ANY361)\n ;\n adaptor.addChild(root_0, SQL92_RESERVED_ANY361_tree);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n\n retval.tree = (Object)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 = (Object)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": "af711d58af57b699315be892921f660a", "score": "0.4640114", "text": "protected boolean initializeComponentsFromTypeCode() {\n/* 368 */ TypeCode typeCode1 = this.any.type();\n/* 369 */ TypeCode typeCode2 = null;\n/* */ \n/* 371 */ DynAny dynAny = null;\n/* */ \n/* 373 */ int i = 0;\n/* */ \n/* */ try {\n/* 376 */ i = typeCode1.member_count();\n/* 377 */ } catch (BadKind badKind) {}\n/* */ \n/* */ \n/* 380 */ allocComponents(i);\n/* */ \n/* 382 */ for (byte b = 0; b < i; b++) {\n/* 383 */ String str = null;\n/* */ \n/* 385 */ try { str = typeCode1.member_name(b);\n/* 386 */ typeCode2 = typeCode1.member_type(b); }\n/* 387 */ catch (BadKind badKind) { }\n/* 388 */ catch (Bounds bounds) {}\n/* */ \n/* */ try {\n/* 391 */ dynAny = DynAnyUtil.createMostDerivedDynAny(typeCode2, this.orb);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* 403 */ catch (InconsistentTypeCode inconsistentTypeCode) {}\n/* */ \n/* */ \n/* 406 */ Any any = getAny(dynAny);\n/* 407 */ addComponent(b, str, any, dynAny);\n/* */ } \n/* 409 */ return true;\n/* */ }", "title": "" }, { "docid": "c874281a3ca764b23d98f6797f5223db", "score": "0.4635789", "text": "@Override\n public ITypes andwithBinary(Binary b) {\n return FlyweightNull.getFNull().createNull();\n }", "title": "" }, { "docid": "fabf92c3d56c8002563c80bc015e92f6", "score": "0.4632144", "text": "public ElementTypeEX() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "c633cf69036a428dffdccf2486f73de3", "score": "0.4615555", "text": "public interface SimpleType extends SchemaType {\n\n /**\n * Test whether this Simple Type is an atomic type\n * @return true if this is an atomic type\n */\n\n boolean isAtomicType();\n\n /**\n * Test whether this Simple Type is a list type\n * @return true if this is a list type\n */\n boolean isListType();\n\n /**\n * Test whether this Simple Type is a union type\n * @return true if this is a union type\n */\n\n boolean isUnionType();\n\n /**\n * Return true if this is an external object type, that is, a Saxon-defined type for external\n * Java or .NET objects\n * @return true if this is an external type\n */\n\n boolean isExternalType();\n\n /**\n * Get the most specific possible atomic type that all items in this SimpleType belong to\n * @return the lowest common supertype of all member types\n */\n\n AtomicType getCommonAtomicType();\n\n /**\n * Determine whether this is a built-in type or a user-defined type\n * @return true if this is a built-in type\n */\n\n boolean isBuiltInType();\n\n /**\n * Get the built-in type from which this type is derived by restriction\n * @return the built-in type from which this type is derived by restriction. This will not necessarily\n * be a primitive type.\n */\n\n SchemaType getBuiltInBaseType();\n\n /**\n * Get the typed value corresponding to a given string value, assuming it is\n * valid against this type\n * @param value the string value\n * @param resolver a namespace resolver used to resolve any namespace prefixes appearing\n * in the content of values. Can supply null, in which case any namespace-sensitive content\n * will be rejected.\n * @param nameChecker a NameChecker used in the case of types that are defined in terms of the\n * XML NCName syntax: this is used to check conformance to XML 1.0 or XML 1.1 naming rules, as\n * appropriate\n * @return an iterator over the atomic sequence comprising the typed value. The objects\n * returned by this SequenceIterator will all be of type {@link org.orbeon.saxon.value.AtomicValue},\n * The next() method on the iterator throws no checked exceptions, although it is not actually\n * declared as an UnfailingIterator.\n * @throws ValidationException if the supplied value is not in the lexical space of the data type\n */\n\n public SequenceIterator getTypedValue(CharSequence value, NamespaceResolver resolver, NameChecker nameChecker)\n throws ValidationException;\n\n /**\n * Check whether a given input string is valid according to this SimpleType\n * @param value the input string to be checked\n * @param nsResolver a namespace resolver used to resolve namespace prefixes if the type\n * is namespace sensitive. The value supplied may be null; in this case any namespace-sensitive\n * content will throw an UnsupportedOperationException.\n * @param nameChecker XML 1.0 or 1.1 name checker, needed when types such as xs:NCName are used\n * @return null if validation succeeds; return a ValidationFailure describing the validation failure\n * if validation fails. Note that the exception is returned rather than being thrown.\n * @throws UnsupportedOperationException if the type is namespace-sensitive and no namespace\n * resolver is supplied\n */\n\n ValidationFailure validateContent(CharSequence value, NamespaceResolver nsResolver, NameChecker nameChecker);\n\n /**\n * Test whether this type is namespace sensitive, that is, if a namespace context is needed\n * to translate between the lexical space and the value space. This is true for types derived\n * from, or containing, QNames and NOTATIONs\n * @return true if the type is namespace-sensitive\n */\n\n boolean isNamespaceSensitive();\n\n /**\n * Determine how values of this simple type are whitespace-normalized.\n * @return one of {@link org.orbeon.saxon.value.Whitespace#PRESERVE}, {@link org.orbeon.saxon.value.Whitespace#COLLAPSE},\n * {@link org.orbeon.saxon.value.Whitespace#REPLACE}.\n * @param th the type hierarchy cache. Not needed in the case of a built-in type\n */\n\n public int getWhitespaceAction(TypeHierarchy th);\n}", "title": "" }, { "docid": "4a1f3070ba1232f78dacc2d21bbd4de1", "score": "0.45945558", "text": "public org.xmlsoap.schemas.ws.x2004.x09.policy.OperatorContentType addNewExactlyOne()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.ws.x2004.x09.policy.OperatorContentType target = null;\n target = (org.xmlsoap.schemas.ws.x2004.x09.policy.OperatorContentType)get_store().add_element_user(EXACTLYONE$4);\n return target;\n }\n }", "title": "" }, { "docid": "393552d20393c6c65d5757fb46ee7e3b", "score": "0.45510536", "text": "public void set_members_as_dyn_any(NameDynAnyPair[] paramArrayOfNameDynAnyPair) throws TypeMismatch, InvalidValue {\n/* 210 */ if (this.status == 2) {\n/* 211 */ throw this.wrapper.dynAnyDestroyed();\n/* */ }\n/* 213 */ if (paramArrayOfNameDynAnyPair == null || paramArrayOfNameDynAnyPair.length == 0) {\n/* 214 */ clearData();\n/* */ \n/* */ \n/* */ \n/* */ return;\n/* */ } \n/* */ \n/* */ \n/* 222 */ TypeCode typeCode = this.any.type();\n/* */ \n/* 224 */ int i = 0;\n/* */ try {\n/* 226 */ i = typeCode.member_count();\n/* 227 */ } catch (BadKind badKind) {}\n/* */ \n/* 229 */ if (i != paramArrayOfNameDynAnyPair.length) {\n/* 230 */ clearData();\n/* 231 */ throw new InvalidValue();\n/* */ } \n/* */ \n/* 234 */ allocComponents(paramArrayOfNameDynAnyPair);\n/* */ \n/* 236 */ for (byte b = 0; b < paramArrayOfNameDynAnyPair.length; b++) {\n/* 237 */ if (paramArrayOfNameDynAnyPair[b] != null) {\n/* 238 */ String str1 = (paramArrayOfNameDynAnyPair[b]).id;\n/* 239 */ String str2 = null;\n/* */ \n/* 241 */ try { str2 = typeCode.member_name(b); }\n/* 242 */ catch (BadKind badKind) { }\n/* 243 */ catch (Bounds bounds) {}\n/* */ \n/* 245 */ if (!str2.equals(str1) && !str1.equals(\"\")) {\n/* 246 */ clearData();\n/* */ \n/* 248 */ throw new TypeMismatch();\n/* */ } \n/* 250 */ DynAny dynAny = (paramArrayOfNameDynAnyPair[b]).value;\n/* 251 */ Any any = getAny(dynAny);\n/* 252 */ TypeCode typeCode1 = null;\n/* */ \n/* 254 */ try { typeCode1 = typeCode.member_type(b); }\n/* 255 */ catch (BadKind badKind) { }\n/* 256 */ catch (Bounds bounds) {}\n/* */ \n/* 258 */ if (!typeCode1.equal(any.type())) {\n/* 259 */ clearData();\n/* */ \n/* 261 */ throw new TypeMismatch();\n/* */ } \n/* */ \n/* 264 */ addComponent(b, str1, any, dynAny);\n/* */ } else {\n/* 266 */ clearData();\n/* */ \n/* 268 */ throw new InvalidValue();\n/* */ } \n/* */ } \n/* 271 */ this.index = (paramArrayOfNameDynAnyPair.length == 0) ? -1 : 0;\n/* 272 */ this.representations = 4;\n/* */ }", "title": "" }, { "docid": "ec526af683f57594fdda04c73f5829cb", "score": "0.45461458", "text": "public final EObject entryRuleAny() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAny = null;\n\n\n try {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2163:2: (iv_ruleAny= ruleAny EOF )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:2164:2: iv_ruleAny= ruleAny EOF\n {\n newCompositeNode(grammarAccess.getAnyRule()); \n pushFollow(FollowSets000.FOLLOW_ruleAny_in_entryRuleAny4118);\n iv_ruleAny=ruleAny();\n\n state._fsp--;\n\n current =iv_ruleAny; \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleAny4128); \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": "f98773644150c3cad3ccede92ffc4e90", "score": "0.45417532", "text": "private IRNode createType(IJavaType t) {\r\n return createType(t, false);\r\n }", "title": "" }, { "docid": "9e59638e6a4b82f54fff5b56e35998c0", "score": "0.4539719", "text": "public UAny_expr(String unarop, Varref expr) {\r\n\t\tsetUnarop(new Unarop(unarop));\r\n\t\tsetAny_expr(new Any_expr(expr));\r\n\t}", "title": "" }, { "docid": "9592beff1dd5dea1694be9402d0af3ed", "score": "0.45368266", "text": "@Override\n public ITypes addingABinary(Binary b) {\n return FlyweightNull.getFNull().createNull();\n }", "title": "" }, { "docid": "a2a74d4c87945c277997eb1d1b566016", "score": "0.45353922", "text": "public static void insert(org.omg.CORBA.Any a, Corba.animal.Behavior t)\n {\n a.insert_Object(t , type());\n }", "title": "" }, { "docid": "e3fa980b53c5ddbf6f448725041a3e60", "score": "0.45331988", "text": "public abstract Object construct();", "title": "" }, { "docid": "91b0402285553d5efb80347951a89d4d", "score": "0.45211762", "text": "public BooleanType(boolean isArray) {\n\t\tsuper(isArray);\n\t}", "title": "" }, { "docid": "7328dd95dffb57d9c6a63caaedc4e48e", "score": "0.4460735", "text": "public BasicType(final byte type) {\n super(type, TypeConst.getShortTypeName(type));\n if ((type < TypeConst.T_BOOLEAN) || (type > TypeConst.T_VOID)) {\n throw new RuntimeException(\"Invalid type: \" + type);\n }\n }", "title": "" }, { "docid": "60331ffc99760cd1d0c233064fb467e7", "score": "0.4439034", "text": "private static JSTypeExpression createSampleTypeExpression() {\n Node root = new Node(Token.BANG, Node.newString(\"Item\"));\n Node child1 = new Node(Token.QMARK, Node.newString(\"string\"));\n Node child2 = new Node(Token.QMARK, Node.newString(\"boolean\"));\n Node child3 = new Node(Token.QMARK, Node.newString(\"AnotherItem\"));\n root.addChildToBack(child1);\n root.addChildToBack(child2);\n root.addChildToBack(child3);\n return new JSTypeExpression(root, \"\");\n }", "title": "" }, { "docid": "44a1bcc5ab4004f332ec7ad0388e78fb", "score": "0.44241795", "text": "public BooleanType() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "8eb7c1c0eb281509f3190c53cbf8b222", "score": "0.44171706", "text": "public phisco.streams.polimi.it.avro.TripleObject.Builder clearDatatype() {\n datatype = null;\n fieldSetFlags()[1] = false;\n return this;\n }", "title": "" }, { "docid": "41696b0bef2a098f16c9371e99986d28", "score": "0.43975818", "text": "public IVariantComponentType createVariantComponentType(){\r\n\t\tElement elt = createElement(DEFAULT_ELT_NAME);\r\n\t\tDOMUtils.addXSIType(elt, VariantComponentTypeImpl.XSD_TYPE_NSURI, VariantComponentTypeImpl.XSD_TYPE_NAME);\r\n\t\tVariantComponentTypeImpl newElt = new VariantComponentTypeImpl(elt);\r\n\t\tnewElt.setXArch(this.getXArch());\r\n\t\treturn newElt;\r\n\t}", "title": "" }, { "docid": "71b52563aea287eaeac53f80d9298e9f", "score": "0.43896893", "text": "public phisco.streams.polimi.it.avro.TripleObject.Builder setType(phisco.streams.polimi.it.avro.Kind value) {\n validate(fields()[2], value);\n this.type = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "title": "" }, { "docid": "89c6bb4c3a8f782a9e2e6ff224d67d76", "score": "0.43854424", "text": "public short getAny() {\n return any;\n }", "title": "" }, { "docid": "350be4e09c075c82e9a6e1d29ac90b1d", "score": "0.4372626", "text": "protected BasicType(BasicType genericParent, Signature sig, TypeProvider t){\r\n\t\tsuper(genericParent,sig,t);\r\n\t}", "title": "" }, { "docid": "6d3845aee07f8293f2e313d23e52f2f1", "score": "0.43503672", "text": "public OrganizationType() {\n }", "title": "" }, { "docid": "e9722b6420b630afc5f21863aa70053b", "score": "0.43448576", "text": "private PPORGObjType(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": "95a634a3d7eb3bdfed1f05b09ad667d3", "score": "0.43336827", "text": "public void caseTAnychars(TAnychars node){\n\t\t //System.out.println(\"\\tGot myself an anychars: <\"+node.getText()+\">\");\n laststring = node.getText();\n\t}", "title": "" }, { "docid": "9324fc0dbd47ff1ec830cd8534e521c1", "score": "0.4320446", "text": "public ClypeData(int type) {\r\n this(\"Anon\", type);\r\n }", "title": "" }, { "docid": "3876ae403abd7bf29069fefa336360ae", "score": "0.43189797", "text": "RecordType createRecordType();", "title": "" }, { "docid": "5766f14a48f3f40e7485cd9a1d1a44a5", "score": "0.4299591", "text": "public IVariant createVariant(){\r\n\t\tElement elt = createElement(DEFAULT_ELT_NAME);\r\n\t\tDOMUtils.addXSIType(elt, VariantImpl.XSD_TYPE_NSURI, VariantImpl.XSD_TYPE_NAME);\r\n\t\tVariantImpl newElt = new VariantImpl(elt);\r\n\t\tnewElt.setXArch(this.getXArch());\r\n\t\treturn newElt;\r\n\t}", "title": "" }, { "docid": "5574d0ec0a8338d422ddbe0f75f506bd", "score": "0.42990795", "text": "public Any insert() throws DevFailed\n\t{\n\t\treturn alloc_any();\n\t}", "title": "" }, { "docid": "59530a9c5482e0f417c944df4b1ef1d3", "score": "0.42928433", "text": "ProbabilityAllergySymptomPrimary create(@Valid ProbabilityAllergySymptomPrimary probabilityAllergySymptomPrimary);", "title": "" }, { "docid": "01be12859cc6a79d9fe950703bda3331", "score": "0.4288789", "text": "private Any getInvalidContract() {\n return Any.pack(\n Contract.AccountCreateContract.newBuilder()\n .build());\n }", "title": "" }, { "docid": "a5ec796099db956d368b96d7ca2c6172", "score": "0.42849445", "text": "@SuppressWarnings(\"unchecked\")\n\tprivate AnyType[] createArray(int capacity) {\n\t\treturn (AnyType[]) new Object[capacity];\n\t}", "title": "" }, { "docid": "0a870ffea2567222296d6d47829282bb", "score": "0.4279275", "text": "public Genome(Phenotype[] types, Object[ ] values)\n {\n this(ZERO, new Random());\n int shift = 0;\n\n if(types.length != values.length) {\n System.err.println(\"Error: mismatch between types[\"\n + types.length + \"] and values[\"\n + values.length + \"]\");\n }\n\n for(int i = 0; i < values.length; i++) {\n BigInteger append = types[i].setValue(values[i]);\n bits = bits.or(append.shiftLeft(shift));\n shift += types[i].width();\n }\n }", "title": "" }, { "docid": "8dfe580510328b97569424b91f6bcc8d", "score": "0.4277036", "text": "public NSOFPlainArray() {\n super();\n setObjectClass(CLASS_PLAIN_ARRAY);\n }", "title": "" }, { "docid": "ee162e89e23687bd9fecdb373c0c98ab", "score": "0.42666775", "text": "public abstract ATTypeTag getType();", "title": "" }, { "docid": "fabfa04c5c3e44bb6ea8ad4c14f5f107", "score": "0.42590186", "text": "public T caseDatatype(Datatype object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "dc22b7e29e5368be9e97ac569de185fe", "score": "0.4256074", "text": "protected UnresolvedType(byte[] binaryRepresentation, List<? extends DynamicType> auxiliaryTypes) {\n this.binaryRepresentation = binaryRepresentation;\n this.auxiliaryTypes = auxiliaryTypes;\n }", "title": "" }, { "docid": "d451616ba000ec38256238b398986b15", "score": "0.42528823", "text": "public MercenaryType() {\r\n \r\n }", "title": "" }, { "docid": "0acd81940ffde4738169ce3a8f6af375", "score": "0.42399013", "text": "private static TypeCodeImpl convertToNative(ORB orb, TypeCode tc) {\n\t\tif (tc instanceof TypeCodeImpl)\n\t\t\treturn (TypeCodeImpl) tc;\n\t\telse\n\t\t\treturn new TypeCodeImpl(orb, tc);\n\t}", "title": "" }, { "docid": "c6b6533c746783d2a3d37b9cfd834b33", "score": "0.42360854", "text": "protected void createUrnopengisspecificationgmlschemaxsdbasicTypes3Annotations() {\n\t\tString source = \"urn:opengis:specification:gml:schema-xsd:basicTypes:3.1.1\";\t\t\t\t\t\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"appinfo\", \"basicTypes.xsd\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "58eb8ceba4e65b49e0e23180701c54e9", "score": "0.4236069", "text": "public TypeRecord() {\n super(Type.TYPE);\n }", "title": "" }, { "docid": "326911690802a2a3e0ccf550bae672d6", "score": "0.42304957", "text": "public M csalTypeNull(){if(this.get(\"csalTypeNot\")==null)this.put(\"csalTypeNot\", \"\");this.put(\"csalType\", null);return this;}", "title": "" }, { "docid": "259c16ac74e0486ddc57a0eaed10208f", "score": "0.42295244", "text": "public Builder setType(edu.stanford.slac.archiverappliance.PB.EPICSEvent.PayloadType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "06324a0433ab58536b86ea35b8bd5a53", "score": "0.42252192", "text": "public WaccType getBaseType() {\n // strings are arrays of chars\n if(id == WaccParser.STRING && !isArray) {\n return new WaccType(WaccParser.CHAR);\n }\n else {\n WaccType t = this.copy();\n t.isArray = false;\n return t;\n }\n }", "title": "" }, { "docid": "6933940666b88584014c53feb21def51", "score": "0.4223589", "text": "private static void createDefaultTypes(StructuralView structuralView) {\r\n if (getTypeInstance(structuralView, RVoid.class) == null) {\r\n structuralView.getTypes().add(RamFactory.eINSTANCE.createRVoid());\r\n }\r\n \r\n if (getTypeInstance(structuralView, RAny.class) == null) {\r\n structuralView.getTypes().add(RamFactory.eINSTANCE.createRAny());\r\n }\r\n \r\n // add all primitive types\r\n EClass primitiveTypeClass = RamPackage.eINSTANCE.getPrimitiveType();\r\n \r\n for (EClassifier classifier : RamPackage.eINSTANCE.getEClassifiers()) {\r\n if (classifier instanceof EClass) {\r\n EClass clazz = (EClass) classifier;\r\n \r\n // is it a PrimitiveType but not an Enum or Array\r\n if (!clazz.isAbstract() && primitiveTypeClass.isSuperTypeOf(clazz) \r\n && !RamPackage.eINSTANCE.getREnum().equals(clazz)\r\n && !RamPackage.eINSTANCE.getRArray().equals(clazz)) {\r\n \r\n boolean alreadyExists = false;\r\n \r\n // if the type already exists we don't want to add it another time\r\n for (Type type : structuralView.getTypes()) {\r\n \r\n if (type.eClass().equals(clazz)) {\r\n alreadyExists = true;\r\n break;\r\n }\r\n \r\n }\r\n \r\n if (!alreadyExists) {\r\n Type newObject = (Type) RamFactory.eINSTANCE.create(clazz);\r\n structuralView.getTypes().add(newObject);\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "c13e1c45deff6dc861305b484664450f", "score": "0.42191383", "text": "public Builder clearEntrustType() {\n bitField0_ = (bitField0_ & ~0x00004000);\n entrustType_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f06f3a894916571c1c7888e17d38ec95", "score": "0.4210489", "text": "PemObject (final String type, final byte [] content) {\n this.type = type;\n this.content = content;\n }", "title": "" }, { "docid": "5cf0a2ffde69d5028207840e8165e3c7", "score": "0.42059585", "text": "public void testIterateDynAny ()\n {\n String msg;\n int compCount = -1;\n boolean seek;\n org.omg.CORBA.TypeCode tc = null;\n org.omg.DynamicAny.DynEnum dynAny = null;\n\n tc = EnumTypeHelper.type ();\n dynAny = createDynAnyFromTypeCode (tc);\n\n // test the component count\n try\n {\n compCount = dynAny.component_count ();\n }\n catch (Throwable ex)\n {\n // should not be needed, but it prevents compiler errors\n fail (\"Unexpected error raised by DynAny::component_count operation\");\n }\n msg = \"The number of components returned from the \";\n msg += \"DynAny::component_count operation is incorrect\";\n assertEquals (msg, 0, compCount);\n\n // test if there is a first component\n msg = \"The DynAny::seek operation indicates that a valid component \";\n msg += \"exists but the DynAny should have no components\";\n seek = dynAny.seek (0);\n assertTrue (msg, !seek);\n\n // test getting the current component\n try\n {\n dynAny = (org.omg.DynamicAny.DynEnum) dynAny.current_component ();\n\n msg = \"A TypeMismatch exception was not raised by the \";\n msg += \"DynAny::current_component operation when trying to access \";\n msg += \"the current component of a DynAny with no components\";\n fail (msg);\n }\n catch (org.omg.DynamicAny.DynAnyPackage.TypeMismatch ex)\n {\n // success\n }\n }", "title": "" }, { "docid": "fbc9857e42011e0b73b0063441cc844b", "score": "0.42054087", "text": "ArcElement(NativeObject nativeObject) {\n\t\tsuper(TYPE, nativeObject);\n\t}", "title": "" }, { "docid": "0642d268e0674a2d57bc129fb65f75ad", "score": "0.42046535", "text": "public void setType(String types) {\n if (types != null) {\n String[] theseTypes = types.toUpperCase().split(\"\\\\s+,\");\n Collections.addAll(this.types, theseTypes);\n } else {\n this.types.add(\"ANY\");\n }\n }", "title": "" }, { "docid": "d944728640994b663a24171469e1e24f", "score": "0.42018574", "text": "public OpenMetadataTypesArchive2_8(OMRSArchiveBuilder archiveBuilder)\n {\n this.archiveBuilder = archiveBuilder;\n\n this.archiveHelper = new OMRSArchiveHelper(archiveBuilder,\n archiveGUID,\n originatorName,\n creationDate,\n versionNumber,\n versionName);\n }", "title": "" }, { "docid": "881e771d134506474386d3125318ac42", "score": "0.41986883", "text": "public boolean isAnyValue() {\n return anyValue;\n }", "title": "" } ]
bd6d03a3d0c9edda81d875f72b68c75b
$ANTLR end "entryRuleQualifiedName" $ANTLR start "ruleQualifiedName" InternalIsml.g:2127:1: ruleQualifiedName : ( ( rule__QualifiedName__Group__0 ) ) ;
[ { "docid": "d6c9b058931328e8850b7b77e8b8b5be", "score": "0.78317964", "text": "public final void ruleQualifiedName() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:2131:2: ( ( ( rule__QualifiedName__Group__0 ) ) )\n // InternalIsml.g:2132:1: ( ( rule__QualifiedName__Group__0 ) )\n {\n // InternalIsml.g:2132:1: ( ( rule__QualifiedName__Group__0 ) )\n // InternalIsml.g:2133:1: ( rule__QualifiedName__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getGroup()); \n }\n // InternalIsml.g:2134:1: ( rule__QualifiedName__Group__0 )\n // InternalIsml.g:2134:2: rule__QualifiedName__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getGroup()); \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": "888b693f28617680bdffdc4bb4b12074", "score": "0.7852619", "text": "public final void ruleQualifiedName() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:2253:2: ( ( ( rule__QualifiedName__Group__0 ) ) )\r\n // InternalAadlV3.g:2254:2: ( ( rule__QualifiedName__Group__0 ) )\r\n {\r\n // InternalAadlV3.g:2254:2: ( ( rule__QualifiedName__Group__0 ) )\r\n // InternalAadlV3.g:2255:3: ( rule__QualifiedName__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameAccess().getGroup()); \r\n }\r\n // InternalAadlV3.g:2256:3: ( rule__QualifiedName__Group__0 )\r\n // InternalAadlV3.g:2256:4: rule__QualifiedName__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__QualifiedName__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2c83691636eeeab9cec682ad26c735cc", "score": "0.7845602", "text": "public final void ruleQualifiedName() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:216:2: ( ( ( rule__QualifiedName__Group__0 ) ) )\n // InternalFortXTrans.g:217:2: ( ( rule__QualifiedName__Group__0 ) )\n {\n // InternalFortXTrans.g:217:2: ( ( rule__QualifiedName__Group__0 ) )\n // InternalFortXTrans.g:218:3: ( rule__QualifiedName__Group__0 )\n {\n before(grammarAccess.getQualifiedNameAccess().getGroup()); \n // InternalFortXTrans.g:219:3: ( rule__QualifiedName__Group__0 )\n // InternalFortXTrans.g:219:4: rule__QualifiedName__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getQualifiedNameAccess().getGroup()); \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": "80ade49bff861e423392006ac1282719", "score": "0.77315307", "text": "public final void ruleQualifiedName() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:1642:2: ( ( ( rule__QualifiedName__Group__0 ) ) )\n // InternalSequence.g:1643:2: ( ( rule__QualifiedName__Group__0 ) )\n {\n // InternalSequence.g:1643:2: ( ( rule__QualifiedName__Group__0 ) )\n // InternalSequence.g:1644:3: ( rule__QualifiedName__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getGroup()); \n }\n // InternalSequence.g:1645:3: ( rule__QualifiedName__Group__0 )\n // InternalSequence.g:1645:4: rule__QualifiedName__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getGroup()); \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": "681c4d1bc3736c4d6c100492fb8681d6", "score": "0.7628914", "text": "public final void entryRuleQualifiedName() throws RecognitionException {\r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:537:1: ( ruleQualifiedName EOF )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:538:1: ruleQualifiedName EOF\r\n {\r\n before(grammarAccess.getQualifiedNameRule()); \r\n pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName1079);\r\n ruleQualifiedName();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getQualifiedNameRule()); \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleQualifiedName1086); \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": "bdb4637c9b0eec533a83d4589a3da782", "score": "0.7572342", "text": "public final void ruleQualifiedName() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:549:2: ( ( ( rule__QualifiedName__Group__0 ) ) )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:550:1: ( ( rule__QualifiedName__Group__0 ) )\r\n {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:550:1: ( ( rule__QualifiedName__Group__0 ) )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:551:1: ( rule__QualifiedName__Group__0 )\r\n {\r\n before(grammarAccess.getQualifiedNameAccess().getGroup()); \r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:552:1: ( rule__QualifiedName__Group__0 )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:552:2: rule__QualifiedName__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__QualifiedName__Group__0_in_ruleQualifiedName1112);\r\n rule__QualifiedName__Group__0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getQualifiedNameAccess().getGroup()); \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": "e613767a46dcd3ef3370d6278901ec59", "score": "0.75578916", "text": "public final void rule__QualifiedTypesReference__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:17324:1: ( ( ruleQualifiedName ) )\r\n // InternalAadlV3.g:17325:1: ( ruleQualifiedName )\r\n {\r\n // InternalAadlV3.g:17325:1: ( ruleQualifiedName )\r\n // InternalAadlV3.g:17326:2: ruleQualifiedName\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedTypesReferenceAccess().getQualifiedNameParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleQualifiedName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedTypesReferenceAccess().getQualifiedNameParserRuleCall_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": "32c3af07b65ea4f17de296df2de4a8c0", "score": "0.74412775", "text": "public final String entryRuleQualifiedName() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleQualifiedName = null;\n\n\n try {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:386:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:387:2: iv_ruleQualifiedName= ruleQualifiedName EOF\n {\n newCompositeNode(grammarAccess.getQualifiedNameRule()); \n pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName652);\n iv_ruleQualifiedName=ruleQualifiedName();\n\n state._fsp--;\n\n current =iv_ruleQualifiedName.getText(); \n match(input,EOF,FOLLOW_EOF_in_entryRuleQualifiedName663); \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": "c54b1874fb80819d4b99263dee1a2fa9", "score": "0.7428993", "text": "public final String entryRuleQualifiedName() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleQualifiedName = null;\n\n\n try {\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:751:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:752:2: iv_ruleQualifiedName= ruleQualifiedName EOF\n {\n newCompositeNode(grammarAccess.getQualifiedNameRule()); \n pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName1411);\n iv_ruleQualifiedName=ruleQualifiedName();\n\n state._fsp--;\n\n current =iv_ruleQualifiedName.getText(); \n match(input,EOF,FOLLOW_EOF_in_entryRuleQualifiedName1422); \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": "315379995ccfe813150c54efa483fefd", "score": "0.7399031", "text": "public final String entryRuleQualifiedName() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleQualifiedName = null;\n\n\n try {\n // InternalArchitecture.g:327:53: (iv_ruleQualifiedName= ruleQualifiedName EOF )\n // InternalArchitecture.g:328:2: iv_ruleQualifiedName= ruleQualifiedName EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getQualifiedNameRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleQualifiedName=ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleQualifiedName.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": "19af58c53eb2e691e0ff56900292c4d5", "score": "0.7377064", "text": "public final void entryRuleQualifiedName() throws RecognitionException {\n try {\n // InternalSequence.g:1630:1: ( ruleQualifiedName EOF )\n // InternalSequence.g:1631:1: ruleQualifiedName EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameRule()); \n }\n pushFollow(FOLLOW_1);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameRule()); \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": "11cbec676e5b1d3f9a77f0ebf55a1cf4", "score": "0.734139", "text": "public final void entryRuleQualifiedName() throws RecognitionException {\r\n try {\r\n // InternalAadlV3.g:2241:1: ( ruleQualifiedName EOF )\r\n // InternalAadlV3.g:2242:1: ruleQualifiedName EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleQualifiedName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameRule()); \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": "c8fd1f13ae5b15d06f6c71277e054d0b", "score": "0.7335223", "text": "public final void ruleQualifiedName() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:1704:2: ( ( ( rule__QualifiedName__Group__0 ) ) )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:1705:1: ( ( rule__QualifiedName__Group__0 ) )\n {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:1705:1: ( ( rule__QualifiedName__Group__0 ) )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:1706:1: ( rule__QualifiedName__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getGroup()); \n }\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:1707:1: ( rule__QualifiedName__Group__0 )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:1707:2: rule__QualifiedName__Group__0\n {\n pushFollow(FOLLOW_rule__QualifiedName__Group__0_in_ruleQualifiedName3585);\n rule__QualifiedName__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getGroup()); \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": "f2736bdfa2f36b82beb7587e4a4c42a7", "score": "0.72834975", "text": "public final void entryRuleQualifiedName() throws RecognitionException {\n try {\n // InternalIsml.g:2119:1: ( ruleQualifiedName EOF )\n // InternalIsml.g:2120:1: ruleQualifiedName EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameRule()); \n }\n pushFollow(FOLLOW_1);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameRule()); \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": "7d3d81ce35eabbc3278f7d80a86e23f0", "score": "0.7282303", "text": "public final void entryRuleQualifiedName() throws RecognitionException {\n try {\n // InternalFortXTrans.g:204:1: ( ruleQualifiedName EOF )\n // InternalFortXTrans.g:205:1: ruleQualifiedName EOF\n {\n before(grammarAccess.getQualifiedNameRule()); \n pushFollow(FOLLOW_1);\n ruleQualifiedName();\n\n state._fsp--;\n\n after(grammarAccess.getQualifiedNameRule()); \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": "f2191292aea9d2b66cbd14adb8b2d76f", "score": "0.72730935", "text": "public final void entryRuleQualifiedName() throws RecognitionException {\n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:1692:1: ( ruleQualifiedName EOF )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:1693:1: ruleQualifiedName EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameRule()); \n }\n pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName3552);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleQualifiedName3559); 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": "85bd8f5891db648785e4a80ccf08abe9", "score": "0.7238303", "text": "public final String entryRuleQualifiedName() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleQualifiedName = null;\n\n\n try {\n // InternalXaw.g:7666:53: (iv_ruleQualifiedName= ruleQualifiedName EOF )\n // InternalXaw.g:7667:2: iv_ruleQualifiedName= ruleQualifiedName EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getQualifiedNameRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleQualifiedName=ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleQualifiedName.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": "e14f9ee50fa1cef53b1f7f370ef7c07a", "score": "0.7174365", "text": "public final void rule__ResourceName__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:16566:1: ( ( ruleQualifiedName ) )\n // InternalIsml.g:16567:1: ( ruleQualifiedName )\n {\n // InternalIsml.g:16567:1: ( ruleQualifiedName )\n // InternalIsml.g:16568:1: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getResourceNameAccess().getQualifiedNameParserRuleCall_1()); \n }\n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getResourceNameAccess().getQualifiedNameParserRuleCall_1()); \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": "43de533113b3cc4ff16d4a71526497c0", "score": "0.7131352", "text": "public final void rule__QualifiedDottedReference__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:17432:1: ( ( ruleQualifiedName ) )\r\n // InternalAadlV3.g:17433:1: ( ruleQualifiedName )\r\n {\r\n // InternalAadlV3.g:17433:1: ( ruleQualifiedName )\r\n // InternalAadlV3.g:17434:2: ruleQualifiedName\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedDottedReferenceAccess().getQualifiedNameParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleQualifiedName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedDottedReferenceAccess().getQualifiedNameParserRuleCall_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": "1d8827c31f8281c50110d4920f6fc549", "score": "0.70757926", "text": "public final void rule__QualifiedNameWithWildcard__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:14828:1: ( ( ruleQualifiedName ) )\n // InternalSequence.g:14829:1: ( ruleQualifiedName )\n {\n // InternalSequence.g:14829:1: ( ruleQualifiedName )\n // InternalSequence.g:14830:2: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); \n }\n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_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": "0e9e111fe29da4fb3efb8220e0bbf923", "score": "0.707372", "text": "public final void rule__QualifiedNameWithWildcard__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:17081:1: ( ( ruleQualifiedName ) )\r\n // InternalAadlV3.g:17082:1: ( ruleQualifiedName )\r\n {\r\n // InternalAadlV3.g:17082:1: ( ruleQualifiedName )\r\n // InternalAadlV3.g:17083:2: ruleQualifiedName\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleQualifiedName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_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": "7223386335d5791f3d7b4cffe4054609", "score": "0.6928164", "text": "public final void rule__QualifiedName__Group_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3392:1: ( rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3393:2: rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1\r\n {\r\n pushFollow(FOLLOW_rule__QualifiedName__Group_1__0__Impl_in_rule__QualifiedName__Group_1__06897);\r\n rule__QualifiedName__Group_1__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__QualifiedName__Group_1__1_in_rule__QualifiedName__Group_1__06900);\r\n rule__QualifiedName__Group_1__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "87a5f3efdb519891c97854c4556b6b5e", "score": "0.6833755", "text": "String getQualifiedName();", "title": "" }, { "docid": "84d6bdf314edfe849f03c75a4085aeed", "score": "0.6819075", "text": "public final void ruleQualifiedReference() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:2303:2: ( ( ruleQualifiedName ) )\r\n // InternalAadlV3.g:2304:2: ( ruleQualifiedName )\r\n {\r\n // InternalAadlV3.g:2304:2: ( ruleQualifiedName )\r\n // InternalAadlV3.g:2305:3: ruleQualifiedName\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedReferenceAccess().getQualifiedNameParserRuleCall()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleQualifiedName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedReferenceAccess().getQualifiedNameParserRuleCall()); \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": "d8bbc50552ea6416e5c74d704b094568", "score": "0.6743692", "text": "public final void rule__QualifiedNameWithWildcard__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:14723:1: ( ( ruleQualifiedName ) )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:14724:1: ( ruleQualifiedName )\n {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:14724:1: ( ruleQualifiedName )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:14725:1: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); \n }\n pushFollow(FOLLOW_ruleQualifiedName_in_rule__QualifiedNameWithWildcard__Group__0__Impl29628);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_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": "fe91f16a15f5e582398e4a1d17aef4de", "score": "0.6730918", "text": "public final void rule__QualifiedName__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3300:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3301:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__QualifiedName__Group__0__Impl_in_rule__QualifiedName__Group__06713);\r\n rule__QualifiedName__Group__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__QualifiedName__Group__1_in_rule__QualifiedName__Group__06716);\r\n rule__QualifiedName__Group__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "422108bfe48f65d03ec3f5d1b296a53d", "score": "0.672078", "text": "public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3341:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3342:1: ( ( rule__QualifiedName__Group_1__0 )* )\r\n {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3342:1: ( ( rule__QualifiedName__Group_1__0 )* )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3343:1: ( rule__QualifiedName__Group_1__0 )*\r\n {\r\n before(grammarAccess.getQualifiedNameAccess().getGroup_1()); \r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3344:1: ( rule__QualifiedName__Group_1__0 )*\r\n loop23:\r\n do {\r\n int alt23=2;\r\n int LA23_0 = input.LA(1);\r\n\r\n if ( (LA23_0==32) ) {\r\n int LA23_1 = input.LA(2);\r\n\r\n if ( (LA23_1==RULE_ID) ) {\r\n alt23=1;\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n switch (alt23) {\r\n \tcase 1 :\r\n \t // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3344:2: rule__QualifiedName__Group_1__0\r\n \t {\r\n \t pushFollow(FOLLOW_rule__QualifiedName__Group_1__0_in_rule__QualifiedName__Group__1__Impl6802);\r\n \t rule__QualifiedName__Group_1__0();\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 loop23;\r\n }\r\n } while (true);\r\n\r\n after(grammarAccess.getQualifiedNameAccess().getGroup_1()); \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": "f8a582148db2056e49b4ea5d63026179", "score": "0.6633859", "text": "public final void rule__QualifiedName__Group_2__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3455:1: ( rule__QualifiedName__Group_2__0__Impl rule__QualifiedName__Group_2__1 )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3456:2: rule__QualifiedName__Group_2__0__Impl rule__QualifiedName__Group_2__1\r\n {\r\n pushFollow(FOLLOW_rule__QualifiedName__Group_2__0__Impl_in_rule__QualifiedName__Group_2__07019);\r\n rule__QualifiedName__Group_2__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__QualifiedName__Group_2__1_in_rule__QualifiedName__Group_2__07022);\r\n rule__QualifiedName__Group_2__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "463b02cc7167ccf573dbff1ffa874dcb", "score": "0.662243", "text": "public final void rule__QualifiedName__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:3638:1: ( rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 )\n // InternalFortXTrans.g:3639:2: rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1\n {\n pushFollow(FOLLOW_5);\n rule__QualifiedName__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Group_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6a80e04c88961f146dfaa7bcb90c4f2f", "score": "0.6610381", "text": "public final void rule__QualifiedName__Group_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:17258:1: ( rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 )\r\n // InternalAadlV3.g:17259:2: rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1\r\n {\r\n pushFollow(FOLLOW_7);\r\n rule__QualifiedName__Group_1__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__QualifiedName__Group_1__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3af45d39ce575e0f0270b0774241ffdd", "score": "0.660797", "text": "public final void rule__QualifiedName__Group_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3404:1: ( ( '.' ) )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3405:1: ( '.' )\r\n {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3405:1: ( '.' )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3406:1: '.'\r\n {\r\n before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); \r\n match(input,32,FOLLOW_32_in_rule__QualifiedName__Group_1__0__Impl6928); \r\n after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); \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": "9025341a92c09afdf404acca53a83bc7", "score": "0.6546315", "text": "public final void rule__QualifiedName__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:16648:1: ( rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 )\n // InternalIsml.g:16649:2: rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1\n {\n pushFollow(FOLLOW_4);\n rule__QualifiedName__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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": "bc882b62424a8021d714e47bf662f99f", "score": "0.6518125", "text": "public final void rule__QualifiedName__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13452:1: ( rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13453:2: rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1\n {\n pushFollow(FOLLOW_rule__QualifiedName__Group_1__0__Impl_in_rule__QualifiedName__Group_1__027128);\n rule__QualifiedName__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__QualifiedName__Group_1__1_in_rule__QualifiedName__Group_1__027131);\n rule__QualifiedName__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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": "ac245533c3a0e28ecfd9eb9f0f43986c", "score": "0.64845353", "text": "public final void rule__QualifiedName__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3329:1: ( rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2 )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3330:2: rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__QualifiedName__Group__1__Impl_in_rule__QualifiedName__Group__16772);\r\n rule__QualifiedName__Group__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__QualifiedName__Group__2_in_rule__QualifiedName__Group__16775);\r\n rule__QualifiedName__Group__2();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0c5959a3a772fc520a61eace4f4bb6a2", "score": "0.6459943", "text": "public final void rule__QualifiedName__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3369:1: ( ( ( rule__QualifiedName__Group_2__0 )* ) )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3370:1: ( ( rule__QualifiedName__Group_2__0 )* )\r\n {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3370:1: ( ( rule__QualifiedName__Group_2__0 )* )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3371:1: ( rule__QualifiedName__Group_2__0 )*\r\n {\r\n before(grammarAccess.getQualifiedNameAccess().getGroup_2()); \r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3372:1: ( rule__QualifiedName__Group_2__0 )*\r\n loop24:\r\n do {\r\n int alt24=2;\r\n int LA24_0 = input.LA(1);\r\n\r\n if ( (LA24_0==32) ) {\r\n alt24=1;\r\n }\r\n\r\n\r\n switch (alt24) {\r\n \tcase 1 :\r\n \t // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3372:2: rule__QualifiedName__Group_2__0\r\n \t {\r\n \t pushFollow(FOLLOW_rule__QualifiedName__Group_2__0_in_rule__QualifiedName__Group__2__Impl6860);\r\n \t rule__QualifiedName__Group_2__0();\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 loop24;\r\n }\r\n } while (true);\r\n\r\n after(grammarAccess.getQualifiedNameAccess().getGroup_2()); \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": "1dc7e0cec1c8b43a394c0772916292d7", "score": "0.6435489", "text": "public final void rule__Qualified__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:1660:1: ( ( ruleQualifiedName ) | ( ( rule__Qualified__Group_1__0 ) ) )\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==RULE_ID) ) {\n alt7=1;\n }\n else if ( (LA7_0==33) ) {\n alt7=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 7, 0, input);\n\n throw nvae;\n }\n switch (alt7) {\n case 1 :\n // InternalFortXTrans.g:1661:2: ( ruleQualifiedName )\n {\n // InternalFortXTrans.g:1661:2: ( ruleQualifiedName )\n // InternalFortXTrans.g:1662:3: ruleQualifiedName\n {\n before(grammarAccess.getQualifiedAccess().getQualifiedNameParserRuleCall_0()); \n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n\n after(grammarAccess.getQualifiedAccess().getQualifiedNameParserRuleCall_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // InternalFortXTrans.g:1667:2: ( ( rule__Qualified__Group_1__0 ) )\n {\n // InternalFortXTrans.g:1667:2: ( ( rule__Qualified__Group_1__0 ) )\n // InternalFortXTrans.g:1668:3: ( rule__Qualified__Group_1__0 )\n {\n before(grammarAccess.getQualifiedAccess().getGroup_1()); \n // InternalFortXTrans.g:1669:3: ( rule__Qualified__Group_1__0 )\n // InternalFortXTrans.g:1669:4: rule__Qualified__Group_1__0\n {\n pushFollow(FOLLOW_2);\n rule__Qualified__Group_1__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getQualifiedAccess().getGroup_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": "1849be7a61f43d2290393b88d4ac3df7", "score": "0.64351773", "text": "public final void rule__QualifiedName__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:13223:1: ( rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 )\n // InternalSequence.g:13224:2: rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1\n {\n pushFollow(FOLLOW_4);\n rule__QualifiedName__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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": "040b58b34cc46ce817fe56dffce60de3", "score": "0.6421502", "text": "public final void rule__QualifiedName__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13391:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13392:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1\n {\n pushFollow(FOLLOW_rule__QualifiedName__Group__0__Impl_in_rule__QualifiedName__Group__027007);\n rule__QualifiedName__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__QualifiedName__Group__1_in_rule__QualifiedName__Group__027010);\n rule__QualifiedName__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\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": "62740bdd371565e19346dca76131e63c", "score": "0.6396174", "text": "public final void entryRuleQName() throws RecognitionException {\r\n try {\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:89:1: ( ruleQName EOF )\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:90:1: ruleQName EOF\r\n {\r\n before(grammarAccess.getQNameRule()); \r\n pushFollow(FOLLOW_ruleQName_in_entryRuleQName121);\r\n ruleQName();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getQNameRule()); \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleQName128); \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": "afa6757579f4dc219e08b1bddc6c7187", "score": "0.6392733", "text": "public final void rule__QualifiedName__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:16587:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )\n // InternalIsml.g:16588:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1\n {\n pushFollow(FOLLOW_80);\n rule__QualifiedName__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\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": "913b8fa3e8010ff25225d4bbeedebe34", "score": "0.63901556", "text": "public final void rule__QualifiedName__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:3557:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )\n // InternalFortXTrans.g:3558:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1\n {\n pushFollow(FOLLOW_21);\n rule__QualifiedName__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "957c595a43a0b04febabaa808a823f67", "score": "0.63609415", "text": "public final void rule__QualifiedName__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:3650:1: ( ( '.' ) )\n // InternalFortXTrans.g:3651:1: ( '.' )\n {\n // InternalFortXTrans.g:3651:1: ( '.' )\n // InternalFortXTrans.g:3652:2: '.'\n {\n before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); \n match(input,30,FOLLOW_2); \n after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_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": "1224434e2d80ff6b458d31647d72b66f", "score": "0.6349598", "text": "public final void rule__Package__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:16727:1: ( ( ruleQualifiedName ) )\n // InternalIsml.g:16728:1: ( ruleQualifiedName )\n {\n // InternalIsml.g:16728:1: ( ruleQualifiedName )\n // InternalIsml.g:16729:1: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPackageAccess().getNameQualifiedNameParserRuleCall_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPackageAccess().getNameQualifiedNameParserRuleCall_1_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": "0c85c0bfe321b097d527300a1c5d8fbe", "score": "0.6344596", "text": "public final void rule__QualifiedName__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:13169:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )\n // InternalSequence.g:13170:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1\n {\n pushFollow(FOLLOW_94);\n rule__QualifiedName__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\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": "fd30b596b0d5d666953e18921a09c53f", "score": "0.63380224", "text": "public final void ruleQName() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalLogDsl.g:116:2: ( ( ( rule__QName__Group__0 ) ) )\n // InternalLogDsl.g:117:2: ( ( rule__QName__Group__0 ) )\n {\n // InternalLogDsl.g:117:2: ( ( rule__QName__Group__0 ) )\n // InternalLogDsl.g:118:3: ( rule__QName__Group__0 )\n {\n before(grammarAccess.getQNameAccess().getGroup()); \n // InternalLogDsl.g:119:3: ( rule__QName__Group__0 )\n // InternalLogDsl.g:119:4: rule__QName__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__QName__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getQNameAccess().getGroup()); \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": "512b4b980c3e7d3f126d593fc7530efb", "score": "0.6330132", "text": "public final void rule__QualifiedName__Group_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:17270:1: ( ( '::' ) )\r\n // InternalAadlV3.g:17271:1: ( '::' )\r\n {\r\n // InternalAadlV3.g:17271:1: ( '::' )\r\n // InternalAadlV3.g:17272:2: '::'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1_0()); \r\n }\r\n match(input,86,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6437aeb534adb798c73c42cd9d9692fc", "score": "0.63090825", "text": "public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:3596:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) )\n // InternalFortXTrans.g:3597:1: ( ( rule__QualifiedName__Group_1__0 )* )\n {\n // InternalFortXTrans.g:3597:1: ( ( rule__QualifiedName__Group_1__0 )* )\n // InternalFortXTrans.g:3598:2: ( rule__QualifiedName__Group_1__0 )*\n {\n before(grammarAccess.getQualifiedNameAccess().getGroup_1()); \n // InternalFortXTrans.g:3599:2: ( rule__QualifiedName__Group_1__0 )*\n loop39:\n do {\n int alt39=2;\n int LA39_0 = input.LA(1);\n\n if ( (LA39_0==30) ) {\n int LA39_2 = input.LA(2);\n\n if ( (LA39_2==RULE_ID) ) {\n alt39=1;\n }\n\n\n }\n\n\n switch (alt39) {\n \tcase 1 :\n \t // InternalFortXTrans.g:3599:3: rule__QualifiedName__Group_1__0\n \t {\n \t pushFollow(FOLLOW_22);\n \t rule__QualifiedName__Group_1__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop39;\n }\n } while (true);\n\n after(grammarAccess.getQualifiedNameAccess().getGroup_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0973d72ae12a9f28d27fd25a3bceb0b8", "score": "0.63076365", "text": "public final void ruleQualifiedNameWithWildcard() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:2203:2: ( ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) )\r\n // InternalAadlV3.g:2204:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\r\n {\r\n // InternalAadlV3.g:2204:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\r\n // InternalAadlV3.g:2205:3: ( rule__QualifiedNameWithWildcard__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \r\n }\r\n // InternalAadlV3.g:2206:3: ( rule__QualifiedNameWithWildcard__Group__0 )\r\n // InternalAadlV3.g:2206:4: rule__QualifiedNameWithWildcard__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__QualifiedNameWithWildcard__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6de0dc0dc53b5168a76ce287f729b9a6", "score": "0.6296953", "text": "public final void rule__QNameWildCard__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:643:1: ( ( ruleQName ) )\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:644:1: ( ruleQName )\r\n {\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:644:1: ( ruleQName )\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:645:1: ruleQName\r\n {\r\n before(grammarAccess.getQNameWildCardAccess().getQNameParserRuleCall_0()); \r\n pushFollow(FOLLOW_ruleQName_in_rule__QNameWildCard__Group__0__Impl1274);\r\n ruleQName();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getQNameWildCardAccess().getQNameParserRuleCall_0()); \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": "bd0f442a6d48276871703727e81e1477", "score": "0.62941515", "text": "public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13431:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13432:1: ( ( rule__QualifiedName__Group_1__0 )* )\n {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13432:1: ( ( rule__QualifiedName__Group_1__0 )* )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13433:1: ( rule__QualifiedName__Group_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getGroup_1()); \n }\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13434:1: ( rule__QualifiedName__Group_1__0 )*\n loop94:\n do {\n int alt94=2;\n int LA94_0 = input.LA(1);\n\n if ( (LA94_0==40) ) {\n int LA94_2 = input.LA(2);\n\n if ( (LA94_2==RULE_ID) ) {\n int LA94_3 = input.LA(3);\n\n if ( (synpred130_InternalHelloCustomEcore()) ) {\n alt94=1;\n }\n\n\n }\n\n\n }\n\n\n switch (alt94) {\n \tcase 1 :\n \t // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13434:2: rule__QualifiedName__Group_1__0\n \t {\n \t pushFollow(FOLLOW_rule__QualifiedName__Group_1__0_in_rule__QualifiedName__Group__1__Impl27093);\n \t rule__QualifiedName__Group_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop94;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getGroup_1()); \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": "dd05a757030512249f97478e0e1efd26", "score": "0.62898505", "text": "public final void rule__QualifiedName__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:17204:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )\r\n // InternalAadlV3.g:17205:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1\r\n {\r\n pushFollow(FOLLOW_99);\r\n rule__QualifiedName__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__QualifiedName__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2579f5f6b84135bff31283f92f42c458", "score": "0.6281949", "text": "public final void ruleQualifiedNameWithWildcard() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:1950:2: ( ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) )\n // InternalSequence.g:1951:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\n {\n // InternalSequence.g:1951:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\n // InternalSequence.g:1952:3: ( rule__QualifiedNameWithWildcard__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \n }\n // InternalSequence.g:1953:3: ( rule__QualifiedNameWithWildcard__Group__0 )\n // InternalSequence.g:1953:4: rule__QualifiedNameWithWildcard__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__QualifiedNameWithWildcard__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \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": "640414aae965b1055d6adcc63653a820", "score": "0.62806886", "text": "public final void ruleQName() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:101:2: ( ( ( rule__QName__Group__0 ) ) )\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:102:1: ( ( rule__QName__Group__0 ) )\r\n {\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:102:1: ( ( rule__QName__Group__0 ) )\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:103:1: ( rule__QName__Group__0 )\r\n {\r\n before(grammarAccess.getQNameAccess().getGroup()); \r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:104:1: ( rule__QName__Group__0 )\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:104:2: rule__QName__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__QName__Group__0_in_ruleQName154);\r\n rule__QName__Group__0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getQNameAccess().getGroup()); \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": "9f44e44118f6a76cbed8f9e50c667179", "score": "0.6244879", "text": "public final void rule__QualifiedName__Group_2__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3467:1: ( ( '.' ) )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3468:1: ( '.' )\r\n {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3468:1: ( '.' )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3469:1: '.'\r\n {\r\n before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_2_0()); \r\n match(input,32,FOLLOW_32_in_rule__QualifiedName__Group_2__0__Impl7050); \r\n after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_2_0()); \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": "3e063a91f355ab294a8f53414baab397", "score": "0.6230319", "text": "public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:16627:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) )\n // InternalIsml.g:16628:1: ( ( rule__QualifiedName__Group_1__0 )* )\n {\n // InternalIsml.g:16628:1: ( ( rule__QualifiedName__Group_1__0 )* )\n // InternalIsml.g:16629:1: ( rule__QualifiedName__Group_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getGroup_1()); \n }\n // InternalIsml.g:16630:1: ( rule__QualifiedName__Group_1__0 )*\n loop130:\n do {\n int alt130=2;\n int LA130_0 = input.LA(1);\n\n if ( (LA130_0==56) ) {\n alt130=1;\n }\n\n\n switch (alt130) {\n \tcase 1 :\n \t // InternalIsml.g:16630:2: rule__QualifiedName__Group_1__0\n \t {\n \t pushFollow(FOLLOW_83);\n \t rule__QualifiedName__Group_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop130;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getGroup_1()); \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": "66e1b6122140d513fd6d65344d19b99f", "score": "0.62283325", "text": "public final void rule__QualifiedName__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3434:1: ( ( RULE_ID ) )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3435:1: ( RULE_ID )\r\n {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3435:1: ( RULE_ID )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3436:1: RULE_ID\r\n {\r\n before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); \r\n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__QualifiedName__Group_1__1__Impl6986); \r\n after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); \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": "f65ed3046fdb59ff5657242f8f620ded", "score": "0.6176148", "text": "public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token this_ID_0=null;\n Token kw=null;\n Token this_ID_2=null;\n\n enterRule(); \n \n try {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:397:28: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:398:1: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )\n {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:398:1: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:398:6: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )*\n {\n this_ID_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleQualifiedName703); \n\n \t\tcurrent.merge(this_ID_0);\n \n \n newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); \n \n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:405:1: (kw= '.' this_ID_2= RULE_ID )*\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( (LA2_0==19) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:406:2: kw= '.' this_ID_2= RULE_ID\n \t {\n \t kw=(Token)match(input,19,FOLLOW_19_in_ruleQualifiedName722); \n\n \t current.merge(kw);\n \t newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); \n \t \n \t this_ID_2=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleQualifiedName737); \n\n \t \t\tcurrent.merge(this_ID_2);\n \t \n \t \n \t newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); \n \t \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop2;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "42bb6fc81830c793ff314045119beabe", "score": "0.6166228", "text": "public final void rule__QualifiedName__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:3584:1: ( rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2 )\n // InternalFortXTrans.g:3585:2: rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2\n {\n pushFollow(FOLLOW_21);\n rule__QualifiedName__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "be3660d22c09945b5fe140dc5ed2df41", "score": "0.61259526", "text": "public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:17242:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) )\r\n // InternalAadlV3.g:17243:1: ( ( rule__QualifiedName__Group_1__0 )* )\r\n {\r\n // InternalAadlV3.g:17243:1: ( ( rule__QualifiedName__Group_1__0 )* )\r\n // InternalAadlV3.g:17244:2: ( rule__QualifiedName__Group_1__0 )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameAccess().getGroup_1()); \r\n }\r\n // InternalAadlV3.g:17245:2: ( rule__QualifiedName__Group_1__0 )*\r\n loop154:\r\n do {\r\n int alt154=2;\r\n int LA154_0 = input.LA(1);\r\n\r\n if ( (LA154_0==86) ) {\r\n alt154=1;\r\n }\r\n\r\n\r\n switch (alt154) {\r\n \tcase 1 :\r\n \t // InternalAadlV3.g:17245:3: rule__QualifiedName__Group_1__0\r\n \t {\r\n \t pushFollow(FOLLOW_100);\r\n \t rule__QualifiedName__Group_1__0();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop154;\r\n }\r\n } while (true);\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameAccess().getGroup_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2bf6242bd7ef4ac8033c92d28263e64f", "score": "0.6101578", "text": "public final void rule__PackageDeclaration__NameAssignment_3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:18723:1: ( ( ruleQualifiedName ) )\r\n // InternalAadlV3.g:18724:2: ( ruleQualifiedName )\r\n {\r\n // InternalAadlV3.g:18724:2: ( ruleQualifiedName )\r\n // InternalAadlV3.g:18725:3: ruleQualifiedName\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getPackageDeclarationAccess().getNameQualifiedNameParserRuleCall_3_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleQualifiedName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getPackageDeclarationAccess().getNameQualifiedNameParserRuleCall_3_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": "1c2bdb179a9667c16be23015e3a43eff", "score": "0.6100482", "text": "public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:13207:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) )\n // InternalSequence.g:13208:1: ( ( rule__QualifiedName__Group_1__0 )* )\n {\n // InternalSequence.g:13208:1: ( ( rule__QualifiedName__Group_1__0 )* )\n // InternalSequence.g:13209:2: ( rule__QualifiedName__Group_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getGroup_1()); \n }\n // InternalSequence.g:13210:2: ( rule__QualifiedName__Group_1__0 )*\n loop104:\n do {\n int alt104=2;\n int LA104_0 = input.LA(1);\n\n if ( (LA104_0==43) ) {\n int LA104_2 = input.LA(2);\n\n if ( (LA104_2==RULE_ID) ) {\n int LA104_3 = input.LA(3);\n\n if ( (synpred147_InternalSequence()) ) {\n alt104=1;\n }\n\n\n }\n\n\n }\n\n\n switch (alt104) {\n \tcase 1 :\n \t // InternalSequence.g:13210:3: rule__QualifiedName__Group_1__0\n \t {\n \t pushFollow(FOLLOW_95);\n \t rule__QualifiedName__Group_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop104;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getGroup_1()); \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": "99eabeaafb296f3dc71d0ce3817c9ee1", "score": "0.6079866", "text": "public final void rule__QualifiedName__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13464:1: ( ( ( '.' ) ) )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13465:1: ( ( '.' ) )\n {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13465:1: ( ( '.' ) )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13466:1: ( '.' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); \n }\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13467:1: ( '.' )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13468:2: '.'\n {\n match(input,40,FOLLOW_40_in_rule__QualifiedName__Group_1__0__Impl27160); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_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": "b2dd72ebae04ead4a4cd9d2f62de64ae", "score": "0.60776967", "text": "public final void ruleQualifiedNameTuple() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:266:2: ( ( ( rule__QualifiedNameTuple__Group__0 ) ) )\n // InternalFortXTrans.g:267:2: ( ( rule__QualifiedNameTuple__Group__0 ) )\n {\n // InternalFortXTrans.g:267:2: ( ( rule__QualifiedNameTuple__Group__0 ) )\n // InternalFortXTrans.g:268:3: ( rule__QualifiedNameTuple__Group__0 )\n {\n before(grammarAccess.getQualifiedNameTupleAccess().getGroup()); \n // InternalFortXTrans.g:269:3: ( rule__QualifiedNameTuple__Group__0 )\n // InternalFortXTrans.g:269:4: rule__QualifiedNameTuple__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__QualifiedNameTuple__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getQualifiedNameTupleAccess().getGroup()); \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": "3db45aa81ff6fafb4293dce5fcfd6c4c", "score": "0.6077009", "text": "public final void rule__QualifiedName__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:16660:1: ( ( '.' ) )\n // InternalIsml.g:16661:1: ( '.' )\n {\n // InternalIsml.g:16661:1: ( '.' )\n // InternalIsml.g:16662:1: '.'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); \n }\n match(input,56,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_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": "ee13fdc006d97bfb374d1d546cc98cc6", "score": "0.60648555", "text": "public final void rule__QualifiedName__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3312:1: ( ( RULE_ID ) )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3313:1: ( RULE_ID )\r\n {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3313:1: ( RULE_ID )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3314:1: RULE_ID\r\n {\r\n before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); \r\n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__QualifiedName__Group__0__Impl6743); \r\n after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); \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": "b351db39bffcbd950e8b99de4b4b76cf", "score": "0.604104", "text": "public final void rule__QualifiedName__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:13235:1: ( ( ( '.' ) ) )\n // InternalSequence.g:13236:1: ( ( '.' ) )\n {\n // InternalSequence.g:13236:1: ( ( '.' ) )\n // InternalSequence.g:13237:2: ( '.' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); \n }\n // InternalSequence.g:13238:2: ( '.' )\n // InternalSequence.g:13238:3: '.'\n {\n match(input,43,FOLLOW_2); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_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": "50644b7dacd7dba56fc7ef5c133d73ad", "score": "0.60313094", "text": "public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null;\n\n\n try {\n // InternalArchitecture.g:291:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF )\n // InternalArchitecture.g:292:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleQualifiedNameWithWildcard.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": "3624c872885b4aeec9ee1d636be7fee6", "score": "0.6023698", "text": "public final void rule__Qualified__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:3731:1: ( ( ruleQualifiedNameTuple ) )\n // InternalFortXTrans.g:3732:1: ( ruleQualifiedNameTuple )\n {\n // InternalFortXTrans.g:3732:1: ( ruleQualifiedNameTuple )\n // InternalFortXTrans.g:3733:2: ruleQualifiedNameTuple\n {\n before(grammarAccess.getQualifiedAccess().getQualifiedNameTupleParserRuleCall_1_1()); \n pushFollow(FOLLOW_2);\n ruleQualifiedNameTuple();\n\n state._fsp--;\n\n after(grammarAccess.getQualifiedAccess().getQualifiedNameTupleParserRuleCall_1_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a4711ed72bef7934568dc5b56c8bda2c", "score": "0.6004844", "text": "public final void rule__Import__ImportedNamespaceAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:19973:1: ( ( ruleQualifiedName ) )\r\n // InternalAadlV3.g:19974:2: ( ruleQualifiedName )\r\n {\r\n // InternalAadlV3.g:19974:2: ( ruleQualifiedName )\r\n // InternalAadlV3.g:19975:3: ruleQualifiedName\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getImportAccess().getImportedNamespaceQualifiedNameParserRuleCall_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleQualifiedName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getImportAccess().getImportedNamespaceQualifiedNameParserRuleCall_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "120b346eeb8a9f01202ab1a92c75b1aa", "score": "0.59880567", "text": "public final void rule__QualifiedName__Group_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3423:1: ( rule__QualifiedName__Group_1__1__Impl )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3424:2: rule__QualifiedName__Group_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__QualifiedName__Group_1__1__Impl_in_rule__QualifiedName__Group_1__16959);\r\n rule__QualifiedName__Group_1__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "305684d6e7df47ae9e5f2ea13960f953", "score": "0.5987182", "text": "public final void rule__NameSpace__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:1167:1: ( ( ruleQName ) )\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:1168:1: ( ruleQName )\r\n {\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:1168:1: ( ruleQName )\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:1169:1: ruleQName\r\n {\r\n before(grammarAccess.getNameSpaceAccess().getNameQNameParserRuleCall_1_0()); \r\n pushFollow(FOLLOW_ruleQName_in_rule__NameSpace__NameAssignment_12302);\r\n ruleQName();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getNameSpaceAccess().getNameQNameParserRuleCall_1_0()); \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": "f04cbad7db20e43e885f4d083d629d8b", "score": "0.59767157", "text": "public final void entryRuleQUALIFIED_NAME() throws RecognitionException {\n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:117:1: ( ruleQUALIFIED_NAME EOF )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:118:1: ruleQUALIFIED_NAME EOF\n {\n before(grammarAccess.getQUALIFIED_NAMERule()); \n pushFollow(FOLLOW_ruleQUALIFIED_NAME_in_entryRuleQUALIFIED_NAME181);\n ruleQUALIFIED_NAME();\n\n state._fsp--;\n\n after(grammarAccess.getQUALIFIED_NAMERule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleQUALIFIED_NAME188); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "62b4d73726ebae2451372d5e1e5996a4", "score": "0.5973198", "text": "public final void ruleQualifiedNameInStaticImport() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:2025:2: ( ( ( ( rule__QualifiedNameInStaticImport__Group__0 ) ) ( ( rule__QualifiedNameInStaticImport__Group__0 )* ) ) )\n // InternalSequence.g:2026:2: ( ( ( rule__QualifiedNameInStaticImport__Group__0 ) ) ( ( rule__QualifiedNameInStaticImport__Group__0 )* ) )\n {\n // InternalSequence.g:2026:2: ( ( ( rule__QualifiedNameInStaticImport__Group__0 ) ) ( ( rule__QualifiedNameInStaticImport__Group__0 )* ) )\n // InternalSequence.g:2027:3: ( ( rule__QualifiedNameInStaticImport__Group__0 ) ) ( ( rule__QualifiedNameInStaticImport__Group__0 )* )\n {\n // InternalSequence.g:2027:3: ( ( rule__QualifiedNameInStaticImport__Group__0 ) )\n // InternalSequence.g:2028:4: ( rule__QualifiedNameInStaticImport__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); \n }\n // InternalSequence.g:2029:4: ( rule__QualifiedNameInStaticImport__Group__0 )\n // InternalSequence.g:2029:5: rule__QualifiedNameInStaticImport__Group__0\n {\n pushFollow(FOLLOW_3);\n rule__QualifiedNameInStaticImport__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); \n }\n\n }\n\n // InternalSequence.g:2032:3: ( ( rule__QualifiedNameInStaticImport__Group__0 )* )\n // InternalSequence.g:2033:4: ( rule__QualifiedNameInStaticImport__Group__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); \n }\n // InternalSequence.g:2034:4: ( rule__QualifiedNameInStaticImport__Group__0 )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0==RULE_ID) ) {\n int LA1_2 = input.LA(2);\n\n if ( (LA1_2==43) ) {\n alt1=1;\n }\n\n\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // InternalSequence.g:2034:5: rule__QualifiedNameInStaticImport__Group__0\n \t {\n \t pushFollow(FOLLOW_3);\n \t rule__QualifiedNameInStaticImport__Group__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); \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 \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4b8e22ef01f40ae97648ff865fee7625", "score": "0.597084", "text": "public final void rule__QualifiedName__SAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:12074:1: ( ( ruleSimpleName ) )\n // InternalFortXTrans.g:12075:2: ( ruleSimpleName )\n {\n // InternalFortXTrans.g:12075:2: ( ruleSimpleName )\n // InternalFortXTrans.g:12076:3: ruleSimpleName\n {\n before(grammarAccess.getQualifiedNameAccess().getSSimpleNameParserRuleCall_0_0()); \n pushFollow(FOLLOW_2);\n ruleSimpleName();\n\n state._fsp--;\n\n after(grammarAccess.getQualifiedNameAccess().getSSimpleNameParserRuleCall_0_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": "c68ec629fef1e5971156d04c4a204a58", "score": "0.59221685", "text": "public final String entryRuleQualifiedNameWithWildCard() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildCard = null;\n\n\n try {\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:792:2: (iv_ruleQualifiedNameWithWildCard= ruleQualifiedNameWithWildCard EOF )\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:793:2: iv_ruleQualifiedNameWithWildCard= ruleQualifiedNameWithWildCard EOF\n {\n newCompositeNode(grammarAccess.getQualifiedNameWithWildCardRule()); \n pushFollow(FOLLOW_ruleQualifiedNameWithWildCard_in_entryRuleQualifiedNameWithWildCard1544);\n iv_ruleQualifiedNameWithWildCard=ruleQualifiedNameWithWildCard();\n\n state._fsp--;\n\n current =iv_ruleQualifiedNameWithWildCard.getText(); \n match(input,EOF,FOLLOW_EOF_in_entryRuleQualifiedNameWithWildCard1555); \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": "ef426550712b12db09afb479bd3046c1", "score": "0.5912372", "text": "public final void rule__QualifiedName__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13483:1: ( rule__QualifiedName__Group_1__1__Impl )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13484:2: rule__QualifiedName__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__QualifiedName__Group_1__1__Impl_in_rule__QualifiedName__Group_1__127192);\n rule__QualifiedName__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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": "9770d711677e615c13c126e1995339d1", "score": "0.5903897", "text": "public final void entryRuleQualifiedNameWithWildcard() throws RecognitionException {\n try {\n // InternalSequence.g:1938:1: ( ruleQualifiedNameWithWildcard EOF )\n // InternalSequence.g:1939:1: ruleQualifiedNameWithWildcard EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameWithWildcardRule()); \n }\n pushFollow(FOLLOW_1);\n ruleQualifiedNameWithWildcard();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameWithWildcardRule()); \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": "6977aa80642e229deda398f050e1f63b", "score": "0.5895802", "text": "public final void entryRuleQName() throws RecognitionException {\n try {\n // InternalLogDsl.g:104:1: ( ruleQName EOF )\n // InternalLogDsl.g:105:1: ruleQName EOF\n {\n before(grammarAccess.getQNameRule()); \n pushFollow(FOLLOW_1);\n ruleQName();\n\n state._fsp--;\n\n after(grammarAccess.getQNameRule()); \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": "fdbac5a8f69ac111d9cebdbac34b6bb5", "score": "0.58913755", "text": "public final void ruleQUALIFIED_NAME() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:129:2: ( ( ( rule__QUALIFIED_NAME__Group__0 ) ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:130:1: ( ( rule__QUALIFIED_NAME__Group__0 ) )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:130:1: ( ( rule__QUALIFIED_NAME__Group__0 ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:131:1: ( rule__QUALIFIED_NAME__Group__0 )\n {\n before(grammarAccess.getQUALIFIED_NAMEAccess().getGroup()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:132:1: ( rule__QUALIFIED_NAME__Group__0 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:132:2: rule__QUALIFIED_NAME__Group__0\n {\n pushFollow(FOLLOW_rule__QUALIFIED_NAME__Group__0_in_ruleQUALIFIED_NAME214);\n rule__QUALIFIED_NAME__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getQUALIFIED_NAMEAccess().getGroup()); \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": "c683deceff4f140f00e65cafbdc3de65", "score": "0.5885697", "text": "public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token this_ID_0=null;\n Token kw=null;\n Token this_ID_2=null;\n\n enterRule(); \n \n try {\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:762:28: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) )\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:763:1: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )\n {\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:763:1: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:763:6: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )*\n {\n this_ID_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleQualifiedName1462); \n\n \t\tcurrent.merge(this_ID_0);\n \n \n newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); \n \n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:770:1: (kw= '.' this_ID_2= RULE_ID )*\n loop10:\n do {\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0==21) ) {\n alt10=1;\n }\n\n\n switch (alt10) {\n \tcase 1 :\n \t // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:771:2: kw= '.' this_ID_2= RULE_ID\n \t {\n \t kw=(Token)match(input,21,FOLLOW_21_in_ruleQualifiedName1481); \n\n \t current.merge(kw);\n \t newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); \n \t \n \t this_ID_2=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleQualifiedName1496); \n\n \t \t\tcurrent.merge(this_ID_2);\n \t \n \t \n \t newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); \n \t \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop10;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "4a98622b25d9a99d2ac121354d7e68e0", "score": "0.5884604", "text": "public final void rule__QualifiedName__SAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:12089:1: ( ( ruleSimpleName ) )\n // InternalFortXTrans.g:12090:2: ( ruleSimpleName )\n {\n // InternalFortXTrans.g:12090:2: ( ruleSimpleName )\n // InternalFortXTrans.g:12091:3: ruleSimpleName\n {\n before(grammarAccess.getQualifiedNameAccess().getSSimpleNameParserRuleCall_1_1_0()); \n pushFollow(FOLLOW_2);\n ruleSimpleName();\n\n state._fsp--;\n\n after(grammarAccess.getQualifiedNameAccess().getSSimpleNameParserRuleCall_1_1_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": "f9d1f9dfe9e2d3689e9deb7d39d99c6b", "score": "0.5875777", "text": "public final void rule__QualifiedName__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:17296:1: ( ( RULE_ID ) )\r\n // InternalAadlV3.g:17297:1: ( RULE_ID )\r\n {\r\n // InternalAadlV3.g:17297:1: ( RULE_ID )\r\n // InternalAadlV3.g:17298:2: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_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": "0f824ad123657601723c1863fd0192c4", "score": "0.58740187", "text": "public final void rule__QualifiedName__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:17216:1: ( ( RULE_ID ) )\r\n // InternalAadlV3.g:17217:1: ( RULE_ID )\r\n {\r\n // InternalAadlV3.g:17217:1: ( RULE_ID )\r\n // InternalAadlV3.g:17218:2: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_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": "3740ff28f73caf77b2192357b2d5b50a", "score": "0.5871923", "text": "public final void rule__QualifiedName__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:16690:1: ( ( ( rule__QualifiedName__Alternatives_1_1 ) ) )\n // InternalIsml.g:16691:1: ( ( rule__QualifiedName__Alternatives_1_1 ) )\n {\n // InternalIsml.g:16691:1: ( ( rule__QualifiedName__Alternatives_1_1 ) )\n // InternalIsml.g:16692:1: ( rule__QualifiedName__Alternatives_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getAlternatives_1_1()); \n }\n // InternalIsml.g:16693:1: ( rule__QualifiedName__Alternatives_1_1 )\n // InternalIsml.g:16693:2: rule__QualifiedName__Alternatives_1_1\n {\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Alternatives_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getAlternatives_1_1()); \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": "6b3fda113d553abe49f416fbd7e531d7", "score": "0.5864089", "text": "public final void rule__Import__ImportedPackageAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:16811:1: ( ( ( ruleQualifiedName ) ) )\n // InternalIsml.g:16812:1: ( ( ruleQualifiedName ) )\n {\n // InternalIsml.g:16812:1: ( ( ruleQualifiedName ) )\n // InternalIsml.g:16813:1: ( ruleQualifiedName )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getImportAccess().getImportedPackagePackageCrossReference_1_0()); \n }\n // InternalIsml.g:16814:1: ( ruleQualifiedName )\n // InternalIsml.g:16815:1: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getImportAccess().getImportedPackagePackageQualifiedNameParserRuleCall_1_0_1()); \n }\n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getImportAccess().getImportedPackagePackageQualifiedNameParserRuleCall_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getImportAccess().getImportedPackagePackageCrossReference_1_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": "79bdb0069721b26c6f3e297a4fb26531", "score": "0.58515227", "text": "public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null;\n\n\n try {\n // InternalXaw.g:8566:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF )\n // InternalXaw.g:8567:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleQualifiedNameWithWildcard.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": "14ba40c4ec2cf496ee4484fdc9e45a84", "score": "0.58455783", "text": "public final void rule__QualifiedName__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3358:1: ( rule__QualifiedName__Group__2__Impl )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3359:2: rule__QualifiedName__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__QualifiedName__Group__2__Impl_in_rule__QualifiedName__Group__26833);\r\n rule__QualifiedName__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "668b624204929c336f580620746dcd33", "score": "0.58442986", "text": "public final void rule__QualifiedName__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13420:1: ( rule__QualifiedName__Group__1__Impl )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13421:2: rule__QualifiedName__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__QualifiedName__Group__1__Impl_in_rule__QualifiedName__Group__127066);\n rule__QualifiedName__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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": "79cd8dfc7ab1c507d2f1032ac67dec02", "score": "0.5829605", "text": "public final void rule__QualifiedName__Group_2__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3486:1: ( rule__QualifiedName__Group_2__1__Impl )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3487:2: rule__QualifiedName__Group_2__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__QualifiedName__Group_2__1__Impl_in_rule__QualifiedName__Group_2__17081);\r\n rule__QualifiedName__Group_2__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "8da1542f2765ebabf93ab50641719c09", "score": "0.5802189", "text": "public final void rule__Export__ExportedNameAssignment_1_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:11901:1: ( ( ruleQualifiedName ) )\n // InternalFortXTrans.g:11902:2: ( ruleQualifiedName )\n {\n // InternalFortXTrans.g:11902:2: ( ruleQualifiedName )\n // InternalFortXTrans.g:11903:3: ruleQualifiedName\n {\n before(grammarAccess.getExportAccess().getExportedNameQualifiedNameParserRuleCall_1_3_1_0()); \n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n\n after(grammarAccess.getExportAccess().getExportedNameQualifiedNameParserRuleCall_1_3_1_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": "48fd7038c119e66563b72cbb1b2481d6", "score": "0.5790212", "text": "public final void ruleQualifiedNameWithWildcard() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:2024:2: ( ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:2025:1: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\n {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:2025:1: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:2026:1: ( rule__QualifiedNameWithWildcard__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \n }\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:2027:1: ( rule__QualifiedNameWithWildcard__Group__0 )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:2027:2: rule__QualifiedNameWithWildcard__Group__0\n {\n pushFollow(FOLLOW_rule__QualifiedNameWithWildcard__Group__0_in_ruleQualifiedNameWithWildcard4258);\n rule__QualifiedNameWithWildcard__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \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": "681b92b8e050b5179d6e4b1b17097311", "score": "0.5761755", "text": "public String getQualifiedName() {\n\t\treturn qualifiedName;\n\t}", "title": "" }, { "docid": "37dc470b3a52a4a23d8d5cf37736147f", "score": "0.5739909", "text": "public final void rule__QualifiedName__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:16599:1: ( ( ( rule__QualifiedName__Alternatives_0 ) ) )\n // InternalIsml.g:16600:1: ( ( rule__QualifiedName__Alternatives_0 ) )\n {\n // InternalIsml.g:16600:1: ( ( rule__QualifiedName__Alternatives_0 ) )\n // InternalIsml.g:16601:1: ( rule__QualifiedName__Alternatives_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getAlternatives_0()); \n }\n // InternalIsml.g:16602:1: ( rule__QualifiedName__Alternatives_0 )\n // InternalIsml.g:16602:2: rule__QualifiedName__Alternatives_0\n {\n pushFollow(FOLLOW_2);\n rule__QualifiedName__Alternatives_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getAlternatives_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": "bd4aef4632841f564ee1ed6e56c81f79", "score": "0.5727685", "text": "public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildCard() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n AntlrDatatypeRuleToken this_QualifiedName_0 = null;\n\n\n enterRule(); \n \n try {\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:803:28: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.*' )? ) )\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:804:1: (this_QualifiedName_0= ruleQualifiedName (kw= '.*' )? )\n {\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:804:1: (this_QualifiedName_0= ruleQualifiedName (kw= '.*' )? )\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:805:5: this_QualifiedName_0= ruleQualifiedName (kw= '.*' )?\n {\n \n newCompositeNode(grammarAccess.getQualifiedNameWithWildCardAccess().getQualifiedNameParserRuleCall_0()); \n \n pushFollow(FOLLOW_ruleQualifiedName_in_ruleQualifiedNameWithWildCard1602);\n this_QualifiedName_0=ruleQualifiedName();\n\n state._fsp--;\n\n\n \t\tcurrent.merge(this_QualifiedName_0);\n \n \n afterParserOrEnumRuleCall();\n \n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:815:1: (kw= '.*' )?\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( (LA11_0==22) ) {\n alt11=1;\n }\n switch (alt11) {\n case 1 :\n // ../org.caltoopia.frontend/src-gen/org/caltoopia/frontend/parser/antlr/internal/InternalCal.g:816:2: kw= '.*'\n {\n kw=(Token)match(input,22,FOLLOW_22_in_ruleQualifiedNameWithWildCard1621); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getQualifiedNameWithWildCardAccess().getFullStopAsteriskKeyword_1()); \n \n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "59677f618eea33a3f2e87aa0fc5ece3f", "score": "0.5704473", "text": "public final void rule__QualifiedName__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:3676:1: ( ( ( rule__QualifiedName__SAssignment_1_1 ) ) )\n // InternalFortXTrans.g:3677:1: ( ( rule__QualifiedName__SAssignment_1_1 ) )\n {\n // InternalFortXTrans.g:3677:1: ( ( rule__QualifiedName__SAssignment_1_1 ) )\n // InternalFortXTrans.g:3678:2: ( rule__QualifiedName__SAssignment_1_1 )\n {\n before(grammarAccess.getQualifiedNameAccess().getSAssignment_1_1()); \n // InternalFortXTrans.g:3679:2: ( rule__QualifiedName__SAssignment_1_1 )\n // InternalFortXTrans.g:3679:3: rule__QualifiedName__SAssignment_1_1\n {\n pushFollow(FOLLOW_2);\n rule__QualifiedName__SAssignment_1_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getQualifiedNameAccess().getSAssignment_1_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f9005a78591a3c35ad9962d41d5f4fd7", "score": "0.56954646", "text": "public final void rule__QualifiedName__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:3569:1: ( ( ( rule__QualifiedName__SAssignment_0 ) ) )\n // InternalFortXTrans.g:3570:1: ( ( rule__QualifiedName__SAssignment_0 ) )\n {\n // InternalFortXTrans.g:3570:1: ( ( rule__QualifiedName__SAssignment_0 ) )\n // InternalFortXTrans.g:3571:2: ( rule__QualifiedName__SAssignment_0 )\n {\n before(grammarAccess.getQualifiedNameAccess().getSAssignment_0()); \n // InternalFortXTrans.g:3572:2: ( rule__QualifiedName__SAssignment_0 )\n // InternalFortXTrans.g:3572:3: rule__QualifiedName__SAssignment_0\n {\n pushFollow(FOLLOW_2);\n rule__QualifiedName__SAssignment_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getQualifiedNameAccess().getSAssignment_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": "bab1a358f5c1dcb08c90399323726c4a", "score": "0.5679931", "text": "public final void rule__XImportDeclaration__ImportedTypeAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:17447:1: ( ( ( ruleQualifiedName ) ) )\n // InternalSequence.g:17448:2: ( ( ruleQualifiedName ) )\n {\n // InternalSequence.g:17448:2: ( ( ruleQualifiedName ) )\n // InternalSequence.g:17449:3: ( ruleQualifiedName )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_1_0()); \n }\n // InternalSequence.g:17450:3: ( ruleQualifiedName )\n // InternalSequence.g:17451:4: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeQualifiedNameParserRuleCall_1_1_0_1()); \n }\n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeQualifiedNameParserRuleCall_1_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_1_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": "fe54ffa33899a3f42b6c84881fd13e9b", "score": "0.56594807", "text": "public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token this_ID_0=null;\n Token kw=null;\n Token this_ID_2=null;\n\n\n \tenterRule();\n\n try {\n // InternalArchitecture.g:340:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) )\n // InternalArchitecture.g:341:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )\n {\n // InternalArchitecture.g:341:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )\n // InternalArchitecture.g:342:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )*\n {\n this_ID_0=(Token)match(input,RULE_ID,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent.merge(this_ID_0);\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0());\n \t\t\n }\n // InternalArchitecture.g:349:3: (kw= '.' this_ID_2= RULE_ID )*\n loop7:\n do {\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==16) ) {\n alt7=1;\n }\n\n\n switch (alt7) {\n \tcase 1 :\n \t // InternalArchitecture.g:350:4: kw= '.' this_ID_2= RULE_ID\n \t {\n \t kw=(Token)match(input,16,FOLLOW_4); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\tcurrent.merge(kw);\n \t \t\t\t\tnewLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0());\n \t \t\t\t\n \t }\n \t this_ID_2=(Token)match(input,RULE_ID,FOLLOW_10); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\tcurrent.merge(this_ID_2);\n \t \t\t\t\n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\tnewLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1());\n \t \t\t\t\n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop7;\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": "c5bb5b27149918f4f698e66057b801fb", "score": "0.56585234", "text": "public final String entryRuleQualifiedNameInStaticImport() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleQualifiedNameInStaticImport = null;\n\n\n try {\n // InternalXaw.g:8815:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF )\n // InternalXaw.g:8816:2: iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getQualifiedNameInStaticImportRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleQualifiedNameInStaticImport=ruleQualifiedNameInStaticImport();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleQualifiedNameInStaticImport.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": "cc14e57faeb7c7661f4d275e704baa98", "score": "0.5646854", "text": "public final void rule__ActionCall__ReferencedElementAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:18263:1: ( ( ( ruleQualifiedName ) ) )\n // InternalIsml.g:18264:1: ( ( ruleQualifiedName ) )\n {\n // InternalIsml.g:18264:1: ( ( ruleQualifiedName ) )\n // InternalIsml.g:18265:1: ( ruleQualifiedName )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getActionCallAccess().getReferencedElementActionCrossReference_1_0()); \n }\n // InternalIsml.g:18266:1: ( ruleQualifiedName )\n // InternalIsml.g:18267:1: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getActionCallAccess().getReferencedElementActionQualifiedNameParserRuleCall_1_0_1()); \n }\n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getActionCallAccess().getReferencedElementActionQualifiedNameParserRuleCall_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getActionCallAccess().getReferencedElementActionCrossReference_1_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": "7b0222db61acc055db0be89861c433da", "score": "0.56415325", "text": "public final void rule__QualifiedName__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13494:1: ( ( ruleValidID ) )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13495:1: ( ruleValidID )\n {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13495:1: ( ruleValidID )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:13496:1: ruleValidID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); \n }\n pushFollow(FOLLOW_ruleValidID_in_rule__QualifiedName__Group_1__1__Impl27219);\n ruleValidID();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); \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": "" } ]
64f9a0eb1ff722abdbcfa938439c3031
This method was generated by MyBatis Generator. This method returns the value of the database column Obsr_LaboratoryTest.RecieverOrganization_Name
[ { "docid": "8f3ef0127bccac1a4febae98c0e015c5", "score": "0.7192755", "text": "public String getRecieverorganizationName() {\n return recieverorganizationName;\n }", "title": "" } ]
[ { "docid": "903973bce0116f7ba4a611afec095a40", "score": "0.66138333", "text": "public String getRecieverorganizationId() {\n return recieverorganizationId;\n }", "title": "" }, { "docid": "baf23e94ced64de10edec50df8e77007", "score": "0.6609991", "text": "public void setRecieverorganizationName(String recieverorganizationName) {\n this.recieverorganizationName = recieverorganizationName == null ? null : recieverorganizationName.trim();\n }", "title": "" }, { "docid": "1a354ca339b7ff91352d40172d0c8225", "score": "0.660221", "text": "public String getOrganizationName() {\n return getOrganizationNameProperty().getValue();\n }", "title": "" }, { "docid": "d4d8752a5dfaa70ec70b907ff9488e3e", "score": "0.6533666", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getOrganizationName();", "title": "" }, { "docid": "2b5bd8872b4e891fb58413d63182bfe3", "score": "0.6321486", "text": "java.lang.String getOrganization();", "title": "" }, { "docid": "2b5bd8872b4e891fb58413d63182bfe3", "score": "0.6321486", "text": "java.lang.String getOrganization();", "title": "" }, { "docid": "627c6b331f239cd7b143c02e6fe20621", "score": "0.6294482", "text": "public String getContactOrganization() {\n return notNull(contactOrganization);\n }", "title": "" }, { "docid": "aee7f4a3ec1fcb7c36f6fd97f3ef389a", "score": "0.6273491", "text": "@Override\n\tpublic java.lang.String getOrganizationName() {\n\t\treturn _report.getOrganizationName();\n\t}", "title": "" }, { "docid": "b1b41b4b7fe9e566ec749ff97f2fec87", "score": "0.60906124", "text": "java.lang.String getOrganisationName();", "title": "" }, { "docid": "760ab0a8f856e849c73245358f04a705", "score": "0.60509735", "text": "public String getOrganization()\n {\n return this.organization;\n }", "title": "" }, { "docid": "763b9770513e6859064d7a77af7defeb", "score": "0.60338587", "text": "public java.lang.String getOrganization() {\n java.lang.Object ref = organization_;\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 organization_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "763b9770513e6859064d7a77af7defeb", "score": "0.60338587", "text": "public java.lang.String getOrganization() {\n java.lang.Object ref = organization_;\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 organization_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "f02c4515449286b1ac86887914987688", "score": "0.598666", "text": "public java.lang.String getOrganization() {\n java.lang.Object ref = organization_;\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 organization_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "f02c4515449286b1ac86887914987688", "score": "0.598666", "text": "public java.lang.String getOrganization() {\n java.lang.Object ref = organization_;\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 organization_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "d3f93ce376cb9d6649e315fa41f270bf", "score": "0.59746885", "text": "public String getOrganization() {\n return organization;\n }", "title": "" }, { "docid": "31065201a7836aec684819761c0ef7b4", "score": "0.5945766", "text": "public java.lang.String getOrganization () {\n\t\treturn organization;\n\t}", "title": "" }, { "docid": "386bcfee1c0deb771af123c9158a640b", "score": "0.5934205", "text": "String getOrganization();", "title": "" }, { "docid": "9f5e691e641d86ca50b945e4d9438b6b", "score": "0.59329116", "text": "public java.lang.String getOrgName() {\n return orgName;\n }", "title": "" }, { "docid": "093543cd4b688cdd2f68d68b196ae7d7", "score": "0.5913649", "text": "java.lang.String getCompanyName();", "title": "" }, { "docid": "093543cd4b688cdd2f68d68b196ae7d7", "score": "0.5913649", "text": "java.lang.String getCompanyName();", "title": "" }, { "docid": "d24039d45296cdb52e1e421f22c1b71e", "score": "0.58870876", "text": "public String getOrganization() {\n return organization;\n }", "title": "" }, { "docid": "06742d3552a7164c933b1c60a0b15017", "score": "0.5819247", "text": "public void setRecieverorganizationId(String recieverorganizationId) {\n this.recieverorganizationId = recieverorganizationId == null ? null : recieverorganizationId.trim();\n }", "title": "" }, { "docid": "b7962310042b1aeace5c2a85f0f0119b", "score": "0.58168685", "text": "public void setOrganizationName(java.lang.String value);", "title": "" }, { "docid": "bda6756b18b408f7570a480bbf64f786", "score": "0.5787399", "text": "public java.lang.String getTSeq_orgname(){\n return localTSeq_orgname;\n }", "title": "" }, { "docid": "497f6eee0cd12ea33aaf7753f85aec3b", "score": "0.57557577", "text": "public java.lang.String getOrgname() {\n\treturn orgname;\n}", "title": "" }, { "docid": "6b845fbfb35c5974e024254ff251f398", "score": "0.5735893", "text": "String getSalesOrganization();", "title": "" }, { "docid": "6377c19cc432c2e04c361e6f6941d1de", "score": "0.57133603", "text": "public String getOrganizationName(int organizationId)\n\t\t\tthrows ClassNotFoundException, IOException {\n\t\tdatabasePossition = 1;\n\t\t// decalre local variables\n\t\tString organizationName = \"\";\n\t\ttry {\n\t\t\tconnectionObject = ConnectionDAO.DBConnectionMethod();\n\t\t\tstatementObject = connectionObject\n\t\t\t\t\t.prepareStatement(GET_ORGANIZATION_NAME);\n\t\t\tstatementObject.setInt(databasePossition, organizationId);\n\t\t\tresultSetObject = statementObject.executeQuery();\n\t\t\twhile (resultSetObject.next()) {\n\t\t\t\torganizationName = resultSetObject\n\t\t\t\t\t\t.getString(\"organizationName\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tStoreUserDetail.storeUserInfo(\"Database Error Occured--->\" + e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionDAO.DBClose(resultSetObject, statementObject,\n\t\t\t\t\t\tconnectionObject);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tStoreUserDetail.storeUserInfo(\"Database Error Occured--->\" + e);\n\t\t\t}\n\t\t}\n\t\t// return the arraylist to the calling method\n\t\treturn organizationName;\n\t}", "title": "" }, { "docid": "119e02e5643e902fb337d157bf63eb92", "score": "0.5691571", "text": "public String getRequesterorganizationName() {\n return requesterorganizationName;\n }", "title": "" }, { "docid": "9e960682d1b692520a498bfdea52dfcf", "score": "0.5621441", "text": "public String nameBiller(){\n\t\tString name =\"\";\n\t\tQuery q = getEntityManager().createNativeQuery(\" SELECT name_business_entity from business_entity where id = ?\");\n\t\tq.setParameter(1, this.instance.getBiller());\n\t\tname = (String)q.getResultList().get(0);\n\t\treturn name;\n\t}", "title": "" }, { "docid": "f2c78f1fb68771039286d52ea52b8de7", "score": "0.5588561", "text": "public gov.nih.nlm.ncbi.www.PartialOrgNameDocument.PartialOrgName getPartialOrgName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PartialOrgNameDocument.PartialOrgName target = null;\r\n target = (gov.nih.nlm.ncbi.www.PartialOrgNameDocument.PartialOrgName)get_store().find_element_user(PARTIALORGNAME$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "39cdb871814ed04d1ba2c00e826fac11", "score": "0.55748", "text": "public String getCreatorOrgNodeName()\r\n {\r\n return this.creatorOrgNodeName;\r\n }", "title": "" }, { "docid": "93c4f512087e19a4d2cd34f8573aa41e", "score": "0.5473241", "text": "public String getCorporateNameValue()\n\t{\n\t\treturn (corporateName == null) ? null : corporateName.value;\n\t}", "title": "" }, { "docid": "631b9ab3d8d12bd5d362ea572146987a", "score": "0.5452637", "text": "public String getCompany_Name() {\n return Company_Name;\n }", "title": "" }, { "docid": "b05ab40142eaf8a45a1f539b3eed39cc", "score": "0.54502994", "text": "public com.hps.july.arenda.valueobject.OrganizationVO getOrgCustomer() {\n\treturn printComplectAct_TO.getOrgVO();\n}", "title": "" }, { "docid": "6109c166a9df44ede60604b906208db8", "score": "0.54180115", "text": "public int getOrganization() {\n\treturn organization;\n}", "title": "" }, { "docid": "45aad4a4eadb6f0b4445afdf7d83face", "score": "0.53783256", "text": "public String getOrganName() {\n return organName;\n }", "title": "" }, { "docid": "7156e0bd3e7c7413bebeb82ee3f0752f", "score": "0.5375981", "text": "public com.google.protobuf.ByteString\n getOrganizationBytes() {\n java.lang.Object ref = organization_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n organization_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "7156e0bd3e7c7413bebeb82ee3f0752f", "score": "0.5375981", "text": "public com.google.protobuf.ByteString\n getOrganizationBytes() {\n java.lang.Object ref = organization_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n organization_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "c71e269ed53232be07621aa4a0d4738b", "score": "0.5373912", "text": "org.apache.xmlbeans.XmlString xgetOrganisationName();", "title": "" }, { "docid": "56ede15b66cc5bef1874f00cea7a7369", "score": "0.5361919", "text": "@Override\n\tpublic long getOrganizationId() {\n\t\treturn model.getOrganizationId();\n\t}", "title": "" }, { "docid": "3d447aa0f951c4a44a756f608a35fa7e", "score": "0.5342355", "text": "public com.google.protobuf.ByteString\n getOrganizationBytes() {\n java.lang.Object ref = organization_;\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 organization_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3d447aa0f951c4a44a756f608a35fa7e", "score": "0.5342355", "text": "public com.google.protobuf.ByteString\n getOrganizationBytes() {\n java.lang.Object ref = organization_;\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 organization_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "36d7fcc670bb744ebcd86845100b5026", "score": "0.53324276", "text": "public static String getCurrentOrgName() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c034aa6653bc42dde37d90cbb8dd9b6a", "score": "0.53113616", "text": "public static String getMergeContactFirstName() {\n return getPropertyValue(\"testautomation.bui.mergecontact.firstname\");\n }", "title": "" }, { "docid": "f8b6a3bdfc1eb726c2c99aafd904c605", "score": "0.53085285", "text": "public String getRecieverdepartmentName() {\n return recieverdepartmentName;\n }", "title": "" }, { "docid": "ee3f2e2033cc89ba1485dde56015f39f", "score": "0.5302848", "text": "public OrgOrganization getOrgOrganization();", "title": "" }, { "docid": "3379e1c4f7d34195975178ecf97d7ffb", "score": "0.52999306", "text": "public StrColumn getResName() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"res_name\", StrColumn::new) :\n getBinaryColumn(\"res_name\"));\n }", "title": "" }, { "docid": "f7db7b9b417a0bc7dc81ca30891cb06d", "score": "0.5295039", "text": "public void setOrganizationName(String organizationName) {\n getOrganizationNameProperty().setValue(organizationName);\n }", "title": "" }, { "docid": "3726934cf4c2895b79bc78866ba96e67", "score": "0.52633935", "text": "public Organization getOrganization()\n {\n return this.organization;\n }", "title": "" }, { "docid": "8036633a9b9d4d29c9d9724fab1447ca", "score": "0.5246822", "text": "public String getCompanyName() {\r\n return companyName;\r\n }", "title": "" }, { "docid": "8036633a9b9d4d29c9d9724fab1447ca", "score": "0.5246822", "text": "public String getCompanyName() {\r\n return companyName;\r\n }", "title": "" }, { "docid": "54d51fff47063a03706bd987127d1d9b", "score": "0.52156925", "text": "@JsonGetter(\"companyName\")\r\n public String getCompanyName ( ) { \r\n return this.companyName;\r\n }", "title": "" }, { "docid": "cca09691338f716c0567938ed4cea66f", "score": "0.5211388", "text": "public java.lang.String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "ad50a09898f32a499e4ae8d0a6e2628e", "score": "0.5200503", "text": "public String getLRName(){\n return lRName;\n }", "title": "" }, { "docid": "03b19f7308b52ab1bc94a422e0cb3dd3", "score": "0.517317", "text": "public String getCompanyName() {\n return companyName;\n }", "title": "" }, { "docid": "03b19f7308b52ab1bc94a422e0cb3dd3", "score": "0.517317", "text": "public String getCompanyName() {\n return companyName;\n }", "title": "" }, { "docid": "22903d73c94c23f513e21a799c4f1d32", "score": "0.51462847", "text": "public String getBookingCompanyName() {\n return bookingCompanyName;\n }", "title": "" }, { "docid": "39abd7bf72df0ac9880f64d9f01079ac", "score": "0.5138601", "text": "public String getRightName()\n {\n return rightName;\n }", "title": "" }, { "docid": "6462e7432024da1ccf73ae8d9de51b78", "score": "0.512803", "text": "public String getCompanyName() {\n return this.companyName;\n }", "title": "" }, { "docid": "51f398cc471c18369990f605ef5c9565", "score": "0.511701", "text": "public String getRequesterorganizationId() {\n return requesterorganizationId;\n }", "title": "" }, { "docid": "64311dbe7e4cd9c779693c0421ac77d0", "score": "0.51116717", "text": "public void setOrganization(String tmp) {\n this.organization = tmp;\n }", "title": "" }, { "docid": "da95fbf2bab25d1890bcc06b88db266e", "score": "0.5106462", "text": "java.lang.String getBusinessName();", "title": "" }, { "docid": "f312cfd6d7d4d516d884ac2f1571382c", "score": "0.5103824", "text": "public String getSalepersonName()\r\n {\r\n return salespersonName;\r\n \r\n }", "title": "" }, { "docid": "24ded6ac11d856ab39f3a8aa615fe0c2", "score": "0.5082822", "text": "public final String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "a962b243518231f011c8777e9fa5d168", "score": "0.507871", "text": "public Builder setOrganization(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n organization_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "857f4ff6c5682f9f7b8a54fd64b3647f", "score": "0.5072425", "text": "public String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "857f4ff6c5682f9f7b8a54fd64b3647f", "score": "0.5072425", "text": "public String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "857f4ff6c5682f9f7b8a54fd64b3647f", "score": "0.5072425", "text": "public String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "857f4ff6c5682f9f7b8a54fd64b3647f", "score": "0.5072425", "text": "public String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "857f4ff6c5682f9f7b8a54fd64b3647f", "score": "0.5072425", "text": "public String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "1b0a08e93120299272bed2b97a2b6913", "score": "0.5057081", "text": "public String getOrg() {\n return org;\n }", "title": "" }, { "docid": "5579566040f89574566ceece44e5ff5c", "score": "0.50549483", "text": "public String getOrgcode() {\r\n return orgcode;\r\n }", "title": "" }, { "docid": "50b937ac561b642415e61bbebdc5e048", "score": "0.50334656", "text": "@JsonGetter(\"company_name\")\r\n public String getCompanyName() {\r\n return companyName;\r\n }", "title": "" }, { "docid": "59e7dbdc180111f43deadc8086b6c00b", "score": "0.50271815", "text": "public Builder setOrganization(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n organization_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "da4704b0f5f4c3f1a7f8e2ab9c731be9", "score": "0.5026581", "text": "public String getOrgGuid() {\n return orgGuid;\n }", "title": "" }, { "docid": "68e634562875cac5786d6b523869401e", "score": "0.50256896", "text": "public String getOrganisation() {\n return organisation;\n }", "title": "" }, { "docid": "1889bb8461f6e3a45ef9e6f4e820dc9c", "score": "0.50254726", "text": "public String getCompanyName() {\r\n\t\treturn this.companyName;\r\n\t}", "title": "" }, { "docid": "4995ebd0ec666b686285df48bd9a386e", "score": "0.50186414", "text": "public String getRealName() {\r\n return realName;\r\n }", "title": "" }, { "docid": "7f40cd43d8d220d178db07a50da07968", "score": "0.5014702", "text": "public String getContactPerson() {\n return notNull(contactPerson);\n }", "title": "" }, { "docid": "34155b29f57f1939a1727a81855c7a48", "score": "0.5007486", "text": "public String getCompanyName() {\r\n\t\treturn companyName;\r\n\t}", "title": "" }, { "docid": "324e80915f119757825babc93121d0e3", "score": "0.50053287", "text": "public java.lang.String getCompanyName() {\n return companyName;\n }", "title": "" }, { "docid": "60d81f5cd06b49ee07505d0900968f41", "score": "0.5003313", "text": "public String getRealName() {\n return realName;\n }", "title": "" }, { "docid": "60d81f5cd06b49ee07505d0900968f41", "score": "0.5003313", "text": "public String getRealName() {\n return realName;\n }", "title": "" }, { "docid": "60d81f5cd06b49ee07505d0900968f41", "score": "0.5003313", "text": "public String getRealName() {\n return realName;\n }", "title": "" }, { "docid": "60d81f5cd06b49ee07505d0900968f41", "score": "0.5003313", "text": "public String getRealName() {\n return realName;\n }", "title": "" }, { "docid": "60d81f5cd06b49ee07505d0900968f41", "score": "0.5003313", "text": "public String getRealName() {\n return realName;\n }", "title": "" }, { "docid": "6986737d6cac9b6978c207d787e2fa45", "score": "0.4994832", "text": "public char getTypeOfOrganization(){\n\t\treturn typeOfOrganization;\n\t}", "title": "" }, { "docid": "8ce096a6967ae570d8089a7bfb9d6dbd", "score": "0.49904197", "text": "public void setRequesterorganizationName(String requesterorganizationName) {\n this.requesterorganizationName = requesterorganizationName == null ? null : requesterorganizationName.trim();\n }", "title": "" }, { "docid": "c44adea5ce70e92cf0ce8d9dd2ec1cc4", "score": "0.498846", "text": "public String getContact_Name() {\n return contact_Name;\n }", "title": "" }, { "docid": "23065adc1c94544cdf4d68e96a4a7954", "score": "0.4985418", "text": "org.apache.xmlbeans.XmlString xgetCompanyName();", "title": "" }, { "docid": "618a8c1b0ef23f797f0095e0af685fd9", "score": "0.49843803", "text": "public String getSurname() {\r\n\t\treturn surname;\r\n\t}", "title": "" }, { "docid": "e74b29f2c790cef9b85c4c2a3d6bdac0", "score": "0.49762824", "text": "@Override\r\n\tpublic String getSurname() {\n\t\treturn this.surname;\r\n\t}", "title": "" }, { "docid": "ec0e4b8b26322d8d8f41b4fdd123958c", "score": "0.49749193", "text": "Object getBUSINESSNAME();", "title": "" }, { "docid": "ec0e4b8b26322d8d8f41b4fdd123958c", "score": "0.49749193", "text": "Object getBUSINESSNAME();", "title": "" }, { "docid": "e7ff5c3ea959366dbf3bd84c3f3e7cc1", "score": "0.49737313", "text": "public String getSurname() {\n\t\treturn surname;\n\t}", "title": "" }, { "docid": "38e0f05047ec477e185ebe5cce729910", "score": "0.49732494", "text": "public void setTSeq_orgname(java.lang.String param){\n localTSeq_orgnameTracker = param != null;\n \n this.localTSeq_orgname=param;\n \n\n }", "title": "" }, { "docid": "2b36d2772050ed47422a8086f4adfefc", "score": "0.49693727", "text": "@AutoEscape\n\tpublic String getIssuingOrganization();", "title": "" }, { "docid": "e1b828f7efe97f31754a9f0211ebc8b9", "score": "0.49691713", "text": "public static String checkCompanyName(JobBean jobBean) throws SQLException {\r\n\r\n\t\tString r = \"\";\r\n\t\ttry {\r\n\t\t\tboolean flag = false;\r\n\t\t\tcon = getDbConnection();\r\n\t\t\tpst = con.prepareStatement(\r\n\t\t\t\t\t\"select r_company_name from tbl_recruiter_registration where r_username=? and r_password=?\");\r\n\t\t\tpst.setString(1, jobBean.getR_username());\r\n\t\t\tpst.setString(2, jobBean.getR_password());\r\n\t\t\trs = pst.executeQuery();\r\n\t\t\tflag = true;\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tr = rs.getString(2);\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 r;\r\n\r\n\t}", "title": "" }, { "docid": "9df1c304bdc9290063f0d75e0ce96098", "score": "0.49621475", "text": "public String getContact_name(){\n return contact_name;\n }", "title": "" }, { "docid": "67c6c37859b3427bc720e99e7db53970", "score": "0.4951952", "text": "public String getSurname() {\n return surname;\n }", "title": "" } ]
5fa34c37fb3133025982dc40df3ffe72
Sets data at a given path and name. Replaces / by in node names. Creates the node if it doesn't exist
[ { "docid": "6009112be2319929d74b789bd0708e12", "score": "0.61333025", "text": "public void putData(String path, String node, String data) {\n putData(path, node, Utf8.toBytes(data));\n }", "title": "" } ]
[ { "docid": "3722e7081c4e055f03d4728a6cf62514", "score": "0.6348736", "text": "private void putData(String path, String node, byte[] data) {\n putData(createFullPath(path, node), data);\n }", "title": "" }, { "docid": "0aca7baecba90ccde745fa8f9f889852", "score": "0.6345909", "text": "public void setPath(List<node_data> Path);", "title": "" }, { "docid": "936fb0f061b39a5a0dc385ea68bafde7", "score": "0.6321025", "text": "public static Stat setPathDataByKey(String key, String data) {\n String path = keyToPath(key);\n try {\n Stat stat = getInstance().exists(path, true);\n if (stat == null) {\n createWithParent(path);\n stat = getInstance().exists(path, true);\n }\n return zooKeeper.setData(path, data.getBytes(), stat.getVersion());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "493a67787130b5f06634b933c12f78bb", "score": "0.63194615", "text": "public void setNodeDataName(String name) {\r\n this.nodeDataName = name;\r\n }", "title": "" }, { "docid": "fda7aef24a3325ae6788b345e9380874", "score": "0.6069216", "text": "private void mergeData(Element node, String path, Object value) {\r\n\r\n // resolve the path to the final node\r\n Object o = getNode(node, path);\r\n\r\n // set the content of the node if it is an Element node\r\n if (o instanceof Element) {\r\n node = (Element) o;\r\n\r\n // and the value is a String\r\n if (value instanceof String) {\r\n node.setText(value.toString());\r\n }\r\n }\r\n }", "title": "" }, { "docid": "fc2cda5dcc22cbe0d450805f485483af", "score": "0.6060278", "text": "public void createNode(String path, String node) {\n createNode(createFullPath(path, node));\n }", "title": "" }, { "docid": "bdc24cc390e8dfdc59b2803bfc7fa074", "score": "0.6031357", "text": "public void createNode(String path) {\n if ( ! exists(path))\n createRecurse(path);\n }", "title": "" }, { "docid": "a1379a621973d6f9127e6838cdfa6d76", "score": "0.60108477", "text": "public void setNode(String node) {this.node = node;}", "title": "" }, { "docid": "4fddac2d1234c997734beb4b4b939da1", "score": "0.59990406", "text": "void insertInPath(Node<T> node, String... path);", "title": "" }, { "docid": "3fa794e1e73e88ff35c5e4cb4bd60e69", "score": "0.5952565", "text": "protected abstract void createNode(String name);", "title": "" }, { "docid": "64c89bed46fe799c8ef3199fa05f4a80", "score": "0.59266573", "text": "public void putData(String path, byte[] data) {\n try {\n ensureDataIsNotTooLarge(data, path);\n if (exists(path))\n curator.framework().setData().forPath(path, data);\n else\n curator.framework().create().creatingParentsIfNeeded().forPath(path, data);\n }\n catch (Exception e) {\n throw new RuntimeException(\"Exception writing to path \" + path + \" in ZooKeeper\", e);\n }\n }", "title": "" }, { "docid": "21b66053ae1baf4c5ffd743dd4cb4af4", "score": "0.5838201", "text": "void setEntry(String path, Object value);", "title": "" }, { "docid": "ee7e54a79211a461b2f5eaf422440265", "score": "0.5813843", "text": "public void putDefData(String name, String path, byte[] data) {\n putData(path, name, data);\n }", "title": "" }, { "docid": "3d31a4bd83e031b92808863e076076ff", "score": "0.57848006", "text": "void setPath(String path);", "title": "" }, { "docid": "3d31a4bd83e031b92808863e076076ff", "score": "0.57848006", "text": "void setPath(String path);", "title": "" }, { "docid": "2d235c56121c37de1c2fde07bb65d6d7", "score": "0.56509846", "text": "public void createData (String name) throws IOException {\n fs.createData (name);\n }", "title": "" }, { "docid": "0669a969a92f34b8d8ff7d4452f158f4", "score": "0.5610321", "text": "private void createDeepNode(String data, String... nodes) {\n\n if (nodes.length == 0)\n return;\n\n StringBuilder dir = new StringBuilder(root);\n for (int i = 0; i < nodes.length - 1; i++) {\n dir.append(\"/\");\n dir.append(nodes[i]);\n existsOrCreate(dir.toString(), true);\n }\n\n dir.append(\"/\");\n dir.append(nodes[nodes.length - 1]);\n\n existsOrCreate(dir.toString(), true, data);\n }", "title": "" }, { "docid": "771d249e5d131366f24a2644e0ec2966", "score": "0.5597975", "text": "public void setXAttr(Path path, String name, byte[] value)\n throws IOException {\n setXAttr(path, name, value, EnumSet.of(XAttrSetFlag.CREATE,\n XAttrSetFlag.REPLACE));\n }", "title": "" }, { "docid": "7fd5204a5e4acddfbb8890eec9cb5d63", "score": "0.5596219", "text": "public void putData(String path, String data) {\n putData(path, Utf8.toBytes(data));\n }", "title": "" }, { "docid": "cb1c783fae8d630e45a896c04f6025c4", "score": "0.5595555", "text": "Node(String[] path) {\n this.path = path;\n uri = null;\n }", "title": "" }, { "docid": "3ca4f1cf6c54e1e694c77bd734d330a4", "score": "0.5588572", "text": "public MerkleNode(String fullPath, String name) {\n\t\tthis.fullPath = fullPath;\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "95d9ed230a0b53a1112f74210bc06f76", "score": "0.5577856", "text": "public SLNode(Name data) {\r\n\t\tthis.data = data;\r\n\t\tnext = null;\r\n\t}", "title": "" }, { "docid": "8b9a4862ad256474eacc8cf401742e2c", "score": "0.55413663", "text": "public void setNode(String node) {\n \t\tthis.node = node;\n \t}", "title": "" }, { "docid": "9cfaad1173c95fa2d35960e4fdff14ef", "score": "0.5536928", "text": "void setNode(Node n);", "title": "" }, { "docid": "ce2a37498afad4d2bbf9383235a87f01", "score": "0.5520115", "text": "public Node setNamedItem(Node arg) throws DOMException {\n\n CoreDocumentImpl ownerDocument = ownerNode.ownerDocument();\n if (ownerDocument.errorChecking) {\n if (isReadOnly()) {\n String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN,\n \"NO_MODIFICATION_ALLOWED_ERR\", null);\n throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, msg);\n }\n if (arg.getOwnerDocument() != ownerDocument) {\n String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN,\n \"WRONG_DOCUMENT_ERR\", null);\n throw new DOMException(DOMException.WRONG_DOCUMENT_ERR, msg);\n }\n }\n\n int i = findNamePoint(arg.getNodeName(), 0);\n NodeImpl previous = null;\n if (i >= 0) {\n previous = (NodeImpl) nodes.get(i);\n nodes.set(i, arg);\n } else {\n i = -1 - i; // Insert point (may be end of list)\n if (null == nodes) {\n nodes = new ArrayList(5);\n }\n nodes.add(i, arg);\n }\n return previous;\n\n }", "title": "" }, { "docid": "47406f2736db40f3d778861cb78a333e", "score": "0.551359", "text": "public void registerToNameNode() {\n\t\tNodeID nameNodeID = new NodeID(configuration.nameNodeIP,\n\t\t\t\tconfiguration.nameNodePort);\n\t\ttry {\n\t\t\tRegistry registry = LocateRegistry.getRegistry(nameNodeID.getIp(),\n\t\t\t\t\tconfiguration.rmiPort);\n\t\t\tString name = \"rmi://\" + nameNodeID.toString() + \"/NameNodeService\";\n\t\t\tnameNodeService = (NameNodeService) registry.lookup(name);\n\t\t\tnameNodeService.registerDataNode(dataNodeID);\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "575cec8b389bc35840305a8219406c00", "score": "0.5510198", "text": "static public void setNodeData(XMLTreeNode sNode, String info) {\n sNode.setData(info);\n }", "title": "" }, { "docid": "3db150d1fb7edec922635579b297bdde", "score": "0.5480444", "text": "public void setPath(java.lang.String path)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PATH$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PATH$0);\n }\n target.setStringValue(path);\n }\n }", "title": "" }, { "docid": "dbe1c4e2672c55e883475f3e428021a0", "score": "0.5476658", "text": "public void setData(int node, int value) { data.set(node,value); }", "title": "" }, { "docid": "13a151609e7ba160083f4071da34c23b", "score": "0.5454105", "text": "static void fillPath(String path, String name,\n PreparedStatement prep) throws SQLException {\n\n File f = new File(path);\n\n if (f.isFile()) {\n\n // Clear all Parameters of the PreparedStatement\n prep.clearParameters();\n\n // Fill the first parameter: Path\n prep.setString(1, path);\n\n // Fill the second parameter: Name\n prep.setString(2, name);\n\n // Its a file: add it to the table\n prep.execute();\n } else if (f.isDirectory()) {\n if (!path.endsWith(File.separator)) {\n path += File.separator;\n }\n\n String[] list = f.list();\n\n // Process all files recursivly\n for (int i = 0; (list != null) && (i < list.length); i++) {\n fillPath(path + list[i], list[i], prep);\n }\n }\n }", "title": "" }, { "docid": "6323b5d9fae04365c84101956e8e034f", "score": "0.5449612", "text": "public void setNodeTemplate(String name, Object value) {\n Map<String, Object> nodeTemplatesList = this.getNodeTemplates();\n //update node templates list\n nodeTemplatesList.put(name, value);\n //update old node templates list in TOSCAdefinitions\n TOSCAdefinitions.put(\"node_templates\", nodeTemplatesList);\n }", "title": "" }, { "docid": "60b128473291f9c74d447b32eb71bd0c", "score": "0.5406053", "text": "private DefaultMutableTreeNode addPath(DefaultMutableTreeNode root, String path, String toolText)\n {\n String[] p = path.split(\":\");\n DefaultMutableTreeNode node = root;\n\n for (int i = 0; i < p.length; i++)\n {\n DefaultMutableTreeNode nextChild = findChild(node, p[i]);\n if (nextChild == null)\n {\n if (i == p.length - 1)\n {\n nextChild = new NDTreeNode(p[i], toolText);\n } else\n {\n nextChild = new DefaultMutableTreeNode(p[i]);\n }\n ((DefaultTreeModel) getModel()).insertNodeInto(nextChild, node, node.getChildCount());\n //node.add(nextChild);\n }//end if\n node = nextChild;\n }//end for\n\n return node;\n }", "title": "" }, { "docid": "da425c678671ae33d6cda2499a184c28", "score": "0.53795624", "text": "@Override\n public boolean createNode(String namefolder,String tipo,VFSDescription vfsD,String contenuto1) throws CleverException,Exception{ \n String[] result;\n String contenuto=\"\";\n String location=\"\";\n String r=\"\";\n String type=\"\";\n int i = 0; \n int indice=0;\n StringTokenizer st = new StringTokenizer(namefolder,\"/\");\n result = new String[st.countTokens()];\n while (st.hasMoreTokens()){\n result[i++] = st.nextToken(); \n }\n \n //NEW\n \n String [] cmd;\n cmd=resolverPath(contenuto1);\n if(!\"\".equals(cmd[0])){\n if(existNode(cmd[0])==false){ \n throw new LogicalCatalogException(\"Logical path: '\" + cmd[0]+ \"' not exist\");\n }\n }\n if(!\"\".equals(cmd[1])){\n registerVeNew(contenuto1);\n }\n \n //\n /*\n if(!\"\".equals(contenuto1)){\n if(existNode(contenuto1)==false){ \n throw new LogicalCatalogException(\"Destination path: '\" + contenuto1+ \"' not exist\");\n }\n }\n */\n \n if(existNode(namefolder)==true){ \n throw new LogicalCatalogException(\"Unable to create the node: '\" + namefolder+ \"' already exist\");\n\n }\n if(i>1){\n for(indice=0;indice<i-1;indice++){ \n location=location+\"/node[@name='\" + result[indice]+\"']\"; \n r=r+\"/\"+result[indice];\n }\n if(existNode(r)==false)\n throw new LogicalCatalogException(\"Unable to create the node: '\" + namefolder+ \"' not exist\");\n }\n type=getAttributeNode(r,\"type\");\n if(\"mount\".equals(type) || \"link\".equals(type)){\n throw new LogicalCatalogException(\"mount and link nodes can not have child nodes! They are leaf nodes!\");\n } \n \n \n if(\"mount\".equals(tipo))\n contenuto=MessageFormatter.messageFromObject(vfsD);\n else if (\"link\".equals(tipo))\n contenuto=\"<path>\"+contenuto1+\"</path>\";\n else\n contenuto=\"Logical CLEVER Node\";\n\n \n \n List params = new ArrayList();\n String prova=\"<node name='\"+result[indice]+\"' type='\"+tipo+\"'>\"+contenuto+\"</node>\"; \n params.add(\"StorageManagerAgent\");\n params.add(prova);\n params.add(\"into\");\n params.add(location); \n MethodInvoker mi = new MethodInvoker(\"DatabaseManagerAgent\",\"insertNode\", true, params);\n this.mc.invoke(mi);\n // 05/24/2012 this.owner.invoke(\"DatabaseManagerAgent\", \"insertNode\", true, params);\n return true; \n }", "title": "" }, { "docid": "253c8decb23d45b58cb65114e8d9703b", "score": "0.53790694", "text": "public void putNodeUIDName(int id, String uid, String name){\n\t\tnodeUIDs.put(id, uid);\n\t\tnodeNames.put(id, name);\n\t}", "title": "" }, { "docid": "45451d38153db854287468fe89586a39", "score": "0.5372457", "text": "public void setName(String name) {\n if (this.parent != null) {\n this.parent.getChildren().put(name, this);\n this.parent.getChildren().remove(this.name);\n }\n this.name = name;\n }", "title": "" }, { "docid": "098b421b64f940889e915a0c1765206f", "score": "0.5354691", "text": "private void setProperty(Node n, SlingHttpServletRequest request, String name,\n RequestParameter[] values, Set<Node> createdNodes) throws RepositoryException {\n \n // split the relative path identifying the property to be saved\n String proppath = name;\n \n // @ValueFrom can be used to define mappings between form fields and JCR properties\n // TODO\n // final int vfIndex = name.indexOf(\"@ValueFrom\");\n // if (vfIndex >= 0) {\n // // Indirect\n // proppath = name.substring(0, vfIndex);\n // } else if (name.indexOf(\"@\") >= 0) {\n // // skip \"Hints\"\n // return;\n // }\n \n final String path = n.getPath();\n String parentpath = \"\";\n String propname=name;\n \n if (propname.indexOf(\"/\")>=0) {\n parentpath=proppath.substring(0, name.lastIndexOf(\"/\"));\n propname = proppath.substring(name.lastIndexOf(\"/\") + 1);\n }\n \n // if the whole thing ended in a slash -> skip\n if (propname.equals(\"\")) {\n return;\n }\n \n // get or create the parent node\n final Session s = n.getSession();\n Node parent;\n if(name.startsWith(\"/\")) {\n parent = deepCreateNode(s, parentpath, createdNodes);\n \n } else if (!parentpath.equals(\"\")) {\n parent = (Node) s.getItem(path + \"/\" + parentpath);\n } else {\n parent = (Node) s.getItem(path);\n }\n \n // TODO String typehint = request.getParameter(proppath + \"@TypeHint\");\n final String typeHint = null;\n final boolean nodeIsNew = createdNodes.contains(parent);\n propertyValueSetter.setProperty(parent, propname, values, typeHint, nodeIsNew);\n }", "title": "" }, { "docid": "2417a9754869004af16a65117d94ba39", "score": "0.5348113", "text": "public void setPaths(int index, String value) {\n value.getClass();\n ensurePathsIsMutable();\n this.paths_.set(index, value);\n }", "title": "" }, { "docid": "01b1d60ea6c12033d8a176cf052c873d", "score": "0.5320575", "text": "Fluent newPath(String name);", "title": "" }, { "docid": "c359bbc2a8862ad392f1299918aeee79", "score": "0.5315478", "text": "public void setPath(String pathData) {\n path = PathUtils.createPathFromPathData(pathData);\n pathSize = new Rect(0, 0, 100, 100);\n }", "title": "" }, { "docid": "3f73c9f55b728df03cee768bf9aff05d", "score": "0.53083456", "text": "public <T> void setValue(String path, T value) {\n this.values.put(path, value);\n }", "title": "" }, { "docid": "06448885c4580cf1dadfd9b7c7465d84", "score": "0.5300396", "text": "public Builder setNode(\n int index, poke.comm.App.NameValueSet value) {\n if (nodeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeIsMutable();\n node_.set(index, value);\n onChanged();\n } else {\n nodeBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "63e5c1ac5c44c5aab56c3a780e749c16", "score": "0.5297167", "text": "public void addNode(String name, double x, double y) {\n double[] coordinates = new double[2];\n coordinates[0] = x;\n coordinates[1] = y;\n this.graph.put(name, coordinates);\n }", "title": "" }, { "docid": "36085135bf2f01ba62e54f3450768ba3", "score": "0.52682185", "text": "public void setData(String value) \n throws DOMException {\n setNodeValue(value);\n }", "title": "" }, { "docid": "e547639310f9c7fdbaf196ec6e24d1e8", "score": "0.5262189", "text": "@Override\n public void register(String key, String data) {\n String nodePath = \"/\".concat(key).concat(\"/\").concat(data);\n\n if (checkNodeExists(nodePath) != null)\n throw new RPCException(\"ZKRegistry: register node already exists...\");\n try {\n client.create().creatingParentsIfNeeded()\n .withMode(CreateMode.EPHEMERAL)\n .withACL(ZooDefs.Ids.OPEN_ACL_UNSAFE)\n .forPath(nodePath, (\"ZKRegistry: server: \" + data + \" -->> register...\").getBytes(StandardCharsets.UTF_8));\n registerMap.put(key,data);\n }catch (Exception e){\n logger.error(\"ZKRegistry: zookeeper encounter one Exception when create a node...\",e);\n throw new RPCException(e);\n }\n logger.info(\"ZKRegistry: zookeeper register a service[ name= {}, address= {} ] done... \",key,data);\n }", "title": "" }, { "docid": "b3edb4d995e15750009bce6c11c994a8", "score": "0.5250181", "text": "protected void createOrUpdateNodesFromRequest(SlingHttpServletRequest request, SlingHttpServletResponse response, Session s)\n throws RepositoryException, IOException {\n \n // find out the actual \"save prefix\" to use - only parameters starting with\n // this prefix are saved as Properties, when creating nodes, see setPropertiesFromRequest()\n final String savePrefix = getSavePrefix(request);\n \n // use the request path (disregarding resource resolution)\n // but remove any extension or selectors\n String currentPath = SlingRequestPaths.getPathInfo(request);\n Node currentNode = null;\n final int dotPos = currentPath.indexOf('.');\n if(dotPos >= 0) {\n currentPath = currentPath.substring(0,dotPos);\n }\n \n final String starSuffix = \"/*\";\n if(currentPath.endsWith(starSuffix)) {\n // If the path ends with a *, create a node under its parent, with\n // a generated node name\n currentPath = currentPath.substring(0, currentPath.length() - starSuffix.length());\n currentPath += \"/\" + nodeNameGenerator.getNodeName(request.getRequestParameterMap(), savePrefix);\n \n // if resulting path exists, add a suffix until it's not the case anymore\n if(s.itemExists(currentPath)) {\n String newPath = currentPath;\n for(int suffix = 0; suffix < 100; suffix++) {\n newPath = currentPath + \"_\" + suffix;\n if(!s.itemExists(newPath)) {\n currentPath = newPath;\n break;\n }\n }\n }\n \n if(s.itemExists(currentPath)) {\n throw new HttpStatusCodeException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,\n \"Collision in generated node names for path=\" + currentPath);\n }\n \n } else if(s.itemExists(currentPath)) {\n // update to an existing node\n final Item item = s.getItem(currentPath);\n if(item.isNode()) {\n currentNode = (Node)item;\n } else {\n throw new HttpStatusCodeException(HttpServletResponse.SC_CONFLICT,\"Item at path \" + currentPath + \" is not a Node\");\n }\n \n } else {\n // request to create a new node at a specific path - use the supplied path as is\n }\n \n Set<Node> createdNodes = new HashSet<Node>();\n if(currentNode == null) {\n currentNode = deepCreateNode(s, currentPath, createdNodes);\n }\n currentPath = currentNode.getPath();\n \n // process the \"order\" command if any\n final String order = request.getParameter(RP_ORDER);\n if(order!=null) {\n processNodeOrder(currentNode,order);\n }\n \n // walk the request parameters, create and save nodes and properties\n setPropertiesFromRequest(currentNode, request, savePrefix, createdNodes);\n \n // sava data and send redirect\n s.save();\n response.sendRedirect(getRedirectUrl(request,currentNode.getPath()));\n }", "title": "" }, { "docid": "abd874df034f8a6bdabc8e63ced0d66d", "score": "0.5246633", "text": "public Node(final String name){\n\t\t\tmName = name;\n\t\t\tmColor = 0; \n\t\t}", "title": "" }, { "docid": "8700931dfbdafbd52107bfc69b90c5ae", "score": "0.522559", "text": "public static void setPath(String path) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d86ab21107f0b899f9dcdf168f7d7d4d", "score": "0.52119553", "text": "public void setPath(String value) {\n set(1, value);\n }", "title": "" }, { "docid": "a7021fe4ce6dd2fb9eed4b0806a54b0b", "score": "0.52111965", "text": "private void setNodeData(T nodeIn) {\n\t\tthis.nodeData = new NodeData<T>(nodeIn);\n\t}", "title": "" }, { "docid": "2eb242295142b94527ff4bee272af485", "score": "0.51931465", "text": "public void setPath(String value) {\n set(5, value);\n }", "title": "" }, { "docid": "32028d961110adef17596d5bde98f2c2", "score": "0.51824427", "text": "public void setPath(List<node_data> way) {\r\n\t\tthis.path= way;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "967cc6263dc1aadd7693eee520ee21f6", "score": "0.51630074", "text": "@Override\r\n\tpublic void setPath(String path) {\n\t\t\r\n\t}", "title": "" }, { "docid": "163fbeb27b31885a1c700f43eb32cb26", "score": "0.5162702", "text": "public void putNode(String uri, PersistedNode node);", "title": "" }, { "docid": "d3ca5bd1cd6825d83af8ce2bae963bde", "score": "0.51609194", "text": "public void makeSet(long data) {\r\n\t\tNode node = new Node();\r\n\t\tnode.data = data;\r\n\t\tnode.parent = node;\r\n\t\tnode.rank = 0;\r\n\t\tmap.put(data, node);\r\n\t}", "title": "" }, { "docid": "6a5ac925d994de3b5e9ff7846060b02d", "score": "0.5155834", "text": "public void setDGNode(Node node) {\n\t\tid.setProperty(node);\n\t\tname.setProperty(node);\n\t\tpath.setProperty(node);\n\t\tnode.addLabel(NEO4JAccess.PackageNode);\n\t}", "title": "" }, { "docid": "70a1782936ee1fec2919d584efa0acb3", "score": "0.5154594", "text": "void setNode(XBCNode node);", "title": "" }, { "docid": "2a34ab03bd42e58cee20ef0ebccffe2d", "score": "0.5153761", "text": "public void set(Node n) {\n int pos = parent.children.indexOf(this);\n parent.children.set(pos, n);\n }", "title": "" }, { "docid": "d5b43694a209b655352a83c510a6e09c", "score": "0.5111086", "text": "public void setNodePath(List<Node> nodePath) {\r\n\t\tthis.nodePath = nodePath;\r\n\t\tfor (int xI = 0; xI < nodePath.size(); xI++) {\r\n\t\t\tNode node = nodePath.get(xI);\r\n\t\t\tgridPath.add(node.pos);\r\n\t\t\ttilePath.add(node.tileMap.getTile(node.pos));\r\n\t\t}\r\n\t\t\r\n\t\tthis.setCalculated(true);\r\n\t}", "title": "" }, { "docid": "81a511c6046cf3cc9a3058f2242787ca", "score": "0.5093418", "text": "protected abstract N createNode(N parent, String path);", "title": "" }, { "docid": "433d4401382cc397a9e2457a2d1afa39", "score": "0.50850195", "text": "protected void createPath(java.lang.String pathName) {\n java.lang.String path = \"\";\n paths.put(pathName, path);\n }", "title": "" }, { "docid": "e5ea41fcee52da24fce5756d059f39c5", "score": "0.5077495", "text": "public Node(String pName){\n\t\tthis.name = pName;\n\t}", "title": "" }, { "docid": "8dee5492bf2ef3508eed8a82b6aeb529", "score": "0.5068139", "text": "public FilesystemNodeInformation(Path path, NodeType nodeType) {\r\n super(path.getFileName() == null ? path.getRoot().toString():path.getFileName().toString(), nodeType);\r\n this.path = path.toString();\r\n }", "title": "" }, { "docid": "1cfc3eaac14f1a74c69d16e141af358e", "score": "0.5065412", "text": "public Node(String name){\r\n name = \"\";\r\n next = null;\r\n back = null;\r\n }", "title": "" }, { "docid": "1c750520163fa828a70c427aefc16342", "score": "0.50459164", "text": "public void setPath( final Path value ) throws TaskException\n {\n throw new TaskException( \"Using a path not implemented.\" );\n //m_parts = new String[]{ PathUtil.formatPath( value ) };\n }", "title": "" }, { "docid": "41ddef6a1fd6dae5a9052c631a5eea15", "score": "0.503929", "text": "public void setData(final TreePath p, final K role, final JVariant data) {\n\t\tObjects.requireNonNull(data, \"data is null\");\n\t\tObjects.requireNonNull(role, \"role is null\");\n\t\tObjects.requireNonNull(p, \"p is null\");\n\n\t\tverifyEventLoopThread();\n\t\taccessor.setTreePath(p);\n\t\taccessor.set(data, indexLookup.get(role.toString()).intValue());\n\t}", "title": "" }, { "docid": "99f416dfe5571574794c490f7ce25647", "score": "0.5038555", "text": "private static void makeNode(@NotNull Node root, @NotNull List<String> path, @Nullable Icon ic, boolean markConflict) {\n root.isProposedFile = true;\n if (path.isEmpty()) {\n return;\n }\n\n String name = path.get(0);\n\n if (markConflict) {\n if (path.size() == 1 && root.name.equals(name)) {\n root.isConflicted = true;\n return;\n }\n }\n if (root.name.equals(name)) {\n // Continue down along already-created paths\n makeNode(root, rest(path), ic, markConflict);\n } else if (root.hasChild(name)) {\n // Allow paths relative to root (rather than including root explicitly)\n if (markConflict && path.size() == 1) {\n Node targetNode = root.getChild(name);\n targetNode.isConflicted = true;\n targetNode.icon = ic;\n targetNode.isProposedFile = true;\n return;\n }\n //noinspection ConstantConditions\n makeNode(root.getChild(name), rest(path), ic, markConflict);\n } else {\n // If this node in the path doesn't exist, then create it.\n Node n = new Node();\n n.name = name;\n root.children.add(n);\n if (path.size() == 1) {\n // If this is the end of the path, mark with the given icon\n n.icon = ic;\n n.isProposedFile = true;\n } else {\n // Continue down to create the rest of the path\n makeNode(n, rest(path), ic, markConflict);\n }\n }\n }", "title": "" }, { "docid": "a01b57fa4f688f5dd26e0db9e85849c3", "score": "0.5034182", "text": "public void createNewFolder(String path){\r\n\t\tMkColMethod mkCol = new MkColMethod(path);\r\n try {\r\n \thttpClient.executeMethod(mkCol);\r\n\t\t} catch (HttpException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\r\n\t}", "title": "" }, { "docid": "88197801e388b730904109ae221b5667", "score": "0.5029018", "text": "private void setNode(Node node) {\n container.getChildren().clear();\n container.getChildren().add((Node) node);\n }", "title": "" }, { "docid": "5d6462bbe0994739fc4c4ea97ad0bb5e", "score": "0.5023968", "text": "public void insertNode(java.lang.String myName) {\n for (int i = 0; i < nodeValues.length; i++) {\n if (nodeValues[i] == (myName)) {\n throw new IllegalArgumentException();\n }\n }\n if (numNodes < 10) {\n nodeValues[numNodes] = myName;\n numNodes++;\n }\n }", "title": "" }, { "docid": "8bfd14f71d6b491e6947f5e3b519de52", "score": "0.50153345", "text": "void putNode(VirtualNode node);", "title": "" }, { "docid": "cc9ee2831e0be87994e014eb726d512a", "score": "0.50084096", "text": "public FilesystemNodeInformation(String string, Path path, NodeType nodeType) {\r\n super(string, nodeType);\r\n this.path = path.getFileName() == null ? path.getRoot().toString():path.getFileName().toString();\r\n }", "title": "" }, { "docid": "47ba5c33437876e1e0a112ed01be018a", "score": "0.5007347", "text": "public void setPath(Path path)\n {\n _path = path;\n }", "title": "" }, { "docid": "5d2550d7d136acb02ef3864285b1c27b", "score": "0.50061953", "text": "public void setNode(Node m)\n {\n node=m;\n }", "title": "" }, { "docid": "18c86693993ab9b6b3217d17c63a6fb0", "score": "0.500382", "text": "public static void create(String path, byte[] data) throws \n\t KeeperException,InterruptedException {\n\t zk.create(path, data, ZooDefs.Ids.OPEN_ACL_UNSAFE,\n\t CreateMode.PERSISTENT);\n\t }", "title": "" }, { "docid": "2de6ee104b3c2786f2f3e7c6dc50816f", "score": "0.50009674", "text": "abstract void setTree();", "title": "" }, { "docid": "e9f9bc51dc72733eb57549982663be5f", "score": "0.49976337", "text": "@Nonnull\n NodeBuilder setNode(String name, @Nonnull NodeState nodeState);", "title": "" }, { "docid": "ea373bbd462a49879d17f6d848b9a65a", "score": "0.49926966", "text": "@Override\r\n public void setPath(String path) {\r\n \tthis.path = path;\r\n }", "title": "" }, { "docid": "0a0e89978eb2c0c13fe6f445a152f6d3", "score": "0.49831894", "text": "public void setValue(String path, Object value) {\n\t\tif (value == null) {\n\t\t\tthis.store(path, value);\n\t\t\tthis.store(path + \"_extra\", null);\n\t\t}\n\t\telse if (value instanceof Inventory) {\n\t\t\tfor (int i = 0; i < ((Inventory) value).getSize(); i++) {\n\t\t\t\tsetValue(path + \".\" + i, ((Inventory) value).getItem(i));\n\t\t\t}\n\t\t}\n\t\telse if (value instanceof Date) {\n\t\t\tthis.store(path, String.valueOf(((Date) value).getTime()));\n\t\t}\n\t\telse if (value instanceof Long) {\n\t\t\tthis.store(path, value);\n\t\t}\n\t\telse if (value instanceof UUID) {\n\t\t\tthis.store(path, value.toString());\n\t\t}\n\t\telse if (value instanceof Sound) {\n\t\t\tthis.store(path, String.valueOf(value));\n\t\t}\n\t\telse if (value instanceof ItemStack) {\n\t\t\tthis.store(path, new ItemStack((ItemStack) value));\n\t\t}\n\t\telse if (value instanceof Location) {\n\t\t\tsetValue(path + \".x\", ((Location) value).getX());\n\t\t\tsetValue(path + \".y\", ((Location) value).getY());\n\t\t\tsetValue(path + \".z\", ((Location) value).getZ());\n\t\t\tsetValue(path + \".pitch\", ((Location) value).getPitch());\n\t\t\tsetValue(path + \".yaw\", ((Location) value).getYaw());\n\t\t\tsetValue(path + \".worldName\", ((Location) value).getWorld().getName());\n\t\t}\n\t\telse if (value instanceof Chunk) {\n\t\t\tsetValue(path + \".x\", ((Chunk) value).getX());\n\t\t\tsetValue(path + \".z\", ((Chunk) value).getZ());\n\t\t\tsetValue(path + \".worldName\", ((Chunk) value).getWorld().getName());\n\t\t}\n\t\telse if (value instanceof World) {\n\t\t\tthis.store(path, ((World) value).getName());\n\t\t}\n\t\telse this.store(path, value);\n\t}", "title": "" }, { "docid": "93edde89c8c305529a5fe0e48b410979", "score": "0.49775374", "text": "protected abstract boolean updateInfo (final String nodeVal, final FolderInfo finfo);", "title": "" }, { "docid": "83f1370ddeefd7cf392e5fe691073739", "score": "0.4955703", "text": "private void setDataDir(String value) {\n if (value != null) {\n this.bitField0_ |= 512;\n this.dataDir_ = value;\n return;\n }\n throw new NullPointerException();\n }", "title": "" }, { "docid": "2817292a4d1328637637e4f2ad65607e", "score": "0.49540436", "text": "public void setDataPath(String dataPath) {\n\t\tproperties.setProperty(\"datadir\", dataPath);\n\t}", "title": "" }, { "docid": "c4291e7b3332a1633660edc1a9d55b9d", "score": "0.49492195", "text": "private void createRecurse(String path) {\n try {\n if (exists(path)) return;\n curator.framework().create().creatingParentsIfNeeded().forPath(path);\n }\n catch (Exception e) {\n throw new RuntimeException(\"Exception creating path \" + path + \" in ZooKeeper\", e);\n }\n }", "title": "" }, { "docid": "da33e20fa90b74e8069eab907cc776ce", "score": "0.49453673", "text": "public void addNode(String name, int x, int y) { \n\t\t//add a node at pixel (x,y)\n\t\tnodes.add(new Node(name,x,y));\n\t\tthis.repaint();\n }", "title": "" }, { "docid": "a620e95a33396f84bf87505837fe0d61", "score": "0.49393427", "text": "public void setNode(INode n);", "title": "" }, { "docid": "b4e82df6d0d84620ba0fe339d6186402", "score": "0.49346602", "text": "public SLNode(Name data, SLNode next) {\r\n\t\tthis.data = data;\r\n\t\tthis.next = next;\r\n\t}", "title": "" }, { "docid": "daf7ad79a3b5af631cd1c94466f13f90", "score": "0.4934001", "text": "public abstract void setContactNode(ContactNode contactNode);", "title": "" }, { "docid": "17491055f099300a9e8b2e7235a70f18", "score": "0.4932558", "text": "public static void setPath(String path) {\r\n\tif(path == null) {\r\n\t System.err.println(\"New shader path is null\");\r\n\t return;\r\n\t}\r\n\t\r\n\tShader.path = path;\r\n }", "title": "" }, { "docid": "d0355332a756db5041be0b4f42a7a377", "score": "0.492557", "text": "public void setData(Element root) {\r\n this.root = root;\r\n fireDataChanged(\"/\");\r\n }", "title": "" }, { "docid": "d7560e9f994a5b720eb028a40fd5257e", "score": "0.49097228", "text": "public Node(String name, WeightedSet cpt) {\n\t\tthis.name = name;\n\t\tthis.parents = null;\n\t\tthis.cpt = cpt;\n\t\tsampVal = false;\n\t}", "title": "" }, { "docid": "6f4e1fa1171f0c3d180b75de8e75798d", "score": "0.4908715", "text": "public void setChild(int index, Node node) {\r\n\t\tchildren[index] = node;\r\n\t}", "title": "" }, { "docid": "2b8a29a9c085ca8031cbf8fcbcbf9259", "score": "0.4903264", "text": "public void setPath(java.lang.String newPath) {\n\tpath = newPath;\n}", "title": "" }, { "docid": "82fba88e0806724f933b5321e2feb736", "score": "0.48985034", "text": "public void setUserData(UserData userData){\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference myRef = database.getReference();\n myRef = myRef.child(\"Users\").child(userData.getuid());\n myRef.setValue(userData);\n }", "title": "" }, { "docid": "6e75dba657a443785fcf9b23b8b0097a", "score": "0.48975706", "text": "public static void fillPath(String path, String name, List<File> current) \n {\t\n File f = new File(path);\n \n // Add to list if it is just a file\n if (f.isFile()) {\n\t\tcurrent.add(f);\n\t } else if (f.isDirectory()) {\n \t\tif (!path.endsWith(File.separator)) {\n \t\t\tpath += File.separator;\n\t\t }\n\n \t\tString[] list = f.list();\n\n // Process all files recursivly\n for (int i = 0; (list != null) && (i < list.length); i++) {\n \t\t fillPath(path + list[i], list[i], current);\t\n \t\t} \t \n\t }\n }", "title": "" }, { "docid": "b94dd9740f66a7e1cfb15a592702d3ec", "score": "0.48921284", "text": "@Modifying\n @Query(value = UPDATE_NODE_ID, nativeQuery = true)\n void updateNodeId(\n String oldPath,\n String newPath,\n String oldId,\n String newId\n );", "title": "" }, { "docid": "91ea4b1396b44f93987250578bbd87fb", "score": "0.48816076", "text": "public void setName(String name){this.branchName = name;}", "title": "" }, { "docid": "ee9f9fb6154197ff32921fb75dda3e9f", "score": "0.4880264", "text": "public void child(String path){\n ref = ref.child(path);\r\n }", "title": "" }, { "docid": "8c7ed1396e77a631f964d1a9d09380ff", "score": "0.48782247", "text": "public final void setPath(String path) {\n\t\tparsePath(path);\n\t}", "title": "" }, { "docid": "d5dc38a088c16e8794c1d40fe97a9c4e", "score": "0.48756108", "text": "public void set(final String path, final Object obj) {\n\t\tthis.yml.set(path, obj);\n\t}", "title": "" }, { "docid": "b7d2cd4439125895100b21811a347daa", "score": "0.48684907", "text": "public void setNode(Node node) {\n\t\tthis.node = node;\n\t}", "title": "" }, { "docid": "0de776a60baa54c2f1edcfc812f408c7", "score": "0.48628083", "text": "private void setData() throws IOException {\n final ArrayList<NodeData> nodes = new ArrayList<>();\n final ArrayList<EdgeData> edges = new ArrayList<>();\n final ArrayList<Road> roads = new ArrayList<>();\n\n String dir = \"./data/\";\n\n KrakLoader kl = new KrakLoader() {\n @Override\n public void processNode(NodeData nd) {\n nodes.add(nd);\n }\n\n @Override\n public void processEdge(EdgeData ed) {\n edges.add(ed);\n }\n };\n kl.load(dir + \"kdv_node_unload.txt\", dir + \"kdv_unload.txt\");\n\n for (NodeData n : nodes) {\n n.recalc(kl.ymax, kl.xmin);\n }\n for (EdgeData ed : edges) {\n Road rd = new Road(ed, nodes.get(ed.FNODE - 1), nodes.get(ed.TNODE - 1));\n roads.add(rd);\n }\n xmax = kl.xmax - kl.xmin;\n ymax = (-kl.ymin) + kl.ymax;\n qt = new QuadTree(ROOT, null);\n cd = CurrentData.getInstance();\n cd.setXmax(xmax);\n cd.setYmax(ymax);\n for (Road r : roads) {\n qt.insert(r);\n }\n cd.updateArea(new Rectangle2D.Double(0, 0, xmax, ymax));\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "59d9fa61ad4f9715c7769819e9690ff3", "score": "0.0", "text": "@Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width,\n int height) {\n\n }", "title": "" } ]
[ { "docid": "da34ed11fe7c5649b3cd0bdad6dca5df", "score": "0.7115143", "text": "@Override\n\t\tpublic void 비행() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "99cfe01c5035e9a9ca6dafada0e4a005", "score": "0.67343336", "text": "@Override\r\n\tpublic void caminar() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "93de84d0e77a5e19e12e7d0655c39af3", "score": "0.67339545", "text": "@Override\n\tpublic void agit() {\n\t\t\n\t}", "title": "" }, { "docid": "f8d94fd3a365ff0f8b293a42b581cc33", "score": "0.6584661", "text": "@Override\r\n public void caminar() {\r\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "b256767990570c27f4f2479e85bd7f03", "score": "0.64964134", "text": "@Override\r\n\tpublic void otkazi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2104f557428f6e269f61b8f05a73cc43", "score": "0.6485333", "text": "@Override\n\tpublic void repare() {\n\t\t\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.64569044", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "0a93ae79a871bc2bb8787223c8b043a4", "score": "0.6412003", "text": "@Override\n\tpublic void interogare() {\n\t\t\n\t}", "title": "" }, { "docid": "16c30d73c1df796c0e31e93eb0f6e02e", "score": "0.6404783", "text": "@Override\r\n\tpublic void atacar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2e18c1d20c67735ba2db1c70042e02d7", "score": "0.6337855", "text": "@Override\r\n\tpublic void embalar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.626611", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "289f89533edfafac14fcf50ce6d1dcfb", "score": "0.62031794", "text": "@Override\n\t\t\t\t\tpublic void accionSi() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.6193997", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "038aba0c2804848e5fbdbafd6a794e97", "score": "0.6188789", "text": "@Override\r\n\tpublic void genererFacture() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\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": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.60600275", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60484", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60484", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.60443264", "text": "protected void method_3848() {}", "title": "" }, { "docid": "63d27d2836275ed0fc981c7cfae8e737", "score": "0.6031051", "text": "@Override\n\tprotected void init(){\n\t}", "title": "" }, { "docid": "d49d17272b1c32563649e99191745398", "score": "0.6026582", "text": "@Override\n\tpublic void inchide() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.6023586", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "85245b1c9026959162e61e0473f9cf29", "score": "0.5962836", "text": "@Override\n\t\t\t\t\tpublic void accionNo() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "f0512ddbeb7af0b9d9405114f8362f5d", "score": "0.59361994", "text": "private void recupererPliPrecedent() {\n\t}", "title": "" }, { "docid": "66f76462eb0121053379289c39650179", "score": "0.5929797", "text": "public void mo19333b() {\n }", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.592505", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "da5f753a7cd33da8d5581d14337c059f", "score": "0.5909544", "text": "@Override\n\tpublic void tauchen() {\n\t\t\n\t}", "title": "" }, { "docid": "21e83e0c6fdd60581bc05b6e8f682d1e", "score": "0.59009665", "text": "public void mo7875c() {\n }", "title": "" }, { "docid": "cad86041007c052466e6525bc7dcd8c8", "score": "0.5898701", "text": "@Override\r\n\tpublic void trasation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cfd10238a4f026fdd414282790c4920f", "score": "0.58981574", "text": "@Override\r\n\t\tprotected void initData() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "5477922fce309be487fa552d27c3bf32", "score": "0.5887271", "text": "public void mo7873a() {\n }", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5865623", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854053", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "c5648e3463d069bbd00252aa57baecf9", "score": "0.58529", "text": "@Override\r\n\r\n\t\t\tpublic void init() {\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t}", "title": "" }, { "docid": "9a2bf99ecbc04ed75ccb3e865d3d8a64", "score": "0.5851984", "text": "@Override\n public void vypisSudy() {\n }", "title": "" }, { "docid": "9a2bf99ecbc04ed75ccb3e865d3d8a64", "score": "0.5851984", "text": "@Override\n public void vypisSudy() {\n }", "title": "" }, { "docid": "2a6c59f221c7c146ab9267197b8cf257", "score": "0.58494717", "text": "@Override\n\tpublic void prnt() {\n\t\t\n\t}", "title": "" }, { "docid": "451aac44b51bc834350309c1b94be619", "score": "0.5846654", "text": "@Override\r\n\tprotected void speichereSonderwuensche() {\n\t\t\r\n\t}", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.5836237", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5820677", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "97c456611a497fb152db478124462615", "score": "0.5805655", "text": "public void mo7874b() {\n }", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "63519e7beede7b06dcebbca99514f5c5", "score": "0.5800136", "text": "@Override\n\tprotected void salirsePorXIzq() {\n\t\t\n\t}", "title": "" }, { "docid": "c60781d66bd146683572dce40076140d", "score": "0.5792193", "text": "private LIDAR() \n\t\t{\n\n\t\t}", "title": "" }, { "docid": "3138943fc1f99b10746b6218fb0522fe", "score": "0.5788738", "text": "@Override\n public int order() {\n return 1;\n }", "title": "" }, { "docid": "f93772ae3050679cb5cad45b34d90052", "score": "0.5785588", "text": "public void mo36368c() {\n }", "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": "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": "4049f356224496e4636627d70f5c0e9a", "score": "0.5765812", "text": "@Override\n\tpublic void generateData() \n\t{\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "8843ebe8d692b94536f16d5f07fdff4f", "score": "0.57587487", "text": "@Override\n public void update() {\n // TODO Auto-generated method stub\n }", "title": "" }, { "docid": "3013650e7b02771c88bbeb22d93b2660", "score": "0.57571363", "text": "@Override\r\n public String toString(){\n return null;\r\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57416445", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "5485c75c53fb64a169034dd96e00cb59", "score": "0.57348526", "text": "@Override\n public void init() { \n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "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": "c8c5ebd68bae88ac49f0df82efdf5eac", "score": "0.5719438", "text": "@Override\n\tprotected void body()\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "5a8ab197ccef743fd48bf5cf5814c8e3", "score": "0.5714109", "text": "public void atacar(){\n\t\t\r\n\t}", "title": "" }, { "docid": "10ec55a5c701bead54e2106675e8d0e2", "score": "0.5702788", "text": "@Override\n\tpublic void somma() {\n\t\t\n\t}", "title": "" }, { "docid": "ad9858643cb51c92112f1a2ed05ea34e", "score": "0.5702442", "text": "public void mo7876d() {\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "cc445ddeaecb385fbe47df8b7c49ffc4", "score": "0.56983995", "text": "@Override\r\n\tpublic void effectuerRemboursement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "57dab2b5051a2a184d855564327c4b1a", "score": "0.5698314", "text": "@Override\n\tpublic void init() \n\t{\n\n\t}", "title": "" }, { "docid": "01841f81ab35e62f2bd0f7128634a0ab", "score": "0.56905705", "text": "@Override\n\tpublic void laufen() {\n\t\t\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5688991", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4dff52b2278f26ec5d11e194ed9cf5a6", "score": "0.5688383", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "e77a68a99f5bd2a047671668b77c1854", "score": "0.567911", "text": "@Override\n public void generate() {\n }", "title": "" }, { "docid": "2a0ef0804fb04e99e4054007df8500da", "score": "0.56778574", "text": "public void mo11098e() {\n }", "title": "" } ]
8225085e733da49510286ad56b2f13c6
The values below can't be null Every single save attempt should fail
[ { "docid": "8d0015e32292c0b995950f58617a96c3", "score": "0.58011335", "text": "@Test\n public void failWithNullValues() {\n\n // It's possible to simply do this @Test(expected=JpaSystemException.class)\n // but rather than expecting the exception in the scope of the entire method we expect it before each DB call\n\n exception.expect(JpaSystemException.class);\n studentService.save(new Student(null, \"firstname\", \"lastname\", \"2a\", \"\", \"\", new DeviceLogin(\"email1\", \"password\"), new Device(\"serialnumber1\", \"type\")));\n\n exception.expect(JpaSystemException.class);\n studentService.save(new Student(\"same@email\", null, \"lastname\", \"2a\", \"\", \"\", new DeviceLogin(\"email1\", \"password\"), new Device(\"serialnumber1\", \"type\")));\n\n exception.expect(JpaSystemException.class);\n studentService.save(new Student(\"same@email\", \"firstname\", null, \"2a\", \"\", \"\", new DeviceLogin(\"email1\", \"password\"), new Device(\"serialnumber1\", \"type\")));\n\n exception.expect(JpaSystemException.class);\n studentService.save(new Student(\"same@email\", \"firstname\", \"lastname\", null, \"\", \"\", new DeviceLogin(\"email1\", \"password\"), new Device(\"serialnumber1\", \"type\")));\n\n exception.expect(JpaSystemException.class);\n studentService.save(new Student(\"same@email\", \"firstname\", \"lastname\", \"2a\", \"\", \"\", null, new Device(\"serialnumber1\", \"type\")));\n\n exception.expect(JpaSystemException.class);\n studentService.save(new Student(\"same@email\", \"firstname\", \"lastname\", \"2a\", \"\", \"\", new DeviceLogin(\"email1\", \"password\"), null));\n\n Assert.assertEquals(studentService.findAll().size(), 0);\n }", "title": "" } ]
[ { "docid": "b5868526341b05390944bac9f2662bcc", "score": "0.6619909", "text": "public void validateSave(){\t\r\n\r\n\t\tvalidateGeneralInfoSave();\r\n\t}", "title": "" }, { "docid": "e769607167abcda454cabc63a4f73bc3", "score": "0.63273096", "text": "@Test\n public void testSaveMandatoryFields() {\n Organisation savedOrganisation = repository.save(organisation1);\n\n assertNotNull(savedOrganisation.getId());\n assertEquals(organisation1.getName(), savedOrganisation.getName());\n assertEquals(organisation1.getAddress(), savedOrganisation.getAddress());\n assertNull(savedOrganisation.getEmail());\n }", "title": "" }, { "docid": "043f763e04712b10f48b82f51b761cf6", "score": "0.63222814", "text": "@Test\n public void testSaveSurveyAnswers_Unsucess() {\n instance.setAnswer1(\"\");\n instance.setAnswer2(\"\");\n instance.setAnswer3(\"\");\n instance.setAnswer4(\"\");\n instance.saveSurveyAnswers();\n }", "title": "" }, { "docid": "e48582db438c3d1924fb47923bdeb14d", "score": "0.63011986", "text": "public void validateSaveAndNext(){\t\r\n\r\n\t\tvalidateGeneralInfoSave();\r\n\t}", "title": "" }, { "docid": "977bbc9a4f334df6b38613c0e6cb27f5", "score": "0.6200841", "text": "@Override\n public void onSaveFailure() {\n\n }", "title": "" }, { "docid": "c7a10ee282b31be5fe734c6a600333eb", "score": "0.61195344", "text": "@Override\n\tprotected void validateSave(Estoque post) {\n\t\t\n\t}", "title": "" }, { "docid": "d448d4de9fbe776076cf5e2e28c9cc8e", "score": "0.61088353", "text": "public void testIsValidToPersist3() {\n submissionImage.setSubmissionId(1);\n assertFalse(\"the entity is not valid to persist\", submissionImage.isValidToPersist());\n }", "title": "" }, { "docid": "b3285fda2a364fb627be95b8d22e04f2", "score": "0.6051382", "text": "public void validateForSave() throws NSValidation.ValidationException {\n validateObjectMetier();\n validateBeforeTransactionSave();\n super.validateForSave();\n \n }", "title": "" }, { "docid": "c1861623839119eccaf57d90a249257d", "score": "0.601552", "text": "public void testIsValidToPersist4() {\n submissionImage.setImageId(1);\n submissionImage.setSubmissionId(1);\n assertTrue(\"the entity is valid to persist\", submissionImage.isValidToPersist());\n }", "title": "" }, { "docid": "b9f4bd8323f93b379c064b4d7107d654", "score": "0.59988487", "text": "@Override\n\t\tpublic Object save(Object o) throws Exception {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "cfec25c6092f5d3f4cdc61403ed4553e", "score": "0.5929488", "text": "@Override\n\tprotected void validateSave(Produto post) {\n\t\t\n\t}", "title": "" }, { "docid": "26f3febb3c63f5759d9afddd573f8b96", "score": "0.5899966", "text": "private boolean save() {\n return save(null);\n }", "title": "" }, { "docid": "e03a56ef5912bf8f0cf121ee30e2920b", "score": "0.5885546", "text": "@Test\r\n\tpublic void saveTest() {\n\t\tassertEquals(0, customerRepository.count());\r\n\r\n\t\tcustomerRepository.save(mats);\r\n\t\tcustomerRepository.save(thomas);\r\n\t\tassertEquals(2, customerRepository.count());\r\n\t\tOptional<Customer> o = Optional.of(mats);\r\n\t\tassertEquals(o, customerRepository.findById(mats.getId()));\r\n\r\n\t\t// null Id\r\n\t\tCustomer tom = new Customer(\"Tom\", \"Bib\", \"tom@gmx.de\");\r\n\t\ttom.setId(null);\r\n\t\tcustomerRepository.save(tom);\r\n\t\tassertEquals(tom.getId(), customerRepository.findById(tom.getId()).get().getId());\r\n\t\tassertNotNull(tom.getId());\r\n\r\n\t\t// nicht null Id\r\n\t\tString id = (\"1234\");\r\n\t\tCustomer simone = new Customer(\"simone\", \"Bob\", \"simone@gmx.de\");\r\n\t\tsimone.setId(id);\r\n\t\tcustomerRepository.save(simone);\r\n\t\tassertEquals(id, customerRepository.findById(simone.getId()).get().getId());\r\n\r\n\t\t// null-Reference versuchen zu speichern\r\n\t\tassertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcustomerRepository.save(null);\r\n\t\t});\r\n\t\tassertEquals(4, customerRepository.count());\r\n\r\n\t\t// 2 mal selbe Objekt speichern\r\n\t\tcustomerRepository.save(simone);\r\n\t\tassertEquals(4, customerRepository.count());\r\n\r\n\t\t// 2 mal verschiedene Objekte mit selber Id\r\n\t\tCustomer hans = new Customer(\"hans\", \"tump\", \"tump@gmx.de\");\r\n\t\thans.setId(simone.getId());\r\n\t\tcustomerRepository.save(hans);\r\n\t\tassertEquals(4, customerRepository.count());\r\n\t}", "title": "" }, { "docid": "db2a27cdde32b3a9f3347c9dfebed1ca", "score": "0.5859587", "text": "public void testSaveDroitNull() throws MetierException{\n try{\n inspectionService.saveDroit(null);\n }catch (AssertionException e) {\n log.debug(\"testSaveDroitNull ok !\");\n return;\n }\n throw new MetierException(\"testSaveDroitNull NOK - QO NULL\");\n }", "title": "" }, { "docid": "dae11c4fe29d42b6d0622ac3d4e4fda9", "score": "0.58318794", "text": "@Test\n public void testSaveNoValidationAnnotated() {\n Person person = new Person();\n annotatedClient.saveNoValidation(person);\n\n person.setFirstName(\"\"); // empty string is valid\n annotatedClient.saveNoValidation(person);\n\n person.setLastName(\"\"); // empty string is valid\n annotatedClient.saveNoValidation(person);\n }", "title": "" }, { "docid": "c6968d3c4c7aea6c28ce0d351f376b9f", "score": "0.5829098", "text": "@Test\n public void testSave() throws Exception {\n System.out.println(\"save\");\n Location location = new Location();\n location.setDescription(\"Near by lake, right side of dirty road\");\n location.setNearCity(\"Nova ves\");\n location.setName(\"Hribova u vody\");\n \n locDimpl.save(location);\n Long savedLocId = null;\n if(location.getId() != null && location.getId() > 0){\n savedLocId = location.getId();\n }\n assertNotNull(savedLocId);\n \n }", "title": "" }, { "docid": "2e68ac55f38f3a5aba468c8b402eaa17", "score": "0.58036834", "text": "@Override\n public boolean canSave()\n {\n return true;\n }", "title": "" }, { "docid": "7b677e0d72941a0f083541ebc3803465", "score": "0.5772778", "text": "@Override\r\n\t\tpublic Yonetici save(Yonetici obj) {\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "5ffdbe6a2a2cc4a498c576be6804aa87", "score": "0.5766981", "text": "private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n \n }", "title": "" }, { "docid": "269f9fee79f398a0871d52f464f7da27", "score": "0.57648426", "text": "private void saveBicycle() {\n //retrieve input from edit text fields, and check if they're blank\n String pictureString = String.valueOf(mImageUri);\n String modelString = mModelEditText.getText().toString().trim();\n String priceString = mPriceEditText.getText().toString().trim();\n String supplierString = mSupplierEditText.getText().toString().trim();\n\n if (mCurrentBicycleUri == null &&\n TextUtils.isEmpty(modelString) && TextUtils.isEmpty(priceString)\n && TextUtils.isEmpty(supplierString) && mType == BicycleEntry.TYPE_UNKNOWN) {\n //if blank, exit as no changes need be changed\n return;\n }\n\n //before entering values into the ContentValues object, check for null values\n if (pictureString.equals(\"null\")) {\n Toast.makeText(this, getString(R.string.valid_photo), Toast.LENGTH_SHORT).show();\n validData = false;\n } else if (TextUtils.isEmpty(modelString)) {\n Toast.makeText(this, getString(R.string.valid_model), Toast.LENGTH_SHORT).show();\n validData = false;\n } else if (mType < 0) {\n Toast.makeText(this, getString(R.string.valid_type), Toast.LENGTH_SHORT).show();\n validData = false;\n } else if (mQuantity <= 0) {\n Toast.makeText(this, getString(R.string.valid_quantity), Toast.LENGTH_SHORT).show();\n validData = false;\n } else if (TextUtils.isEmpty(priceString)) {\n Toast.makeText(this, getString(R.string.valid_price), Toast.LENGTH_SHORT).show();\n validData = false;\n } else if (TextUtils.isEmpty(supplierString)) {\n Toast.makeText(this, getString(R.string.valid_supplier), Toast.LENGTH_SHORT).show();\n validData = false;\n }\n\n //to enable us to pass data into the database, we need to create a ContentValues object\n ContentValues values = new ContentValues();\n //when error checking passed, enter values into ContentValues object\n values.put(BicycleEntry.COLUMN_BIKE_MODEL, modelString);\n values.put(BicycleEntry.COLUMN_BIKE_TYPE, mType);\n values.put(BicycleEntry.COLUMN_QUANTITY, mQuantity);\n values.put(BicycleEntry.COLUMN_IMAGE, valueOf(mImageUri));\n values.put(BicycleEntry.COLUMN_PRICE, priceString);\n values.put(BicycleEntry.COLUMN_SUPPLIER, supplierString);\n\n //if this is a new bicycle, insert into database\n //notify the user of the success/failure of insertion\n if (mCurrentBicycleUri == null && validData) {\n Uri newBicycleUri = getContentResolver().insert(BicycleContract.CONTENT_URI, values);\n\n if (newBicycleUri == null) {\n Toast.makeText(this, getString(R.string.error_inserting),\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, getString(R.string.insertion_complete),\n Toast.LENGTH_SHORT).show();\n }\n //if this is an existing bicycle, update the database\n //notify the user of the success/failure of update\n } else if (mCurrentBicycleUri != null && validData) {\n int updatedRows = getContentResolver().update(mCurrentBicycleUri, values, null, null);\n if (updatedRows == 0) {\n Toast.makeText(this, getString(R.string.error_updating),\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, getString(R.string.update_complete),\n Toast.LENGTH_SHORT).show();\n }\n }\n }", "title": "" }, { "docid": "ffa6bcaa084d3484f7598181b849ad24", "score": "0.5761986", "text": "@Override\r\n\tpublic boolean canSave() {\n\treturn false;\r\n\t}", "title": "" }, { "docid": "631d5f49d72ce94ce89577e816c49406", "score": "0.57603854", "text": "public void testIsValidToPersist2() {\n submissionImage.setImageId(1);\n assertFalse(\"the entity is not valid to persist\", submissionImage.isValidToPersist());\n }", "title": "" }, { "docid": "b0411af09e2055ec25fabf713674e2a1", "score": "0.5738287", "text": "@Test\n public void setters() {\n // Set different values\n skillValue1.setValue(new Integer(5));\n skillValue1.save();\n\n // Check the new values\n assertEquals(skillValue1.getValue(), new Integer(5));\n }", "title": "" }, { "docid": "80fcbaf19564401ebf5d1c04e9a8458c", "score": "0.57321554", "text": "public void testSaveDroitChampsNull() throws MetierException{\n try{\n final SaveDroitInspecteurQO sDIQO = new SaveDroitInspecteurQO();\n inspectionService.saveDroit(sDIQO);\n }catch (AssertionException e) {\n log.debug(\"testSaveDroitChampsNull ok ! : {0}\", e.getMessage());\n return;\n }\n throw new MetierException(\"testSaveDroitChampsNull NOK - Champs du QO NULL\");\n }", "title": "" }, { "docid": "64a1b9252fd08fddba5f6d28f2ae5922", "score": "0.5731647", "text": "private boolean validateObjectForDB() {\n\t\tboolean l_ret = true;\n\t\tif (m_name.equals(\"\")) {\n\t\t\tm_error_string = \"Unable to add the Subjects. Name is required.\";\n\t\t\tl_ret = false;\n\t\t}\n\t\treturn (l_ret);\n\t}", "title": "" }, { "docid": "d4287c6a073a3c47433047b80ce018e1", "score": "0.5724714", "text": "@Override\n\tpublic <S extends Beneficiary> S save(S arg0) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5377cc3d4ede0e042e1ec03271893bbe", "score": "0.5717577", "text": "@Override\n public void onSaveFailure(String message){\n }", "title": "" }, { "docid": "865f6fb8aa9d0471e058a8cfe4325b05", "score": "0.5711298", "text": "private void validatePut() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t// Not implemented yet.\r\n\r\n\t}", "title": "" }, { "docid": "826437ab817c5146dea213d1cb7f4123", "score": "0.57095087", "text": "@Test\n public void ensureThatNonUniqueEmailsFail() {\n studentService.save(new Student(\"same@email\", \"firstname\", \"lastname\", \"2a\", \"\", \"\", new DeviceLogin(\"email1\", \"password\"), new Device(\"serialnumber1\", \"type\")));\n studentService.save(new Student(\"same@email\", \"firstname\", \"lastname\", \"2a\", \"\", \"\", new DeviceLogin(\"email1\", \"password\"), new Device(\"serialnumber1\", \"type\")));\n\n Assert.assertEquals(studentService.findAll().size(), 1);\n\n }", "title": "" }, { "docid": "b12108a3a0c565d47acb28ad46479157", "score": "0.5689981", "text": "@Override\r\n\tpublic boolean save(Consigness t) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "19e4920bbe30b03967dc0c4fce5a1d74", "score": "0.5688133", "text": "@Override\n\tprotected void validateSave(PedidoCompra post) {\n\t\t\n\t}", "title": "" }, { "docid": "787f9bb2c6913b690a10f95191326457", "score": "0.56731963", "text": "@Override\n public\n void save() {\n // no-op\n }", "title": "" }, { "docid": "94355f0f1117768f6c0748052c45ed39", "score": "0.5671716", "text": "public void reportSavingErrors() {\n reportErrors(false, null);\n }", "title": "" }, { "docid": "a7198db4c464f92bdf0c5a1628cb2121", "score": "0.5652984", "text": "private void save() {\n if (String.valueOf(txt_nim.getText()).equals(null) || String.valueOf(txt_nim.getText()).equals(\"\") ||\n String.valueOf(txt_nama.getText()).equals(null) || String.valueOf(txt_nama.getText()).equals(\"\") ||\n String.valueOf(txt_kelas.getText()).equals(null) || String.valueOf(txt_kelas.getText()).equals(\"\") ||\n String.valueOf(txt_telp.getText()).equals(null) || String.valueOf(txt_telp.getText()).equals(\"\") ||\n String.valueOf(txt_email.getText()).equals(null) || String.valueOf(txt_email.getText()).equals(\"\") ||\n String.valueOf(txt_socmed.getText()).equals(null) || String.valueOf(txt_socmed.getText()).equals(\"\")) {\n Toast.makeText(getApplicationContext(),\n \"Silahakan masukan nim, nama, kelas, no telp, email, atau username instagram\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.insert(txt_nim.getText().toString().trim(), txt_nama.getText().toString().trim(),\n txt_kelas.getText().toString().trim(), txt_telp.getText().toString().trim(),\n txt_email.getText().toString().trim(), txt_socmed.getText().toString().trim());\n blank();\n finish();\n }\n }", "title": "" }, { "docid": "70f63ae8ed331afafc2f8c34544f2a5f", "score": "0.5650157", "text": "@Override\r\n\tpublic Employee save(Employee employee) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "3e171ba16d4b1708d9f4d9d01ef36245", "score": "0.56099564", "text": "@Override\n protected void validateSave(Empresa post) {\n\n }", "title": "" }, { "docid": "9ab60fe30058279ebd0151115f4a2dca", "score": "0.5608229", "text": "@Test\n public void testSave() throws Exception {\n System.out.println(\"save\");\n Long visitId = null;\n visitId = visit.getId();\n Assert.assertNotNull(visitId);\n }", "title": "" }, { "docid": "039924fd10fad8e18ac90084d20bcd7b", "score": "0.55993086", "text": "@Test(expected = IllegalArgumentException.class)\n\tpublic void testNegateSave() {\n\t\tsuper.authenticate(\"handyWorker5\");\n\t\tfinal Finder finder;\n\t\tfinal Finder finderSaved;\n\t\tDate dateFinder;\n\t\tDate dateFinderSaved;\n\n\t\tfinder = this.finderService.findOne(super.getEntityId(\"finder1\"));\n\t\tdateFinder = finder.getLastUpdate();\n\n\t\tfinder.setKeyword(\"fixUpTask\");\n\t\tfinderSaved = this.finderService.save(finder);\n\t\tdateFinderSaved = finderSaved.getLastUpdate();\n\n\t\tAssert.isTrue(dateFinder != dateFinderSaved);\n\t\tAssert.notNull(finderSaved);\n\t\tsuper.unauthenticate();\n\t}", "title": "" }, { "docid": "0d668df8b5d9dccba0106ecb4d96ffc6", "score": "0.55986977", "text": "public void testIsValidToPersist1() {\n assertFalse(\"the entity is not valid to persist\", submissionImage.isValidToPersist());\n }", "title": "" }, { "docid": "950f19f35ec87ac92b3e121bc611284d", "score": "0.5596394", "text": "protected void validate() {\n List<String> missing = new ArrayList<>();\n if (clientId == null) {\n missing.add(\"clientId\");\n }\n if (tenantId == null) {\n missing.add(\"tenantId\");\n }\n if (missing.size() > 0) {\n throw new IllegalArgumentException(\"Must provide non-null values for \"\n + String.join(\", \", missing) + \" properties in \" + this.getClass().getSimpleName());\n }\n }", "title": "" }, { "docid": "0eeab904b4e95161730183248c84611f", "score": "0.5595611", "text": "@Override\n\tpublic boolean save(Account account) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5f8e841a82e548e8da2f42732b257b16", "score": "0.559504", "text": "@Override\n\t\tpublic Album save(Album e) {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "f3702619e9d3a1bdf6b02e06a000988f", "score": "0.55832696", "text": "@Override\n public String validateFields() {\n return null;\n }", "title": "" }, { "docid": "eaad8953c2080e7168b4aefa066f7ce7", "score": "0.5563643", "text": "public void prepareForInsertionIntoDB() {\n\t\tfinal DateTime time = new DateTime();\n\t\tsetCreatedAt(time);\n\t\tsetUpdatedAt(time);\n\n\t\tsetId(null);\n\t}", "title": "" }, { "docid": "37cd710c52aebd5aa000906d45a6934f", "score": "0.5559246", "text": "public void testUpdateUserTypesNull() throws Exception {\n\n try {\n dbUserTypeDAO.updateUserTypes(null);\n fail(\"Should throw IllegalArgumentException\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "title": "" }, { "docid": "202c0a87cb1d88d6655b4ec7f907659d", "score": "0.5554339", "text": "@Override\r\n\tpublic void save() {\n\t\t\r\n\t}", "title": "" }, { "docid": "724275fca2101e323b07e7deb1dd5ac6", "score": "0.55518454", "text": "@Override\n\tpublic String save() throws Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2fd313d598ea3d15d4c6d1b6301baabb", "score": "0.55494666", "text": "protected void save() {\n }", "title": "" }, { "docid": "3d1310c1f04453471ec5fd8de940dedd", "score": "0.5543771", "text": "private void save() {\n if (String.valueOf(txt_judul.getText()).equals(null) || String.valueOf(txt_judul.getText()).equals(\"\") ||\n String.valueOf(txt_kategori.getText()).equals(null) || String.valueOf(txt_kategori.getText()).equals(\"\") ||\n String.valueOf(txt_tahun.getText()).equals(null) || String.valueOf(txt_tahun.getText()).equals(\"\")) {\n Toast.makeText(getApplicationContext(),\n \"Masukkan Data ...\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.insert(txt_judul.getText().toString().trim(), txt_kategori.getText().toString().trim(), txt_tahun.getText().toString().trim());\n blank();\n finish();\n }\n }", "title": "" }, { "docid": "2d0be87b3781bf0d85fe45c1ac7eae6d", "score": "0.5539977", "text": "public void testSaveConfiguration_Map_Null1() throws Exception {\r\n try {\r\n configurationFileManager.saveConfiguration(null);\r\n fail(\"Test failure for saveConfiguration() failed, IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException iae) {\r\n // Success\r\n }\r\n }", "title": "" }, { "docid": "ff8f45f5328e60ce99dbf0f988d06900", "score": "0.55345297", "text": "@Test\n public void saveWithNullValues() {\n TransportLineDTO transportLine = new TransportLineDTO(\n new TransportLine(null, null, null, null, null, null, true));\n HttpHeaders headers = new HttpHeaders();\n headers.add(\"X-Auth-Token\", accessToken);\n HttpEntity<TransportLineDTO> httpEntity = new HttpEntity<>(transportLine, headers);\n\n ResponseEntity<String> result = testRestTemplate.exchange(this.URL, HttpMethod.POST, httpEntity,\n String.class);\n\n String body = result.getBody();\n\n assertThat(result.getStatusCode()).isEqualTo(HttpStatus.BAD_REQUEST);\n assertThat(body).isNotNull();\n assertThat(body).isEqualTo(\"Transport lines have invalid schedule or position associated!\");\n }", "title": "" }, { "docid": "d685f945f2bcb43c164ae958dcbbe004", "score": "0.5529785", "text": "@Test(expected = Exception.class)\n\tpublic void testUpdateNegativeNull() throws TransactionException {\n\t\tthis.countryService.update(null);\n\t}", "title": "" }, { "docid": "c00a2778b138765170c4fa6da51eec97", "score": "0.552392", "text": "@Test\n public void userIsNotUpdatedIfNotAllValuesProvided() {\n\n }", "title": "" }, { "docid": "c7f0508bbe495f57da9e5202cdd2506c", "score": "0.55232495", "text": "@Override\n\tpublic User save(User obj) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8d6d50b38b843d1ce398fb01c9894ee5", "score": "0.552039", "text": "@Override\n public void onSaveSuccess() {\n }", "title": "" }, { "docid": "01b16ddf618e4d29880992165370aaa1", "score": "0.5518532", "text": "@Override\n public Jifen save(Jifen t) {\n return null;\n }", "title": "" }, { "docid": "bac8050257d7f02c0328873e14ef5821", "score": "0.55176526", "text": "@Override\n\tpublic GiongModel save(GiongModel giongModel) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5d3869059e5e7a051e0920bb146c1734", "score": "0.5516591", "text": "@Test\n public void saveEntityServiceMethodExecutedWithNoConstraintViolationReturnTrue() {\n List<String> answers = new ArrayList<>();\n final Set<ConstraintViolation<AdvertisementDto>> violations = validator.validate(advertisementDtoCorrect);\n answers = advertService.saveEntityService(advertisementDtoCorrect);\n assertTrue(violations.isEmpty());\n assertTrue(answers.get(0).equals(\"Object has been saved successfully\"));\n }", "title": "" }, { "docid": "b95f2b92704615dfe380e798aa32c2a0", "score": "0.5507621", "text": "@Override\n\tpublic void save() {\n\n\t}", "title": "" }, { "docid": "94a5daeeccb24aa190c3c3333acc0998", "score": "0.55030787", "text": "public void prepareSave() throws Exception {\n salutations = this.lookupServiceIF.getSalutations(false);\n countries = this.lookupServiceIF.getCountries(false);\n }", "title": "" }, { "docid": "c26954966b5b27e51005fd51e4d8cb31", "score": "0.5500649", "text": "void\t\t\t\tsave() throws Exception;", "title": "" }, { "docid": "a5badd8efd9f275599ed92378eb03ac3", "score": "0.5500371", "text": "@Test\r\n\tvoid testSave()\r\n\t{\n\t\tassertEquals(null, department.retrieve(\"Plan1\"));\r\n\t\tassertEquals(null, department.retrieve(\"Plan2\"));\r\n\t\t\r\n\t\t//Ensure that a null BusinessPlan cannot be saved.\r\n\t\tdepartment.save(null, true);\r\n\t\t\r\n\t\t//Save one BusinessPlan and ensure that it saved properly.\r\n\t\tdepartment.save(planOne, true);\r\n\t\tassertEquals(planOne, department.retrieve(\"Plan1\"));\r\n\t\t\r\n\t\t//Ensure no other plans were added.\r\n\t\tassertEquals(1, department.getPlans().size());\r\n\t\t\r\n\t\t//Ensure that saving a second BusinessPlan works.\r\n\t\tdepartment.save(planTwo, true);\r\n\t\tassertEquals(planTwo, department.retrieve(\"Plan2\"));\r\n\t\tassertEquals(2, department.getPlans().size());\r\n\t\t\r\n\t\t//Create a copy of planOne and planTwo.\r\n\t\tBusinessPlan planOneCopy = new BusinessPlan(\"Plan1\", \"Name1\", \"1\", false);\r\n\t\tBusinessPlan planTwoCopy = new BusinessPlan(\"Plan2\", \"Name2\", \"2\", true);\r\n\t\t\r\n\t\t//Change some BusinessPlans so that we can resave them.\r\n\t\tplanOneCopy.setYear(\"3\");\r\n\t\tplanTwoCopy.setYear(\"4\");\r\n\t\t\r\n\t\t//Ensure that non-editable BusinessPlans cannot be saved by non-admins.\r\n\t\tdepartment.save(planOneCopy, false);\r\n\t\tassertEquals(\"1\", department.retrieve(\"Plan1\").getYear());\r\n\t\t\r\n\t\t//Ensure that non-editable BusinessPlans can be saved by admins.\r\n\t\tdepartment.save(planOneCopy, true);\r\n\t\tassertEquals(\"3\", department.retrieve(\"Plan1\").getYear());\r\n\r\n\t\t//Ensure that the old BusinessPlan was changed and a new one was not added.\r\n\t\tassertEquals(2, department.getPlans().size());\r\n\t\t\r\n\t\t//Ensure that editable BusinessPlans can be saved by Users.\r\n\t\tdepartment.save(planTwoCopy, false);\r\n\t\tassertEquals(\"4\", department.retrieve(\"Plan2\").getYear());\r\n\t\t\r\n\t\t//Ensure that editable BusinessPlans can be saved by admins.\r\n\t\tplanTwoCopy = new BusinessPlan(\"Plan2\", \"Name2\", \"2\", true);\r\n\t\tplanTwo.setYear(\"5\");\r\n\t\tdepartment.save(planTwo, true);\r\n\t\tassertEquals(\"5\", department.retrieve(\"Plan2\").getYear());\r\n\t}", "title": "" }, { "docid": "5bff25e44272ba73d845e7b182c67452", "score": "0.5493358", "text": "@Override\r\n\tpublic boolean save(String sql, Object... obj) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c6740e8aba6e939e2e9bb4deb762a809", "score": "0.54928327", "text": "@Override\n\tpublic User save(User user) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5500304b0a38116a643017db01a11697", "score": "0.5489959", "text": "public boolean save(){\n\t\treturn false;\n\t\t}", "title": "" }, { "docid": "6e48eecce4b7a868fa0723bca87019cc", "score": "0.5488739", "text": "public ValidationFail validate(HashMap<String, Object> values) {\r\n return null;\r\n }", "title": "" }, { "docid": "56af30198dc3cce6f556b602cb004e86", "score": "0.5483377", "text": "@Test\n public void testSaveExamNullObject() {\n try {\n ExamDto exam = null;\n examService.save(exam);\n } catch (Exception response) {\n IOException expectedException = new IOException(\"Exam object is null\\n\");\n assertThat(response, sameBeanAs(expectedException));\n }\n\n }", "title": "" }, { "docid": "b7cea1fa7eeaaab587c7627e7ee9bb5f", "score": "0.54602385", "text": "protected void checkRequiredKeys() {\n\t\tif (this.hasRequiredKeyWithNull())\n\t\t\tthis.isFlawed = true;\n\t}", "title": "" }, { "docid": "211c6453c05c965b3a04843ca303093a", "score": "0.5455744", "text": "@SuppressWarnings(\"RedundantThrows\")\n public void validateFieldValues() throws Exception {\n }", "title": "" }, { "docid": "0d11de29e52b67e91a2d7a686ff3044a", "score": "0.5446253", "text": "public void doSaveForce() { Apply form-level validations (should already have been checked,\n \t\t// but just in case).\n \t\t//\n \t\tif(!formValidations())\n \t\t\treturn;\n \n \t\t// Persist data.\n \t\t//\n \t\tpersistClienteData();\n \t}", "title": "" }, { "docid": "c96b92f95340692ebe985164c08aa84d", "score": "0.54438823", "text": "@Override\r\n\tpublic <S extends Emp> S save(S arg0) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bafc364d11344a4d3b07f098d5572c12", "score": "0.54418075", "text": "@Override\r\n\tpublic boolean validateFields() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "bafc364d11344a4d3b07f098d5572c12", "score": "0.54418075", "text": "@Override\r\n\tpublic boolean validateFields() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "a66a5afd894c5726a0f522e4b36af8f6", "score": "0.54267144", "text": "@Override\n\tpublic Score save(Score t) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ab1784fc9451122117e563fac20e6122", "score": "0.5424623", "text": "private boolean valuesSet() {\r\n if (fName.getText().length() == 0 || lName.getText().length() == 0)\r\n return false;\r\n\r\n if (openBalance.getText().length() == 0)\r\n return false;\r\n\r\n if (date.getValue() == null)\r\n return false;\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "dc7173b162d01bef01952359736a999c", "score": "0.5420872", "text": "@Override\r\n\tprotected boolean setSaveAttributes() throws Exception {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "efa429867d37d64dc02895701ecd33cf", "score": "0.5405975", "text": "@Test(expected = IllegalArgumentException.class)\n\tpublic void testSave2() {\n\t\tSponsorship res;\n\t\tsuper.authenticate(\"handyWorker1\");\n\t\tSponsorship s = this.sponsorshipService.create();\n\t\ts.setBanner(\"http://www.url.com\");\n\t\ts.setTargetPage(\"http://www.targetpage.com\");\n\t\tCreditCard cc = this.creditCardService.create();\n\t\tcc.setBrandName(\"VISA\");\n\t\tcc.setHolderName(\"Mario Casasje\");\n\t\tcc.setNumber(\"1234567890123456\");\n\t\tcc.setExpirationMonth(1);\n\t\tcc.setExpirationYear(24);\n\t\tcc.setCVV(100);\n\t\tcc = this.creditCardService.save(cc);\n\t\ts.setCreditCard(cc);\n\t\tres = this.sponsorshipService.save(s);\n\t\tAssert.notNull(res);\n\t\tAssert.isTrue(res.getSponsor().getSponsorships().contains(s));\n\t\tsuper.unauthenticate();\n\t}", "title": "" }, { "docid": "dbdbc0d0abd0fcba09ebb4741eacb222", "score": "0.5403193", "text": "@Test\n\tpublic void saveValidationTest() throws Exception {\n\t}", "title": "" }, { "docid": "4bd20ae191789144f3f9b81fc5bad25c", "score": "0.54004747", "text": "@Test\r\n\t//@Rollback(false)\r\n\tpublic void saveEmployeeTest() {\r\n\t\t\r\n\t\tEmployee employee = new Employee(\"hr\",\"minu\");\r\n\t \temployeeRepository.save(employee);\r\n\t\tAssertions.assertThat(employee.getId()).isGreaterThan(0); \r\n\t}", "title": "" }, { "docid": "e1bf7323de27aa9e44bb87cc3a529535", "score": "0.53871655", "text": "@Test(expected = IllegalArgumentException.class)\n public void testAppendNullEditor() {\n model1.append(null);\n }", "title": "" }, { "docid": "8d4259739f0a0f82024c3504c9560666", "score": "0.5386896", "text": "public void testUpdateToEmpty()\r\n {\r\n PersistenceManager pm = pmf.getPersistenceManager();\r\n Transaction tx = pm.currentTransaction();\r\n try\r\n {\r\n // update values\r\n tx.begin();\r\n SetHolder sh1 = (SetHolder) pm.getObjectById(id);\r\n sh1.getTheStrings().clear();\r\n sh1.getAnotherStrings().clear();\r\n sh1.getTheFloats().clear();\r\n sh1.getTheDoubles().clear();\r\n sh1.getTheBooleans().clear();\r\n sh1.getTheCharacters().clear();\r\n sh1.getTheBytes().clear();\r\n sh1.getTheShorts().clear();\r\n sh1.getTheIntegers().clear();\r\n sh1.getTheLongs().clear();\r\n sh1.getTheBigIntegers().clear();\r\n sh1.getTheBigDecimals().clear();\r\n sh1.getTheCurrencies().clear();\r\n sh1.getTheLocales().clear();\r\n sh1.getTheTimeZones().clear();\r\n sh1.getTheUUIDs().clear();\r\n sh1.getTheEnums().clear();\r\n tx.commit();\r\n\r\n // assert null values\r\n pm = pmf.getPersistenceManager();\r\n tx = pm.currentTransaction();\r\n tx.begin();\r\n SetHolder sh2 = (SetHolder) pm.getObjectById(id);\r\n assertTrue(sh2.getTheStrings().isEmpty());\r\n assertTrue(sh2.getAnotherStrings().isEmpty());\r\n assertTrue(sh2.getTheFloats().isEmpty());\r\n assertTrue(sh2.getTheDoubles().isEmpty());\r\n assertTrue(sh2.getTheBooleans().isEmpty());\r\n assertTrue(sh2.getTheCharacters().isEmpty());\r\n assertTrue(sh2.getTheBytes().isEmpty());\r\n assertTrue(sh2.getTheShorts().isEmpty());\r\n assertTrue(sh2.getTheShorts().isEmpty());\r\n assertTrue(sh2.getTheIntegers().isEmpty());\r\n assertTrue(sh2.getTheLongs().isEmpty());\r\n assertTrue(sh2.getTheBigIntegers().isEmpty());\r\n assertTrue(sh2.getTheBigDecimals().isEmpty());\r\n assertTrue(sh2.getTheCurrencies().isEmpty());\r\n assertTrue(sh2.getTheLocales().isEmpty());\r\n assertTrue(sh2.getTheTimeZones().isEmpty());\r\n assertTrue(sh2.getTheUUIDs().isEmpty());\r\n assertTrue(sh2.getTheEnums().isEmpty());\r\n }\r\n finally\r\n {\r\n if (tx.isActive())\r\n {\r\n tx.rollback();\r\n }\r\n pm.close();\r\n }\r\n }", "title": "" }, { "docid": "87cbccdc9deef267d8ee343a9c952a6b", "score": "0.53852385", "text": "@Test(expected = Exception.class)\n\tpublic void testInsertNegativeNull() throws TransactionException {\n\t\tthis.countryService.insert(null);\n\t}", "title": "" }, { "docid": "84345ad06b8d7a9329fcc52aac9de0e4", "score": "0.5384928", "text": "@Override\n\tpublic boolean needsSaving(boolean p_76601_1_) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "366aa27d1175668da30e2a769c525aa6", "score": "0.53840834", "text": "public void prepareForUpdateIntoDB() {\n\t\tfinal DateTime time = new DateTime();\n\t\tthis.setCreatedAt(null);\n\t\tthis.setUpdatedAt(time);\n\t}", "title": "" }, { "docid": "fc85fe9d8de78608eb3b03bfa1d444d8", "score": "0.53764296", "text": "public User saveUser(User user){\n return null;\n }", "title": "" }, { "docid": "c2a30bb90f550ce2e1a5fa8c629bff40", "score": "0.53674513", "text": "@Override\n\tpublic boolean save(Student student) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "32b2b6d91e2d1a214bd8d8fe01ca4b9b", "score": "0.5363296", "text": "@Override\n\tpublic int validateAndSaveAll(List<StudentEntity> studententityList) {\n\t\ttry {\n\t\t\tstudentrepository.saveAll(studententityList);\n\t\t\treturn 1;\n\t\t} catch(Exception e) {\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "e84f42fc2728ddfbe23442e6b324e6f1", "score": "0.5362349", "text": "@Test\n public void testSaveSurveyAnswers_Sucess() {\n instance.setEmail(email);\n instance.setAnswer1(\"A\");\n instance.setAnswer2(\"B\");\n instance.setAnswer3(\"C\");\n instance.setAnswer4(\"D\");\n instance.saveSurveyAnswers();\n }", "title": "" }, { "docid": "0630f0ec45e03350f66b8f0bf0ac5b0b", "score": "0.53601235", "text": "private boolean onSave() {\n if(txtFirstName.getText().equals(\"\") || txtFirstName == null){\n txtFirstName.setPromptText(\"Field is required\");\n return false;\n }\n if(txtLastName.getText().equals(\"\") || txtLastName == null){\n txtLastName.setPromptText(\"Field is required\");\n return false;\n }\n\n if(txtPhone.getText().equals(\"\") || txtPhone == null){\n txtPhone.setPromptText(\"Phone Number is required\");\n return false;\n }\n if(txtAddress.getText().equals(\"\") || txtAddress == null){\n txtAddress.setPromptText(\"Address line 1 is required\");\n return false;\n }\n\n int phoneNumber;\n try{\n phoneNumber = Integer.parseInt(txtPhone.getText());\n }catch(NumberFormatException e){\n txtPhone.setText(\"Invalid character at phone number\");\n return false;\n }\n\n\n User mUser = new User(SystemController.user.getUserName(),txtFirstName.getText(), txtLastName.getText(), String.valueOf(phoneNumber), txtAddress.getText());\n Data.saveUser(mUser);\n return true;\n }", "title": "" }, { "docid": "9163e80fd5e68e5fc099f047d3137bfd", "score": "0.53596956", "text": "public void testSaveConfiguration_Map_NullValue() throws Exception {\r\n try {\r\n Map configMap = new HashMap();\r\n configMap.put(\"config\", null);\r\n configurationFileManager.saveConfiguration(configMap);\r\n fail(\"Test failure for saveConfiguration() failed, IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException iae) {\r\n // Success\r\n }\r\n }", "title": "" }, { "docid": "0872f21cb8d1c9791bd5e9eb4750147b", "score": "0.5359534", "text": "@Override\n\tpublic TeeJsonProxy beforeSave() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b07c8e91ddedd5fd08276b9bbfa02dfe", "score": "0.53591686", "text": "@Override\n public BaseEntity save() {\n return this.save((EntityManager) null);\n }", "title": "" }, { "docid": "7cb152e2953af18308f32252e4739ffe", "score": "0.5358444", "text": "public void testSiteBizLogicAddWithNullType()\r\n\t{\r\n\t\tUser coordinator = new User() ;\r\n\t\tUser user1 = new User();\r\n\t\tUserBizLogic bizLogic = new UserBizLogic();\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcoordinator = (User) bizLogic.retrieve(\"edu.wustl.catissuecore.domain.User\",\r\n\t\t\t\t\tLong.valueOf(1)) ;\r\n\t\t}\r\n\t\tcatch (BizLogicException e1)\r\n\t\t{\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tSite site = new Site() ;\r\n\t\tsite.setName(\"ShriSite_\" + UniqueKeyGeneratorUtil.getUniqueKey()) ;\r\n\t\tsite.setType(null);\r\n\t\tsite.setEmailAddress(\"admin@admin.com\");\r\n\t\tsite.setCoordinator(coordinator);\r\n\t\tsite.setAddress(coordinator.getAddress()) ;\r\n\t\tsite.setActivityStatus(coordinator.getActivityStatus());\r\n\t\t\r\n\t\tSiteBizLogic siteBizLogic = new SiteBizLogic() ;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tsiteBizLogic.insert(site, CaTissueSuiteTestUtil.USER_SESSION_DATA_BEAN) ;\r\n\t\t\tassertFalse(\"Site Object Type Is NULL while inserting through SiteBizLogic\", true);\r\n\t\t}\r\n\t\tcatch (BizLogicException e)\r\n\t\t{\r\n\t\t\tlogger.error(\"Exception in SiteTestCase :\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "95c00a238088e69bf2dcf63c23c179c1", "score": "0.5356597", "text": "@Override\n\tpublic void save() {\n\t\t\n\t}", "title": "" }, { "docid": "95c00a238088e69bf2dcf63c23c179c1", "score": "0.5356597", "text": "@Override\n\tpublic void save() {\n\t\t\n\t}", "title": "" }, { "docid": "bd99533a0fa12f52d47a90141398008b", "score": "0.5352537", "text": "@Override\n protected void save() throws Exception {\n FormuleRisque formuleRisque = (FormuleRisque) getFormModel()\n .getObject();\n\n // On valide les slaveList pour éviter des problèmes hibernate et pour\n // avoir l'ensemble des messages d'erreurs.\n // les messages d'erreurs déclénchés sur les fils de la formuleRisque posent probleme car l'id\n // de la formule risque a était généré avant.\n RuleReport ruleReport = ValidatorUtils.validateObject(formuleRisque);\n //RuleReport ruleReport = formuleRisque.validate();\n\n if (!ruleReport.isEmpty()) {\n throw new RuleException(ruleReport);\n } else if (getFormView().isModified()) {\n customSave(formuleRisque);\n super.save();\n }\n }", "title": "" }, { "docid": "16ac9873270f7b400561a5dfaaa1332d", "score": "0.53485656", "text": "@Test\n void save() {\n Optional<UserEntity> userFound;\n\n userRepository.save(DataTest.USER_TEST_1);\n userFound = userRepository.findByEmail(\"test@test.com\");\n\n assertTrue(userFound.isPresent());\n assertEquals(DataTest.USER_TEST_1.getEmail(), userFound.get().getEmail());\n assertEquals(DataTest.USER_TEST_1.getName(), userFound.get().getName());\n assertEquals(DataTest.USER_TEST_1.getId(), userFound.get().getId());\n }", "title": "" }, { "docid": "4fd6e9594b457cdc6e4c22807f857639", "score": "0.5344583", "text": "@Override\n\tpublic void save(NoReason reason) {\n\t\tsession.saveOrUpdate(reason);\n\t}", "title": "" }, { "docid": "a8a8accbc52a70a964414ba2dda3b8cf", "score": "0.53408414", "text": "@Test\n\tvoid test2_saveOrUpdate_ThrowPatientException() {\n\t\tPatient patient = new Patient(\"Pa01\",\"abc\",22,97401348L,\"xyz\");\n\t\tBDDMockito.given(patientRepository.save(patient)).willThrow(new PatientException());\n\t\tassertThrows(PatientException.class, ()->patientService.saveOrUpdate(patient));\n\t}", "title": "" }, { "docid": "dfca193f551755f9789c21f677558fb1", "score": "0.53324324", "text": "@Override\n public Usuario save(Usuario entity) {\n return null;\n }", "title": "" } ]
7314c8898b8e5efc719574e980b00d2e
Test case number: 24 /Coverage entropy=1.3862943611198906
[ { "docid": "0ae8b88f37f2a74a7a28f54f256d2409", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test024() throws Throwable {\n HashMap<String, Long> hashMap0 = new HashMap<String, Long>();\n JSONObject jSONObject0 = new JSONObject((Map) null);\n jSONObject0.optJSONObject((String) null);\n JSONArray jSONArray0 = jSONObject0.optJSONArray((String) null);\n assertNull(jSONArray0);\n }", "title": "" } ]
[ { "docid": "d6df76b4cd9e17e2c3e4b99debdb01f6", "score": "0.73250127", "text": "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.coverageOfTestCasesByPredictedRegions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "title": "" }, { "docid": "28fc1c03589c689478e686556e2e01ff", "score": "0.69511276", "text": "@Test\n public void test28() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"LzUl=-U!>\", true);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "title": "" }, { "docid": "d16371413e002b2d8e04f3fe250eadc7", "score": "0.6812036", "text": "@Test\n public void test12() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "title": "" }, { "docid": "1e076fed62c990d73299d563576ffae4", "score": "0.6782267", "text": "@Test(timeout = 4000)\n public void test014() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n costMatrix0.initialize();\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n evaluation0.toSummaryString(\".arff\", true);\n String string0 = evaluation0.toSummaryString(\"@data\", false);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"@data\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "45558a2f8e85852a55243c9d83489ac4", "score": "0.67214334", "text": "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "70ed22b84aebe1102b77c4bf7aacbb48", "score": "0.6661481", "text": "@Test\n public void test31() throws Throwable {\n AdditiveRegression additiveRegression0 = new AdditiveRegression();\n Capabilities capabilities0 = additiveRegression0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate(\"setOptions\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(1774.70273682);\n assertArrayEquals(new double[] {1774.70273682}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "96ec9f7aa97af13ced46aea15561aa02", "score": "0.66027415", "text": "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n MockRandom mockRandom0 = new MockRandom();\n boolean[] booleanArray0 = new boolean[7];\n booleanArray0[0] = true;\n booleanArray0[1] = true;\n booleanArray0[2] = true;\n booleanArray0[3] = true;\n booleanArray0[4] = false;\n booleanArray0[5] = false;\n booleanArray0[6] = true;\n textDirectoryLoader0.getDataSet();\n instances0.resampleWithWeights((Random) mockRandom0, booleanArray0);\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double double0 = evaluation0.m_SumPriorEntropy;\n double double1 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double1, 0.01);\n \n double double2 = evaluation0.matthewsCorrelationCoefficient(1243);\n assertEquals(0.0, double2, 0.01);\n }", "title": "" }, { "docid": "a778a1ec3c09a8a4e9807f175bed9ab6", "score": "0.659445", "text": "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.m_SumClass;\n String string0 = evaluation0.toSummaryString();\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "4be36023b9506f0fe469cbffbfb571e3", "score": "0.6585727", "text": "@Test\n public void test08() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"zUl=-U!>\", false);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "928ec49755c160eca8f8e6438653dbca", "score": "0.65613467", "text": "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01);\n \n double double1 = evaluation0.falseNegativeRate(0);\n assertEquals(0.0, double1, 0.01);\n \n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "bec4928214a9054453d8848402de9a81", "score": "0.6488559", "text": "@Test\n public void test11() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "e18a904c7be6dd7dc3afae3e3d935dcb", "score": "0.64726865", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n textDirectoryLoader0.setRetrieval(100000);\n evaluation0.toSummaryString();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \"@relation\");\n CostMatrix costMatrix0 = new CostMatrix(7);\n evaluation0.recall(0);\n evaluation0.weightedMatthewsCorrelation();\n int[] intArray0 = new int[3];\n intArray0[0] = 0;\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n regressionByDiscretization0.setDeleteEmptyBins(false);\n double double0 = evaluation0.coverageOfTestCasesByPredictedRegions();\n assertEquals(Double.NaN, double0, 0.01);\n \n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "4b9ee5074ea12292494f23641e368910", "score": "0.642127", "text": "@Test(timeout = 4000)\n public void test43() throws Throwable {\n JRip jRip0 = new JRip();\n double[] doubleArray0 = new double[0];\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(2576.86, doubleArray0);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, (String) null);\n Attribute attribute0 = new Attribute((String) null);\n binarySparseInstance0.setValue(attribute0, (-713.7029286));\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n boolean boolean0 = jRip_NominalAntd0.covers(binarySparseInstance0);\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertFalse(boolean0);\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n }", "title": "" }, { "docid": "825ea4dbbb73bf07e85bbc96571ca987", "score": "0.6394554", "text": "@Test\n public void test09() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n }", "title": "" }, { "docid": "765aabea734e44b10569de16c4f71ed8", "score": "0.6358429", "text": "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_CoverageStatisticsAvailable = false;\n double double0 = evaluation0.weightedMatthewsCorrelation();\n double double1 = evaluation0.coverageOfTestCasesByPredictedRegions();\n assertEquals(double1, double0, 0.01);\n \n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n \n GaussianProcesses gaussianProcesses0 = new GaussianProcesses();\n evaluation0.equals(gaussianProcesses0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "03fa8eecc763846ad4b52e440f4963fe", "score": "0.63478076", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n SparseInstance sparseInstance0 = new SparseInstance(120);\n instances0.deleteWithMissingClass();\n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n \n double double1 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double1, 0.01);\n }", "title": "" }, { "docid": "f05d20bbcc0261c170c2ffa44521c16f", "score": "0.62702614", "text": "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "ffdf504bca7096b6b62a4b7b51266eba", "score": "0.6259668", "text": "@Test(timeout = 4000)\n public void test010() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedTrueNegativeRate();\n evaluation0.setNumericPriorsFromBuffer();\n evaluation0.setNumericPriorsFromBuffer();\n double[] doubleArray0 = new double[4];\n doubleArray0[0] = (double) 59;\n doubleArray0[2] = 202.6;\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 2.0);\n double double1 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(double1, double0, 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double1, 0.01);\n }", "title": "" }, { "docid": "f96a0aaab37d7488bc445516b8d55c55", "score": "0.6258255", "text": "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "da65591930d1a5692670c96825f9221e", "score": "0.62532544", "text": "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n textDirectoryLoader0.setOutputFilename(true);\n CostMatrix costMatrix0 = new CostMatrix(0);\n textDirectoryLoader0.setCharSet(\"classifiersTipText\");\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n \n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "d9ecd407f1fc3f0588c72936212d5549", "score": "0.6229424", "text": "@Test(timeout = 4000)\n public void test005() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double double0 = evaluation0.errorRate();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "c2dfc45070722d3e6179b84bfbb28281", "score": "0.6209473", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n LinkedList<SGD> linkedList0 = new LinkedList<SGD>();\n SGD sGD0 = new SGD();\n FileSystemHandling.shouldAllThrowIOExceptions();\n instances0.removeAll(linkedList0);\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[1];\n textDirectoryLoader0.getDataSet();\n doubleArray0[0] = (double) 0;\n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n databaseLoader0.getNextInstance(instances0);\n Evaluation evaluation1 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString(\":\\n\\n\");\n assertEquals(\":\\n\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n \n double double0 = evaluation1.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "0587e50e9925562c252a95f819808dbd", "score": "0.6192182", "text": "@Test(timeout = 4000)\n public void test008() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double double0 = Evaluation.MIN_SF_PROB;\n evaluation0.setDiscardPredictions(false);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"setFolds\");\n CoverTree coverTree0 = new CoverTree();\n assertEquals(1.3, coverTree0.getBase(), 0.01);\n }", "title": "" }, { "docid": "932939b848e4cd1297dd7ffe8d5ae4d5", "score": "0.6189153", "text": "@Test\n public void testEstimateErrorRateForBigCardinalities() {\n double stdError = (1.04 / Math.sqrt(1 << precision())) * 100;\n double maxError = Math.ceil(stdError + 3.0);\n\n IntHashSet actualCount = new IntHashSet(runLength(), -1);\n Random random = new Random();\n Histogram histogram = new Histogram(5);\n ByteBuffer bb = ByteBuffer.allocate(4);\n\n int sampleStep = 100;\n long expected;\n long actual;\n\n for (int i = 1; i <= runLength(); i++) {\n int toCount = random.nextInt();\n actualCount.add(toCount);\n\n bb.clear();\n bb.putInt(toCount);\n encoder.add(HashUtil.MurmurHash3_x64_64(bb.array(), 0, bb.array().length));\n\n if (i % sampleStep == 0) {\n expected = actualCount.size();\n actual = encoder.estimate();\n double errorPct = ((actual * 100.0) / expected) - 100;\n histogram.recordValue(Math.abs((long) (errorPct * 100)));\n }\n }\n\n double errorPerc99 = histogram.getValueAtPercentile(99) / 100.0;\n if (errorPerc99 > maxError) {\n fail(\"For P=\" + precision() + \", max error=\" + maxError + \"% expected.\"\n + \" Error: \" + errorPerc99 + \"%.\");\n }\n }", "title": "" }, { "docid": "1980a097b8ee60cb94fb0fb44d6dd41c", "score": "0.6178832", "text": "@Test\n public void test26() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toMatrixString();\n assertEquals(\"=== Confusion Matrix ===\\n\\n <-- classified as\\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "fa00c0d155d7c9a7180f5df713434a4c", "score": "0.6154418", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n double[] doubleArray0 = new double[3];\n doubleArray0[0] = 1732.955775904258;\n doubleArray0[1] = 1732.955775904258;\n doubleArray0[2] = 1732.955775904258;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1732.955775904258, doubleArray0);\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n binarySparseInstance0.setMissing(attribute0);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n jRip_NumericAntd0.value = 1.0;\n jRip_NumericAntd0.accuRate = (double) 2;\n jRip_NumericAntd0.covers(binarySparseInstance0);\n System.setCurrentTimeMillis(1);\n Random.setNextRandom(2);\n }", "title": "" }, { "docid": "19279c06f64a6a088be60bd0c1c5a053", "score": "0.61048156", "text": "@Test(timeout = 4000)\n public void test64() throws Throwable {\n double[] doubleArray0 = new double[3];\n doubleArray0[0] = 1732.955775904258;\n doubleArray0[1] = 1732.955775904258;\n doubleArray0[2] = 1732.955775904258;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1732.955775904258, doubleArray0);\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n SparseInstance sparseInstance0 = new SparseInstance(1);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"SQ%F4p<7Wb\", arrayList0, 1);\n instances0.add((Instance) binarySparseInstance0);\n binarySparseInstance0.setMissing(attribute0);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n jRip_NumericAntd0.covers(sparseInstance0);\n System.setCurrentTimeMillis(1);\n Random.setNextRandom(3);\n }", "title": "" }, { "docid": "000ff4e5fd4fd6cb2d75fe37a3628a8c", "score": "0.6101754", "text": "@Test\n public void levelOfEvidenceTest() {\n // TODO: test levelOfEvidence\n }", "title": "" }, { "docid": "6ab0176bbe6b8ad90fb6351ea883fba1", "score": "0.6088236", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.globalInfo();\n assertEquals(3, jRip0.getFolds());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getUsePruning());\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n }", "title": "" }, { "docid": "fa2896d45f38d5381aa00d0235ff545c", "score": "0.607817", "text": "@Test\n public void test07() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString(\"The first argument must be the class name of a classifier\");\n assertEquals(\"The first argument must be the class name of a classifier\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "86cb608aeed261199a7a49535035bda5", "score": "0.60634774", "text": "@Test\n public void test10() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "title": "" }, { "docid": "74a1ec398c11b8c9b8666539e6c0447a", "score": "0.6057447", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n JRip jRip0 = new JRip();\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd((Attribute) null);\n String string0 = jRip_NumericAntd0.getRevision();\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getSplitPoint(), 0.01);\n assertEquals(\"8118\", string0);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n assertEquals(3, jRip0.getFolds());\n }", "title": "" }, { "docid": "fa88eb8e24179f2249e654e5ec04c9ee", "score": "0.6038236", "text": "private float entropy(int occurences, int total){\r\n\t\tif(occurences == 0)\r\n\t\t\treturn 0;\r\n\t\tfloat ratio = (float) occurences/total;\r\n\t\tfloat rslt = ratio * ((float)(Math.log(ratio)) / (float)(Math.log(2)));\r\n\t\t//System.out.println(rslt);\r\n\t\treturn -rslt;\r\n\t}", "title": "" }, { "docid": "a50f3866d136e80efcd053a4e17ed74b", "score": "0.5988773", "text": "@Test(timeout = 4000)\n public void test016() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n String[] stringArray0 = new String[4];\n stringArray0[0] = \".cost\";\n stringArray0[1] = \".bsi\";\n stringArray0[2] = \"numBinsTipText\";\n stringArray0[3] = \".cost\";\n textDirectoryLoader0.setOptions(stringArray0);\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte)97;\n byteArray0[1] = (byte)97;\n byteArray0[2] = (byte)97;\n byteArray0[3] = (byte)12;\n byteArray0[4] = (byte)97;\n byteArray0[5] = (byte)70;\n byteArray0[6] = (byte)97;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n // Undeclared exception!\n try { \n evaluation0.makeDistribution(423.28734579);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 423\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "4369e1f86016ab49582f630a2ce068b2", "score": "0.598001", "text": "@Test\n public void test03() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unweightedMacroFmeasure();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "c2ad9fddd739c602efa2cb6581be6bb7", "score": "0.59608066", "text": "@Test(timeout = 4000)\n public void test009() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedTrueNegativeRate();\n assertEquals(Double.NaN, double0, 0.01);\n \n evaluation0.setNumericPriorsFromBuffer();\n Evaluation evaluation1 = new Evaluation(instances0);\n double double1 = evaluation1.numInstances();\n assertEquals(0.0, double1, 0.01);\n }", "title": "" }, { "docid": "1906809bdca6935f39ee7064dcb270ab", "score": "0.59432167", "text": "@Test\n public void test27() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedRecall();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "2dc64acab6c4a5c94d5389928a4e65dc", "score": "0.59411705", "text": "@Test(timeout = 4000)\n public void test45() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"5.\", (-1514));\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n SparseInstance sparseInstance0 = new SparseInstance(0);\n boolean boolean0 = jRip_NominalAntd0.covers(sparseInstance0);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertTrue(boolean0);\n assertFalse(jRip0.getDebug());\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n }", "title": "" }, { "docid": "2a1f1b252b9ed301cb1999bc48bc0d20", "score": "0.5936595", "text": "@Test(timeout = 4000)\n public void test38() throws Throwable {\n JRip jRip0 = new JRip();\n ArrayList<String> arrayList0 = new ArrayList<String>();\n Attribute attribute0 = new Attribute(\"^IB-wDX7 %a$Q&/g\", arrayList0);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n String string0 = jRip_NominalAntd0.getRevision();\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(1L, jRip0.getSeed());\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(\"8118\", string0);\n }", "title": "" }, { "docid": "1bd0da2d51e68d1a5d4e880fa23f9a58", "score": "0.59280175", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n JRip jRip0 = new JRip();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"mAGk+F.!yh\", protectedProperties1);\n attribute0.copy(\"mAGk+F.!yh\");\n Attribute attribute1 = attribute0.copy(\"\");\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute1);\n double double0 = jRip_NumericAntd0.getSplitPoint();\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n }", "title": "" }, { "docid": "267c51869f6dd106c2219b21bea56d8f", "score": "0.5915358", "text": "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.kappa();\n assertEquals(1.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "09be16c156c4e4f5f8fc4204d68a2dfd", "score": "0.59076035", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n SparseInstance sparseInstance0 = new SparseInstance(120);\n instances0.deleteWithMissingClass();\n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n \n evaluation0.setDiscardPredictions(false);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "0e14853e410eedb4bc85ae5c5174c85c", "score": "0.5904955", "text": "@Test\n public void testPhenoMatchScore() throws IOException {\n \n System.out.println(\"phenoMatchScore\");\n HashSet<Term> terms = new HashSet<Term>();\n terms.add(phenotypeData.getTermIncludingAlternatives(\"EP:06\"));\n \n // build gene A of example data set\n ArrayList<String> genePhenotypes = new ArrayList<String>();\n genePhenotypes.add(\"EP:04\");\n genePhenotypes.add(\"EP:05\"); \n Gene geneA = new Gene(\"chr1\", 26, 32, \"geneA\", genePhenotypes);\n geneA.setPhenotypeTerms( new HashSet<Term>() );\n geneA.addPhenotypeTerm(phenotypeData.getTermIncludingAlternatives(\"EP:04\"));\n geneA.addPhenotypeTerm(phenotypeData.getTermIncludingAlternatives(\"EP:05\"));\n \n System.out.println(\"terms: \" + terms);\n System.out.println(\"gene A phenotypes: \" + geneA.getPhenotypeTerms());\n // DEBUG IC of terms in example data\n System.out.println(\"EP:00: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:00\")));\n System.out.println(\"EP:01: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:01\")));\n System.out.println(\"EP:02: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:02\")));\n System.out.println(\"EP:03: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:03\")));\n System.out.println(\"EP:04: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:04\")));\n System.out.println(\"EP:05: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:05\")));\n System.out.println(\"EP:06: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:06\")));\n \n \n // expect sum IC of most specific common terms for each gene phenotype\n double expResult = phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:04\"));\n expResult += phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:05\"));\n double result = phenotypeData.phenoMatchScore(terms, geneA);\n \n assertEquals(expResult, result, 0.001);\n \n }", "title": "" }, { "docid": "c02f6b09a9799aa3010856ee1aba676a", "score": "0.5886309", "text": "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n SMOreg sMOreg0 = new SMOreg();\n Capabilities capabilities0 = sMOreg0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate(\"weka/core/Capabilities.props\");\n Evaluation evaluation0 = new Evaluation(instances0);\n instances0.getRevision();\n Object object0 = new Object();\n try { \n evaluation0.toClassDetailsString();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Evaluation: No per class statistics possible!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "4a18d3105870d5874fe398937b41a13e", "score": "0.58800894", "text": "@Test(timeout = 4000)\n public void test018() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 0;\n doubleArray0[1] = (double) 0;\n doubleArray0[2] = (double) 0;\n doubleArray0[3] = (double) 0;\n doubleArray0[4] = (double) 0;\n doubleArray0[6] = (double) 0;\n String string0 = evaluation0.toMatrixString();\n assertEquals(\"=== Confusion Matrix ===\\n\\n <-- classified as\\n\", string0);\n }", "title": "" }, { "docid": "daf2f93fcf30bfc75a829efb7413b259", "score": "0.5865428", "text": "@Test(timeout = 4000)\n public void test41() throws Throwable {\n JRip jRip0 = new JRip();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n JRip jRip1 = new JRip();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Attribute attribute0 = new Attribute(\"weka.classifiers.rules.JRip$RipperRule\", linkedList0, 71);\n Attribute attribute1 = attribute0.copy(\"weka.classifiers.rules.JRip$RipperRule\");\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute1);\n JRip.NominalAntd jRip_NominalAntd1 = jRip0.new NominalAntd(attribute1);\n jRip_NominalAntd0.getAccuRate();\n double[] doubleArray0 = new double[2];\n doubleArray0[0] = 20.0;\n doubleArray0[1] = 2325.50591;\n }", "title": "" }, { "docid": "1bfa61ad671abd352f3575b7f4062cb2", "score": "0.58558017", "text": "@Test(timeout = 4000)\n public void test078() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertNotNull(textDirectoryLoader0);\n \n CostMatrix costMatrix0 = new CostMatrix(0);\n assertEquals(0, costMatrix0.numRows());\n assertEquals(0, costMatrix0.size());\n assertEquals(0, costMatrix0.numColumns());\n assertNotNull(costMatrix0);\n \n double double0 = Evaluation.MIN_SF_PROB;\n assertEquals(4.9E-324, double0, 0.01);\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"setFolds\");\n assertFalse(boolean0);\n \n CoverTree coverTree0 = new CoverTree();\n assertEquals(\"The distance function to use for finding neighbours (default: weka.core.EuclideanDistance). \", coverTree0.distanceFunctionTipText());\n assertEquals(0.0, coverTree0.measureNumLeaves(), 0.01);\n assertEquals(0.0, coverTree0.measureMaxDepth(), 0.01);\n assertFalse(coverTree0.getMeasurePerformance());\n assertEquals(0.0, coverTree0.measureTreeSize(), 0.01);\n assertEquals(1.3, coverTree0.getBase(), 0.01);\n assertEquals(\"The base for the expansion constant.\", coverTree0.baseTipText());\n assertEquals(\"Whether to calculate performance statistics for the NN search or not\", coverTree0.measurePerformanceTipText());\n assertNotNull(coverTree0);\n \n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertNotNull(testInstances0);\n \n Instances instances0 = testInstances0.generate();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertNotNull(instances0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertNotNull(evaluation0);\n \n double double1 = evaluation0.kappa();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(1.0, double1, 0.01);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertNotEquals(double1, double0, 0.01);\n }", "title": "" }, { "docid": "6470e7dc7c441d5e3dcc96ad618a580c", "score": "0.58480126", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"^?~GK1VU{\", \"\");\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n JRip.NominalAntd jRip_NominalAntd1 = (JRip.NominalAntd)jRip_NominalAntd0.copy();\n assertEquals(Double.NaN, jRip_NominalAntd1.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getAccu(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertEquals(Double.NaN, jRip_NominalAntd1.getAccuRate(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertFalse(jRip0.getDebug());\n assertEquals(0.0, jRip_NominalAntd1.getMaxInfoGain(), 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2, jRip0.getOptimizations());\n }", "title": "" }, { "docid": "185acf7382b24cb63260bbd35f114aa5", "score": "0.5801037", "text": "@Test(timeout = 4000)\n public void test52() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(2, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n \n HashSet<LinearRegression> hashSet0 = new HashSet<LinearRegression>();\n assertNotNull(hashSet0);\n assertTrue(hashSet0.isEmpty());\n assertEquals(0, hashSet0.size());\n \n boolean boolean0 = instances0.removeAll(hashSet0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertFalse(boolean0);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(2, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertTrue(hashSet0.isEmpty());\n assertEquals(0, hashSet0.size());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(2, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n \n String string0 = evaluation0.toClassDetailsString(\"Using kernel matrix from file with name: \");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"Using kernel matrix from file with name: \\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\n 0 0 0 0 0 0 ? ? class1\\n 0 0 0 0 0 0 ? ? class2\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertNotNull(string0);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(2, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertNotNull(textDirectoryLoader0);\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n \n textDirectoryLoader0.reset();\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n \n double double0 = evaluation0.kappa();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(1.0, double0, 0.01);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(2, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n }", "title": "" }, { "docid": "5b5fc87d98c006736c0d89f99a9df6cf", "score": "0.5791548", "text": "@Test(timeout = 4000)\n public void test069() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixSignificance0);\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixHTML0);\n resultMatrixHTML0.listOptions();\n resultMatrixCSV0.assign(resultMatrixHTML0);\n resultMatrixCSV0.doubleToString(0, 0);\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixCSV0);\n ResultMatrixSignificance resultMatrixSignificance2 = new ResultMatrixSignificance(46, 12);\n resultMatrixSignificance2.getVisibleColCount();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2, 0);\n resultMatrixLatex0.toStringKey();\n resultMatrixLatex0.setRowName(2, \"v\");\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(123, 1076);\n }", "title": "" }, { "docid": "4467bc4bff2dcc7485c3f24a9bdea4bd", "score": "0.5785882", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.getRevision();\n assertTrue(jRip0.getUsePruning());\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n assertEquals(3, jRip0.getFolds());\n assertEquals(\"8118\", string0);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getCheckErrorRate());\n }", "title": "" }, { "docid": "8e9010ac1a61ef7dfa7b269facd893e6", "score": "0.5783682", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n JRip jRip0 = new JRip();\n Capabilities capabilities0 = jRip0.getCapabilities();\n assertEquals(1L, jRip0.getSeed());\n assertEquals(3, capabilities0.getMinimumNumberInstances());\n assertFalse(jRip0.getDebug());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n }", "title": "" }, { "docid": "badc7c9e9d9e3fa5dca576d6790c043b", "score": "0.57763356", "text": "@Test(timeout = 4000)\n public void test49() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"+HgP:6|49H\");\n assertTrue(boolean0);\n \n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n assertNotNull(databaseLoader0);\n assertEquals(\"Select * from Results0\", databaseLoader0.getQuery());\n assertFalse(databaseLoader0.getSparseData());\n assertEquals(\"The custom properties that the user can use to override the default ones.\", databaseLoader0.customPropsFileTipText());\n assertEquals(\"The query that should load the instances.\\n The query has to be of the form SELECT <column-list>|* FROM <table> [WHERE <conditions>]\", databaseLoader0.queryTipText());\n assertEquals(\"The URL of the database\", databaseLoader0.urlTipText());\n assertEquals(\"\", databaseLoader0.getPassword());\n assertEquals(\"For incremental loading a unique identiefer has to be specified.\\nIf the query includes all columns of a table (SELECT *...) a primary key\\ncan be detected automatically depending on the JDBC driver. If that is not possible\\nspecify the key columns here in a comma separated list.\", databaseLoader0.keysTipText());\n assertEquals(\"jdbc:idb=experiments.prp\", databaseLoader0.getUrl());\n assertEquals(\"Encode data as sparse instances.\", databaseLoader0.sparseDataTipText());\n assertEquals(\"The user name for the database\", databaseLoader0.userTipText());\n assertEquals(\"The database password\", databaseLoader0.passwordTipText());\n assertEquals(\"\", databaseLoader0.getUser());\n \n EvoSuiteFile evoSuiteFile1 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/DatabaseUtils.props\");\n boolean boolean1 = FileSystemHandling.setPermissions(evoSuiteFile1, false, false, true);\n assertFalse(evoSuiteFile1.equals((Object)evoSuiteFile0));\n assertFalse(boolean1 == boolean0);\n assertFalse(boolean1);\n assertNotSame(evoSuiteFile1, evoSuiteFile0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n \n evaluation0.m_NoPriors = true;\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n double double0 = evaluation0.weightedMatthewsCorrelation();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n double double1 = evaluation0.relativeAbsoluteError();\n assertEquals(double1, double0, 0.01);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double1, 0.01);\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n }", "title": "" }, { "docid": "8c3436e38d7c935f457343d9a216d1c4", "score": "0.57761806", "text": "@Test(timeout = 4000)\n public void test055() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(17, 39);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixPlainText0);\n String[] stringArray0 = new String[2];\n resultMatrixPlainText0.m_PrintRowNames = true;\n resultMatrixHTML0.clearRanking();\n stringArray0[0] = \"v\";\n stringArray0[1] = \")\";\n ResultMatrixSignificance.main(stringArray0);\n resultMatrixPlainText0.getStdDevWidth();\n resultMatrixHTML0.countWidthTipText();\n int[][] intArray0 = new int[5][9];\n int[] intArray1 = new int[7];\n intArray1[0] = 0;\n intArray1[1] = (-2004);\n intArray1[2] = 39;\n intArray1[3] = 1;\n intArray1[4] = 0;\n intArray1[5] = 17;\n intArray1[6] = 0;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[6];\n intArray2[0] = 0;\n intArray2[1] = 2;\n intArray2[2] = 2162;\n intArray2[3] = 1;\n intArray2[4] = 1;\n intArray2[5] = 2;\n intArray0[1] = intArray2;\n int[] intArray3 = new int[4];\n intArray3[0] = 0;\n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 1;\n intArray0[2] = intArray3;\n int[] intArray4 = new int[7];\n intArray4[0] = 0;\n intArray4[1] = 0;\n intArray4[2] = 2162;\n intArray4[3] = (-664);\n intArray4[4] = 2;\n intArray4[5] = 1290;\n intArray4[6] = 0;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[2];\n intArray5[0] = 1;\n intArray5[1] = 17;\n intArray0[4] = intArray5;\n // Undeclared exception!\n try { \n resultMatrixPlainText0.setRanking(intArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 5\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "9524f63bbbfe1c3767f2d79a03d895c9", "score": "0.5775527", "text": "@Test(timeout = 4000)\n public void test076() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixHTML0);\n int[][] intArray0 = new int[2][5];\n int[] intArray1 = new int[5];\n intArray1[0] = 1;\n intArray1[1] = 0;\n resultMatrixHTML0.m_RankingDiff = intArray1;\n intArray1[2] = 0;\n intArray1[3] = 2;\n intArray1[4] = 1;\n intArray0[0] = intArray1;\n resultMatrixLatex0.removeFilterName(\"!h.U]`ND1$UMoaR\");\n int[] intArray2 = new int[9];\n intArray2[0] = 1;\n resultMatrixHTML0.addHeader((String) null, \"sig-width\");\n intArray2[1] = 2;\n intArray2[2] = 0;\n intArray2[3] = 0;\n intArray2[4] = 0;\n intArray2[5] = 1;\n intArray2[6] = 2;\n resultMatrixLatex0.toStringMatrix();\n intArray2[7] = 0;\n intArray2[8] = 1;\n intArray0[1] = intArray2;\n resultMatrixLatex0.m_NonSigWins = intArray0;\n resultMatrixLatex0.m_EnumerateRowNames = false;\n resultMatrixHTML0.LOSS_STRING = \"b:!<cBz?L6eXj}ZqI\";\n resultMatrixLatex0.assign(resultMatrixHTML0);\n resultMatrixLatex0.m_MeanWidth = 2;\n resultMatrixLatex0.isStdDev(1);\n resultMatrixHTML0.getRowHidden(1);\n resultMatrixLatex0.isMean(1);\n String[] stringArray0 = new String[0];\n ResultMatrixLatex.main(stringArray0);\n assertEquals(0, stringArray0.length);\n }", "title": "" }, { "docid": "227ee5f837f1b4cf60ea5ea3df930b5f", "score": "0.5754277", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n JRip jRip0 = new JRip();\n double double0 = jRip0.getMinNo();\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2.0, double0, 0.01);\n assertTrue(jRip0.getUsePruning());\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n }", "title": "" }, { "docid": "293f8d9a55f52edacf64c35f2477df57", "score": "0.57537305", "text": "@Test(timeout = 4000)\n public void test43() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"+HgP:6|49H\");\n assertTrue(boolean0);\n \n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n assertNotNull(databaseLoader0);\n assertEquals(\"jdbc:idb=experiments.prp\", databaseLoader0.getUrl());\n assertEquals(\"Encode data as sparse instances.\", databaseLoader0.sparseDataTipText());\n assertEquals(\"The user name for the database\", databaseLoader0.userTipText());\n assertEquals(\"The database password\", databaseLoader0.passwordTipText());\n assertEquals(\"The custom properties that the user can use to override the default ones.\", databaseLoader0.customPropsFileTipText());\n assertEquals(\"Select * from Results0\", databaseLoader0.getQuery());\n assertEquals(\"\", databaseLoader0.getPassword());\n assertEquals(\"The query that should load the instances.\\n The query has to be of the form SELECT <column-list>|* FROM <table> [WHERE <conditions>]\", databaseLoader0.queryTipText());\n assertEquals(\"For incremental loading a unique identiefer has to be specified.\\nIf the query includes all columns of a table (SELECT *...) a primary key\\ncan be detected automatically depending on the JDBC driver. If that is not possible\\nspecify the key columns here in a comma separated list.\", databaseLoader0.keysTipText());\n assertFalse(databaseLoader0.getSparseData());\n assertEquals(\"\", databaseLoader0.getUser());\n assertEquals(\"The URL of the database\", databaseLoader0.urlTipText());\n \n EvoSuiteFile evoSuiteFile1 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/DatabaseUtils.props\");\n boolean boolean1 = FileSystemHandling.setPermissions(evoSuiteFile1, false, false, true);\n assertFalse(evoSuiteFile1.equals((Object)evoSuiteFile0));\n assertFalse(boolean1 == boolean0);\n assertFalse(boolean1);\n assertNotSame(evoSuiteFile1, evoSuiteFile0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n double double0 = evaluation0.rootRelativeSquaredError();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n evaluation0.addNumericTrainClass((-3405.506471419351), (-1));\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n try { \n evaluation0.correlationCoefficient();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute correlation coefficient: class is nominal!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "0823b2bfa224924a4e3c8ddea51178cb", "score": "0.57529813", "text": "@Test(timeout = 4000)\n public void test29() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(2, instances0.numClasses());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(2, instances0.numClasses());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n String string0 = evaluation0.toSummaryString();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertNotNull(string0);\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(2, instances0.numClasses());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n double[] doubleArray0 = new double[6];\n doubleArray0[0] = (double) (-1);\n doubleArray0[1] = (double) (-2);\n doubleArray0[2] = (double) (-2);\n doubleArray0[3] = (double) (-1);\n doubleArray0[4] = (double) (-2);\n int int0 = 1;\n PrincipalComponents principalComponents0 = new PrincipalComponents();\n assertNotNull(principalComponents0);\n assertEquals(\"Performs a principal components analysis and transformation of the data. Use in conjunction with a Ranker search. Dimensionality reduction is accomplished by choosing enough eigenvectors to account for some percentage of the variance in the original data---default 0.95 (95%). Attribute noise can be filtered by transforming to the PC space, eliminating some of the worst eigenvectors, and then transforming back to the original space.\", principalComponents0.globalInfo());\n assertEquals(0.95, principalComponents0.getVarianceCovered(), 0.01);\n assertFalse(principalComponents0.getCenterData());\n assertEquals(\"Center (rather than standardize) the data. PCA will be computed from the covariance (rather than correlation) matrix\", principalComponents0.centerDataTipText());\n assertEquals(\"Retain enough PC attributes to account for this proportion of variance.\", principalComponents0.varianceCoveredTipText());\n assertEquals(\"The maximum number of attributes to include in transformed attribute names.\", principalComponents0.maximumAttributeNamesTipText());\n assertEquals(\"Transform through the PC space and back to the original space. If only the best n PCs are retained (by setting varianceCovered < 1) then this option will give a dataset in the original space but with less attribute noise.\", principalComponents0.transformBackToOriginalTipText());\n assertEquals(5, principalComponents0.getMaximumAttributeNames());\n assertFalse(principalComponents0.getTransformBackToOriginal());\n \n double double0 = evaluation0.weightedFalseNegativeRate();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(2, instances0.numClasses());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n try { \n principalComponents0.transformedData(instances0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Principal components hasn't been built yet\n //\n verifyException(\"weka.attributeSelection.PrincipalComponents\", e);\n }\n }", "title": "" }, { "docid": "f6d1b54cd64031ab613eb9130995cc9d", "score": "0.5745235", "text": "@Test(timeout = 4000)\n public void test29() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.setFolds(3322);\n Random.setNextRandom(1733);\n }", "title": "" }, { "docid": "1703c90b0076e5598c717c06d65805f5", "score": "0.57416016", "text": "@Test(timeout = 4000)\n public void test46() throws Throwable {\n JRip jRip0 = new JRip();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n JRip jRip1 = new JRip();\n String string0 = jRip1.toString();\n assertEquals(\"JRIP: No model built yet.\", string0);\n \n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n Attribute attribute0 = new Attribute(\";A<)I$C/&\", linkedList0, protectedProperties0);\n JRip.NominalAntd jRip_NominalAntd0 = jRip1.new NominalAntd(attribute0);\n double double0 = jRip_NominalAntd0.getAccu();\n assertEquals(Double.NaN, double0, 0.01);\n \n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n SparseInstance sparseInstance0 = new SparseInstance(2);\n boolean boolean0 = jRip_NumericAntd0.covers(sparseInstance0);\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertTrue(boolean0);\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getSplitPoint(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n }", "title": "" }, { "docid": "b1272446634fa95b586bb2c5218e00c9", "score": "0.5733402", "text": "@Test\n public void testProbabilityViaConstructor() {\n }", "title": "" }, { "docid": "6eed51adfff8ae1ec9c877be19f9d0c3", "score": "0.572482", "text": "@Test(timeout = 4000)\n public void test020() throws Throwable {\n Logistic logistic0 = new Logistic();\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n evaluation0.setDiscardPredictions(true);\n assertTrue(evaluation0.getDiscardPredictions());\n }", "title": "" }, { "docid": "ea88dc4ff35cc91e5dc2562e1692629f", "score": "0.5722831", "text": "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n evaluation0.setNumericPriorsFromBuffer();\n double double0 = evaluation0.unweightedMicroFmeasure();\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "5fc54cd7c19ae6534320c94e8d22dfe8", "score": "0.57140404", "text": "@Test(timeout = 4000)\n public void test39() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n \n String string0 = evaluation0.toSummaryString();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertNotNull(string0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n \n double[] doubleArray0 = new double[6];\n doubleArray0[0] = (double) (-1);\n doubleArray0[1] = (double) (-2);\n boolean boolean0 = FileSystemHandling.shouldAllThrowIOExceptions();\n assertTrue(boolean0);\n \n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 300.0);\n assertEquals(6, doubleArray0.length);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertArrayEquals(new double[] {(-1.0), (-2.0), 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n \n double double0 = evaluation0.m_TotalCost;\n assertEquals(0.0, double0, 0.01);\n \n Evaluation evaluation1 = new Evaluation(instances0);\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation1);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n \n double double1 = evaluation1.SFSchemeEntropy();\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertEquals(double1, double0, 0.01);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0.0, double1, 0.01);\n assertNotSame(evaluation1, evaluation0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n \n Evaluation evaluation2 = new Evaluation(instances0, (CostMatrix) null);\n assertTrue(evaluation2.equals((Object)evaluation1));\n assertTrue(evaluation2.equals((Object)evaluation0));\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation2);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation2.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.SFEntropyGain(), 0.01);\n assertFalse(evaluation2.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation2.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.correct(), 0.01);\n assertEquals(0.0, evaluation2.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation2.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation2.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation2.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation2.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation2.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation2.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.avgCost(), 0.01);\n assertEquals(0.0, evaluation2.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation2.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTrueNegativeRate(), 0.01);\n \n double double2 = evaluation2.weightedAreaUnderROC();\n assertTrue(evaluation2.equals((Object)evaluation1));\n assertTrue(evaluation2.equals((Object)evaluation0));\n assertNotEquals(double2, double1, 0.01);\n assertNotEquals(double2, double0, 0.01);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, double2, 0.01);\n assertNotSame(evaluation2, evaluation0);\n assertNotSame(evaluation2, evaluation1);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation2.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.SFEntropyGain(), 0.01);\n assertFalse(evaluation2.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation2.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.correct(), 0.01);\n assertEquals(0.0, evaluation2.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation2.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation2.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation2.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation2.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation2.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation2.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.avgCost(), 0.01);\n assertEquals(0.0, evaluation2.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation2.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTrueNegativeRate(), 0.01);\n \n double double3 = evaluation2.pctIncorrect();\n assertTrue(evaluation2.equals((Object)evaluation1));\n assertTrue(evaluation2.equals((Object)evaluation0));\n assertEquals(double3, double2, 0.01);\n assertNotEquals(double3, double0, 0.01);\n assertNotEquals(double3, double1, 0.01);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, double3, 0.01);\n assertNotSame(evaluation2, evaluation0);\n assertNotSame(evaluation2, evaluation1);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation2.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.SFEntropyGain(), 0.01);\n assertFalse(evaluation2.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation2.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.correct(), 0.01);\n assertEquals(0.0, evaluation2.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation2.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation2.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation2.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation2.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation2.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation2.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.avgCost(), 0.01);\n assertEquals(0.0, evaluation2.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation2.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTrueNegativeRate(), 0.01);\n \n double double4 = evaluation0.KBRelativeInformation();\n assertTrue(evaluation0.equals((Object)evaluation2));\n assertTrue(evaluation0.equals((Object)evaluation1));\n assertEquals(double4, double0, 0.01);\n assertEquals(double4, double1, 0.01);\n assertNotEquals(double4, double3, 0.01);\n assertNotEquals(double4, double2, 0.01);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0.0, double4, 0.01);\n assertNotSame(evaluation0, evaluation1);\n assertNotSame(evaluation0, evaluation2);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n \n char[] charArray0 = new char[3];\n charArray0[0] = 'r';\n charArray0[1] = 'G';\n charArray0[2] = '\\u0084';\n String string1 = evaluation1.num2ShortID(13, charArray0, 17);\n assertEquals(3, charArray0.length);\n assertFalse(string1.equals((Object)string0));\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertTrue(evaluation1.equals((Object)evaluation2));\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\" rrG\", string1);\n assertNotNull(string1);\n assertNotSame(evaluation1, evaluation2);\n assertNotSame(evaluation1, evaluation0);\n assertArrayEquals(new char[] {'r', 'G', '\\u0084'}, charArray0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n }", "title": "" }, { "docid": "ff563bf0b12a09b615e13889be356b74", "score": "0.5703871", "text": "@Test(timeout = 4000)\n public void test001() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double double0 = evaluation0.m_SumKBInfo;\n double double1 = evaluation0.weightedMatthewsCorrelation();\n assertEquals(Double.NaN, double1, 0.01);\n }", "title": "" }, { "docid": "2dda23f11dd1bb472053b37a1e38b8ed", "score": "0.57024276", "text": "@Test(timeout = 4000)\n public void test063() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.clearRanking();\n resultMatrixSignificance0.toArray();\n resultMatrixSignificance0.getDefaultMeanPrec();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[0][5];\n resultMatrixSignificance0.m_NonSigWins = intArray0;\n int[][] intArray1 = new int[0][4];\n resultMatrixGnuPlot0.setRanking(intArray1);\n Vector<Object> vector0 = new Vector<Object>();\n resultMatrixGnuPlot0.m_HeaderKeys = vector0;\n resultMatrixGnuPlot0.m_StdDevPrec = 1;\n resultMatrixGnuPlot0.setMeanPrec(270);\n resultMatrixSignificance0.setStdDevPrec(1);\n resultMatrixSignificance0.getColCount();\n resultMatrixSignificance0.getDefaultShowStdDev();\n resultMatrixSignificance0.getDefaultRowNameWidth();\n resultMatrixSignificance0.getPrintRowNames();\n Vector<String> vector1 = new Vector<String>();\n Predicate<Object> predicate0 = Predicate.isEqual((Object) vector1);\n predicate0.negate();\n Predicate<Object> predicate1 = predicate0.negate();\n predicate1.negate();\n vector1.setSize(40);\n Vector<Integer> vector2 = new Vector<Integer>();\n vector2.removeIf(predicate1);\n resultMatrixSignificance0.setCount(50, 155.738);\n resultMatrixSignificance0.getDefaultMeanWidth();\n assertEquals(1, resultMatrixSignificance0.getStdDevPrec());\n }", "title": "" }, { "docid": "4766b33af139dbaacedd0b6b72cf9e7a", "score": "0.5700103", "text": "@Test(timeout = 4000)\n public void test50() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertNotNull(textDirectoryLoader0);\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n \n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"qZ+\");\n assertTrue(boolean0);\n \n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n assertNotNull(databaseLoader0);\n assertEquals(\"Encode data as sparse instances.\", databaseLoader0.sparseDataTipText());\n assertEquals(\"The database password\", databaseLoader0.passwordTipText());\n assertEquals(\"The user name for the database\", databaseLoader0.userTipText());\n assertEquals(\"jdbc:idb=experiments.prp\", databaseLoader0.getUrl());\n assertEquals(\"\", databaseLoader0.getPassword());\n assertEquals(\"Select * from Results0\", databaseLoader0.getQuery());\n assertFalse(databaseLoader0.getSparseData());\n assertEquals(\"The custom properties that the user can use to override the default ones.\", databaseLoader0.customPropsFileTipText());\n assertEquals(\"The query that should load the instances.\\n The query has to be of the form SELECT <column-list>|* FROM <table> [WHERE <conditions>]\", databaseLoader0.queryTipText());\n assertEquals(\"For incremental loading a unique identiefer has to be specified.\\nIf the query includes all columns of a table (SELECT *...) a primary key\\ncan be detected automatically depending on the JDBC driver. If that is not possible\\nspecify the key columns here in a comma separated list.\", databaseLoader0.keysTipText());\n assertEquals(\"\", databaseLoader0.getUser());\n assertEquals(\"The URL of the database\", databaseLoader0.urlTipText());\n \n EvoSuiteFile evoSuiteFile1 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/DatabaseUtils.props\");\n boolean boolean1 = FileSystemHandling.setPermissions(evoSuiteFile1, false, false, true);\n assertFalse(evoSuiteFile1.equals((Object)evoSuiteFile0));\n assertFalse(boolean1 == boolean0);\n assertFalse(boolean1);\n assertNotSame(evoSuiteFile1, evoSuiteFile0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n // Undeclared exception!\n try { \n evaluation0.weightedMatthewsCorrelation();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "176fb2fec1b6c996d880aef54af0c9cb", "score": "0.56948197", "text": "@Test(timeout = 4000)\n public void test027() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setPhotoQuality((-782));\n int int0 = homeEnvironment0.getPhotoQuality();\n assertEquals((-782), int0);\n }", "title": "" }, { "docid": "01d4463df525b9d31160f76ead64826a", "score": "0.5691601", "text": "double getLogProbabilityOfEstimate();", "title": "" }, { "docid": "ffed7dc2660dc25d3e806103344f0157", "score": "0.5690305", "text": "@Test(timeout = 4000)\n public void test070() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.setStdDevWidth(1);\n resultMatrixSignificance0.toString();\n resultMatrixSignificance0.m_EnumerateRowNames = true;\n resultMatrixSignificance0.doubleToString(0.0, 0);\n resultMatrixSignificance0.m_SignificanceWidth = 0;\n resultMatrixSignificance0.getDefaultPrintColNames();\n resultMatrixSignificance0.getDefaultEnumerateColNames();\n resultMatrixSignificance0.isAverage(0);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n int[] intArray0 = new int[0];\n resultMatrixGnuPlot0.m_RowOrder = intArray0;\n resultMatrixGnuPlot0.getColName((-1107));\n resultMatrixGnuPlot0.assign(resultMatrixSignificance0);\n resultMatrixGnuPlot0.toStringRanking();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixSignificance0);\n int[][] intArray1 = new int[2][3];\n intArray1[0] = intArray0;\n intArray1[1] = null;\n resultMatrixCSV0.setSummary(intArray1, intArray1);\n resultMatrixCSV0.toStringKey();\n resultMatrixCSV0.setRowOrder(intArray0);\n resultMatrixCSV0.getCount(1);\n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "06024bd3b31c933de8eb76d9487a3cc7", "score": "0.568543", "text": "@Test(timeout = 4000)\n public void test61() throws Throwable {\n Attribute attribute0 = new Attribute(\"\", \"\");\n attribute0.copy((String) null);\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)93;\n byteArray0[1] = (byte)6;\n byteArray0[2] = (byte)59;\n byteArray0[3] = (byte) (-37);\n byteArray0[4] = (byte)16;\n byteArray0[5] = (byte)97;\n byteArray0[6] = (byte) (-54);\n byteArray0[7] = (byte) (-4);\n byteArray0[8] = (byte) (-47);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n attribute0.copy(\"@end\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"integer\", arrayList0, 2);\n Instances instances1 = new Instances(instances0, 0, 0);\n Instances instances2 = new Instances(instances1);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \".bsi\");\n JRip jRip0 = new JRip();\n jRip0.setUsePruning(false);\n try { \n jRip0.rulesetForOneClass(0, instances0, 2, 1);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Class index is negative (not set)!\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "35c1c7eba9604f64cf85b3ae55305a6c", "score": "0.568443", "text": "@Test\n public void costTest() {\n // TODO: test cost\n }", "title": "" }, { "docid": "8e7b51508028b28490f016a6e6c1d78b", "score": "0.5679758", "text": "@Test(timeout = 4000)\n public void test01() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n LinkedList<SGD> linkedList0 = new LinkedList<SGD>();\n SGD sGD0 = new SGD();\n linkedList0.add(sGD0);\n instances0.removeAll(linkedList0);\n Evaluation evaluation0 = new Evaluation(instances0);\n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n databaseLoader0.getNextInstance(instances0);\n double double0 = evaluation0.rootMeanPriorSquaredError();\n double double1 = evaluation0.weightedFalseNegativeRate();\n assertEquals(double1, double0, 0.01);\n \n evaluation0.unclassified();\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0, doubleArray0.length);\n }", "title": "" }, { "docid": "562ddf750d72ab5170622e5cb85180ba", "score": "0.5674457", "text": "public void doTest(){\r\n\r\n\t\tint draws;\r\n\t\tint effectiveSamples;\r\n\t\t\r\n\t\tif(!dataReady){\t\t\r\n\t\t\tSystem.out.println(\"Data is not ready\");\r\n\t\t\treturn;\t\r\n\t\t}\r\n\t\t\r\n\t\t//compute K statistics\r\n\t\t\t\t\r\n\t\tK=0;\r\n\t\tK2=0;\r\n\t\tdraws=0;\r\n\t\t\r\n\t\tfor(int i=0;i<sequence.size();i++){\r\n\t\t\tif(sequence.get(i)>0){\r\n\t\t\t\tK++;\r\n\t\t\t}\r\n\t\t\tif(sequence.get(i)<0){\r\n\t\t\t\tK2++;\r\n\t\t\t}\r\n\t\t\tif(sequence.get(i)==0){\r\n\t\t\t\tdraws++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\t//compute p-values\r\n\t\t\r\n\t\teffectiveSamples=sequence.size()-draws;\r\n\t\tbinomial.setN(effectiveSamples);\r\n\t\t\r\n\t\texactLeftTail=binomial.computeCumulativeProbability(effectiveSamples-K2);\r\n\t\texactRightTail=binomial.computeCumulativeProbability(effectiveSamples-K);\r\n\t\texactDoubleTail=Math.min(Math.min(exactLeftTail,exactRightTail)*2.0,1.0);\r\n\t\t\t\t\t\t\t\r\n\t\t//asymptotic p-values\r\n\t\tdouble numerator, denominator;\r\n\t\t\r\n\t\tdenominator=0.5*Math.sqrt(effectiveSamples);\r\n\t\t\r\n\t\tnumerator=((double)K-(0.5*effectiveSamples)+0.5);\r\n\r\n\t\tasymptoticLeftTail=normal.getTipifiedProbability(numerator/denominator, false);\r\n\r\n\t\tnumerator=((double)K-(0.5*effectiveSamples)-0.5);\r\n\t\tasymptoticRightTail=1.0-normal.getTipifiedProbability(numerator/denominator, false);\r\n\t\t\r\n\t\tasymptoticDoubleTail=Math.min(Math.min(asymptoticLeftTail,asymptoticRightTail)*2.0,1.0);\r\n\t\t\r\n\t\tperformed=true;\r\n\r\n\t}", "title": "" }, { "docid": "98943b895466c2405962b8dbde4925e6", "score": "0.56716967", "text": "@Test\n public void test22() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "631ff8df6557cc1a8326fc7169a0fbfe", "score": "0.5670396", "text": "@Test(timeout = 4000)\n public void test01() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.enumerateMeasures();\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertFalse(jRip0.getDebug());\n }", "title": "" }, { "docid": "2e56ef0b5a3eea1c6c26b6b977f7e60b", "score": "0.5667424", "text": "@Test\n public void testGetSelfRegulatedLearningHourCount() {\n System.out.println(\"getSelfRegulatedLearningHourCount\");\n float expResult = createdModule.getSelfRegulatedLearningHourCount();\n float result = importedModule.getSelfRegulatedLearningHourCount();\n assertEquals(expResult, result, 0.0);\n }", "title": "" }, { "docid": "f795a86160c9c0a0d83c4a29e2a71b46", "score": "0.5659211", "text": "@Test\n public void energyUsedTest() {\n // TODO: test energyUsed\n }", "title": "" }, { "docid": "cacdaacdea908afd87935a1d7b19588f", "score": "0.5656945", "text": "@Test\n public void test24() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n CostMatrix costMatrix0 = costSensitiveClassifier0.getCostMatrix();\n Evaluation evaluation0 = null;\n try {\n evaluation0 = new Evaluation(instances0, costMatrix0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Cost matrix not compatible with data!\n //\n }\n }", "title": "" }, { "docid": "031b6f88d6e9e1c7e1d35cb2a70343bb", "score": "0.5654252", "text": "public static void main(String[] args) {\n javaai.ann.output.EquilateralEncoding.load();\n\n Random ran = new Random(0);\n\n int success = 0;\n\n for(int n=0; n < NUM_TESTS; n++) {\n // Pick a species randomly\n int actualIndex = ran.nextInt(ideals.length);\n\n // TODO:\n // 1. Get a random encoding with the actual index.\n // 2. Create a new array of activations perturbed by the tolerance divided by 100.\n // 3. Decode these perturbed activations.\n // 4. If the predicted index equals the actual index, update success count.\n // Get its encoding\n double[] encodings = ideals[actualIndex];\n\n double[] activations = new double[encodings.length];\n\n // Perturb each activation by training error tolerance\n for(int k=0; k < encodings.length; k++) {\n double epsilon = 1 + ran.nextGaussian() * TOLERANCE / 100.;\n\n activations[k] = encodings[k] * epsilon;\n }\n\n int predictedIndex = EquilateralEncoding.eq.decode(activations);\n\n String species1 = species.get(actualIndex);\n String species2 = species.get(predictedIndex);\n String outcome = species1 == species2 ? \"\" : \"MISSED!\";\n\n System.out.println(\n \"actual: \" + species1+asString(encodings) + \" \" +\n \"predicted: \"+species2+asString(activations) + \" \" +\n outcome);\n\n if(species1 == species2)\n success++;\n }\n\n double rate = (double)success / NUM_TESTS;\n\n System.out.printf(\"%d of %d or %4.2f%% tolerance = %5.2f%%\\n\",success, NUM_TESTS, rate, TOLERANCE);\n }", "title": "" }, { "docid": "092d798887c9332c5de318c97092c598", "score": "0.56467915", "text": "@Test(timeout = 4000)\n public void test025() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixHTML0);\n int[][] intArray0 = new int[2][5];\n int[] intArray1 = new int[5];\n intArray1[0] = 1;\n intArray1[1] = 0;\n intArray1[2] = 1;\n intArray1[3] = 2;\n intArray1[4] = 1;\n int[] intArray2 = new int[9];\n intArray2[0] = 1;\n intArray2[1] = 2;\n intArray2[2] = 0;\n intArray2[3] = 0;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(2, 44);\n resultMatrixSignificance0.stdDevWidthTipText();\n resultMatrixSignificance0.showStdDevTipText();\n resultMatrixSignificance0.clearRanking();\n resultMatrixSignificance0.setShowAverage(true);\n resultMatrixSignificance0.setMean((-4136), 0, 0);\n resultMatrixSignificance0.getDefaultRemoveFilterName();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixSignificance0);\n resultMatrixSignificance1.getVisibleColCount();\n resultMatrixSignificance1.stdDevWidthTipText();\n resultMatrixSignificance1.setColHidden(2, true);\n assertTrue(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n }", "title": "" }, { "docid": "01c9dd853c8f82c63948ece2b986256e", "score": "0.5645454", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(2, instances0.numAttributes());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"+HgP:6|49H\");\n assertTrue(boolean0);\n \n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n assertNotNull(databaseLoader0);\n assertEquals(\"Encode data as sparse instances.\", databaseLoader0.sparseDataTipText());\n assertEquals(\"The user name for the database\", databaseLoader0.userTipText());\n assertEquals(\"The database password\", databaseLoader0.passwordTipText());\n assertEquals(\"jdbc:idb=experiments.prp\", databaseLoader0.getUrl());\n assertEquals(\"For incremental loading a unique identiefer has to be specified.\\nIf the query includes all columns of a table (SELECT *...) a primary key\\ncan be detected automatically depending on the JDBC driver. If that is not possible\\nspecify the key columns here in a comma separated list.\", databaseLoader0.keysTipText());\n assertEquals(\"\", databaseLoader0.getPassword());\n assertEquals(\"Select * from Results0\", databaseLoader0.getQuery());\n assertEquals(\"\", databaseLoader0.getUser());\n assertEquals(\"The custom properties that the user can use to override the default ones.\", databaseLoader0.customPropsFileTipText());\n assertFalse(databaseLoader0.getSparseData());\n assertEquals(\"The query that should load the instances.\\n The query has to be of the form SELECT <column-list>|* FROM <table> [WHERE <conditions>]\", databaseLoader0.queryTipText());\n assertEquals(\"The URL of the database\", databaseLoader0.urlTipText());\n \n EvoSuiteFile evoSuiteFile1 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/DatabaseUtils.props\");\n boolean boolean1 = FileSystemHandling.setPermissions(evoSuiteFile1, false, false, true);\n assertFalse(evoSuiteFile1.equals((Object)evoSuiteFile0));\n assertFalse(boolean1 == boolean0);\n assertFalse(boolean1);\n assertNotSame(evoSuiteFile1, evoSuiteFile0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(2, instances0.numAttributes());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n \n double double0 = evaluation0.weightedMatthewsCorrelation();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(2, instances0.numAttributes());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n \n double double1 = evaluation0.unweightedMacroFmeasure();\n assertEquals(double1, double0, 0.01);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double1, 0.01);\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(2, instances0.numAttributes());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "e21b98562127a7b6ae6f99935b32a092", "score": "0.56445813", "text": "public static void testing(){\n\t\tdouble[] desiredOutput = new double[4];\t\t\t//Desired output based on inputs. \n\t\tdouble[] hiddenOutput = new double[12]; //Output out of hidden layer.\n\t\tdouble[] finalOutput = new double[4];\n\t\tint correct = 0, wrong = 0;\n\t\tfor(int i = 0; i < 1797; i++){\n\t\t\tcalculateHiddenOutput(hiddenOutput, i, testData);\n\t\t\tcalculateFinalOutput(finalOutput, hiddenOutput, i);\n\t\t\tcalculateDesiredOutput(desiredOutput, i, testData);\n\t\t\tif(finalOutput[0] == desiredOutput[0] && finalOutput[1] == desiredOutput[1] && \n\t\t\t\t\tfinalOutput[2] == desiredOutput[2] && finalOutput[3] == desiredOutput[3])\n\t\t\t\tcorrect++;\n\t\t\telse\n\t\t\t\twrong++;\n\t\t}\n\t\tSystem.out.println(\"Correct: \" +correct);\n\t\tSystem.out.println(\"Wrong: \" +wrong);\n\t\tSystem.out.println(\"Percentage correct: \" +correct/wrong+ \"%\");\n\t}", "title": "" }, { "docid": "a85a64db26c488fa3f077d83c4294b8c", "score": "0.56333", "text": "@Test(timeout = 4000)\n public void test060() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n int[] intArray0 = new int[0];\n resultMatrixSignificance0.m_ColOrder = intArray0;\n resultMatrixSignificance0.removeFilterName(\"+OnooqKiKr}\\\"\");\n resultMatrixSignificance0.setStdDevWidth((-1138));\n resultMatrixSignificance0.m_PrintColNames = false;\n resultMatrixSignificance0.m_RowNameWidth = (-1138);\n resultMatrixSignificance0.m_MeanPrec = 1817;\n resultMatrixSignificance0.setPrintColNames(true);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n resultMatrixSignificance0.setCountWidth(670);\n resultMatrixGnuPlot0.toStringMatrix();\n resultMatrixGnuPlot0.m_CountWidth = 0;\n resultMatrixGnuPlot0.getColName(26);\n int[] intArray1 = new int[1];\n intArray1[0] = 1;\n resultMatrixGnuPlot0.m_RankingLosses = intArray1;\n resultMatrixGnuPlot0.getShowStdDev();\n resultMatrixGnuPlot0.getDefaultPrintRowNames();\n resultMatrixGnuPlot0.getDisplayName();\n resultMatrixGnuPlot0.toStringSummary();\n resultMatrixSignificance0.stdDevWidthTipText();\n assertEquals((-1138), resultMatrixSignificance0.getRowNameWidth());\n }", "title": "" }, { "docid": "b61677c7be7067eeabe363bf9284a481", "score": "0.5631127", "text": "@Test\n public void victoryPointsThresholdTest() {\n // TODO: test victoryPointsThreshold\n }", "title": "" }, { "docid": "29c59dbbe16e280a4aacbc635f550a3c", "score": "0.561818", "text": "public static void main(String[] args) {\n\t\tdouble[] real=probability();\n\t\tdouble[] exp=null;\n\t\tprint(real);\n\t\t\n\t\texp=experiment(100);\n\t\tprint(exp);\n\t\tSystem.out.println(same(real,exp));\n\t\t\n\t\texp=experiment(10000);\n\t\tprint(exp);\n\t\tSystem.out.println(same(real,exp));\n\t\t\n\t\texp=experiment(10000000);\n\t\tprint(exp);\n\t\tSystem.out.println(same(real,exp));\n\t}", "title": "" }, { "docid": "dc6d76484bec1e1eee0a3472b62465ee", "score": "0.5610187", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"Value not defined for given nominal attribute!\");\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n String string0 = jRip_NominalAntd0.toString();\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(\"Value not defined for given nominal attribute! = \", string0);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2, jRip0.getOptimizations());\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n }", "title": "" }, { "docid": "602fc611f508ef1c2c23499c17759e83", "score": "0.56075907", "text": "@Test\n void main() {\n N = 64;\n logN = 6; // its log, manually\n\n // Set the curve base points\n G = Curve25519Point.G;\n H = Curve25519Point.hashToPoint(G);\n Gi = new Curve25519Point[N];\n Hi = new Curve25519Point[N];\n for (int i = 0; i < N; i++) {\n Gi[i] = getHpnGLookup(2 * i);\n Hi[i] = getHpnGLookup(2 * i + 1);\n }\n\n // Run a bunch of randomized trials\n Random rando = new Random();\n int TRIALS = 250;\n int count = 0;\n\n while (count < TRIALS) {\n long amount = rando.nextLong();\n if (amount > Math.pow(2, N) - 1 || amount < 0)\n continue;\n\n LogBulletproof.ProofTuple proof = PROVE(new Scalar(BigInteger.valueOf(amount)), randomScalar());\n if (!VERIFY(proof))\n Assertions.fail(\"Test failed\");\n\n count += 1;\n }\n }", "title": "" }, { "docid": "454a5b9e8ef31c80194a46dce9f48bc5", "score": "0.56066936", "text": "@Test(timeout = 4000)\n public void test007() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.clearRanking();\n resultMatrixSignificance0.toArray();\n resultMatrixSignificance0.globalInfo();\n resultMatrixSignificance0.getDefaultMeanPrec();\n int[][] intArray0 = new int[0][5];\n resultMatrixSignificance0.m_NonSigWins = intArray0;\n int[][] intArray1 = new int[0][4];\n Vector<Object> vector0 = new Vector<Object>();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixSignificance0);\n String string0 = resultMatrixLatex0.toStringMatrix();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption}\\n\\\\footnotesize\\n{\\\\centering \\\\begin{tabular}{lr}\\n\\\\\\\\\\n\\\\hline\\nDataset & (1)\\\\\\\\\\n\\\\hline\\nrow0 & \\\\\\\\\\n\\\\hline\\n\\\\multicolumn{2}{c}{$\\\\circ$, $\\\\bullet$ statistically significant improvement or degradation}\\\\\\\\\\n\\\\end{tabular} \\\\footnotesize \\\\par}\\n\\\\end{table}\\n\", string0);\n \n resultMatrixLatex0.assign(resultMatrixLatex0);\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n resultMatrixPlainText0.setRanking(intArray1);\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(resultMatrixLatex0);\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n \n ResultMatrixLatex resultMatrixLatex2 = new ResultMatrixLatex();\n resultMatrixLatex2.toStringKey();\n int int0 = resultMatrixPlainText0.getSignificanceCount((-2080), 26);\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "c46c59123bc851d8874cac39c9f41b4f", "score": "0.56004363", "text": "@Test\n public void testGetFinal_weight_res() {\n Assert.assertEquals(18.02, value);\n// Assert.assertEquals(66, value1);\n// Assert.assertEquals(207, value2);\n// Assert.assertEquals(18, value3);\n }", "title": "" }, { "docid": "db0ffeb39222056d17575d9cbd9ee570", "score": "0.5595671", "text": "@Test(timeout = 4000)\n public void test082() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(2, 2);\n assertEquals(2, resultMatrixCSV0.getVisibleColCount());\n \n resultMatrixCSV0.toString();\n resultMatrixCSV0.setMeanPrec(2);\n String string0 = resultMatrixCSV0.toString();\n assertEquals(\"Dataset,[1],[2],''\\nrow0,'','',''\\nrow1,'','',''\\n'[v/ /*]','','',[0/0/0]\\n\", string0);\n \n resultMatrixCSV0.getRevision();\n resultMatrixCSV0.getDefaultShowAverage();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixCSV0);\n double[][] doubleArray0 = new double[7][0];\n double[] doubleArray1 = new double[4];\n doubleArray1[0] = (double) 1;\n doubleArray1[1] = (double) 0;\n doubleArray1[2] = (double) 1;\n doubleArray1[3] = (double) 1;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[8];\n doubleArray2[0] = 2199.3405159;\n doubleArray2[1] = (double) 0;\n doubleArray2[2] = (double) 0;\n doubleArray2[3] = (double) 2;\n doubleArray2[4] = (double) 2;\n doubleArray2[5] = (double) 2;\n doubleArray2[6] = (double) 0;\n doubleArray2[7] = (double) 1;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[5];\n doubleArray3[0] = (double) 0;\n doubleArray3[1] = (double) 2;\n doubleArray3[2] = (double) 0;\n doubleArray3[3] = (double) 0;\n doubleArray3[4] = 2199.3405159;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 2;\n doubleArray4[1] = (double) 2;\n doubleArray4[2] = (double) 2;\n doubleArray4[3] = 2199.3405159;\n doubleArray4[4] = (double) 2;\n doubleArray4[5] = (double) 2;\n doubleArray4[6] = (double) 0;\n doubleArray4[7] = 2199.3405159;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[3];\n doubleArray5[0] = (double) 0;\n doubleArray5[1] = (double) 2;\n doubleArray5[2] = (double) 2;\n doubleArray0[4] = doubleArray5;\n double[] doubleArray6 = new double[9];\n doubleArray6[0] = (double) 1;\n doubleArray6[1] = (double) 1;\n doubleArray6[2] = 0.0;\n doubleArray6[3] = 416.62420159594;\n doubleArray6[4] = (double) 1;\n doubleArray6[5] = (double) 0;\n doubleArray6[6] = (double) 1;\n doubleArray6[7] = (double) 2;\n doubleArray6[8] = (double) 2;\n doubleArray0[5] = doubleArray6;\n double[] doubleArray7 = new double[9];\n doubleArray7[0] = (double) 1;\n doubleArray7[1] = (double) 2;\n doubleArray7[2] = (double) 2;\n doubleArray7[3] = 0.0;\n doubleArray7[4] = (double) 1;\n doubleArray7[5] = 0.0;\n doubleArray7[6] = 10.0;\n doubleArray7[7] = (double) 2;\n doubleArray7[8] = 5874.7;\n doubleArray0[6] = doubleArray7;\n resultMatrixSignificance0.m_Mean = doubleArray0;\n resultMatrixSignificance0.getDefaultShowStdDev();\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n \n String string1 = resultMatrixCSV0.padString(\"[\", 1);\n assertEquals(\"[\", string1);\n \n resultMatrixCSV0.rowNameWidthTipText();\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n }", "title": "" }, { "docid": "a24c96a0b90cfd29b23d7f7f40727ccf", "score": "0.55955315", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n textDirectoryLoader0.setRetrieval(100000);\n String string0 = evaluation0.toSummaryString();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \"@relation\");\n CostMatrix costMatrix0 = new CostMatrix(7);\n evaluation0.recall(0);\n evaluation0.weightedMatthewsCorrelation();\n int[] intArray0 = new int[3];\n intArray0[0] = 0;\n intArray0[1] = 7;\n evaluation0.rootMeanSquaredError();\n evaluation0.pctUnclassified();\n SMOreg sMOreg0 = new SMOreg();\n String string1 = Evaluation.makeOptionString(sMOreg0, false);\n assertFalse(string1.equals((Object)string0));\n }", "title": "" }, { "docid": "006dbeb783c5bb77acbf52bd9fba486d", "score": "0.5590991", "text": "@Test(timeout = 4000)\n public void test35() throws Throwable {\n JRip jRip0 = new JRip();\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n boolean boolean0 = jRip_RipperRule0.covers((Instance) null);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals((-1.0), jRip_RipperRule0.getConsequent(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(3, jRip0.getFolds());\n assertTrue(boolean0);\n assertEquals(2, jRip0.getOptimizations());\n }", "title": "" }, { "docid": "f0369ac754810c78e00dc4c75f2d6770", "score": "0.5587699", "text": "@Test(timeout = 4000)\n public void test38() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n \n String string0 = evaluation0.toSummaryString();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertNotNull(string0);\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n \n double[] doubleArray0 = new double[6];\n doubleArray0[0] = (double) (-1);\n doubleArray0[1] = (double) (-2);\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, (-2.0));\n assertEquals(6, doubleArray0.length);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertArrayEquals(new double[] {(-1.0), (-2.0), 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NEGATIVE_INFINITY, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n \n String string1 = \"trimTipText\";\n try { \n Evaluation.handleCostOption(\"trimTipText\", (-3229));\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't open file null.\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "8ec890fa9a8e9cb8690a0d9fd28b0180", "score": "0.55862683", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n naiveBayesMultinomialText0.getRevision();\n Stopwords stopwords0 = naiveBayesMultinomialText0.m_stopwords;\n naiveBayesMultinomialText0.m_stopwords = null;\n naiveBayesMultinomialText0.m_periodicP = 178;\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"y9\\\"{kp-zo@#fdP\");\n naiveBayesMultinomialText0.buildClassifier(instances0);\n int[] intArray0 = new int[8];\n intArray0[0] = (-2);\n intArray0[1] = (-1);\n intArray0[2] = (-2);\n intArray0[3] = (-2);\n intArray0[4] = 178;\n intArray0[5] = (-3067);\n intArray0[6] = 178;\n intArray0[7] = 178;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance((-1), intArray0, (-1));\n SparseInstance sparseInstance0 = new SparseInstance((Instance) binarySparseInstance0);\n SparseInstance sparseInstance1 = new SparseInstance(sparseInstance0);\n naiveBayesMultinomialText0.distributionForInstance(sparseInstance1);\n }", "title": "" }, { "docid": "903a880814dec379f792a6cb7ec0701a", "score": "0.5585979", "text": "@Test(timeout = 4000)\n public void test62() throws Throwable {\n double[] doubleArray0 = new double[3];\n doubleArray0[0] = 1732.955775904258;\n doubleArray0[1] = 1732.955775904258;\n doubleArray0[2] = 1732.955775904258;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1732.955775904258, doubleArray0);\n Attribute attribute0 = new Attribute((String) null, (String) null);\n SparseInstance sparseInstance0 = new SparseInstance(1);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"SQ%F4p<7Wb\", arrayList0, 1);\n instances0.add((Instance) binarySparseInstance0);\n int[] intArray0 = new int[7];\n intArray0[0] = 0;\n intArray0[1] = 4;\n intArray0[2] = 4;\n intArray0[4] = 0;\n intArray0[6] = 1;\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance((Instance) binarySparseInstance0);\n FileSystemHandling.shouldAllThrowIOExceptions();\n JRip jRip0 = new JRip();\n jRip0.setUsePruning(false);\n arrayList0.add(attribute0);\n try { \n jRip0.rulesetForOneClass(4, instances0, 0, (-1222.0));\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Class is not set!\n //\n verifyException(\"weka.core.AbstractInstance\", e);\n }\n }", "title": "" }, { "docid": "82d700ac075d4a78677e19162a8112e4", "score": "0.55796206", "text": "@Test(timeout = 4000)\n public void test078() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setPhotoQuality(1697);\n int int0 = homeEnvironment0.getPhotoQuality();\n assertEquals(1697, int0);\n }", "title": "" }, { "docid": "7e124d4619cdf828bd97450427ec2633", "score": "0.55787045", "text": "public int getTests()\n {\n return 1; //JG\n }", "title": "" }, { "docid": "3ccd9a7d1d37774efa013e9e0eba2469", "score": "0.55779487", "text": "private double performChiTest(){\r\n\t\tdouble[] expected = getExpected();\r\n\t\tlong[] pov = getPov();\r\n\t\tdouble chiTestResult = new ChiSquareTest().chiSquareTest(expected, pov);\r\n\t\treturn chiTestResult;\r\n\t}", "title": "" }, { "docid": "52e1ef34ac3df44004ea170653aae11e", "score": "0.5577585", "text": "@Test(timeout = 4000)\n public void test59() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n SparseInstance sparseInstance0 = new SparseInstance(79);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"optimization in this implementation.\\n\\n\", arrayList0, 1);\n instances0.add((Instance) sparseInstance0);\n Attribute attribute1 = new Attribute(\"\", 4);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute1);\n jRip_NominalAntd0.splitData(instances0, 583.7945140147125, (-270.28298));\n jRip_NominalAntd0.covers(sparseInstance0);\n ArrayList<String> arrayList1 = new ArrayList<String>();\n Attribute attribute2 = new Attribute(\"relational\", arrayList1);\n JRip jRip1 = new JRip();\n try { \n jRip1.rulesetForOneClass((-2620.447761), instances0, 2, 0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Class index is negative (not set)!\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "fac2f2d80d32725e3118211708b0a3e2", "score": "0.5575892", "text": "@Test(timeout = 4000)\n public void test073() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.clearSummary();\n resultMatrixSignificance0.m_RemoveFilterName = false;\n resultMatrixSignificance0.clear();\n int[][] intArray0 = new int[4][3];\n int[] intArray1 = new int[1];\n intArray1[0] = 0;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[7];\n intArray2[0] = 2;\n intArray2[1] = 0;\n intArray2[2] = 0;\n intArray2[3] = 1;\n intArray2[4] = 10;\n intArray2[5] = 1;\n intArray2[6] = 0;\n intArray0[1] = intArray2;\n int[] intArray3 = new int[2];\n intArray3[0] = (-783);\n intArray3[1] = 1;\n intArray0[2] = intArray3;\n int[] intArray4 = new int[3];\n intArray4[0] = 0;\n intArray4[1] = (-783);\n intArray4[2] = 0;\n intArray0[3] = intArray4;\n resultMatrixSignificance0.m_NonSigWins = intArray0;\n resultMatrixSignificance0.stdDevWidthTipText();\n resultMatrixSignificance0.showStdDevTipText();\n resultMatrixSignificance0.clearRanking();\n resultMatrixSignificance0.setShowAverage(true);\n resultMatrixSignificance0.setMean(2148, (-144), (-144));\n resultMatrixSignificance0.getDefaultStdDevPrec();\n resultMatrixSignificance0.getDefaultRemoveFilterName();\n resultMatrixSignificance0.getVisibleColCount();\n resultMatrixSignificance0.stdDevWidthTipText();\n resultMatrixSignificance0.setColHidden(2, false);\n assertTrue(resultMatrixSignificance0.getShowAverage());\n }", "title": "" } ]
8851f75b1adb324aa48c6dd2b848cfe7
Returns a new object of class 'Basic Scaling Type'.
[ { "docid": "cfd70afbbe769ca2ba5a1a76f7f9c8bb", "score": "0.8971622", "text": "BasicScalingType createBasicScalingType();", "title": "" } ]
[ { "docid": "5bfa13de26131ab25e227c9adfeb0761", "score": "0.7364024", "text": "ManualScalingType createManualScalingType();", "title": "" }, { "docid": "db6e119d519492e317569a3479b828cf", "score": "0.6894298", "text": "AutomaticScalingType createAutomaticScalingType();", "title": "" }, { "docid": "f981df12f977c6cf3ecaeae27d972a4b", "score": "0.6649385", "text": "ScaleType getScale();", "title": "" }, { "docid": "e2dca825c4e292c78357df8a232a1cd5", "score": "0.66392314", "text": "public interface ScalingUtils$StatefulScaleType {\n Object m21594a();\n}", "title": "" }, { "docid": "d343463e03887f1604f156dbc2bc1019", "score": "0.6253145", "text": "public ScaleInformation() {\n\t\tthis(0.0, 0.0, 800.0, 540.0, 800, 540);\n\t}", "title": "" }, { "docid": "4a9260b2f7d50ebe686af099ae3a655c", "score": "0.6229682", "text": "public Scale()\n\t{\n\t\tthis.scaleName = \"no scale\";\n\t\tthis.scaleDegrees = \"no degrees\";\n\t\tthis.degreeCount = -99;\n\t}", "title": "" }, { "docid": "0b8f9426433a95d9dae2b04bf6d585dc", "score": "0.6077515", "text": "public Scale(Scale newScale){\n \tsuper(newScale);\n }", "title": "" }, { "docid": "1533d6fdc86ca95f9f44f010b5ace788", "score": "0.59925663", "text": "public Type() {\n\t\tsetSize();\n\t}", "title": "" }, { "docid": "64559337803514da770695bd0f23996f", "score": "0.5908465", "text": "public ScaleControl() {\n super();\n }", "title": "" }, { "docid": "de07bcc47741fe45c10abbc37c44cab9", "score": "0.584393", "text": "public static ObjectInstance getBasicTypesObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 1);\n properties.put(\"isBoolean\", Boolean.toString((getBasicTypesMBean()\n .getIsBoolean())));\n properties.put(\"byte\", Byte\n .toString(getBasicTypesMBean().getByte()));\n properties.put(\"charLetter\", String.valueOf(getBasicTypesMBean()\n .getCharLetter()));\n properties.put(\"doubleNumber\", Double\n .toString((getBasicTypesMBean().getDoubleNumber())));\n properties.put(\"floatNumber\", Float.toString((getBasicTypesMBean()\n .getFloatNumber())));\n properties.put(\"intNumber\", Integer.toString(getBasicTypesMBean()\n .getIntNumber()));\n properties.put(\"longNumber\", Long.toString(getBasicTypesMBean()\n .getLongNumber()));\n properties.put(\"shortNumber\", Short.toString(getBasicTypesMBean()\n .getShortNumber()));\n properties.put(\"theLabel\", getBasicTypesMBean().getTheLabel());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'BasicTypes' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new BasicTypes().getClass().getName());\n }", "title": "" }, { "docid": "7532aa4fbe95208ff0a1beb64c01dde5", "score": "0.57409406", "text": "Generalization createGeneralization();", "title": "" }, { "docid": "e4a6c2e54477e6699d4594cc6bb76cf3", "score": "0.56609386", "text": "public Type(String name) {\n\t\tsuper(name);\n\t\tsetSize();\n\t}", "title": "" }, { "docid": "da22fa62687ec9ce6c2928f753fbd843", "score": "0.5638182", "text": "public static Scale of(Tone tone, ScaleType type) {\n return new AutoValue_Scale(tone, type);\n }", "title": "" }, { "docid": "e561ea79131f094a049aa3d362fb7896", "score": "0.5618472", "text": "public static ObjectInstance getBasicTypeArraysObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 1);\n properties.put(\"theLabel\", getBasicTypeArraysMBean().getTheLabel());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'BasicTypeArrays' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new BasicTypeArrays().getClass().getName());\n }", "title": "" }, { "docid": "ac9e28600da047511d30ad3c49972459", "score": "0.5592433", "text": "public static ObjectInstance getBasicTypesWrapperObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 1);\n properties.put(\"theLabel\", \"BasicTypesWrapperMBean\");\n properties.put(\"payload\", getBasicTypesWrapperMBean().getPayload()\n .toString());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'BasicTypesWrapper' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new BasicTypesWrapper().getClass()\n .getName());\n }", "title": "" }, { "docid": "57091bcc3021d14a18501c7af719004b", "score": "0.5588129", "text": "int getScale();", "title": "" }, { "docid": "7e6e2b7549947f540ef9b10888413cc7", "score": "0.5574329", "text": "public T caseScale(Scale object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e4cbab59c886ac438e7772cfd892f9f9", "score": "0.5549885", "text": "public XSSFColorScaleFormatting createColorScaleFormatting() {\n if (_cfRule.isSetColorScale() && _cfRule.getType() == STCfType.COLOR_SCALE)\n return getColorScaleFormatting();\n \n // Mark it as being a Color Scale\n _cfRule.setType(STCfType.COLOR_SCALE);\n\n // Ensure the right element\n CTColorScale scale = null;\n if (_cfRule.isSetColorScale()) {\n scale = _cfRule.getColorScale();\n } else {\n scale = _cfRule.addNewColorScale();\n }\n \n // Add a default set of thresholds and colors\n if (scale.sizeOfCfvoArray() == 0) {\n CTCfvo cfvo;\n cfvo = scale.addNewCfvo();\n cfvo.setType(STCfvoType.Enum.forString(RangeType.MIN.name));\n cfvo = scale.addNewCfvo();\n cfvo.setType(STCfvoType.Enum.forString(RangeType.PERCENTILE.name));\n cfvo.setVal(\"50\");\n cfvo = scale.addNewCfvo();\n cfvo.setType(STCfvoType.Enum.forString(RangeType.MAX.name));\n \n for (int i=0; i<3; i++) {\n scale.addNewColor();\n }\n }\n \n // Wrap and return\n return new XSSFColorScaleFormatting(scale, _sh.getWorkbook().getStylesSource().getIndexedColors());\n }", "title": "" }, { "docid": "94f144cc538629e07b5de3ea3ed2f232", "score": "0.5496058", "text": "public static ObjectInstance getBasicTypesWrapperClassObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 1);\n properties.put(\"boolean\", Boolean\n .toString((getBasicTypesWrapperClassMBean().getBoolean())));\n properties.put(\"byte\", Byte\n .toString(getBasicTypesWrapperClassMBean().getByte()));\n properties.put(\"character\", String\n .valueOf(getBasicTypesWrapperClassMBean().getCharacter()));\n properties.put(\"double\", Double\n .toString((getBasicTypesWrapperClassMBean().getDouble())));\n properties.put(\"float\", Float\n .toString((getBasicTypesWrapperClassMBean().getFloat())));\n properties.put(\"integer\", Integer\n .toString(getBasicTypesWrapperClassMBean().getInteger()));\n properties.put(\"long\", Long\n .toString(getBasicTypesWrapperClassMBean().getLong()));\n properties.put(\"short\", Short\n .toString(getBasicTypesWrapperClassMBean().getShort()));\n properties.put(\"theLabel\", getBasicTypesWrapperClassMBean()\n .getTheLabel());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'BasicTypesWrapperClass' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new BasicTypesWrapperClass().getClass()\n .getName());\n }", "title": "" }, { "docid": "7d7db48c2a519fe33b5af08420d0c005", "score": "0.5473158", "text": "public float getScale();", "title": "" }, { "docid": "b7b7aaf96ecfb0edb249bbde1b4e40db", "score": "0.5435206", "text": "public HeatedObjectScale() {\n colors = new java.awt.Color[256];\n colors[ 0] = new java.awt.Color(0, 0, 0);\n colors[ 1] = new java.awt.Color(35, 0, 0);\n colors[ 2] = new java.awt.Color(52, 0, 0);\n colors[ 3] = new java.awt.Color(60, 0, 0);\n colors[ 4] = new java.awt.Color(63, 1, 0);\n colors[ 5] = new java.awt.Color(64, 2, 0);\n colors[ 6] = new java.awt.Color(68, 5, 0);\n colors[ 7] = new java.awt.Color(69, 6, 0);\n colors[ 8] = new java.awt.Color(72, 8, 0);\n colors[ 9] = new java.awt.Color(74, 10, 0);\n colors[ 10] = new java.awt.Color(77, 12, 0);\n colors[ 11] = new java.awt.Color(78, 14, 0);\n colors[ 12] = new java.awt.Color(81, 16, 0);\n colors[ 13] = new java.awt.Color(83, 17, 0);\n colors[ 14] = new java.awt.Color(85, 19, 0);\n colors[ 15] = new java.awt.Color(86, 20, 0);\n colors[ 16] = new java.awt.Color(89, 22, 0);\n colors[ 17] = new java.awt.Color(91, 24, 0);\n colors[ 18] = new java.awt.Color(92, 25, 0);\n colors[ 19] = new java.awt.Color(94, 26, 0);\n colors[ 20] = new java.awt.Color(95, 28, 0);\n colors[ 21] = new java.awt.Color(98, 30, 0);\n colors[ 22] = new java.awt.Color(100, 31, 0);\n colors[ 23] = new java.awt.Color(102, 33, 0);\n colors[ 24] = new java.awt.Color(103, 34, 0);\n colors[ 25] = new java.awt.Color(105, 35, 0);\n colors[ 26] = new java.awt.Color(106, 36, 0);\n colors[ 27] = new java.awt.Color(108, 38, 0);\n colors[ 28] = new java.awt.Color(109, 39, 0);\n colors[ 29] = new java.awt.Color(111, 40, 0);\n colors[ 30] = new java.awt.Color(112, 42, 0);\n colors[ 31] = new java.awt.Color(114, 43, 0);\n colors[ 32] = new java.awt.Color(115, 44, 0);\n colors[ 33] = new java.awt.Color(117, 45, 0);\n colors[ 34] = new java.awt.Color(119, 47, 0);\n colors[ 35] = new java.awt.Color(119, 47, 0);\n colors[ 36] = new java.awt.Color(120, 48, 0);\n colors[ 37] = new java.awt.Color(122, 49, 0);\n colors[ 38] = new java.awt.Color(123, 51, 0);\n colors[ 39] = new java.awt.Color(125, 52, 0);\n colors[ 40] = new java.awt.Color(125, 52, 0);\n colors[ 41] = new java.awt.Color(126, 53, 0);\n colors[ 42] = new java.awt.Color(128, 54, 0);\n colors[ 43] = new java.awt.Color(129, 56, 0);\n colors[ 44] = new java.awt.Color(129, 56, 0);\n colors[ 45] = new java.awt.Color(131, 57, 0);\n colors[ 46] = new java.awt.Color(132, 58, 0);\n colors[ 47] = new java.awt.Color(134, 59, 0);\n colors[ 48] = new java.awt.Color(134, 59, 0);\n colors[ 49] = new java.awt.Color(136, 61, 0);\n colors[ 50] = new java.awt.Color(137, 62, 0);\n colors[ 51] = new java.awt.Color(137, 62, 0);\n colors[ 52] = new java.awt.Color(139, 63, 0);\n colors[ 53] = new java.awt.Color(139, 63, 0);\n colors[ 54] = new java.awt.Color(140, 65, 0);\n colors[ 55] = new java.awt.Color(142, 66, 0);\n colors[ 56] = new java.awt.Color(142, 66, 0);\n colors[ 57] = new java.awt.Color(143, 67, 0);\n colors[ 58] = new java.awt.Color(143, 67, 0);\n colors[ 59] = new java.awt.Color(145, 68, 0);\n colors[ 60] = new java.awt.Color(145, 68, 0);\n colors[ 61] = new java.awt.Color(146, 70, 0);\n colors[ 62] = new java.awt.Color(146, 70, 0);\n colors[ 63] = new java.awt.Color(148, 71, 0);\n colors[ 64] = new java.awt.Color(148, 71, 0);\n colors[ 65] = new java.awt.Color(149, 72, 0);\n colors[ 66] = new java.awt.Color(149, 72, 0);\n colors[ 67] = new java.awt.Color(151, 73, 0);\n colors[ 68] = new java.awt.Color(151, 73, 0);\n colors[ 69] = new java.awt.Color(153, 75, 0);\n colors[ 70] = new java.awt.Color(153, 75, 0);\n colors[ 71] = new java.awt.Color(154, 76, 0);\n colors[ 72] = new java.awt.Color(154, 76, 0);\n colors[ 73] = new java.awt.Color(154, 76, 0);\n colors[ 74] = new java.awt.Color(156, 77, 0);\n colors[ 75] = new java.awt.Color(156, 77, 0);\n colors[ 76] = new java.awt.Color(157, 79, 0);\n colors[ 77] = new java.awt.Color(157, 79, 0);\n colors[ 78] = new java.awt.Color(159, 80, 0);\n colors[ 79] = new java.awt.Color(159, 80, 0);\n colors[ 80] = new java.awt.Color(159, 80, 0);\n colors[ 81] = new java.awt.Color(160, 81, 0);\n colors[ 82] = new java.awt.Color(160, 81, 0);\n colors[ 83] = new java.awt.Color(162, 82, 0);\n colors[ 84] = new java.awt.Color(162, 82, 0);\n colors[ 85] = new java.awt.Color(163, 84, 0);\n colors[ 86] = new java.awt.Color(163, 84, 0);\n colors[ 87] = new java.awt.Color(165, 85, 0);\n colors[ 88] = new java.awt.Color(165, 85, 0);\n colors[ 89] = new java.awt.Color(166, 86, 0);\n colors[ 90] = new java.awt.Color(166, 86, 0);\n colors[ 91] = new java.awt.Color(166, 86, 0);\n colors[ 92] = new java.awt.Color(168, 87, 0);\n colors[ 93] = new java.awt.Color(168, 87, 0);\n colors[ 94] = new java.awt.Color(170, 89, 0);\n colors[ 95] = new java.awt.Color(170, 89, 0);\n colors[ 96] = new java.awt.Color(171, 90, 0);\n colors[ 97] = new java.awt.Color(171, 90, 0);\n colors[ 98] = new java.awt.Color(173, 91, 0);\n colors[ 99] = new java.awt.Color(173, 91, 0);\n colors[100] = new java.awt.Color(174, 93, 0);\n colors[101] = new java.awt.Color(174, 93, 0);\n colors[102] = new java.awt.Color(176, 94, 0);\n colors[103] = new java.awt.Color(176, 94, 0);\n colors[104] = new java.awt.Color(177, 95, 0);\n colors[105] = new java.awt.Color(177, 95, 0);\n colors[106] = new java.awt.Color(179, 96, 0);\n colors[107] = new java.awt.Color(179, 96, 0);\n colors[108] = new java.awt.Color(180, 98, 0);\n colors[109] = new java.awt.Color(182, 99, 0);\n colors[110] = new java.awt.Color(182, 99, 0);\n colors[111] = new java.awt.Color(183, 100, 0);\n colors[112] = new java.awt.Color(183, 100, 0);\n colors[113] = new java.awt.Color(185, 102, 0);\n colors[114] = new java.awt.Color(185, 102, 0);\n colors[115] = new java.awt.Color(187, 103, 0);\n colors[116] = new java.awt.Color(187, 103, 0);\n colors[117] = new java.awt.Color(188, 104, 0);\n colors[118] = new java.awt.Color(188, 104, 0);\n colors[119] = new java.awt.Color(190, 105, 0);\n colors[120] = new java.awt.Color(191, 107, 0);\n colors[121] = new java.awt.Color(191, 107, 0);\n colors[122] = new java.awt.Color(193, 108, 0);\n colors[123] = new java.awt.Color(193, 108, 0);\n colors[124] = new java.awt.Color(194, 109, 0);\n colors[125] = new java.awt.Color(196, 110, 0);\n colors[126] = new java.awt.Color(196, 110, 0);\n colors[127] = new java.awt.Color(197, 112, 0);\n colors[128] = new java.awt.Color(197, 112, 0);\n colors[129] = new java.awt.Color(199, 113, 0);\n colors[130] = new java.awt.Color(200, 114, 0);\n colors[131] = new java.awt.Color(200, 114, 0);\n colors[132] = new java.awt.Color(202, 116, 0);\n colors[133] = new java.awt.Color(202, 116, 0);\n colors[134] = new java.awt.Color(204, 117, 0);\n colors[135] = new java.awt.Color(205, 118, 0);\n colors[136] = new java.awt.Color(205, 118, 0);\n colors[137] = new java.awt.Color(207, 119, 0);\n colors[138] = new java.awt.Color(208, 121, 0);\n colors[139] = new java.awt.Color(208, 121, 0);\n colors[140] = new java.awt.Color(210, 122, 0);\n colors[141] = new java.awt.Color(211, 123, 0);\n colors[142] = new java.awt.Color(211, 123, 0);\n colors[143] = new java.awt.Color(213, 124, 0);\n colors[144] = new java.awt.Color(214, 126, 0);\n colors[145] = new java.awt.Color(214, 126, 0);\n colors[146] = new java.awt.Color(216, 127, 0);\n colors[147] = new java.awt.Color(217, 128, 0);\n colors[148] = new java.awt.Color(217, 128, 0);\n colors[149] = new java.awt.Color(219, 130, 0);\n colors[150] = new java.awt.Color(221, 131, 0);\n colors[151] = new java.awt.Color(221, 131, 0);\n colors[152] = new java.awt.Color(222, 132, 0);\n colors[153] = new java.awt.Color(224, 133, 0);\n colors[154] = new java.awt.Color(224, 133, 0);\n colors[155] = new java.awt.Color(225, 135, 0);\n colors[156] = new java.awt.Color(227, 136, 0);\n colors[157] = new java.awt.Color(227, 136, 0);\n colors[158] = new java.awt.Color(228, 137, 0);\n colors[159] = new java.awt.Color(230, 138, 0);\n colors[160] = new java.awt.Color(230, 138, 0);\n colors[161] = new java.awt.Color(231, 140, 0);\n colors[162] = new java.awt.Color(233, 141, 0);\n colors[163] = new java.awt.Color(233, 141, 0);\n colors[164] = new java.awt.Color(234, 142, 0);\n colors[165] = new java.awt.Color(236, 144, 0);\n colors[166] = new java.awt.Color(236, 144, 0);\n colors[167] = new java.awt.Color(238, 145, 0);\n colors[168] = new java.awt.Color(239, 146, 0);\n colors[169] = new java.awt.Color(241, 147, 0);\n colors[170] = new java.awt.Color(241, 147, 0);\n colors[171] = new java.awt.Color(242, 149, 0);\n colors[172] = new java.awt.Color(244, 150, 0);\n colors[173] = new java.awt.Color(244, 150, 0);\n colors[174] = new java.awt.Color(245, 151, 0);\n colors[175] = new java.awt.Color(247, 153, 0);\n colors[176] = new java.awt.Color(247, 153, 0);\n colors[177] = new java.awt.Color(248, 154, 0);\n colors[178] = new java.awt.Color(250, 155, 0);\n colors[179] = new java.awt.Color(251, 156, 0);\n colors[180] = new java.awt.Color(251, 156, 0);\n colors[181] = new java.awt.Color(253, 158, 0);\n colors[182] = new java.awt.Color(255, 159, 0);\n colors[183] = new java.awt.Color(255, 159, 0);\n colors[184] = new java.awt.Color(255, 160, 0);\n colors[185] = new java.awt.Color(255, 161, 0);\n colors[186] = new java.awt.Color(255, 163, 0);\n colors[187] = new java.awt.Color(255, 163, 0);\n colors[188] = new java.awt.Color(255, 164, 0);\n colors[189] = new java.awt.Color(255, 165, 0);\n colors[190] = new java.awt.Color(255, 167, 0);\n colors[191] = new java.awt.Color(255, 167, 0);\n colors[192] = new java.awt.Color(255, 168, 0);\n colors[193] = new java.awt.Color(255, 169, 0);\n colors[194] = new java.awt.Color(255, 169, 0);\n colors[195] = new java.awt.Color(255, 170, 0);\n colors[196] = new java.awt.Color(255, 172, 0);\n colors[197] = new java.awt.Color(255, 173, 0);\n colors[198] = new java.awt.Color(255, 173, 0);\n colors[199] = new java.awt.Color(255, 174, 0);\n colors[200] = new java.awt.Color(255, 175, 0);\n colors[201] = new java.awt.Color(255, 177, 0);\n colors[202] = new java.awt.Color(255, 178, 0);\n colors[203] = new java.awt.Color(255, 179, 0);\n colors[204] = new java.awt.Color(255, 181, 0);\n colors[205] = new java.awt.Color(255, 181, 0);\n colors[206] = new java.awt.Color(255, 182, 0);\n colors[207] = new java.awt.Color(255, 183, 0);\n colors[208] = new java.awt.Color(255, 184, 0);\n colors[209] = new java.awt.Color(255, 187, 7);\n colors[210] = new java.awt.Color(255, 188, 10);\n colors[211] = new java.awt.Color(255, 189, 14);\n colors[212] = new java.awt.Color(255, 191, 18);\n colors[213] = new java.awt.Color(255, 192, 21);\n colors[214] = new java.awt.Color(255, 193, 25);\n colors[215] = new java.awt.Color(255, 195, 29);\n colors[216] = new java.awt.Color(255, 197, 36);\n colors[217] = new java.awt.Color(255, 198, 40);\n colors[218] = new java.awt.Color(255, 200, 43);\n colors[219] = new java.awt.Color(255, 202, 51);\n colors[220] = new java.awt.Color(255, 204, 54);\n colors[221] = new java.awt.Color(255, 206, 61);\n colors[222] = new java.awt.Color(255, 207, 65);\n colors[223] = new java.awt.Color(255, 210, 72);\n colors[224] = new java.awt.Color(255, 211, 76);\n colors[225] = new java.awt.Color(255, 214, 83);\n colors[226] = new java.awt.Color(255, 216, 91);\n colors[227] = new java.awt.Color(255, 219, 98);\n colors[228] = new java.awt.Color(255, 221, 105);\n colors[229] = new java.awt.Color(255, 223, 109);\n colors[230] = new java.awt.Color(255, 225, 116);\n colors[231] = new java.awt.Color(255, 228, 123);\n colors[232] = new java.awt.Color(255, 232, 134);\n colors[233] = new java.awt.Color(255, 234, 142);\n colors[234] = new java.awt.Color(255, 237, 149);\n colors[235] = new java.awt.Color(255, 239, 156);\n colors[236] = new java.awt.Color(255, 240, 160);\n colors[237] = new java.awt.Color(255, 243, 167);\n colors[238] = new java.awt.Color(255, 246, 174);\n colors[239] = new java.awt.Color(255, 248, 182);\n colors[240] = new java.awt.Color(255, 249, 185);\n colors[241] = new java.awt.Color(255, 252, 193);\n colors[242] = new java.awt.Color(255, 253, 196);\n colors[243] = new java.awt.Color(255, 255, 204);\n colors[244] = new java.awt.Color(255, 255, 207);\n colors[245] = new java.awt.Color(255, 255, 211);\n colors[246] = new java.awt.Color(255, 255, 218);\n colors[247] = new java.awt.Color(255, 255, 222);\n colors[248] = new java.awt.Color(255, 255, 225);\n colors[249] = new java.awt.Color(255, 255, 229);\n colors[250] = new java.awt.Color(255, 255, 233);\n colors[251] = new java.awt.Color(255, 255, 236);\n colors[252] = new java.awt.Color(255, 255, 240);\n colors[253] = new java.awt.Color(255, 255, 244);\n colors[254] = new java.awt.Color(255, 255, 247);\n colors[255] = new java.awt.Color(255, 255, 255);\n }", "title": "" }, { "docid": "c19f034d9f793fa4bb70e58c0611f598", "score": "0.540722", "text": "public Scale getScale() {\n return this.scale;\n }", "title": "" }, { "docid": "cbdff9cdd163c7f955ca16fe07f46ba6", "score": "0.5393849", "text": "public CwmDimensionedObject createCwmDimensionedObject();", "title": "" }, { "docid": "7918e4309ce49b81418d2d3be1f8e6b6", "score": "0.5380503", "text": "DataPointType createDataPointType();", "title": "" }, { "docid": "ba78fc9a27ccec2e21006391230b9df1", "score": "0.53694695", "text": "LegendType createLegendType();", "title": "" }, { "docid": "6fd2ee4a11e23c980c7abb69eea9e4e4", "score": "0.5334851", "text": "Type() {\n }", "title": "" }, { "docid": "70c43a4987d3c4c930e04b109ca44a60", "score": "0.5323348", "text": "public Image createScaledImage (double scale, int interpolType)\r\n {\r\n\tImageScaler scaler = new ImageScaler(scale, interpolType);\r\n\treturn (HSIImage)scaler.filter(this);\r\n }", "title": "" }, { "docid": "14629d9c14fb7eff8dfcef15c66bafd5", "score": "0.5302497", "text": "public int getScale(){\n return scale;\n }", "title": "" }, { "docid": "356757d335bcc55faced6c075f9f7dfc", "score": "0.5300126", "text": "@Override\n public float getScale() {\n return scale;\n }", "title": "" }, { "docid": "bc9eb52e6d8a5bb2189916a6d912a794", "score": "0.52998", "text": "public static ObjectInstance getComplexTypeObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 1);\n properties.put(\"theLabel\", getComplexTypeMBean().getTheLabel());\n properties.put(\"complexitem\", getComplexTypeMBean()\n .getComplexClass().toString());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'ComplexType' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new ComplexType().getClass().getName());\n }", "title": "" }, { "docid": "6041b7bc123f5a13aa7295bf5b578123", "score": "0.52949", "text": "public int getScale() {\n return scale_;\n }", "title": "" }, { "docid": "a88e40d14341e8f5b8d05a482a8427e1", "score": "0.52931255", "text": "public Configuration getScale() {\n return scale;\n }", "title": "" }, { "docid": "b8aca8f64d7a6093ae5e0f80918a1cf4", "score": "0.52916163", "text": "public Builder clearMediaAssetScaleType() {\n copyOnWrite();\n instance.clearMediaAssetScaleType();\n return this;\n }", "title": "" }, { "docid": "3e85b1a413910fb9422144d661db707a", "score": "0.5285397", "text": "public double getScale() {\n return scale;\n }", "title": "" }, { "docid": "ddcd2c3d2667f2ced793b7821ca28dea", "score": "0.5279065", "text": "public ProductType(String name, String spacecraft, String sensor,\n String description, String level)\n {\n this.name = name;\n this.spacecraft = spacecraft.toUpperCase();\n this.sensor = sensor;\n this.description = description;\n this.level = level;\n }", "title": "" }, { "docid": "4fcd5b0acab3e3c6633a744b1aa9cadd", "score": "0.5278997", "text": "public org.python.types.Type __new__(org.python.types.Type cls);", "title": "" }, { "docid": "d01167361df4877d22b8f9e7c88434d6", "score": "0.52768004", "text": "PagespeedType createPagespeedType();", "title": "" }, { "docid": "f170962dff4c2091264efcb4ab6a1350", "score": "0.5266364", "text": "protected SimpleTypeImpl getSimpleNoCollectionWithBaseType() {\n return new SimpleTypeImpl(\"simpleNameSpace\", \"simpleType\", null, false, null, getSimpleNoCollection(), null);\n }", "title": "" }, { "docid": "ef6a186b8ca63678ed034cdbbf2d5c81", "score": "0.52598196", "text": "AxisType createAxisType();", "title": "" }, { "docid": "7f075899197925459768ec8a8a99029c", "score": "0.5250964", "text": "public CreateScaledImagesService() {\n super(\"CreateScaledImagesService\");\n }", "title": "" }, { "docid": "8fddc0fd0f23f16d2283599dee3f28e6", "score": "0.52389294", "text": "Simple createSimple();", "title": "" }, { "docid": "c4dbf33bb29c4c271d3222a73fbb49ac", "score": "0.5237716", "text": "SMALL createSMALL();", "title": "" }, { "docid": "b5e3502387171cda1456d85e325ce76a", "score": "0.5221046", "text": "SeriesType createSeriesType();", "title": "" }, { "docid": "8340e0985713867c24718a8380502352", "score": "0.5207388", "text": "protected SimpleTypeImpl getSimpleNoCollection() {\n return new SimpleTypeImpl(\"simpleNameSpace\", SIMPLE_TYPE_NAME, null);\n }", "title": "" }, { "docid": "f1724e7266cdac691821dc0a235cad3b", "score": "0.52050513", "text": "CpuUtilizationType createCpuUtilizationType();", "title": "" }, { "docid": "035ea63a596d699520669458f58bc6e2", "score": "0.51971155", "text": "public Type() {\n super();\n }", "title": "" }, { "docid": "5756948f2b38c8182d955405c185f4b1", "score": "0.51836145", "text": "public Integer getScale() {\n return _scale;\n }", "title": "" }, { "docid": "5756948f2b38c8182d955405c185f4b1", "score": "0.51836145", "text": "public Integer getScale() {\n return _scale;\n }", "title": "" }, { "docid": "5c203882ff2ce8a46030e391c0434024", "score": "0.5173972", "text": "public InsulinType(){\n super();\n }", "title": "" }, { "docid": "d53bec05e3a38ba4b3c08ed02a81674a", "score": "0.5173324", "text": "public Platform()\n\t{\n\t\t//Add code to scale image here\n\t\tgetImage().scale(100, 16);\n\t}", "title": "" }, { "docid": "3fe269f4eb88bc860963678b68ca07d9", "score": "0.51684004", "text": "public int getScale() {\r\n return scale;\r\n }", "title": "" }, { "docid": "4137713bf7e75693670c80249566c55e", "score": "0.5161975", "text": "SettingType createSettingType();", "title": "" }, { "docid": "d176053e3e0664ac77031b653ef6fefe", "score": "0.51329255", "text": "private ProfitPerTariffType ()\n {\n super();\n }", "title": "" }, { "docid": "83e20477b0a1c46f4599e06d61f44881", "score": "0.5127922", "text": "Type createType();", "title": "" }, { "docid": "83e20477b0a1c46f4599e06d61f44881", "score": "0.5127922", "text": "Type createType();", "title": "" }, { "docid": "83e20477b0a1c46f4599e06d61f44881", "score": "0.5127922", "text": "Type createType();", "title": "" }, { "docid": "9bdc9a2ce6cb148b05bfd8a5e57c00ae", "score": "0.51089925", "text": "@Override\n public Double scalingFactor() {\n return 1.55d;\n }", "title": "" }, { "docid": "815523afa16d92677341443af1648f4c", "score": "0.5106697", "text": "public double getScale() {\r\n return scale;\r\n }", "title": "" }, { "docid": "29c34d4f2b94dbd5ae3e36530ca03afe", "score": "0.5106308", "text": "public static BasicTypesMBean getBasicTypesMBean()\n {\n return new BasicTypes();\n }", "title": "" }, { "docid": "a029890807ad1bedf07eca1aba605879", "score": "0.5086176", "text": "void setScale(ScaleSelector sensor, int scaleNo);", "title": "" }, { "docid": "6fd5d758d18133eaaf401b66be128d80", "score": "0.5077588", "text": "Dimension_Dimension createDimension_Dimension();", "title": "" }, { "docid": "055f2e431142c253d85462aec0679afa", "score": "0.50745636", "text": "public double getScale(){\n\t\treturn scale;\n\t}", "title": "" }, { "docid": "f50016e0e8e2cb96006be2140f02493b", "score": "0.50524", "text": "public int getMediaAssetScaleTypeValue() {\n return mediaAssetScaleType_;\n }", "title": "" }, { "docid": "86caf26231981c1450ccbebb0cadff6a", "score": "0.5050857", "text": "protected ModelType newHolesType() {\n\t\treturn new GenericSimpleType(Collection.class, new Class[] { Hole.class });\n\t}", "title": "" }, { "docid": "fa7a32b86cdc5b536f2ecf3596249439", "score": "0.5044855", "text": "public double getScale() {\n return scale;\n }", "title": "" }, { "docid": "34bd842bb1bcb6b1a14d54addbb9a5e9", "score": "0.5042992", "text": "public Saving typeOfInterestScale(String typeOfInterestScale) {\n this.typeOfInterestScale = typeOfInterestScale;\n return this;\n }", "title": "" }, { "docid": "9c06125af476341cc02febe9bc92cae2", "score": "0.5042847", "text": "ScalarTypeDefinition createScalarTypeDefinition();", "title": "" }, { "docid": "73f37c1abfac51cc64b4b47cb2fa0760", "score": "0.5035534", "text": "public void setScale(float scale);", "title": "" }, { "docid": "fbfac4dae5bc881b35d49a206a964f47", "score": "0.503437", "text": "public double getScale(\n )\n {return scale;}", "title": "" }, { "docid": "104b7f651213e77a377a6d64f20feaf1", "score": "0.5030261", "text": "public ResolutionUnitTag(short type)\r\n\t{\r\n\t\tsuper(getTagTypeValue(), type);\r\n\t\tif(type < NONE || type > CENTIMETER)\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"type < NONE || type > CENTIMETER\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "43a30ed62e55f954cefe5e353f1c1928", "score": "0.50241846", "text": "public static ObjectInstance getComplexTypeObjectInstanceForMaxFileSize()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(1);\n \n \n properties.put(\"theLabel\", getComplexTypeMBeanforMaxFileSize().getTheLabel()); \n properties.put(\"complexitem\", getComplexTypeMBeanforMaxFileSize()\n .getComplexClass().toString()); \n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'ComplexType' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n \n return new ObjectInstance(o, new ComplexTypeForMaxFileSize().getClass().getName());\n }", "title": "" }, { "docid": "a5763a5533fd3ab009ecae0df0e05909", "score": "0.50199854", "text": "StructureType createStructureType();", "title": "" }, { "docid": "0872398089e37cc1fe3a9fa493fc725e", "score": "0.50196075", "text": "public ScaleRuleMetricDimension() {\n }", "title": "" }, { "docid": "32fe9a165c54615de7f985182eccdc2b", "score": "0.50192064", "text": "public Vector330Class scale(double s){\n return new Vector330Class(this.x * s, this.y * s);\n }", "title": "" }, { "docid": "ec322680130dba1d661d3c6041b2748a", "score": "0.5018838", "text": "PropertyType createPropertyType();", "title": "" }, { "docid": "8db042a0f58f6abcc5d8b8b9285a64b6", "score": "0.5016955", "text": "public void setScale(Scale scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "00875b711aef53f6ecfef5b01b01368f", "score": "0.5013014", "text": "@Deprecated\r\n\tpublic QualityValue(){\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "4b6a695aa6e298499a25ecf28e0f1610", "score": "0.49986804", "text": "public SizeLOVConverter() {\n }", "title": "" }, { "docid": "27ef21f4a9568e4a988fe7463ed61e26", "score": "0.49945477", "text": "Tulip getType() { return new Tulip(); }", "title": "" }, { "docid": "35bb68a3622b840284f62e0ad9b0e993", "score": "0.4992439", "text": "ProductType(String name)\n {\n this.name = name;\n }", "title": "" }, { "docid": "b99ad86853bee343fe9233c556aa4b1c", "score": "0.49898615", "text": "CapabilitiesType createCapabilitiesType();", "title": "" }, { "docid": "55ca7c761333d362017824512b040f2d", "score": "0.4983059", "text": "public double getScale() {\n return this.scale;\n }", "title": "" }, { "docid": "b20aec74efb1a30122e97fbd690de823", "score": "0.49730983", "text": "ScaleStrategyConfig getScaleStrategyConfig();", "title": "" }, { "docid": "36ab96939e23f7ace77513dcc2b25a90", "score": "0.4972132", "text": "public double getScaleX() {\n return 1.0;\n }", "title": "" }, { "docid": "812634a79ce75247a9a931371c8f7cdf", "score": "0.4971163", "text": "CategoryType createCategoryType();", "title": "" }, { "docid": "b723ad2114744196bf7dc2288d9e7f77", "score": "0.4967192", "text": "public static BasicTypesWrapperMBean getBasicTypesWrapperMBean()\n {\n return new BasicTypesWrapper();\n }", "title": "" }, { "docid": "b7323fe8f7f8e64a5ea10905c88f41c9", "score": "0.49646625", "text": "public ScaleField addScaleField(final String key, final int minimum, final int maximum, final int increment) {\n String label = key;\n ScaleField scaleField = new ScaleField(getComposite(), _form, key, label, false);\n scaleField.adapt(_formToolkit);\n _form.mapField(key, scaleField);\n scaleField.setRange(minimum, maximum);\n scaleField.setIncrement(increment);\n return scaleField;\n }", "title": "" }, { "docid": "f22533e1e7ef49b466d27f0e8d1887b8", "score": "0.4958876", "text": "Traditional createTraditional();", "title": "" }, { "docid": "7e6d21efaf62249547eb8f3359e186a1", "score": "0.49563375", "text": "VisualizationAttribute createVisualizationAttribute();", "title": "" }, { "docid": "92bb8103ea5d02a1bf248b9acd8d71b1", "score": "0.49503773", "text": "@Override\r\n public double getBaseWeight() { return type.getWeight(); }", "title": "" }, { "docid": "c1ed6791fda985d3646bfd980dfad986", "score": "0.4948305", "text": "MetricModel createMetricModel();", "title": "" }, { "docid": "b1c82d0651184d9932193720807e1de8", "score": "0.4945204", "text": "QualityScenario createQualityScenario();", "title": "" }, { "docid": "fb78fe4b79c657d8826dca453adbb7ed", "score": "0.4940046", "text": "private PTypeRefSkel() {}", "title": "" }, { "docid": "84efc03c8b8403a5b1aed7f5f8850e17", "score": "0.4937812", "text": "@Override\r\n\tpublic SurpriseBox createSurpriseBox(int weight)\r\n\t{\r\n\t\treturn new SurpriseBox(weight);\r\n\t}", "title": "" }, { "docid": "2d1b9ab2e1d3b77b9423dadd79e65311", "score": "0.4937353", "text": "public static Transform newScale(float sx, float sy, float sz){\n return new Transform(new float[][]{\n {sx, 0.0f, 0.0f, 0.0f},\n {0.0f, sy, 0.0f, 0.0f},\n {0.0f, 0.0f, sz, 0.0f},\n {0.0f, 0.0f, 0.0f, 1.0f}\n\n });\n }", "title": "" }, { "docid": "855075764b07f8ced48c92aa521315a7", "score": "0.49371967", "text": "protected abstract S createDefault();", "title": "" }, { "docid": "7091ef8c024a1d1c07a91b7b0aae7caf", "score": "0.49298778", "text": "public Sku() {\n\t}", "title": "" }, { "docid": "e4c08d4e9ce556847c0c01466b8ef9c3", "score": "0.49276894", "text": "private Command createScaleCommand(String command) {\n\t\tString[] tokens = command.split(\" \");\n\t\treturn new ScaleCommand(Double.parseDouble(tokens[1]));\n\t}", "title": "" }, { "docid": "7e8fbd41f39c8b0c0306a933013d2f49", "score": "0.4925616", "text": "public Complex scale(int s) {\n return new Complex(re * s, im * s);\n }", "title": "" }, { "docid": "a3a6ad166918e85de0e7eb7f2c0a073e", "score": "0.49253494", "text": "public Builder setMediaAssetScaleTypeValue(int value) {\n copyOnWrite();\n instance.setMediaAssetScaleTypeValue(value);\n return this;\n }", "title": "" } ]
7a1c5f94a212c072c0aa31195b25d304
pass update() on to each explicitly registered action up above
[ { "docid": "33b080146d2f6b02616268485ed20582", "score": "0.0", "text": "void update(State state) {\n\tfor (StateListener action : actions) {\n\t action.update(state);\n\t}\n\n\t// pass update() on to each registered service\n\tCollection<? extends StateListener> stateListeners =\n\t\tLookup.getDefault().lookupAll(StateListener.class);\n\tfor (StateListener sl : stateListeners) {\n\t sl.update(state);\n }\n }", "title": "" } ]
[ { "docid": "276fb0b6b3e70ce8b67819031839c1ec", "score": "0.7517838", "text": "public void update() {}", "title": "" }, { "docid": "5ab4ba9b244b11fda6e573888c7fe319", "score": "0.7441848", "text": "protected abstract void update();", "title": "" }, { "docid": "d41811c9616bc4c46ca054272ae98515", "score": "0.73818445", "text": "private void update() {\n\t\t\n\t}", "title": "" }, { "docid": "8b5c3c42e8471d9bfd0a1043134623a2", "score": "0.73803896", "text": "Frontend.Update update();", "title": "" }, { "docid": "47fb03b157ca51e6693f1c9b0978ea86", "score": "0.7372606", "text": "public abstract void onUpdate();", "title": "" }, { "docid": "a6f1fcd6b4645d8d7cb6f85bb47e0177", "score": "0.7353257", "text": "public void update() {\n }", "title": "" }, { "docid": "16eab3c8d939366fd2b196116afa97d1", "score": "0.73293436", "text": "public void update() {\n\t}", "title": "" }, { "docid": "16eab3c8d939366fd2b196116afa97d1", "score": "0.73293436", "text": "public void update() {\n\t}", "title": "" }, { "docid": "64e44800d436535070d17a0554af2526", "score": "0.7299077", "text": "public void update() {\n\n\t}", "title": "" }, { "docid": "5e248424429c5d3df200de15074858a1", "score": "0.7297865", "text": "public void updateAll() {\n\t\tapplyBuffs(); \n\t\tAction a = getActiveAction();\n\t\tif (a != null) a.act(this, getTarget());\n\n\t\t//\t\tapplyDmg();\n\t\tupdateCooldowns();\n\t}", "title": "" }, { "docid": "cf8c46e02e605be28eb4c9a03910412e", "score": "0.7282899", "text": "abstract protected void update();", "title": "" }, { "docid": "b447e99b1fd038564128d99b331578df", "score": "0.7281568", "text": "@Override\r\n\tpublic void update() {\n\t}", "title": "" }, { "docid": "546ef7c23a6fd2aac13dd2d9db729c66", "score": "0.72742546", "text": "public void update() {\n }", "title": "" }, { "docid": "546ef7c23a6fd2aac13dd2d9db729c66", "score": "0.72742546", "text": "public void update() {\n }", "title": "" }, { "docid": "ba69914e42a9ef95f4461a03253214f5", "score": "0.72674656", "text": "public void update() {\n\t\t\n\t}", "title": "" }, { "docid": "ba69914e42a9ef95f4461a03253214f5", "score": "0.72674656", "text": "public void update() {\n\t\t\n\t}", "title": "" }, { "docid": "0bcc05f8415be40bfc1a745cb015e966", "score": "0.72649974", "text": "@Override\n\tpublic void update() {\n\t}", "title": "" }, { "docid": "8ba21ac7e99436267a0720600f15707e", "score": "0.72571164", "text": "public void update()\n\t{}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7256406", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c8466aece61db1300ab684c283eedb00", "score": "0.7254236", "text": "public void updateHandler();", "title": "" }, { "docid": "4c6a06389ab35bd0366b602b5dd32f0a", "score": "0.7232289", "text": "public void postUpdate() {}", "title": "" }, { "docid": "21d4b9f371f41091017cb910ccea3a32", "score": "0.7231587", "text": "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tprivate void onRequestUpdate() {\n\t\ttry \n\t\t{\n\t\t\tcontroller.getClass().getMethod(\"changeState\",new Class<?>[0]).invoke(controller,new UpdatingState(controller));\n\t\t} \n\t\tcatch (IllegalArgumentException e) \n\t\t{ \n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (SecurityException e) \n\t\t{ \n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (IllegalAccessException e) \n\t\t{ \n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (InvocationTargetException e) \n\t\t{ \n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (NoSuchMethodException e) \n\t\t{ \n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "64dfb177ce62dbbda20577e1e740412e", "score": "0.72181094", "text": "protected void update() {\n\t\tupdate(null, null);\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.7210163", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.7210163", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.7210163", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "85b3809468c77a861ee442966a1fe8a8", "score": "0.7205098", "text": "public abstract void update();", "title": "" }, { "docid": "b65c3184655444e2920747367d2aee2c", "score": "0.7203164", "text": "@Override\n public abstract void update();", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7184851", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7184851", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7184851", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7184851", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7184851", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7184851", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7184851", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7184851", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7184851", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7184851", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7184851", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "e365a0aa65c19d047660bd8a939e5bb8", "score": "0.71811277", "text": "public void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4ccbe776f92e54ec897fd49f9e0001d7", "score": "0.7171682", "text": "public void update()\n {\n \n }", "title": "" }, { "docid": "238c2849fe2ef682940b06ff91aec104", "score": "0.715141", "text": "private void handleActionUpdateAll() {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "title": "" }, { "docid": "88c7151eb81f35176e8ee8f54f7f2b9b", "score": "0.714715", "text": "private void update() {\n RP.post(this);\n }", "title": "" }, { "docid": "fe4a3c3e5464f6549bfc4b5b6895433e", "score": "0.71432203", "text": "@Override\r\n\tpublic void update();", "title": "" }, { "docid": "c55d91a311815a33551dd3dc03bd2e5b", "score": "0.71323156", "text": "public void update() {\n\n\n }", "title": "" }, { "docid": "fed1d250da0b669866c6a0290445d4e1", "score": "0.71239465", "text": "public void update()\n {\n \n\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.7109783", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.7109783", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.7109783", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.7109783", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.7109783", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "612c8519c41f76c6f03ef0b58ec8ed21", "score": "0.7086508", "text": "private void makeUpdates() {\n\t\tupdateGameInfo();\n\t\tupdateButton();\n\t}", "title": "" }, { "docid": "c6c7b1d0436e6d523a7d5931d6ba6e7c", "score": "0.70846885", "text": "public void update();", "title": "" }, { "docid": "c6c7b1d0436e6d523a7d5931d6ba6e7c", "score": "0.70846885", "text": "public void update();", "title": "" }, { "docid": "c6c7b1d0436e6d523a7d5931d6ba6e7c", "score": "0.70846885", "text": "public void update();", "title": "" }, { "docid": "c6c7b1d0436e6d523a7d5931d6ba6e7c", "score": "0.70846885", "text": "public void update();", "title": "" }, { "docid": "c6c7b1d0436e6d523a7d5931d6ba6e7c", "score": "0.70846885", "text": "public void update();", "title": "" }, { "docid": "c6c7b1d0436e6d523a7d5931d6ba6e7c", "score": "0.70846885", "text": "public void update();", "title": "" }, { "docid": "c6c7b1d0436e6d523a7d5931d6ba6e7c", "score": "0.70846885", "text": "public void update();", "title": "" }, { "docid": "c6c7b1d0436e6d523a7d5931d6ba6e7c", "score": "0.70846885", "text": "public void update();", "title": "" }, { "docid": "c6c7b1d0436e6d523a7d5931d6ba6e7c", "score": "0.70846885", "text": "public void update();", "title": "" }, { "docid": "c6c7b1d0436e6d523a7d5931d6ba6e7c", "score": "0.70846885", "text": "public void update();", "title": "" }, { "docid": "c6c7b1d0436e6d523a7d5931d6ba6e7c", "score": "0.70846885", "text": "public void update();", "title": "" }, { "docid": "c704961e5835b1cf9d5a9f1fec3214c5", "score": "0.70466834", "text": "protected void update() {\n\t\t//super.update();\n\t}", "title": "" }, { "docid": "d667c71b18839b8def5eff8db4bb4a91", "score": "0.7041438", "text": "@Override\n public void update() {\n updateable.receiveUpdate();\n }", "title": "" }, { "docid": "7a33d1fb7c5016941231ff5ed9e6b84e", "score": "0.7039238", "text": "private void updateAllActions() {\n\t\tfor (Action a : getActionBar()) {\n\t\t\ta.setBuffPwMultiplier(1);\n\t\t\ta.updatePower();\n\t\t\ta.update();\n\t\t}\n\t}", "title": "" }, { "docid": "85459d2218f43edf677855787148349a", "score": "0.7038668", "text": "@Override\n\tpublic void update() {\n\t\tsuper.update();\n\t}", "title": "" }, { "docid": "f9e68f132fe19c43d8eac7f611589435", "score": "0.6990378", "text": "@Override\n\t\tpublic void onUpdate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "86fe6846ffcc07a0ee83433f55316e12", "score": "0.69666743", "text": "@Override\n public void update() {\n\n }", "title": "" }, { "docid": "86fe6846ffcc07a0ee83433f55316e12", "score": "0.69666743", "text": "@Override\n public void update() {\n\n }", "title": "" }, { "docid": "f9b6e18c33a2366ccd77986c0e1edfb8", "score": "0.6917503", "text": "@Override\n protected void update()\n {\n // Not implemented by default.\n }", "title": "" }, { "docid": "89c43af96fd4e0a8dc87b3f2fac55989", "score": "0.6824315", "text": "protected void ApplyUpdate(Object update)\r\n {\r\n _value = update;\r\n\r\n if (ValueChanged != null)\r\n \tValueChanged.RaiseEvent();\r\n }", "title": "" }, { "docid": "ef064197f25dd522e8dac7fe61cc366d", "score": "0.6727831", "text": "public void update() {\r\n\t\tif (globalState != null)\r\n\t\t\tglobalState.execute(owner);\r\n\t\tif (currentState != null)\r\n\t\t\tcurrentState.execute(owner);\r\n\t}", "title": "" }, { "docid": "78f4684e8312d67bf482350e8e512e33", "score": "0.6722678", "text": "public abstract void userUpdate();", "title": "" }, { "docid": "8d0c09aa07fc1925c80c5afa4a502e59", "score": "0.671872", "text": "protected abstract void updateListener();", "title": "" }, { "docid": "87c06737d3604d36bb8dac0e7d995274", "score": "0.6712499", "text": "public void update() {\n handleObservers();\n }", "title": "" } ]
4cd796653fd899981d38f88502f2c396
Builds a label from the supplied server type.
[ { "docid": "b688d97d130547d51d64e00aaa5983f4", "score": "0.7653734", "text": "String buildLabelFromType(String type);", "title": "" } ]
[ { "docid": "93a81777ea5cc18de09049db08036203", "score": "0.68583035", "text": "public interface ServerLabelGenerator\n{\n /**\n * Builds a label from the supplied server type.\n *\n * @param type the type of server instantiation\n * @return a string that identifies the type to a user\n */\n String buildLabelFromType(String type);\n}", "title": "" }, { "docid": "affacd8735e9f98242611dbb873c1d7a", "score": "0.6130292", "text": "public static LabelTarget label(Class type) { throw Extensions.todo(); }", "title": "" }, { "docid": "ddedabc2f4d8bcde3c24d9e7e5cb57f3", "score": "0.5985633", "text": "public static LabelTarget label(Class type, String name) { throw Extensions.todo(); }", "title": "" }, { "docid": "23d1df842269d7d70a8386972aae6f53", "score": "0.5744052", "text": "public ExtractorBuilder(Class label, Class type) {\r\n this.label = label;\r\n this.type = type;\r\n }", "title": "" }, { "docid": "96fbf5eed1e89a2025788532b0daad3f", "score": "0.5513374", "text": "public Builder setType(ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value.getNumber();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "03e6dc4bedac7613fd88225f53aeec94", "score": "0.55109936", "text": "public ProductTypeChangeLabelActionBuilder label(\n Function<com.commercetools.api.models.common.LocalizedStringBuilder, com.commercetools.api.models.common.LocalizedStringBuilder> builder) {\n this.label = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of()).build();\n return this;\n }", "title": "" }, { "docid": "6385a3fed290301b00539042a44bbb6d", "score": "0.540887", "text": "private IMessageLabel buildLabel(final MessageSeverity severity) {\n return new MessageLabel(AppMessageKey.VIEW_MESSAGE_LABEL_TEXT,\n severity, severity);\n }", "title": "" }, { "docid": "1beb2168374e9812bfd37cbedb92bbf0", "score": "0.5382279", "text": "public void setTypeLabel(String typeLabel) {\r\n this.typeLabelText = typeLabel;\r\n this.typeLabel.setText(this.typeLabelText);\r\n }", "title": "" }, { "docid": "05de6a52c29b214bc6ab04ab78b24c8a", "score": "0.53777033", "text": "Type.Remote<SomeRemoteType, SomeRemoteThing> label(Label label);", "title": "" }, { "docid": "e5be786c9f61884a320bf3bc4ad4854d", "score": "0.53276664", "text": "public Command createLabelCommand(String identifier, int type, Qualifier qualifier);", "title": "" }, { "docid": "3bf6b69cc0510ff4c7f2ddef7d44e59f", "score": "0.5269547", "text": "public Label(String name, Integer size, Type type)\n {\n this.name = name;\n this.value = null;\n this.size = size;\n this.type = type;\n }", "title": "" }, { "docid": "a8f2fc1805ca680686cf84089a3cefcd", "score": "0.5257534", "text": "private static String getNameForLabel(Type t) {\n return t.toLabel();\n }", "title": "" }, { "docid": "680975c94a92ce5a0bedba2098bd811e", "score": "0.517465", "text": "public ProductTypeChangeLabelActionBuilder withLabel(\n Function<com.commercetools.api.models.common.LocalizedStringBuilder, com.commercetools.api.models.common.LocalizedString> builder) {\n this.label = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of());\n return this;\n }", "title": "" }, { "docid": "1df28cc09f19d49896afd71e3eca2e2a", "score": "0.5035052", "text": "ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType getType();", "title": "" }, { "docid": "c6def3f6483b6a3c76fc67cc02099d2e", "score": "0.5002702", "text": "private Label initLabel(DraftKit_PropertyType labelProperty, String styleClass) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String labelText = props.getProperty(labelProperty);\n Label label = new Label(labelText);\n label.getStyleClass().add(styleClass);\n return label;\n }", "title": "" }, { "docid": "021c8b5a90334a9a842f18cc3a8d0791", "score": "0.50017345", "text": "public native final void setServerType(String serverType)/*-{\n this.serverType = serverType;\n }-*/;", "title": "" }, { "docid": "f91cdcb4f84ef38f0c92a71d2c66f141", "score": "0.49608317", "text": "public Builder type(String type) {\n this.type = type;\n return this;\n }", "title": "" }, { "docid": "79c6d3efcf9c40e36b3263c1b40a10c9", "score": "0.49412724", "text": "public static ProductTypeChangeLabelActionBuilder of(final ProductTypeChangeLabelAction template) {\n ProductTypeChangeLabelActionBuilder builder = new ProductTypeChangeLabelActionBuilder();\n builder.attributeName = template.getAttributeName();\n builder.label = template.getLabel();\n return builder;\n }", "title": "" }, { "docid": "95054c9e75660966de7ec3515174a149", "score": "0.49395686", "text": "public static ProductTypeChangeLabelActionBuilder of() {\n return new ProductTypeChangeLabelActionBuilder();\n }", "title": "" }, { "docid": "28caa46137281c6893bed7ea1669fdd5", "score": "0.4923447", "text": "private String makeLabel(String label)\n {\n \treturn label + \"$\" + Integer.toString(labelCount++);\n }", "title": "" }, { "docid": "7ed6aebddf27675da373c7a9c1398640", "score": "0.48735106", "text": "private void createLabels(){\n int pos = 10;\n for(Client client : clients){\n JLabel clientLabel = new JLabel(client.toString());\n selectColor(clientLabel, client);\n clientLabel.setBounds(10, pos, 200,20);\n pos += 25;\n labels.put(client.getID(), clientLabel);\n panel.add(clientLabel);\n }\n }", "title": "" }, { "docid": "3eeb3033e140d11c5178a52d3f2627be", "score": "0.48464525", "text": "private RLabel getLicenseTypeLabel() {\n if (licenseTypeLabel == null) {\n licenseTypeLabel = new RLabel();\n licenseTypeLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/licenseType\\\") %>\");\n licenseTypeLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n licenseTypeLabel.setName(\"licenseTypeLabel\");\n }\n return licenseTypeLabel;\n }", "title": "" }, { "docid": "25d6859aa18e182b9606576ca4479c4c", "score": "0.48407945", "text": "protected Label newLabel(String id, IModel<String> model) {\n\t\tLabel label = new Label(id, model);\n\t\treturn label;\n\t}", "title": "" }, { "docid": "5473c2fc8047955b746de830d551e719", "score": "0.483838", "text": "public ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType getType() {\n @SuppressWarnings(\"deprecation\")\n ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType result = ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType.valueOf(type_);\n return result == null ? ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "2cff0635ce904b9fe082b279cba61ca5", "score": "0.48333937", "text": "public ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType getType() {\n @SuppressWarnings(\"deprecation\")\n ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType result = ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType.valueOf(type_);\n return result == null ? ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "95182b0f36ae635582d25bc504cc9d28", "score": "0.48103476", "text": "public void setServerType(final VersionDownloadServerType serverType) {\n this.serverType = serverType;\n }", "title": "" }, { "docid": "f10fb636fd2b8a0f93902d52bf17e8e4", "score": "0.4803888", "text": "public static Builder builder(String lineType){\n return new Builder(lineType);\n }", "title": "" }, { "docid": "ee9c5db7ec956dda62fe3a9d8f0c2736", "score": "0.4802032", "text": "public static Labels build() {\n\t\treturn new Labels(new ArrayMixedObject());\n\t}", "title": "" }, { "docid": "d74027d453664599062bd6d2a4d91daa", "score": "0.47823206", "text": "public Label newLabel(String labelStr, int options) {\r\n return newLabel(labelStr);\r\n }", "title": "" }, { "docid": "a3dac06fe201e0d9d5fd43a0bd9ec144", "score": "0.4758191", "text": "public Object getLabel(T instance) {\n if (labels.containsKey(instance)) {\n return labels.get(instance);\n } else {\n return \"\";\n }\n }", "title": "" }, { "docid": "e442251e79d06da8be1ea829ccfda35b", "score": "0.47523493", "text": "public Builder setLabel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n label_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "23d7d48bae8da3ef356b7cad975dfb3e", "score": "0.47005442", "text": "@Override\r\n\tpublic JLabel createLabel() {\r\n\t\treturn new JLabel();\r\n\t}", "title": "" }, { "docid": "b45a359b0d05c4de2227181eeb73bd8b", "score": "0.47001663", "text": "public ServerMessage(int type)\n\t{\n\t\tthis.type = type;\n\t\tthis.key = Tools.generateUniqueKey();\n\t}", "title": "" }, { "docid": "627c883ce2c03f71b0741b81d5e8838c", "score": "0.46967024", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:42.016 -0500\", hash_original_method = \"E4793A664EF98A715ED3BAC198AF4EBD\", hash_generated_method = \"B72ADD4A151BC578FAD8448CF7ED8D16\")\n \n public void setNetworkType(String type, String subtype){\n \taddTaint(type.getTaint());\n \taddTaint(subtype.getTaint());\n }", "title": "" }, { "docid": "87a882e122e2257c7acde4b5ff36e424", "score": "0.46830046", "text": "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7ca97ec6307f03ce345038d2b7bb1f18", "score": "0.46764123", "text": "private RLabel getBuildLabel() {\n if (buildLabel == null) {\n buildLabel = new RLabel();\n buildLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/productBuild\\\") %>\");\n buildLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n buildLabel.setName(\"buildLabel\");\n }\n return buildLabel;\n }", "title": "" }, { "docid": "a6e6ba16f0b441e5efb7c0a435c32d9b", "score": "0.4659976", "text": "private Label initVBoxLabel(VBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "title": "" }, { "docid": "bd4f2e4964a7e35fd031eb99b6ce10d3", "score": "0.46590823", "text": "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bd4f2e4964a7e35fd031eb99b6ce10d3", "score": "0.46590823", "text": "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bd4f2e4964a7e35fd031eb99b6ce10d3", "score": "0.46590823", "text": "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f208148fa18433b113df0b779ad4d242", "score": "0.46571612", "text": "private void createNodeLabel(NodeAppearanceCalculator nac) {\r\n\t PassThroughMapping passThroughMapping = new PassThroughMapping(\"\",\r\n\t ObjectMapping.NODE_MAPPING);\r\n\t \r\n\t // change canonicalName to Label\r\n//\t passThroughMapping.setControllingAttributeName\r\n//\t (\"canonicalName\", null, false);\r\n\t passThroughMapping.setControllingAttributeName\r\n// (Semantics.LABEL, null, false);\r\n\t (Semantics.CANONICAL_NAME, null, false);\r\n\t\r\n\t GenericNodeLabelCalculator nodeLabelCalculator =\r\n\t new GenericNodeLabelCalculator(\"SimpleBioMoleculeEditor ID Label\"\r\n\t , passThroughMapping);\r\n\t nac.setNodeLabelCalculator(nodeLabelCalculator);\r\n\t }", "title": "" }, { "docid": "f075d3be6255bf39ce7e040492d06ba3", "score": "0.46335873", "text": "private JLabel _createNewLabel(String sCaption_) \n{\n Util.panicIf( sCaption_ == null );\n\n JLabel lblNew = new JLabel(sCaption_);\n lblNew.setFont( _pFont );\n \n return lblNew;\n }", "title": "" }, { "docid": "d24d12da2b66aea12d298e8ea0701b8f", "score": "0.46276698", "text": "private String getStatusLabel(int status){\n switch (status){\n case Cliente_Firebase.STATUS_PROSPECTO:\n return \"Prospecto\";\n case Cliente_Firebase.STATUS_ENVERIFICACION:\n return \"En Verificación\";\n case Cliente_Firebase.STATUS_ACTIVO:\n return \"Activo\";\n }\n\n return \"\";\n }", "title": "" }, { "docid": "e9575863a8b3269f8eab59cebf55cac0", "score": "0.4619107", "text": "protected String getLabel(String typeName) {\r\n \t\t\ttry {\r\n \t\t\t\treturn Reqif10EditPlugin.INSTANCE.getString(\"_UI_\" + typeName + \"_type\");\r\n \t\t\t}\r\n \t\t\tcatch(MissingResourceException mre) {\r\n \t\t\t\tReqif10EditorPlugin.INSTANCE.log(mre);\r\n \t\t\t}\r\n \t\t\treturn typeName;\r\n \t\t}", "title": "" }, { "docid": "67f3df1ab529c6222e4b450efb129135", "score": "0.46151808", "text": "private String getLabel(String label, String text) {\n\t\tStringBuffer buffer = new StringBuffer(label);\n\t\tif (text != null && !\"\".equals(text)) {\n\t\t\tif (!\"Choose One\".equals(text)) {\n\t\t\t\tbuffer.append(\": '\" + text + \"'\");\n\t\t\t}\n\t\t}\n\n\t\treturn buffer.toString();\n\t}", "title": "" }, { "docid": "c0f42a9f3a9796dd5b4478fe11a11620", "score": "0.46112403", "text": "private LocalrmnameType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }", "title": "" }, { "docid": "74e1c830d4f28483aa8ed8e885e0340f", "score": "0.46107668", "text": "private String createTypeKey(int type, String key) {\r\n\t\treturn type + \"-\" + key;\r\n\t}", "title": "" }, { "docid": "08a1fc11b089b1a906b92f5ad025b275", "score": "0.46104854", "text": "public Builder setLabel(String key, String value) {\n data.add(key);\n data.add(value);\n return this;\n }", "title": "" }, { "docid": "d71a5b67ccd69f41faf38230793a0ccd", "score": "0.46061164", "text": "private Label handleLabel(String line, int lineNum, SymbolTable table) {\n\t\tLabel l = new Label(line.substring(1, line.length()-1));\n\t\tl.addToTable(lineNum, table);\n\t\treturn l;\n\t}", "title": "" }, { "docid": "2095551a3ce6422b10b2dff274ceee3e", "score": "0.46038085", "text": "public Builder setSubType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subType_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ccc2b7194bc2f17202a083a8e0be1a9d", "score": "0.45983383", "text": "public static LabelTarget label() { throw Extensions.todo(); }", "title": "" }, { "docid": "1c3e97d115b09839f85142cd77ea72ae", "score": "0.45974788", "text": "public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "09d5a62ebca0b732e21471c66bb8acd4", "score": "0.45972216", "text": "String clientTypeName(final int index);", "title": "" }, { "docid": "501f66c0d18449acbcbadb4eb2e87b3c", "score": "0.45969146", "text": "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = messages.Basemessage.BaseMessage.Type.SERVERHELLO;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5a23061bbb4b81adb85b856bb3565999", "score": "0.4584131", "text": "protected JLabel makeLabel(String s) {\n JLabel label = new JLabel(s);\n label.setFont(new Font(QuizAppUtilities.UI_FONT, Font.PLAIN, 16));\n\n return label;\n }", "title": "" }, { "docid": "9c4538b03c8abfddaf522e29420aad50", "score": "0.45672268", "text": "public String createKey(String type) {\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n break;\n }\n }\n countKeys[i]++;\n String key = String.format(\"%s$%d\", EnumFactory.typeStrings[i],countKeys[i]);\n return key;\n }", "title": "" }, { "docid": "807ec46532095f873c22b58679eb9ef4", "score": "0.45645884", "text": "public VersionDownloadServerType getServerType() {\n return serverType;\n }", "title": "" }, { "docid": "90a2838c48294a7a50b50a0e2ece192f", "score": "0.45632914", "text": "public Field label(String label);", "title": "" }, { "docid": "e84fb9a07a266dee7d1c9649c82bb9d7", "score": "0.4556398", "text": "public Label() {\n\t\tthis(\"L\");\n\t}", "title": "" }, { "docid": "b7ec6c24013367bac739b19edff912f0", "score": "0.45510453", "text": "public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "def12b1dda43f55acb8ffd0c76423351", "score": "0.45484364", "text": "ComponentBuilder named(String label);", "title": "" }, { "docid": "22df3be457cdaa8edc45eee93b3098bc", "score": "0.45427153", "text": "public NetworkNode(String id, String title, String label, String name, String type) {\n super();\n this.id = id;\n this.title = title;\n this.label = label;\n this.name = name;\n this.group = type;\n this.type = type;\n }", "title": "" }, { "docid": "fc7cfea4732a3e66a0562f1071c73e5a", "score": "0.45207262", "text": "public ServerInfo convert(@SuppressWarnings(\"rawtypes\") final Class type, final Object value) {\n\t\tfinal NeoGlobalConfig.DescriptorImpl globalConfigDescriptor = \n\t\t\t\t(NeoGlobalConfig.DescriptorImpl) Jenkins.getInstance().getDescriptor(NeoGlobalConfig.class);\n\n\t\tif (globalConfigDescriptor == null) {\n\t\t\tLOGGER.log(Level.FINEST, \"No NeoLoad server settings found. Please add servers before configuring jobs. (getLicenseServerOptions)\");\n\t\t\treturn null;\n\t\t}\n\n\t\t// find the serverInfo based on the unique ID.\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tfinal Collection<ServerInfo> allServerInfo = \n\t\t\t\tCollectionUtils.union(globalConfigDescriptor.getNtsInfo(), globalConfigDescriptor.getCollabInfo());\n\t\tfor (final ServerInfo si: allServerInfo) {\n\t\t\tif (si.getUniqueID().equals(value)) {\n\t\t\t\treturn si;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "24909afb165f09cefef5a98e511d567a", "score": "0.4513858", "text": "private void generateLabelPanel() {\n speedLabel = new JLabel(\"\");\n loopbackLabel = new JLabel(\"\");\n playingLabel = new JLabel(\"\");\n\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new FlowLayout());\n labelPanel.add(playingLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(speedLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(loopbackLabel);\n mainPanel.add(labelPanel);\n }", "title": "" }, { "docid": "04b03cf8505498fa4a1c0cfb96bec173", "score": "0.45048437", "text": "public String getLongDescriptionFor(String type) {\n ProtocolMetadata metadata = types.get(type);\n if (metadata != null) {\n return metadata.getDescription();\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "e63016a604ebec209dce7be549f9c5ff", "score": "0.44951847", "text": "LabelBuilder(LabelsOptionsBuilder builder, Label label) {\n\t\tthis.builder = builder;\n\t\tthis.label = label;\n\t}", "title": "" }, { "docid": "0cc7dcae392ede5bd33a376ca2a672f4", "score": "0.44922963", "text": "private NettyServerBuilder getNettyServerBuilder(final String uds) {\n EventLoopGroup group;\n NettyServerBuilder builder = NettyServerBuilder.forAddress(new DomainSocketAddress(uds));\n if (SystemUtils.IS_OS_MAC) {\n group = new KQueueEventLoopGroup();\n builder.channelType(KQueueServerDomainSocketChannel.class);\n }\n else if (SystemUtils.IS_OS_LINUX) {\n group = new EpollEventLoopGroup();\n builder.channelType(EpollServerDomainSocketChannel.class);\n }\n else {\n throw new IllegalStateException(\"binding to unix:// addresses is only supported on Linux and macOS\");\n }\n builder.workerEventLoopGroup(group).bossEventLoopGroup(group);\n\n return builder;\n }", "title": "" }, { "docid": "3bf782d45707bd5f2c2588a27105af87", "score": "0.44909173", "text": "public Builder setLabelBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n label_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "22951230ab90b02104527c244d62b41b", "score": "0.4489818", "text": "public Node( String id, int type, Color color, String label )\r\n {\r\n initialize(id);\r\n typ = type;\r\n backColor = color;\r\n if ( label == null ) lbl = id;\r\n else lbl = label;\r\n }", "title": "" }, { "docid": "a23a11fe77cbdab027a9930c6bf808d3", "score": "0.44858456", "text": "public ListAPIServer labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "title": "" }, { "docid": "c10173053070b1322ac2c9bc7d80b5db", "score": "0.44815534", "text": "public Builder putLabels(java.lang.String key, java.lang.String value) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n if (value == null) {\n throw new NullPointerException(\"map value\");\n }\n internalGetMutableLabels().getMutableMap().put(key, value);\n bitField0_ |= 0x00000040;\n return this;\n }", "title": "" }, { "docid": "a618b0c09cbb10c2fbdcd30225a0de63", "score": "0.44804505", "text": "public static String composeInnerName(String masterName, String innerName, String type){\n\t\treturn masterName + INNER_TOKEN + getInnerName(innerName) + CompType.getExt(type);\n\t}", "title": "" }, { "docid": "7aef8eeafaa2697795ebe1025ada542f", "score": "0.44771358", "text": "public ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity.Builder getServerBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getServerFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "23ba80ff568fa1683caa0e05f42b8342", "score": "0.44724685", "text": "public ProductTypeChangeLabelActionBuilder label(final com.commercetools.api.models.common.LocalizedString label) {\n this.label = label;\n return this;\n }", "title": "" }, { "docid": "47afe59035959ce546c2331971f186dd", "score": "0.44604445", "text": "public ServerTypeEnum getServerType()\n {\n return coreSchemaSelectionWidget.getServerType();\n }", "title": "" }, { "docid": "3e32616755983e3780d7b5a184ad69fb", "score": "0.44601354", "text": "private Label initHBoxLabel(HBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "title": "" }, { "docid": "40e0d8d66d7e5a750feecad222d2328b", "score": "0.44544187", "text": "public Builder putLabels(java.lang.String key, java.lang.String value) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n if (value == null) {\n throw new NullPointerException(\"map value\");\n }\n internalGetMutableLabels().getMutableMap().put(key, value);\n bitField0_ |= 0x00000080;\n return this;\n }", "title": "" }, { "docid": "09ac9a07405cda66376315da1ad41bd6", "score": "0.44434834", "text": "public void setFieldLabelType(FieldLabelType fieldLabelType) {\n this.fieldLabelType = fieldLabelType;\n }", "title": "" }, { "docid": "eecf2b1f758600124cf43c674d44d985", "score": "0.4439455", "text": "@java.lang.Override\n public java.lang.String getLabel() {\n java.lang.Object ref = label_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n label_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "f41354fc1a6c963103b9518742100dda", "score": "0.44373372", "text": "public ServerMessage(int type, String key)\n\t{\n\t\tthis.type = type;\n\t\tthis.key = key;\n\t}", "title": "" }, { "docid": "0157ad3e138d17bf6b6acb1e7047833a", "score": "0.4435315", "text": "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0157ad3e138d17bf6b6acb1e7047833a", "score": "0.4435315", "text": "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0157ad3e138d17bf6b6acb1e7047833a", "score": "0.4435315", "text": "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0157ad3e138d17bf6b6acb1e7047833a", "score": "0.4435315", "text": "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0157ad3e138d17bf6b6acb1e7047833a", "score": "0.4435315", "text": "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "efbbc6d567e696b292f58f3808f92d02", "score": "0.44223723", "text": "private NodeType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }", "title": "" }, { "docid": "28a11b5eaf267dd838830bf3aa355ad5", "score": "0.44141743", "text": "private Label initChildLabel(Pane container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "title": "" }, { "docid": "0e2ddf297b18bc25dcac00608f8d14a5", "score": "0.4405957", "text": "public static Label createInputLabel(String lblValue) {\n\t\tLabel lbl = new Label(lblValue);\n\t\tlbl.setFont(Font.font(\"Arial\", FontWeight.SEMI_BOLD, 20));\n\t\treturn lbl;\n\t}", "title": "" }, { "docid": "63628d8d9a0ebef2aac749dc8693e4ea", "score": "0.44021985", "text": "java.lang.String getLabel();", "title": "" }, { "docid": "94a05ee0d55a0ed15e2709a02f5eb287", "score": "0.44007075", "text": "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.4396847", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.4396847", "text": "String getLabel();", "title": "" }, { "docid": "bbcc3b6a7ab9a78aca4eee207e752fd1", "score": "0.4396595", "text": "public void setLabelStyle(String style) {\n\t\tlabel.addStyleName(style);\n\t}", "title": "" }, { "docid": "fd116a2afc77a6f611d6dff273c0235f", "score": "0.4394111", "text": "ILinkDeleterActionBuilder<SOURCE_BEAN_TYPE, LINKED_BEAN_TYPE> setLinkedEntityLabelPlural(String label);", "title": "" }, { "docid": "a759ec0e29d76f401c8a89649567f21e", "score": "0.43865633", "text": "public AuditTrailDescription(String name, String fqdn, String type, String ip, String host, int port, String serverType) {\n\t\tlocalHostname = fqdn;\n\t\tlocalName = name;\n\t\tauditTrailType = type;\n\t\tlocalIp = ip;\n\t\tremoteHostname = host;\n\t\tremotePort = port;\n\t\tremoteType = serverType;\n\t}", "title": "" }, { "docid": "e8d6d172d601cfd5209591dc20cf9585", "score": "0.43750024", "text": "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "title": "" }, { "docid": "0b79480503290bbac4aceb871efc4b9b", "score": "0.43742448", "text": "Label getLabel();", "title": "" }, { "docid": "0b79480503290bbac4aceb871efc4b9b", "score": "0.43742448", "text": "Label getLabel();", "title": "" }, { "docid": "0b79480503290bbac4aceb871efc4b9b", "score": "0.43742448", "text": "Label getLabel();", "title": "" }, { "docid": "2dd716ebc180b24ca9bff09e9398406a", "score": "0.43693614", "text": "public messages.Serverhello.ServerHello.Builder getServerHelloBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getServerHelloFieldBuilder().getBuilder();\n }", "title": "" } ]
6586ffce5603fe60ec9bf0381235164b
Creates dialog, which displays relationship attribute's definition and example.
[ { "docid": "aa937b3d0d172855a783821eb4ae6d32", "score": "0.5708872", "text": "public InfoDialog(Frame owner, String title, String rel_attr) {\n // non-modal dialog, i.e., other\n // windows can be active at the same time\n super(owner, false);\n setTitle(title);\n initComponents();\n\n editor.setText(getRelAttrInfo(rel_attr));\n }", "title": "" } ]
[ { "docid": "ab8a61278c0c5c046e1edfcbb2f0f918", "score": "0.5710926", "text": "public DefineRelation()\n {\n initComponents();\n refTable();\n refCombos();\n setFrame();\n }", "title": "" }, { "docid": "a2701beb59228d3474b6c7fe6c2b87b0", "score": "0.56223536", "text": "public InfoDialog(Frame owner, String title, Relationship rel) {\n // non-modal dialog, i.e., other\n // windows can be active at the same time\n super(owner, false);\n setTitle(title);\n initComponents();\n editor.setText(getRelationshipInfo(rel));\n }", "title": "" }, { "docid": "5996a94eb69b12989f702d29b44c422a", "score": "0.54012674", "text": "protected JDialog createSpeciesDialog (){\n \n AbstractAction back, next;\n if(this.currentStep == 0){\n back = null;\n }else{\n back = DEFAULT_BACK_ACTION;\n }\n \n next = new AbstractAction (){\n public void actionPerformed (ActionEvent event){\n Vector taxids = taxonomyPanel.getSelectedSpeciesTaxids();\n if(taxids.size() == 0){\n JOptionPane.showMessageDialog(taxonomyPanel,\"Please select a species\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }else{\n // enable edge sources in the edges dialog\n if(edgeSourcesPanel != null)\n edgeSourcesPanel.setTaxids(taxonomyPanel.getSelectedSpeciesTaxids());\n \n //if(nodeSourcesPanel != null)\n // nodeSourcesPanel.getCytoscapeGoDialog().setSelectedSpeciesTaxid((String)taxonomyPanel.getSelectedSpeciesTaxids().get(0));\n \n if(onLastStep){\n FINISH_ACTION.actionPerformed(event);\n }else{\n DEFAULT_NEXT_ACTION.actionPerformed(event);\n }\n }//else\n }//actionPerformed\n };\n \n JDialog dialog = createWizardDialog(back, next);\n \n JPanel explanation = \n createExplanationPanel(\"<html><br>Type the name of a species (can be incomplete) and press\"+\n \"<br>the Search button. Then select the matching taxid and species\"+\n \"<br>for your network.<br></html>\");\n dialog.getContentPane().add(explanation, BorderLayout.NORTH);\n \n this.taxonomyPanel = this.nodeSourcesPanel.getTaxonomySearchDialog().getTaxonomyPanel();\n dialog.getContentPane().add(this.taxonomyPanel, BorderLayout.CENTER);\n \n return dialog;\n \n }", "title": "" }, { "docid": "66f2fbd8a4592440cb3cc02d5a7231cf", "score": "0.5360895", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.dialog_resources, null);\n builder.setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n SkillActivity.learningResourcesList.add(\n new SkillsModel.LearningResources(\n nameText.getText().toString(),\n linkText.getText().toString()));\n LearningResourcesAdapter.values.add( nameText.getText().toString());\n AppCompatActivity activity = (AppCompatActivity) view.getContext();\n ((SkillActivity) activity).refreshLearningResources();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n }).setView(view);\n // Create the AlertDialog object and return it\n nameText = (EditText)view.findViewById(R.id.resource_name);\n linkText = (EditText)view.findViewById(R.id.resource_link);\n return builder.create();\n }", "title": "" }, { "docid": "0d6179537ed0a0b25295f8f78e6e2bd2", "score": "0.53543395", "text": "private void createDialogue() {\n // labels are basically texts on the screen\n welcomeDialogue = new JLabel(\"Please answer the following questions to optimize your training regiment.\");\n welcomeDialogue.setToolTipText(\"being swole is the secret to happiness\"); // shows up when mouse hovers over it\n labelPanel.add(welcomeDialogue); // you always need to \"add\" the object into the window\n\n selectDialogue = new JLabel(\"Select from the following:\");\n labelPanel.add(selectDialogue);\n }", "title": "" }, { "docid": "8085f6bf7e0d3846ca076433bd9402ec", "score": "0.5330115", "text": "private void addEditAttributesMenu() {\n JMenuItem editAttributesMenu = new JMenuItem(\"Edit attributes\");\n final ProcessEditor thisEditor = this;\n editAttributesMenu.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JDialog dialog = new AttributeEditor(thisEditor);\n dialog.setVisible(true);\n }\n });\n addCustomContextMenuItem(DomainClass.class, editAttributesMenu);\n }", "title": "" }, { "docid": "41784e1f2431d5bbf4ba931bfde567de", "score": "0.53294575", "text": "@Override\r\n\tprotected void writeAdvanceDialog() {\n\t\tthis.advancedDialog.setText(\"ASSIGN advancedDialog\");\r\n\t\t\r\n\t\tthis.advancedDialogText = \"\\n Blah blah blah, \\n that that that this this this. Done.\"; \r\n\t}", "title": "" }, { "docid": "434adfaf0dd4fc20edcb1604b2311b6d", "score": "0.5286207", "text": "private void setRelationFields() {\n\n\t\t/* field region */\n\t\tregionDataProvider = new RegionDataProvider(requestFactory);\n\t\tif (hideButtons) // in popup, relation buttons hidden\n\t\t\tregion = new ImogSingleRelationBox<RegionProxy>(regionDataProvider,\n\t\t\t\t\tEpicamRenderer.get(), true);\n\t\telse {// in wrapper panel, relation buttons enabled\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tif (AccessManager.canCreateRegion()\n\t\t\t\t\t&& AccessManager.canEditRegion())\n\t\t\t\tregion = new ImogSingleRelationBox<RegionProxy>(\n\t\t\t\t\t\tregionDataProvider, EpicamRenderer.get());\n\t\t\telse\n\t\t\t\tregion = new ImogSingleRelationBox<RegionProxy>(false,\n\t\t\t\t\t\tregionDataProvider, EpicamRenderer.get());\n\t\t}\n\n\t\t/* field districtSante */\n\t\tdistrictSanteDataProvider = new DistrictSanteDataProvider(\n\t\t\t\trequestFactory);\n\t\tif (hideButtons) // in popup, relation buttons hidden\n\t\t\tdistrictSante = new ImogSingleRelationBox<DistrictSanteProxy>(\n\t\t\t\t\tdistrictSanteDataProvider, EpicamRenderer.get(), true);\n\t\telse {// in wrapper panel, relation buttons enabled\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tif (AccessManager.canCreateDistrictSante()\n\t\t\t\t\t&& AccessManager.canEditDistrictSante())\n\t\t\t\tdistrictSante = new ImogSingleRelationBox<DistrictSanteProxy>(\n\t\t\t\t\t\tdistrictSanteDataProvider, EpicamRenderer.get());\n\t\t\telse\n\t\t\t\tdistrictSante = new ImogSingleRelationBox<DistrictSanteProxy>(\n\t\t\t\t\t\tfalse, districtSanteDataProvider, EpicamRenderer.get());\n\t\t}\n\n\t\t/* field CDT */\n\t\tcDTDataProvider = new CentreDiagTraitDataProvider(requestFactory);\n\t\tif (hideButtons) // in popup, relation buttons hidden\n\t\t\tCDT = new ImogSingleRelationBox<CentreDiagTraitProxy>(\n\t\t\t\t\tcDTDataProvider, EpicamRenderer.get(), true);\n\t\telse {// in wrapper panel, relation buttons enabled\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tif (AccessManager.canCreateCentreDiagTrait()\n\t\t\t\t\t&& AccessManager.canEditCentreDiagTrait())\n\t\t\t\tCDT = new ImogSingleRelationBox<CentreDiagTraitProxy>(\n\t\t\t\t\t\tcDTDataProvider, EpicamRenderer.get());\n\t\t\telse\n\t\t\t\tCDT = new ImogSingleRelationBox<CentreDiagTraitProxy>(false,\n\t\t\t\t\t\tcDTDataProvider, EpicamRenderer.get());\n\t\t}\n\n\t\t/* field commande */\n\t\tcommandeDataProvider = new CommandeDataProvider(requestFactory);\n\t\tif (hideButtons) // in popup, relation buttons hidden\n\t\t\tcommande = new ImogSingleRelationBox<CommandeProxy>(\n\t\t\t\t\tcommandeDataProvider, EpicamRenderer.get(), true);\n\t\telse {// in wrapper panel, relation buttons enabled\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tif (AccessManager.canCreateCommande()\n\t\t\t\t\t&& AccessManager.canEditCommande())\n\t\t\t\tcommande = new ImogSingleRelationBox<CommandeProxy>(\n\t\t\t\t\t\tcommandeDataProvider, EpicamRenderer.get());\n\t\t\telse\n\t\t\t\tcommande = new ImogSingleRelationBox<CommandeProxy>(false,\n\t\t\t\t\t\tcommandeDataProvider, EpicamRenderer.get());\n\t\t}\n\n\t\t/* field medicaments */\n\t\tmedicaments = new ReceptionMedicamentsListEditor(requestFactory);\n\n\t\t/* field intrants */\n\t\tintrants = new ReceptionIntrantsListEditor(requestFactory);\n\n\t}", "title": "" }, { "docid": "62dd68e3fbfb23b460eb8b43d43d049c", "score": "0.5273563", "text": "public GenerateDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n repositorySelection();\n }", "title": "" }, { "docid": "b6b34d2295e84ec93d13117d5d72d53c", "score": "0.5198961", "text": "public void displaySuccessCreationAttribute(){\n\t\tJOptionPane.showMessageDialog(\n\t\t\tthis.mainFrame, \n\t\t\t\"A new attribute has been created !!\",\n\t\t\t\"Attribute creation success !\",\n\t\t\tJOptionPane.INFORMATION_MESSAGE,\n\t\t\tgetIcon(ConstantIcon.IC_VALID)\n\t\t);\n\t}", "title": "" }, { "docid": "7f9484fd949cf62c2e74a6487bdf13b4", "score": "0.51067144", "text": "private void dialog(String labelFieldText, String dialogTitleText, String titleFieldText, int mode) throws IOException {\n FXMLLoader loader = new FXMLLoader(Main.class.getResource(\"DIALOGUE/AddCategory.fxml\"));\n AnchorPane dialog = loader.load();\n AddCategoryController controller = loader.getController();\n controller.setMainController(this);\n controller.setLabelField(labelFieldText);\n controller.setTitleField(titleFieldText);\n controller.setDialogTitle(dialogTitleText);\n controller.setMode(mode);\n windowStage = new Stage();\n windowStage.setScene(new Scene(dialog));\n windowStage.initOwner(main.getPrimaryStage());\n windowStage.initModality(Modality.APPLICATION_MODAL);\n windowStage.alwaysOnTopProperty();\n windowStage.show();\n }", "title": "" }, { "docid": "805b2cf8010113424eb8dc95d85c6ead", "score": "0.51057404", "text": "protected Control createDialogArea(Composite ancestor) \n { \n setTitle(\"Create a Html Form\");\n setMessage(\"Enter the name of the new form and select the anchor DB Table Alias\");\n setTitleImage(JacobDesigner.getImage(\"new_html_form_dialog.png\"));\n \n\t\tFormLayout layout =\tnew FormLayout(\n\t\t\t\t\"5dlu,280dlu:grow,50dlu,5dlu,50dlu,5dlu\",\n\t\t\t\t\"pref,5dlu,pref,5dlu,pref,5dlu,120dlu:grow,5dlu,max(20dlu;pref)\");\n\t\t\n\t\tPanelBuilder builder = new PanelBuilder(ancestor, layout);\n\t\t\n\t\tCellConstraints cc = new CellConstraints();\n\n // the name part\n\t\tbuilder.addSeparator(\"Form Name\",cc.xywh(2,1,4,1));\n\t\tbuilder.add(createName(ancestor),cc.xywh(2,3,4,1));\n\t\t\n\t\t// the parameter edit part\n\t\tbuilder.addSeparator(\"DB Table Alias\",cc.xywh(2,5,4,1));\n\t\tbuilder.add(createTable(ancestor),cc.xywh(2,7,4,1));\n\t\t\n // the button bar\n\t\tbuilder.add(createOkButton(ancestor), cc.xy(3,9));\n\t\tbuilder.add(createCancelButton(ancestor), cc.xy(5,9));\n\t\n//\t\tFormDebugUtils.debugLayout(builder.getComposite());\n \n return builder.getComposite();\n }", "title": "" }, { "docid": "25f15d565fbc52146fc50b6733bf336d", "score": "0.5101985", "text": "public void createAndShowDialog() {\n create();\n if (mAlertDialog != null) {\n mAlertDialog.show();\n }\n }", "title": "" }, { "docid": "1ca4ba9a3920ca187b00a5c46868524a", "score": "0.50995165", "text": "public AddGoalDialog() {\n\n\t}", "title": "" }, { "docid": "678109cef1669497249b16c5d3271a1e", "score": "0.5082996", "text": "public AttributeValueDialog( AttributeValueObject attributeValueObject )\n {\n super( PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell() );\n this.attributeValueObject = attributeValueObject;\n }", "title": "" }, { "docid": "83fba04e16c11c97d453691021479af6", "score": "0.5081309", "text": "private void showNameDialog(Context c, final String content) {\n final EditText nameLecture = new EditText(c);\n AlertDialog dialog = new AlertDialog.Builder(c)\n .setTitle(\"Name Document\")\n .setMessage(\"What is it called?\")\n .setView(nameLecture)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String name = String.valueOf(nameLecture.getText());\n addNewLecture(name, content);\n }\n })\n .setNegativeButton(\"Cancel\", null)\n .create();\n dialog.setCanceledOnTouchOutside(false);\n dialog.show();\n }", "title": "" }, { "docid": "11288c250094854d7705f14600964228", "score": "0.5072239", "text": "public void createDialogProject() {\r\n\t\tDialogProject dial = new DialogProject(this.mother, this);\r\n\t\tdial.setVisible(true);\r\n\t}", "title": "" }, { "docid": "56b26ad87ff0a01a45e604700306496a", "score": "0.5066701", "text": "public NewReferenceDialog(MainUI mainUI, boolean modal) {\n super(mainUI, modal);\n this.mainUI = mainUI;\n initComponents();\n\n initFields();\n }", "title": "" }, { "docid": "830f0edeb705654a369f66d519f25045", "score": "0.5058926", "text": "public interface IDialogCreator {\r\n\t\r\n\t/**\r\n\t * Get a new instance of the requested DialogBuilder.\r\n\t * \r\n\t * @param addable - The object that is being added to.\r\n\t * @return The DialogBuilder which will specify the attributes\r\n\t * and type of the new element.\r\n\t */\r\n\tpublic DialogBuilder getNewInstance(IAddDialog addable);\r\n\r\n}", "title": "" }, { "docid": "f5f4883bfaa9ae778b8eb8dd8d9d2bf4", "score": "0.5042784", "text": "public EditorInteraction generateEditor(Tree<String> help,\n\t\t\tFieldList inFeat,Map<String,List<String>> extras) throws RemoteException;", "title": "" }, { "docid": "5442125b9057f3657130da05ac0eae17", "score": "0.5013363", "text": "public WomenDialog womanTab(){\n WebElement women = waitForDisplayedElement(womenBtn);\n hover(women);\n return new WomenDialog(driver);\n }", "title": "" }, { "docid": "1e4655ae9da7c09ea6e93db423ce3eda", "score": "0.5006727", "text": "private void jBAssoActionPerformed(java.awt.event.ActionEvent evt) \n {\n \n String message = \"\";\n \n //In case the same person has been selected by the user\n if (jCBName1.getSelectedItem().toString().equals(jCBName2.getSelectedItem().toString()))\n {\n message = \"Cannot associate a person with itself !\";\n }\n else\n {\n Relation relation = new Relation();\n \n relation.setName1(jCBName1.getSelectedItem().toString());\n \n relation.setName2(jCBName2.getSelectedItem().toString());\n \n relation.setRelationType(jCBRelation.getSelectedItem().toString());\n \n message = MiniNet.driver.addRelations(relation);\n \n }\n \n refTable();\n \n JOptionPane.showMessageDialog(null , message ,\"Message\" , JOptionPane.ERROR_MESSAGE); \n }", "title": "" }, { "docid": "903020f22284227e326414b4ccc37b5c", "score": "0.49997526", "text": "public Dialog onCreateDialog(Bundle savedInstanceState) {\n\t AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\t builder.setMessage(\"Request game with \" + creator.getHandle() + \"?\")\n\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\n\t \t creator.handleResponse(true);\n\t \t \n\t }\n\t })\n\t .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\n\t \t \n\t \t \n\t }\n\t });\n\t // Create the AlertDialog object and return it\n\t return builder.create();\n\t }", "title": "" }, { "docid": "ad3afc55808601b568da7bcac4723f96", "score": "0.49706405", "text": "public DynamicInsertHyperlinkDialog() {\n super(\"Insert Hyperlink\", true, \"500px\", null);\n }", "title": "" }, { "docid": "01454e296521a13ab7e1beb607e124f8", "score": "0.49604493", "text": "void showChangeNameAndTagsDialog() {\n RhythmSqlImpl rhythm = (RhythmSqlImpl) getRhythm();\n final boolean isNew = !rhythm.existsInDb();\n final String name = isNew ? null : rhythm.getName();\n Intent intent = SetRhythmNameAndTagsActivity.newInstance(this, rhythm.getKey(), name, isNew);\n startActivityForResult(intent, CHANGE_RHYTHM_DETAILS_ACTIVITY_REQ_CODE);\n }", "title": "" }, { "docid": "75e854819db25aefbe391c57cb7aff90", "score": "0.49576947", "text": "private void showCustomDialog(Doctors aItem, int aFlag) {\n }", "title": "" }, { "docid": "cba8c2c6badad0ee378dd0c05b58f1f5", "score": "0.49380204", "text": "public NewVehicleDialog(String title,Vehicle veh,VehicleModel model)\n{\n instance = this;//to pass to NewWarrantyDialog, to set the warranty details\n vehicleID = veh.getId();\n this.model = model;\n vehicleToEdit=veh;\n\tsetTitle(title);\n try\n {\n initPanel(false);\n }\n catch(SQLException e)\n {\n JOptionPane.showMessageDialog(null,\"Problem with database.\");\n dispose();\n }\n\t\n}", "title": "" }, { "docid": "da207f3a5a059fb585cf31fdc0cd3b84", "score": "0.49362248", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the Builder class for convenient dialog construction\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.new_gamename);\n // create a text view to name the game with\n final EditText tv = new EditText(getActivity());\n \n builder.setView(tv)\n .setPositiveButton(R.string.okay, new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// grab the game name and fire it back to the main menu activity\n\t\t\t\t// TODO input checking\n\t\t\t\tString gameName = tv.getText().toString();\n\t\t\t\tGameSQLDataSource.openGame(getActivity(), gameName);\n\t\t\t\t\n\t\t\t\t// close the main menu\n\t\t\t\tmActivity.finish();\n\t\t\t\tmActivity = null;\n\t\t\t}\n\t\t})\n\t\t.setNegativeButton(R.string.cancel, new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// cancelled\n\t\t\t}\n\t\t});\n // Create the AlertDialog object and return it\n return builder.create();\n }", "title": "" }, { "docid": "2a444a282500ce7e6c99ea2ac1279576", "score": "0.49293375", "text": "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\r\n int title = getArguments().getInt(\"title\");\r\n\r\n final View dialogLayout = getActivity().getLayoutInflater().inflate(R.layout.adddevice_dialog_fragment, null);\r\n \r\n return new AlertDialog.Builder(getActivity())\r\n// .setIcon(R.drawable.alert_dialog_icon)\r\n .setTitle(title)\r\n .setView(dialogLayout)\r\n .setPositiveButton(android.R.string.ok,\r\n new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int whichButton) {\r\n \tString name = (String) ((TextView) dialogLayout.findViewById(R.id.dialog_adddev_name_edit)).getText().toString().trim();\r\n \tString ip = (String) ((TextView) dialogLayout.findViewById(R.id.dialog_adddev_ip_edit)).getText().toString().trim();\r\n \t\r\n ((SelectFATFragment)getTargetFragment()).doPositiveClick(name, ip);\r\n }\r\n }\r\n )\r\n .setNegativeButton(android.R.string.cancel,\r\n \tnew CancelListener()\r\n )\r\n .create();\r\n }", "title": "" }, { "docid": "0e6a18516cafe96517a2722c81e88f25", "score": "0.49072066", "text": "void showDialog() {\r\n \tRoi roi = imp.getRoi();\r\n \tboolean rectOrOval = roi!=null && (roi.getType()==Roi.RECTANGLE||roi.getType()==Roi.OVAL);\r\n\toval = rectOrOval && (roi.getType()==Roi.OVAL);\t// Handle existing oval ROI\r\n \tif (roi==null || !rectOrOval)\r\n \t\tdrawRoi();\r\n GenericDialog gd = new GenericDialog(\"Specify\");\r\n gd.addNumericField(\"Width:\", iWidth, 0);\r\n gd.addNumericField(\"Height:\", iHeight, 0);\r\n gd.addNumericField(\"X Coordinate:\", iXROI, 0);\r\n gd.addNumericField(\"Y Coordinate:\", iYROI, 0);\r\n if (stackSize>1)\r\n \tgd.addNumericField(\"Slice:\", iSlice, 0);\r\n gd.addCheckbox(\"Oval\", oval);\r\n gd.addCheckbox(\"Centered\",centered);\r\n fields = gd.getNumericFields();\r\n gd.addDialogListener(this);\r\n gd.showDialog();\r\n if (gd.wasCanceled()) {\r\n \t if (roi==null)\r\n \t\timp.killRoi();\r\n \t else // *ALWAYS* restore initial ROI when cancelled\r\n \t\timp.setRoi(roi);\r\n }\r\n }", "title": "" }, { "docid": "2ea9fde27373b18628c98b23a1f2c696", "score": "0.4906561", "text": "public ProvaDialog() {\n }", "title": "" }, { "docid": "2f6492128ec729bef4e7e3b81493e896", "score": "0.48978597", "text": "@Override\n public Dialog onCreateDialog(Bundle Test) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n final View v = inflater.inflate(R.layout.dialog_add_category, null);\n\n //Build the dialog\n builder.setMessage(\"Neue Kategorie\")\n .setView(v)\n .setPositiveButton(\"erstellen\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n TextView tv = (TextView) v.findViewById(R.id.newcategoriename);\n if(tv.getText().toString() != \"\") {\n nc.insertCategory(tv.getText().toString());\n cv.loadList();\n }\n }\n })\n .setNegativeButton(\"abbrechen\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog and nothing happens\n }\n });\n\n return builder.create();\n }", "title": "" }, { "docid": "8a564a4d3f4fa449816a773aea79cda5", "score": "0.48961696", "text": "Relation createRelation();", "title": "" }, { "docid": "4b75afd5ff82ed04de58c015c6f60aaa", "score": "0.4887474", "text": "public String getDescription() {\n\treturn \"Example of simple context sensitive popup menu handling record objects.\";\n}", "title": "" }, { "docid": "424ff601d9c7f8845f5701e929e91012", "score": "0.4886088", "text": "private void promptDialogDemo() {\n final EditText edtText = new EditText(this);\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Prompt dialog demo !\");\n builder.setMessage(\"What is your name?\");\n builder.setCancelable(false);\n builder.setView(edtText);\n builder.setNeutralButton(\"Prompt\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Hello \" + edtText.getText() + \" ! how are you?\", Toast.LENGTH_LONG).show();\n }\n });\n builder.show();\n }", "title": "" }, { "docid": "d0c7b8c137a216ff77ca9d8a762bfa07", "score": "0.48810416", "text": "protected void createContents() {\n\t\ttry {\n\t\t\tnodeProperties = (MultiDataNodeProperties) node.getProperties().clone();\n\t\t}\n\t\tcatch (CloneNotSupportedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcmd.setBean(nodeProperties);\n\t\tcmd.setNode(node);\n\t\tshell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);\n\t\tshell.setLayout(new FormLayout());\n\t\tshell.setSize(800, 500);\n\t\tshell.setText(\"多表查询属性\");\n\n\t\tfinal Composite composite = new Composite(shell, SWT.NONE);\n\t\tfinal FormData fd_composite = new FormData();\n\t\tfd_composite.top = new FormAttachment(0, 1);\n\t\tfd_composite.left = new FormAttachment(0, 5);\n\t\tfd_composite.height = 70;\n\t\tfd_composite.right = new FormAttachment(100, -5);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new FormLayout());\n\n\t\tfinal Group basicGroup = new Group(composite, SWT.NONE);\n\t\tbasicGroup.setLayout(new FormLayout());\n\t\tfinal FormData fd_basicGroup = new FormData();\n\t\tfd_basicGroup.bottom = new FormAttachment(100, -1);\n\t\tfd_basicGroup.top = new FormAttachment(0, -6);\n\t\tfd_basicGroup.right = new FormAttachment(100, 0);\n\t\tfd_basicGroup.left = new FormAttachment(0, 0);\n\t\tbasicGroup.setLayoutData(fd_basicGroup);\n\n\t\tfinal Label label = new Label(basicGroup, SWT.RIGHT);\n\t\tfinal FormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(0, 0);\n\t\tfd_label.right = new FormAttachment(15, 0);\n\t\tfd_label.left = new FormAttachment(0, 0);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setText(\"节点名称:\");\n\n\t\ttxtName = new Text(basicGroup, SWT.BORDER);\n\t\tfinal FormData fd_txtName = new FormData();\n\t\tfd_txtName.top = new FormAttachment(0, 0);\n\t\tfd_txtName.right = new FormAttachment(40, 0);\n\t\tfd_txtName.left = new FormAttachment(label, 0);\n\t\ttxtName.setLayoutData(fd_txtName);\n\t\ttxtName.setEditable(true);\n\n\t\tfinal Label lblDescription = new Label(basicGroup, SWT.RIGHT);\n\t\tfinal FormData fd_lblDescription = new FormData();\n\t\tfd_lblDescription.top = new FormAttachment(label, 10);\n\t\tfd_lblDescription.bottom = new FormAttachment(100, -2);\n\t\tfd_lblDescription.left = new FormAttachment(0, 0);\n\t\tfd_lblDescription.right = new FormAttachment(15, 0);\n\t\tlblDescription.setLayoutData(fd_lblDescription);\n\t\tlblDescription.setText(\"说明:\");\n\n\t\ttxtDes = new StyledText(basicGroup, SWT.BORDER);\n\t\tfinal FormData fd_txtDes = new FormData();\n\t\tfd_txtDes.top = new FormAttachment(txtName, 5);\n\t\tfd_txtDes.left = new FormAttachment(15, 0);\n\t\tfd_txtDes.right = new FormAttachment(100, -2);\n\t\tfd_txtDes.bottom = new FormAttachment(100, -2);\n\t\ttxtDes.setLayoutData(fd_txtDes);\n\n\t\tfinal Button btnOk = new Button(shell, SWT.NONE);\n\t\tbtnOk.setImage(ResourceManager.getPluginImage(\"DataAdminPlatform\", \"icons/tick.png\"));\n\t\tfinal FormData fd_btnOk = new FormData();\n\t\tfd_btnOk.height = 28;\n\t\tfd_btnOk.width = 80;\n\t\tfd_btnOk.bottom = new FormAttachment(100, -5);\n\t\tfd_btnOk.right = new FormAttachment(50, -10);\n\t\tbtnOk.setLayoutData(fd_btnOk);\n\t\tbtnOk.setText(\"确定(&O)\");\n\t\tbtnOk.addListener(SWT.Selection, new Listener() {\n\t\t\tpublic void handleEvent(Event e) {\n\t\t\t\tsave();\n\t\t\t\tresult = 1;\n\t\t\t\tclose();\n\t\t\t}\n\t\t});\n\n\t\tfinal Button btnCancel = new Button(shell, SWT.NONE);\n\t\tbtnCancel.setImage(ResourceManager.getPluginImage(\"DataAdminPlatform\", \"icons/cross.png\"));\n\t\tfinal FormData fd_btnCancel = new FormData();\n\t\tfd_btnCancel.height = 28;\n\t\tfd_btnCancel.width = 80;\n\t\tfd_btnCancel.bottom = new FormAttachment(100, -5);\n\t\tfd_btnCancel.left = new FormAttachment(50, 10);\n\t\tbtnCancel.setLayoutData(fd_btnCancel);\n\t\tbtnCancel.setText(\"取消(&C)\");\n\t\tbtnCancel.addListener(SWT.Selection, new Listener() {\n\t\t\tpublic void handleEvent(Event e) {\n\t\t\t\tclose();\n\t\t\t}\n\t\t});\n\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e) {\n\t\t\t\tTabItem ti = (TabItem) e.item;\n\t\t\t\tif (ti.getText().startsWith(\"查询字段\")) {\n\t\t\t\t}\n\t\t\t\telse if (ti.getText().startsWith(\"表联接\")) {\n\t\t\t\t\tString[] tableAliasNames = new String[tempAliasTableNameList.size()];\n\t\t\t\t\tString[] tableEnNames = null;\n\t\t\t\t\tfor (int i = 0; i < tempAliasTableNameList.size(); i++) {\n\t\t\t\t\t\ttableAliasNames[i] = tempAliasTableNameList.get(i);\n\t\t\t\t\t}\n\t\t\t\t\tif (tablesList != null) {\n\t\t\t\t\t\ttableEnNames = new String[tablesList.size()];\n\t\t\t\t\t\tfor (int j = 0; j < tablesList.size(); j++) {\n\t\t\t\t\t\t\tMultiTablesDataField a = tablesList.get(j);\n\t\t\t\t\t\t\ttableEnNames[j] = a.getTableName();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse tableEnNames = new String[] { \"\" };\n\t\t\t\t\ttvConnectFilter.getCellEditors()[0] = new ComboBoxCellEditor(tblConnectFilter, tableEnNames, SWT.READ_ONLY);\n\t\t\t\t\ttvConnectFilter.getCellEditors()[1] = new ComboBoxCellEditor(tblConnectFilter, tableAliasNames, SWT.READ_ONLY);\n\t\t\t\t\ttvConnectFilter.getCellEditors()[3] = new ComboBoxCellEditor(tblConnectFilter, tableEnNames, SWT.READ_ONLY);\n\t\t\t\t\ttvConnectFilter.getCellEditors()[4] = new ComboBoxCellEditor(tblConnectFilter, tableAliasNames, SWT.READ_ONLY);\n\t\t\t\t\ttvConnectFilter.setCellModifier(new MultiTableConnectFiltersCellModifier(tvConnectFilter, tableEnNames, tableAliasNames));\n\t\t\t\t}\n\t\t\t\telse if (ti.getText().startsWith(\"SQL\")) {\n\t\t\t\t\tMultiDataNodeProperties d = new MultiDataNodeProperties();\n\t\t\t\t\td.setAdditionSql(txtOtherCondition.getText());\n\t\t\t\t\td.setDataFieldList(dataFieldList);\n\t\t\t\t\td.setFilterList(filterList);\n\t\t\t\t\td.setConnectFilterList(connectFilterList);\n\t\t\t\t\td.setTablesList(tablesList);\n\t\t\t\t\ttxtSQL.setText(d.getSQL(null));\n\t\t\t\t}\n\t\t\t\telse if (ti.getText().startsWith(\"过滤\")) {\n\t\t\t\t\tString[] fNames = null;\n\t\t\t\t\tif (dataFieldList != null && dataFieldList.size() > 0) {\n\t\t\t\t\t\tfNames = new String[dataFieldList.size()];\n\t\t\t\t\t\tfor (int i = 0; i < dataFieldList.size(); i++) {\n\t\t\t\t\t\t\tfNames[i] = dataFieldList.get(i).getAliasName();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse fNames = new String[] { \"\" };\n\t\t\t\t\ttvFilter.setCellModifier(new FiltersCellModifier(tvFilter, fNames));\n\t\t\t\t\ttvFilter.getCellEditors()[0] = new ComboBoxCellEditor(tblFilter, fNames, SWT.READ_ONLY);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tfinal FormData fd_tabFolder = new FormData();\n\t\tfd_tabFolder.bottom = new FormAttachment(100, -40);\n\t\tfd_tabFolder.top = new FormAttachment(composite, 3, SWT.BOTTOM);\n\t\tfd_tabFolder.right = new FormAttachment(100, -5);\n\t\tfd_tabFolder.left = new FormAttachment(0, 5);\n\t\ttabFolder.setLayoutData(fd_tabFolder);\n\n\t\tTabItem tabTables = new TabItem(tabFolder, SWT.NONE);\n\t\ttabTables.setText(\"查询表\");\n\n\t\tfinal Composite composite_0 = new Composite(tabFolder, SWT.NONE);\n\t\tcomposite_0.setLayout(new FormLayout());\n\t\ttabTables.setControl(composite_0);\n\n\t\tfinal Group group_0 = new Group(composite_0, SWT.NONE);\n\t\tfinal FormData fd_group_0 = new FormData();\n\t\tfd_group_0.left = new FormAttachment(0, 0);\n\t\tfd_group_0.bottom = new FormAttachment(100, 0);\n\t\tfd_group_0.right = new FormAttachment(100, 0);\n\t\tfd_group_0.top = new FormAttachment(0, -6);\n\t\tgroup_0.setLayoutData(fd_group_0);\n\t\tgroup_0.setLayout(new FormLayout());\n\t\t// tabFields.setControl(group_1);\n\n\t\ttvTableField = new TableViewer(group_0, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n\t\ttvTableField.setContentProvider(new ViewContentProvider());\n\t\ttvTableField.setLabelProvider(new MultiTablesLabelProvider());\n\t\ttvTableField.setColumnProperties(MultiTablesLabelProvider.DATAFIELDS);\n\t\ttblTableField = tvTableField.getTable();\n\n\t\tCellEditor[] cellEditor0 = new CellEditor[3];\n\t\tcellEditor0[0] = new TextCellEditor(tblTableField);\n\t\tcellEditor0[1] = new TextCellEditor(tblTableField);\n\t\tcellEditor0[2] = new TextCellEditor(tblTableField);\n\t\ttvTableField.setCellEditors(cellEditor0);\n\t\ttvTableField.setCellModifier(new MultiTablesCellModifier(tvTableField));\n\n\t\tfinal FormData fd_table_0 = new FormData();\n\t\tfd_table_0.bottom = new FormAttachment(100, -22);\n\t\tfd_table_0.top = new FormAttachment(0, -6);\n\t\tfd_table_0.right = new FormAttachment(100, 0);\n\t\tfd_table_0.left = new FormAttachment(0, 0);\n\t\ttblTableField.setLayoutData(fd_table_0);\n\t\ttblTableField.setLinesVisible(true);\n\t\ttblTableField.setHeaderVisible(true);\n\n\t\tfinal TableColumn tableCnName = new TableColumn(tblTableField, SWT.NONE);\n\t\ttableCnName.setWidth(250);\n\t\ttableCnName.setText(\"表中文名\");\n\n\t\tfinal TableColumn tableName = new TableColumn(tblTableField, SWT.NONE);\n\t\ttableName.setWidth(250);\n\t\ttableName.setText(\"表英文名\");\n\n\t\tfinal TableColumn tableAliasName = new TableColumn(tblTableField, SWT.NONE);\n\t\ttableAliasName.setWidth(250);\n\t\ttableAliasName.setText(\"表别名\");\n\n\t\tfinal Button btnTableAdd = new Button(group_0, SWT.NONE);\n\t\tbtnTableAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n\t\tbtnTableAdd.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e) {\n\t\t\t\tDataTableDialog dataSoruceDlg = new DataTableDialog(shell);\n\t\t\t\tDataTable dataTable = dataSoruceDlg.open();\n\t\t\t\tif (dataTable != null) {\n\t\t\t\t\tString res = dataTable.getCnName();\n\t\t\t\t\tdataTableList.put(res, dataTable);\n\t\t\t\t\tMultiTablesDataField mt = new MultiTablesDataField();\n\t\t\t\t\tmt.setTableAliasName(getTableAliasName(0));\n\t\t\t\t\tmt.setTableCnName(dataTable.getCnName());\n\t\t\t\t\tmt.setTableName(dataTable.getName());\n\t\t\t\t\ttablesList.add(mt);\n\t\t\t\t\tint confirm = MessageUtil.comfirm(shell, \"导入\", \"是否导入字段信息?\");\n\t\t\t\t\tif (confirm == SWT.YES) {\n\t\t\t\t\t\tif (dataTableList != null) {\n\t\t\t\t\t\t\tString tableCnName = mt.getTableCnName();\n\t\t\t\t\t\t\tString tableAliasName = mt.getTableAliasName();\n\t\t\t\t\t\t\tDataTable table = dataTableList.get(tableCnName);\n\t\t\t\t\t\t\tloadFieldsInfo(tableAliasName, table);\n\t\t\t\t\t\t\tfor (DataField df : table.getFields()) {\n\t\t\t\t\t\t\t\tdataFieldList.add(df);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttvDataField.refresh();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttvTableField.refresh();\n\t\t\t}\n\t\t});\n\t\tbtnTableAdd.setImage(ResourceManager.getPluginImage(\"DataAdminPlatform\", \"icons/plus.png\"));\n\t\tfinal FormData fd_btnTableAdd = new FormData();\n\t\tfd_btnTableAdd.bottom = new FormAttachment(100, 0);\n\t\tfd_btnTableAdd.left = new FormAttachment(0, 0);\n\t\tfd_btnTableAdd.height = 20;\n\t\tfd_btnTableAdd.width = 20;\n\t\tbtnTableAdd.setLayoutData(fd_btnTableAdd);\n\n\t\tfinal Button btnTableDel = new Button(group_0, SWT.NONE);\n\t\tbtnTableDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n\t\tbtnTableDel.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e) {\n\t\t\t\tTableItem[] selectItems = tblTableField.getSelection();\n\t\t\t\tif (selectItems != null && selectItems.length > 0) {\n\t\t\t\t\tfor (TableItem ti : selectItems) {\n\t\t\t\t\t\tMultiTablesDataField o = (MultiTablesDataField) ti.getData();\n\t\t\t\t\t\tfor (String s : tempAliasTableNameList) {\n\t\t\t\t\t\t\tif (s.equals(o.getTableAliasName())) {\n\t\t\t\t\t\t\t\ttempAliasTableNameList.remove(s);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttablesList.remove(o);\n\t\t\t\t\t\tif (dataTableList.get(o.getTableCnName()) != null) dataTableList.remove(o.getTableCnName());\n\t\t\t\t\t\t// 在DataField中移除相应表的字段,根据前缀判断\n\t\t\t\t\t\tfor (int i = 0; i < dataFieldList.size(); i++) {\n\t\t\t\t\t\t\tDataField df = dataFieldList.get(i);\n\t\t\t\t\t\t\tString dataField = df.getName();\n\t\t\t\t\t\t\tString TableAliasName = dataField.split(\"\\\\.\")[0];\n\t\t\t\t\t\t\tif (!tempAliasTableNameList.contains(TableAliasName)) {\n\t\t\t\t\t\t\t\tdataFieldList.remove(df);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\ttvTableField.refresh();\n\t\t\t\t\ttvDataField.refresh();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnTableDel.setImage(ResourceManager.getPluginImage(\"DataAdminPlatform\", \"icons/minus.png\"));\n\t\tfinal FormData fd_btnTableDel = new FormData();\n\t\tfd_btnTableDel.bottom = new FormAttachment(100, 0);\n\t\tfd_btnTableDel.left = new FormAttachment(0, 21);\n\t\tfd_btnTableDel.height = 20;\n\t\tfd_btnTableDel.width = 20;\n\t\tbtnTableDel.setLayoutData(fd_btnTableDel);\n\n\t\tfinal TabItem tabFields = new TabItem(tabFolder, SWT.NONE);\n\t\ttabFields.setText(\"查询字段\");\n\n\t\tfinal Composite composite_1 = new Composite(tabFolder, SWT.NONE);\n\t\tcomposite_1.setLayout(new FormLayout());\n\t\ttabFields.setControl(composite_1);\n\n\t\tfinal Group group_1 = new Group(composite_1, SWT.NONE);\n\t\tfinal FormData fd_group_1 = new FormData();\n\t\tfd_group_1.left = new FormAttachment(0, 0);\n\t\tfd_group_1.bottom = new FormAttachment(100, 0);\n\t\tfd_group_1.right = new FormAttachment(100, 0);\n\t\tfd_group_1.top = new FormAttachment(0, -6);\n\t\tgroup_1.setLayoutData(fd_group_1);\n\t\tgroup_1.setLayout(new FormLayout());\n\t\t// tabFields.setControl(group_1);\n\n\t\ttvDataField = new TableViewer(group_1, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n\t\ttvDataField.setContentProvider(new ViewContentProvider());\n\t\ttvDataField.setLabelProvider(new DataFieldsLabelProvider());\n\t\ttvDataField.setColumnProperties(DataFieldsLabelProvider.DATAFIELDS);\n\t\ttblDataField = tvDataField.getTable();\n\n\t\tCellEditor[] cellEditor1 = new CellEditor[9];\n\t\tcellEditor1[0] = new TextCellEditor(tblDataField);\n\t\tcellEditor1[1] = new TextCellEditor(tblDataField);\n\t\tcellEditor1[2] = new TextCellEditor(tblDataField);\n\t\tcellEditor1[3] = new ComboBoxCellEditor(tblDataField, Consts.DATATYPE_LABEL, SWT.READ_ONLY);\n\t\tcellEditor1[4] = new TextCellEditor(tblDataField);\n\t\tcellEditor1[5] = new ComboBoxCellEditor(tblDataField, Consts.SORTDIRECT_LABEL, SWT.READ_ONLY);\n\t\tcellEditor1[6] = new ComboBoxCellEditor(tblDataField, Consts.AGGREGATE_LABEL, SWT.READ_ONLY);\n\t\tcellEditor1[7] = new TextCellEditor(tblDataField);\n\t\tcellEditor1[8] = new ComboBoxCellEditor(tblDataField, Consts.YESNO_LABEL, SWT.READ_ONLY);\n\t\tText text1 = (Text) cellEditor1[4].getControl();\n\t\ttext1.addVerifyListener(new VerifyListener() {\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\tString str = e.text;\n\t\t\t\tif (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n\t\t\t}\n\t\t});\n\t\tText text2 = (Text) cellEditor1[7].getControl();\n\t\ttext2.addVerifyListener(new VerifyListener() {\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\tString str = e.text;\n\t\t\t\tif (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n\t\t\t}\n\t\t});\n\n\t\ttvDataField.setCellEditors(cellEditor1);\n\t\ttvDataField.setCellModifier(new DataFieldsCellModifier(tvDataField));\n\n\t\tfinal FormData fd_table_1 = new FormData();\n\t\tfd_table_1.bottom = new FormAttachment(100, -22);\n\t\tfd_table_1.top = new FormAttachment(0, -6);\n\t\tfd_table_1.right = new FormAttachment(100, 0);\n\t\tfd_table_1.left = new FormAttachment(0, 0);\n\t\ttblDataField.setLayoutData(fd_table_1);\n\t\ttblDataField.setLinesVisible(true);\n\t\ttblDataField.setHeaderVisible(true);\n\n\t\tfinal TableColumn colCnName = new TableColumn(tblDataField, SWT.NONE);\n\t\tcolCnName.setWidth(100);\n\t\tcolCnName.setText(\"中文名\");\n\n\t\tfinal TableColumn colFieldName = new TableColumn(tblDataField, SWT.NONE);\n\t\tcolFieldName.setWidth(100);\n\t\tcolFieldName.setText(\"字段名\");\n\n\t\tfinal TableColumn colAliasName = new TableColumn(tblDataField, SWT.NONE);\n\t\tcolAliasName.setWidth(100);\n\t\tcolAliasName.setText(\"别名\");\n\n\t\tfinal TableColumn colDataType = new TableColumn(tblDataField, SWT.NONE);\n\t\tcolDataType.setWidth(80);\n\t\tcolDataType.setText(\"数据类型\");\n\n\t\tfinal TableColumn colSortNo = new TableColumn(tblDataField, SWT.NONE);\n\t\tcolSortNo.setWidth(60);\n\t\tcolSortNo.setText(\"排序顺序\");\n\n\t\tfinal TableColumn colSortDirect = new TableColumn(tblDataField, SWT.NONE);\n\t\tcolSortDirect.setWidth(80);\n\t\tcolSortDirect.setText(\"排序方向\");\n\n\t\tfinal TableColumn colAggregate = new TableColumn(tblDataField, SWT.NONE);\n\t\tcolAggregate.setWidth(100);\n\t\tcolAggregate.setText(\"聚集函数\");\n\n\t\tfinal TableColumn colAggregateNo = new TableColumn(tblDataField, SWT.NONE);\n\t\tcolAggregateNo.setWidth(60);\n\t\tcolAggregateNo.setText(\"分组顺序\");\n\n\t\tfinal TableColumn colOutput = new TableColumn(tblDataField, SWT.NONE);\n\t\tcolOutput.setWidth(80);\n\t\tcolOutput.setText(\"是否输出\");\n\n\t\tfinal Button btnFieldAdd = new Button(group_1, SWT.NONE);\n\t\tbtnFieldAdd.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e) {\n\t\t\t\tDataField df = new DataField();\n\t\t\t\tdf.setOutput(Consts.YES);\n\t\t\t\tdf.setSortDirect(\"\");\n\t\t\t\tdf.setSortNo(\"\");\n\t\t\t\tdf.setAggregate(\"\");\n\t\t\t\tdataFieldList.add(df);\n\t\t\t\ttvDataField.refresh();\n\t\t\t}\n\t\t});\n\t\tbtnFieldAdd.setImage(ResourceManager.getPluginImage(\"DataAdminPlatform\", \"icons/plus.png\"));\n\t\tfinal FormData fd_btnFieldAdd = new FormData();\n\t\tfd_btnFieldAdd.bottom = new FormAttachment(100, 0);\n\t\tfd_btnFieldAdd.left = new FormAttachment(0, 0);\n\t\tfd_btnFieldAdd.height = 20;\n\t\tfd_btnFieldAdd.width = 20;\n\t\tbtnFieldAdd.setLayoutData(fd_btnFieldAdd);\n\n\t\tfinal Button btnFieldDel = new Button(group_1, SWT.NONE);\n\t\tbtnFieldDel.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e) {\n\t\t\t\tTableItem[] selectItems = tblDataField.getSelection();\n\t\t\t\tif (selectItems != null && selectItems.length > 0) {\n\t\t\t\t\tfor (TableItem ti : selectItems) {\n\t\t\t\t\t\tDataField o = (DataField) ti.getData();\n\t\t\t\t\t\tdataFieldList.remove(o);\n\t\t\t\t\t}\n\t\t\t\t\ttvDataField.refresh();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnFieldDel.setImage(ResourceManager.getPluginImage(\"DataAdminPlatform\", \"icons/minus.png\"));\n\t\tfinal FormData fd_btnFieldDel = new FormData();\n\t\tfd_btnFieldDel.bottom = new FormAttachment(100, 0);\n\t\tfd_btnFieldDel.left = new FormAttachment(0, 21);\n\t\tfd_btnFieldDel.height = 20;\n\t\tfd_btnFieldDel.width = 20;\n\t\tbtnFieldDel.setLayoutData(fd_btnFieldDel);\n\n\t\tfinal TabItem tabConnect = new TabItem(tabFolder, SWT.NONE);\n\t\ttabConnect.setText(\"表联接\");\n\n\t\tfinal Composite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\ttabConnect.setControl(composite_2);\n\n\t\tfinal Group group_2 = new Group(composite_2, SWT.NO_RADIO_GROUP);\n\t\tfinal FormData fd_group_2 = new FormData();\n\t\tfd_group_2.left = new FormAttachment(0, 0);\n\t\tfd_group_2.right = new FormAttachment(100, 0);\n\t\tfd_group_2.top = new FormAttachment(0, -6);\n\t\tfd_group_2.bottom = new FormAttachment(100, 0);\n\t\tgroup_2.setLayoutData(fd_group_2);\n\t\tgroup_2.setLayout(new FormLayout());\n\n\t\ttvConnectFilter = new TableViewer(group_2, SWT.FULL_SELECTION | SWT.BORDER);\n\t\ttvConnectFilter.setLabelProvider(new MultiTableFiltersLabelProvider());\n\t\ttvConnectFilter.setContentProvider(new ViewContentProvider());\n\t\ttvConnectFilter.setColumnProperties(MultiTableFiltersLabelProvider.DATAFIELDS);\n\t\ttblConnectFilter = tvConnectFilter.getTable();\n\t\tCellEditor[] cellEditor2 = new CellEditor[6];\n\t\tString[] tableAliasNames = new String[] { \"\" };\n\t\tString[] tableEnNames = new String[] { \"\" };\n\t\tcellEditor2[0] = new ComboBoxCellEditor(tblConnectFilter, tableEnNames, SWT.READ_ONLY);\n\t\tcellEditor2[1] = new ComboBoxCellEditor(tblConnectFilter, tableAliasNames, SWT.READ_ONLY);\n\t\tcellEditor2[2] = new ComboBoxCellEditor(tblConnectFilter, Consts.CONNECT_LABEL, SWT.READ_ONLY);\n\t\tcellEditor2[3] = new ComboBoxCellEditor(tblConnectFilter, tableEnNames, SWT.READ_ONLY);\n\t\tcellEditor2[4] = new ComboBoxCellEditor(tblConnectFilter, tableAliasNames, SWT.READ_ONLY);\n\t\tcellEditor2[5] = new ConnectedConditionsCellEditor(tblConnectFilter);\n\t\ttvConnectFilter.setCellEditors(cellEditor2);\n\t\ttvConnectFilter.setCellModifier(new MultiTableConnectFiltersCellModifier(tvConnectFilter, tableEnNames, tableAliasNames));\n\n\t\tfinal FormData fd_table_2 = new FormData();\n\t\tfd_table_2.bottom = new FormAttachment(100, -21);\n\t\tfd_table_2.top = new FormAttachment(0, -5);\n\t\tfd_table_2.right = new FormAttachment(100, -1);\n\t\tfd_table_2.left = new FormAttachment(0, 1);\n\t\ttblConnectFilter.setLayoutData(fd_table_2);\n\t\ttblConnectFilter.setLinesVisible(true);\n\t\ttblConnectFilter.setHeaderVisible(true);\n\n\t\tfinal TableColumn FilterEnTableName1 = new TableColumn(tblConnectFilter, SWT.NONE);\n\t\tFilterEnTableName1.setWidth(100);\n\t\tFilterEnTableName1.setText(\"表名\");\n\n\t\tfinal TableColumn FilterTableAliasName1 = new TableColumn(tblConnectFilter, SWT.NONE);\n\t\tFilterTableAliasName1.setWidth(100);\n\t\tFilterTableAliasName1.setText(\"表别名\");\n\n\t\tfinal TableColumn filterOperator = new TableColumn(tblConnectFilter, SWT.NONE);\n\t\tfilterOperator.setWidth(100);\n\t\tfilterOperator.setText(\"联接类型\");\n\n\t\tfinal TableColumn FilterEnTableName2 = new TableColumn(tblConnectFilter, SWT.NONE);\n\t\tFilterEnTableName2.setWidth(100);\n\t\tFilterEnTableName2.setText(\"联接表名\");\n\n\t\tfinal TableColumn colFilterAliasName2 = new TableColumn(tblConnectFilter, SWT.NONE);\n\t\tcolFilterAliasName2.setWidth(100);\n\t\tcolFilterAliasName2.setText(\"联接表别名\");\n\n\t\tfinal TableColumn FilterTableAliasName2 = new TableColumn(tblConnectFilter, SWT.NONE);\n\t\tFilterTableAliasName2.setWidth(250);\n\t\tFilterTableAliasName2.setText(\"联接条件\");\n\n\t\tfinal Button btnConnectAdd = new Button(group_2, SWT.NONE);\n\t\tbtnConnectAdd.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e) {\n\t\t\t\tif (connectFilterList != null && connectFilterList.size() > 0) {\n\t\t\t\t\tMultiTableConnectFilter fm = connectFilterList.get(connectFilterList.size() - 1);\n\t\t\t\t\ttempConnectTableAliasName = fm.getConnectedTableAliasName();\n\t\t\t\t\t// tempConnectColAliasName = fm.getConnectedColAliasName();\n\t\t\t\t\ttempConnectEnName = fm.getConnectedEnTableName();\n\t\t\t\t}\n\t\t\t\tMultiTableConnectFilter df = new MultiTableConnectFilter();\n\t\t\t\tdf.setOperator(Consts.CONNECT_IN);\n\t\t\t\tdf.setTableEnName(tempConnectEnName);\n\t\t\t\tdf.setTableAliasName(tempConnectTableAliasName);\n\t\t\t\tconnectFilterList.add(df);\n\t\t\t\ttvConnectFilter.refresh();\n\t\t\t}\n\t\t});\n\t\tbtnConnectAdd.setImage(ResourceManager.getPluginImage(\"DataAdminPlatform\", \"icons/plus.png\"));\n\t\tfinal FormData fd_btnConnectAdd = new FormData();\n\t\tfd_btnConnectAdd.bottom = new FormAttachment(100, -1);\n\t\tfd_btnConnectAdd.left = new FormAttachment(0, 1);\n\t\tfd_btnConnectAdd.height = 20;\n\t\tfd_btnConnectAdd.width = 20;\n\t\tbtnConnectAdd.setLayoutData(fd_btnConnectAdd);\n\n\t\tfinal Button btnConnectDel = new Button(group_2, SWT.NONE);\n\t\tbtnConnectDel.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e) {\n\t\t\t\tTableItem[] selectItems = tblConnectFilter.getSelection();\n\t\t\t\tif (selectItems != null && selectItems.length > 0) {\n\t\t\t\t\tfor (TableItem ti : selectItems) {\n\t\t\t\t\t\tMultiTableConnectFilter o = (MultiTableConnectFilter) ti.getData();\n\t\t\t\t\t\tconnectFilterList.remove(o);\n\t\t\t\t\t}\n\t\t\t\t\ttvConnectFilter.refresh();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnConnectDel.setImage(ResourceManager.getPluginImage(\"DataAdminPlatform\", \"icons/minus.png\"));\n\t\tfinal FormData fd_btnConnectDel = new FormData();\n\t\tfd_btnConnectDel.bottom = new FormAttachment(100, -1);\n\t\tfd_btnConnectDel.left = new FormAttachment(btnConnectAdd, 1, SWT.DEFAULT);\n\t\tfd_btnConnectDel.height = 20;\n\t\tfd_btnConnectDel.width = 20;\n\t\tbtnConnectDel.setLayoutData(fd_btnConnectDel);\n\n\t\tfinal TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);\n\t\ttabFilter.setText(\"过滤条件\");\n\n\t\tfinal Composite composite_3 = new Composite(tabFolder, SWT.NONE);\n\t\tcomposite_3.setLayout(new FormLayout());\n\t\ttabFilter.setControl(composite_3);\n\n\t\tfinal Group group_3 = new Group(composite_3, SWT.NO_RADIO_GROUP);\n\t\tfinal FormData fd_group_3 = new FormData();\n\t\tfd_group_3.left = new FormAttachment(0, 0);\n\t\tfd_group_3.right = new FormAttachment(100, 0);\n\t\tfd_group_3.top = new FormAttachment(0, -6);\n\t\tfd_group_3.bottom = new FormAttachment(100, -80);\n\t\tgroup_3.setLayoutData(fd_group_3);\n\t\tgroup_3.setLayout(new FormLayout());\n\n\t\ttvFilter = new TableViewer(group_3, SWT.FULL_SELECTION | SWT.BORDER);\n\t\ttvFilter.setLabelProvider(new FiltersLabelProvider());\n\t\ttvFilter.setContentProvider(new ViewContentProvider());\n\t\ttvFilter.setColumnProperties(FiltersLabelProvider.DATAFIELDS);\n\t\ttblFilter = tvFilter.getTable();\n\t\tCellEditor[] cellEditor3 = new CellEditor[3];\n\t\tcellEditor3[0] = new TextCellEditor(tblFilter);\n\t\tString[] aliasNames = new String[] { \"\" };\n\t\tcellEditor3[0] = new ComboBoxCellEditor(tblFilter, aliasNames, SWT.READ_ONLY);\n\t\tcellEditor3[1] = new ComboBoxCellEditor(tblFilter, Consts.OPERATOR_LABEL, SWT.READ_ONLY);\n\t\tcellEditor3[2] = new TextCellEditor(tblFilter);\n\t\ttvFilter.setCellEditors(cellEditor3);\n\t\ttvFilter.setCellModifier(new FiltersCellModifier(tvFilter, aliasNames));\n\n\t\tfinal FormData fd_table_3 = new FormData();\n\t\tfd_table_3.bottom = new FormAttachment(100, -21);\n\t\tfd_table_3.top = new FormAttachment(0, -5);\n\t\tfd_table_3.right = new FormAttachment(100, -1);\n\t\tfd_table_3.left = new FormAttachment(0, 1);\n\t\ttblFilter.setLayoutData(fd_table_3);\n\t\ttblFilter.setLinesVisible(true);\n\t\ttblFilter.setHeaderVisible(true);\n\n\t\tfinal TableColumn colFilterFieldName = new TableColumn(tblFilter, SWT.NONE);\n\t\tcolFilterFieldName.setWidth(120);\n\t\tcolFilterFieldName.setText(\"字段名称\");\n\n\t\tfinal TableColumn colOper = new TableColumn(tblFilter, SWT.NONE);\n\t\tcolOper.setWidth(100);\n\t\tcolOper.setText(\"操作符\");\n\n\t\tfinal TableColumn colFilterData = new TableColumn(tblFilter, SWT.NONE);\n\t\tcolFilterData.setWidth(500);\n\t\tcolFilterData.setText(\"操作数据\");\n\n\t\tfinal Button btnFilterAdd = new Button(group_3, SWT.NONE);\n\t\tbtnFilterAdd.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e) {\n\t\t\t\tFilter df = new Filter();\n\t\t\t\tdf.setField(\"\");\n\t\t\t\tdf.setOperator(\"=\");\n\t\t\t\tdf.setExpression(\"\");\n\t\t\t\tfilterList.add(df);\n\t\t\t\ttvFilter.refresh();\n\t\t\t}\n\t\t});\n\t\tbtnFilterAdd.setImage(ResourceManager.getPluginImage(\"DataAdminPlatform\", \"icons/plus.png\"));\n\t\tfinal FormData fd_btnFilterAdd = new FormData();\n\t\tfd_btnFilterAdd.bottom = new FormAttachment(100, -1);\n\t\tfd_btnFilterAdd.left = new FormAttachment(0, 1);\n\t\tfd_btnFilterAdd.height = 20;\n\t\tfd_btnFilterAdd.width = 20;\n\t\tbtnFilterAdd.setLayoutData(fd_btnFilterAdd);\n\n\t\tfinal Button btnFilterDel = new Button(group_3, SWT.NONE);\n\t\tbtnFilterDel.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e) {\n\t\t\t\tTableItem[] selectItems = tblFilter.getSelection();\n\t\t\t\tif (selectItems != null && selectItems.length > 0) {\n\t\t\t\t\tfor (TableItem ti : selectItems) {\n\t\t\t\t\t\tFilter o = (Filter) ti.getData();\n\t\t\t\t\t\tfilterList.remove(o);\n\t\t\t\t\t}\n\t\t\t\t\ttvFilter.refresh();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnFilterDel.setImage(ResourceManager.getPluginImage(\"DataAdminPlatform\", \"icons/minus.png\"));\n\t\tfinal FormData fd_btnFilterDel = new FormData();\n\t\tfd_btnFilterDel.bottom = new FormAttachment(100, -1);\n\t\tfd_btnFilterDel.left = new FormAttachment(btnFilterAdd, 1, SWT.DEFAULT);\n\t\tfd_btnFilterDel.height = 20;\n\t\tfd_btnFilterDel.width = 20;\n\t\tbtnFilterDel.setLayoutData(fd_btnFilterDel);\n\n\t\tfinal Button btnFilterUp = new Button(group_3, SWT.NONE);\n\t\tbtnFilterUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n\t\tfinal FormData fd_btnFilterUp = new FormData();\n\t\tfd_btnFilterUp.bottom = new FormAttachment(100, -1);\n\t\tfd_btnFilterUp.left = new FormAttachment(btnFilterDel, 1, SWT.DEFAULT);\n\t\tfd_btnFilterUp.height = 20;\n\t\tfd_btnFilterUp.width = 20;\n\t\tbtnFilterUp.setLayoutData(fd_btnFilterUp);\n\t\tbtnFilterUp.setVisible(false);\n\n\t\tfinal Button btnFilterDown = new Button(group_3, SWT.NONE);\n\t\tbtnFilterDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n\t\tfinal FormData fd_btnFilterDown = new FormData();\n\t\tfd_btnFilterDown.bottom = new FormAttachment(100, -1);\n\t\tfd_btnFilterDown.left = new FormAttachment(btnFilterUp, 1, SWT.DEFAULT);\n\t\tfd_btnFilterDown.height = 20;\n\t\tfd_btnFilterDown.width = 20;\n\t\tbtnFilterDown.setLayoutData(fd_btnFilterDown);\n\t\tbtnFilterDown.setVisible(false);\n\n\t\tfinal Label label_2 = new Label(composite_3, SWT.NONE);\n\t\tfinal FormData fd_label_2 = new FormData();\n\t\tfd_label_2.bottom = new FormAttachment(100, -60);\n\t\tfd_label_2.top = new FormAttachment(group_3, 1);\n\t\tfd_label_2.width = 70;\n\t\tfd_label_2.left = new FormAttachment(0, 0);\n\t\tlabel_2.setLayoutData(fd_label_2);\n\t\tlabel_2.setText(\"其他条件:\");\n\n\t\ttxtOtherCondition = new StyledText(composite_3, SWT.BORDER);\n\t\tfinal FormData fd_txtOtherCondition = new FormData();\n\t\tfd_txtOtherCondition.bottom = new FormAttachment(100, -1);\n\t\tfd_txtOtherCondition.top = new FormAttachment(label_2, 1);\n\t\tfd_txtOtherCondition.right = new FormAttachment(100, -1);\n\t\tfd_txtOtherCondition.left = new FormAttachment(0, 1);\n\t\ttxtOtherCondition.setLayoutData(fd_txtOtherCondition);\n\n\t\tfinal TabItem tabSQL = new TabItem(tabFolder, SWT.NONE);\n\t\ttabSQL.setText(\"SQL语句\");\n\n\t\tfinal Composite composite_4 = new Composite(tabFolder, SWT.NONE);\n\t\tcomposite_4.setLayout(new FormLayout());\n\t\ttabSQL.setControl(composite_4);\n\n\t\tfinal Group group_4 = new Group(composite_4, SWT.NONE);\n\t\tfinal FormData fd_group_4 = new FormData();\n\t\tfd_group_4.top = new FormAttachment(0, -6);\n\t\tfd_group_4.right = new FormAttachment(100, 0);\n\t\tfd_group_4.left = new FormAttachment(0, 0);\n\t\tfd_group_4.bottom = new FormAttachment(100, 0);\n\t\tgroup_4.setLayoutData(fd_group_4);\n\t\tgroup_4.setLayout(new FormLayout());\n\n\t\ttxtSQL = new StyledText(group_4, SWT.BORDER);\n\t\tfinal FormData fd_txtSQL = new FormData();\n\t\tfd_txtSQL.bottom = new FormAttachment(100, 0);\n\t\tfd_txtSQL.top = new FormAttachment(0, -6);\n\t\tfd_txtSQL.right = new FormAttachment(100, 0);\n\t\tfd_txtSQL.left = new FormAttachment(0, 0);\n\t\ttxtSQL.setLayoutData(fd_txtSQL);\n\t\ttxtSQL.setWordWrap(true);\n\t\ttxtSQL.setFont(SWTResourceManager.getFont(\"Fixedsys\", 10, SWT.NONE));\n\t\ttxtSQL.setEditable(false);\n\n\t\t//\n\t\tinit();\n\t}", "title": "" }, { "docid": "7a0d53228d80ad2dd5cccf2276904cf6", "score": "0.48788038", "text": "public void initDescriptor()\n\t{\n\t\tsynchronized (UserFirmRelation.class)\n\t\t{\n\t\t\tif (classDescriptor != null)\n\t\t\t\treturn;\n\t\t\tVector tempDescriptor = getSuperDescriptor();\n\t\t\ttempDescriptor.addElement(AttributeDefinition.getForeignRelation(AcronymUserImpl.class, \"user_key\", _user));\n\t\t\ttempDescriptor.addElement(AttributeDefinition.getAttributeRelation(\"firm_key\", _firmKey));\n\t\t\tclassDescriptor = tempDescriptor;\n\t\t}\n\t}", "title": "" }, { "docid": "8344ed1d110ed47fce15637b97212939", "score": "0.487515", "text": "@Override\n public String getDescription() {\n return \"Reference attribute value editor\";\n }", "title": "" }, { "docid": "9b2ced1859687f8ae685e0572abce172", "score": "0.48665774", "text": "public void displayProperty(Property property, String description) {\n if (property != null) {\n JDialog dialog = new JDialog(MAIN_UI, property.toString(), true);\n JPanel panel = new JPanel(new BorderLayout());\n if (description != null) {\n panel.add(new JLabel(description), BorderLayout.NORTH);\n }\n panel.add(new PropertyViewer(property), BorderLayout.CENTER);\n JButton button = new JButton(\"OK\");\n button.addActionListener(e -> dialog.setVisible(false));\n panel.add(button, BorderLayout.SOUTH);\n dialog.setContentPane(panel);\n dialog.setBounds(100, 100, 400, 800);\n dialog.setVisible(true);\n } else {\n throw new IllegalArgumentException(\"A null Property was passed\");\n }\n }", "title": "" }, { "docid": "2e2c7be967406becc8612ed28caafc21", "score": "0.4864175", "text": "public Dialog onCreateDialog(Bundle savedInstanceState) {\n\t AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\t builder.setMessage(\"Accept friend request from \" + creator.getHandle() + \"?\")\n\t .setPositiveButton(\"Accept\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\n\t \t creator.handleResponse(true);\n\t \t \n\t }\n\t })\n\t .setNegativeButton(\"Reject\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\n\t \t creator.handleResponse(false);\n\t \t \n\t }\n\t });\n\t // Create the AlertDialog object and return it\n\t return builder.create();\n\t }", "title": "" }, { "docid": "d60ebf302ceed57c8f40d4406269f69d", "score": "0.4852817", "text": "public final void testOneManyRelationship() {\r\n try {\r\n loadData(\"relationship_1_n.xml\");\r\n\r\n DDLGenConfiguration conf = _generator.getConfiguration();\r\n Object[] params = new Object[] {\r\n conf.getInteger(PARAM_PREFIX + \"integer\" + PARAM_PRECISION),\r\n conf.getInteger(PARAM_PREFIX + \"char\" + PARAM_LENGTH) };\r\n\r\n ByteArrayOutputStream out = new ByteArrayOutputStream();\r\n DDLWriter writer = new DDLWriter(out, conf);\r\n \r\n _generator.generateCreate(writer);\r\n \r\n writer.close();\r\n String ddl = out.toString();\r\n\r\n boolean b = _expected.match(_engine, 0, ddl, params);\r\n assertTrue(\"Generated DDL: \" + ddl + \"\\n\"\r\n + \"Expected DDL: \" + _expected.getLastMatchString(), b);\r\n\r\n out = new ByteArrayOutputStream();\r\n writer = new DDLWriter(out, conf);\r\n \r\n _generator.generateForeignKey(writer);\r\n \r\n writer.close();\r\n ddl = out.toString();\r\n \r\n b = _expected.match(_engine, 1, ddl, params);\r\n assertTrue(\"Generated DDL: \" + ddl + \"\\n\"\r\n + \"Expected DDL: \" + _expected.getLastMatchString(), b);\r\n } catch (Exception e) {\r\n fail(\"testOneManyRelationship: \" + e.getMessage());\r\n }\r\n }", "title": "" }, { "docid": "5be85f1988a6be17aa33c97493bbc1b9", "score": "0.48509315", "text": "private ChoiceDialog<String> createChoiceDialog(List<String> choices, String title, String header, String content) {\r\n\t\tChoiceDialog<String> choiceDialog = new ChoiceDialog<>(null, choices);\r\n\t\tchoiceDialog.setTitle(title);\r\n\t\tchoiceDialog.setHeaderText(header);\r\n\t\tchoiceDialog.setContentText(content);\r\n\t\tchoiceDialog.initOwner(MainApp.getStage());\r\n\t\treturn choiceDialog;\r\n\t}", "title": "" }, { "docid": "8441fbc53bebe22f08df6186fb042d36", "score": "0.4849095", "text": "public EditorInteraction generateEditor(Tree<String> help,\n\t\t\tFieldList inFeat) throws RemoteException;", "title": "" }, { "docid": "3843b8ac2f1fcfd9a2a45e11ddabac90", "score": "0.4847742", "text": "public AECstructure displayAddStructureParameter(){\n\t\tModelTextField attributeName = new ModelTextField(\"\",new Dimension(100,30),ConstantFont.FONT_INPUT_AEC_INFO, true);\n\t\tModelTextField attributeDescription = new ModelTextField(\"\",new Dimension(100,30),ConstantFont.FONT_INPUT_AEC_INFO, true);\n\t\t\n\t\tJPanel dialogPanel = new JPanel();\n\t\tdialogPanel.setLayout(new BoxLayout(dialogPanel,BoxLayout.PAGE_AXIS));\n\t\t\n\t\tControlComboBoxType comboBoxType = new ControlComboBoxType();\n\t\tcomboBoxType.setFont(ConstantFont.FONT_INPUT_AEC_INFO);\n\n\t\tJLabel labelType = new JLabel(\"Structure attribute Type\");\n\t\tlabelType.setFont(ConstantFont.FONT_INPUT_AEC_INFO);\n\t\tlabelType.setForeground(Color.BLACK);\t\t\n\t\tdialogPanel.add(labelType);\n\t\tdialogPanel.add(comboBoxType);\n\t\tdialogPanel.add(Box.createVerticalStrut(15));\n\n\t\tJLabel labelName = new JLabel(\"Structure attribute Name\");\n\t\tlabelName.setFont(ConstantFont.FONT_INPUT_AEC_INFO);\n\t\tlabelName.setForeground(Color.BLACK);\t\t\n\t\tdialogPanel.add(labelName);\n\t\tdialogPanel.add(attributeName);\n\t\tdialogPanel.add(Box.createVerticalStrut(15));\n\t\t\n\t\tJLabel labelDescription = new JLabel(\"Structure attribute Description\");\n\t\tlabelDescription.setFont(ConstantFont.FONT_INPUT_AEC_INFO);\n\t\tlabelDescription.setForeground(Color.BLACK);\t\n\t\tdialogPanel.add(labelDescription);\n\t\tdialogPanel.add(attributeDescription);\n\t\t\n\t\twhile(true){\n\t\t\tint result = JOptionPane.showConfirmDialog(\n\t\t\t\tthis.mainFrame,\n\t\t\t\tdialogPanel,\n\t\t\t\t\"Please enter the new structure's attribute (use in the code)\", \n\t\t\t\tJOptionPane.OK_CANCEL_OPTION,\n\t\t\t\t0,\n\t\t\t\tgetIcon(ConstantIcon.IC_QUESTION)\n\t\t\t);\n\t\t\tif(result==JOptionPane.OK_OPTION){\n\t\t\t\tboolean error=false;\n\t\t\t\terror|=AECcontroller.analyseTextFieldVariableText(attributeName);\n\t\t\t\terror|=AECcontroller.analyseTextFieldText(attributeDescription);\n\t\t\t\tif(!error){\n\t\t\t\t\tAECstructure aecStruct = new AECstructure();\n\t\t\t\t\tDouble size = Math.pow(2, comboBoxType.getSelectedIndex());\n\t\t\t\t\taecStruct.setAttributeSize(size.intValue());\n\t\t\t\t\taecStruct.setAttributeType((String)comboBoxType.getSelectedItem());\n\t\t\t\t\taecStruct.setAttributeName(AECcontroller.analyseAECattributeStructureName(aecStruct,attributeName.getText()));\n\t\t\t\t\taecStruct.setAttributeDescription(attributeDescription.getText());\n\t\t\t\t\treturn aecStruct;\n\t\t\t\t}\n\t\t\t\tDialogStore.getInstance().displayErrorTextFieldDialog();\n\t\t\t}else{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "be43d7cfe256345df52d43b82843e720", "score": "0.48380247", "text": "ViewAssociation createViewAssociation();", "title": "" }, { "docid": "5e3dfbb9a57c222a2ec89868c8a55575", "score": "0.48316592", "text": "public RentDVDDialog(){\r\n\t\tsetModal(true);\r\n\t\tdialogPanel = new JPanel();\r\n\t\tdialogPanel.setLayout(new GridLayout(5,2));\r\n\t\t\r\n\t\tdialogPanel.add(new JLabel(\"Your Name:\"));\r\n\t\tname = new JTextField(\"Bob Ross\");\r\n\t\tdialogPanel.add(name);\r\n\t\t\r\n\t\tdialogPanel.add(new JLabel(\"Title of Movie:\"));\r\n\t\ttitle = new JTextField(\"Avengers\");\r\n\t\tdialogPanel.add(title);\r\n\t\t\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\t\tDate today = new Date();\r\n\t\t\r\n\t\tdialogPanel.add(new JLabel(\"Rented on Date:\"));\r\n\t\trentDate = new JTextField(sdf.format(today));\r\n\t\tdialogPanel.add(rentDate);\r\n\t\t\r\n\t\ttoday.setTime(today.getTime() + 1*24*60*60*1000);\r\n\t\tdialogPanel.add(new JLabel(\"Due on Date:\"));\r\n\t\tdueDate = new JTextField(sdf.format(today));\r\n\t\tdialogPanel.add(dueDate);\r\n\t\t\r\n\t\trent = new JButton(\"Rent\");\r\n\t\tdialogPanel.add(rent);\r\n\t\trent.addActionListener(this);\r\n\t\t\r\n\t\tcancel = new JButton(\"Cancel\");\r\n\t\tdialogPanel.add(cancel);\r\n\t\tcancel.addActionListener(this);\r\n\t\tadd(dialogPanel);\r\n\t\tsetSize(500,500);\r\n\t\tsetVisible(true);\r\n\t}", "title": "" }, { "docid": "4326b763ad6cc5b36d785517454673f9", "score": "0.4828113", "text": "public void initDialog() {\n \r\n }", "title": "" }, { "docid": "200df8c60dcdabd84ba5b7fc050ebf6a", "score": "0.48232788", "text": "public FXMLLoader createModelOverviewDialog(String model) {\r\n try {\r\n// Load the fxml file and create a new stage for the popup dialog.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setResources(ResourceBundle.getBundle(\"resources.language\", locale));\r\n loader.setLocation(MainApp.class.getResource(\"view/\" + model + \"Overview.fxml\"));\r\n AnchorPane page = (AnchorPane) loader.load();\r\n\r\n// Create the dialog Stage.\r\n Stage dialogStage = new Stage();\r\n dialogStage.setTitle(model);\r\n dialogStage.initModality(Modality.NONE);\r\n dialogStage.initOwner(primaryStage);\r\n dialogStage.getIcons().add(Resource.LOGO_ICON);\r\n Scene scene = new Scene(page);\r\n dialogStage.setScene(scene);\r\n\r\n// Show the dialog and wait until the user closes it\r\n dialogStage.showAndWait();\r\n return loader;\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "6b57870d3cadc1ce697448a0e5fc3352", "score": "0.4822968", "text": "@NonNull\n @Override\n\n public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {\n Bundle args = getArguments();\n ParcelableDialog dialogWrapper = args.getParcelable(Statics.DIALOG_EXTRA_TAG);\n\n\n// Dialog ViewModel approach:\n// YesNoDialogViewModel viewModel = args.getParcelable(Statics.YES_NO_VM_TAG);\n// String message = viewModel.getMessage();\n// String yesText = viewModel.getYesText();\n//\n//\n// AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n// builder.setCancelable(false)\n// .setMessage(message)\n// .setPositiveButton(yesText, new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// yesNoActionListener.positiveAction(Statics.PURPOSE_SIMPLE_AFFIRMATION);\n// dialog.dismiss();\n// }\n// });\n\n\n return dialogWrapper.getDialog();\n }", "title": "" }, { "docid": "10c95e5e09241a7c5046ce0404462df5", "score": "0.48076665", "text": "public void showCreateNewAccountPrompt(){\n presenter.showCreateNewAccountPrompt();\n }", "title": "" }, { "docid": "f322654101092eec9a67f46d3d7663fc", "score": "0.48067832", "text": "private void setupAddToDoDialog() {\n\t\taddToDoDialog.setTitle(\"Add a To-Do Entry\");\n\t\tGroup todoAddControls = new Group();\n\n\n\t\t// Set up the pop-up window\n\t\tScene dialogScene = new Scene(todoAddControls, 500, 200);\n\n\t\t// Set up the fields for the edit pop-up window\n\t\tsetupLabelUI(lbl_tdEntry, \"Arial\", 14, 100, Pos.BASELINE_LEFT, 10, 30);\n\t\tlbl_tdEntry.setText(\"Add New Entry\");\n\t\tsetupTextUI(fld_tdEntry, \"Arial\", 14, 450, Pos.BASELINE_LEFT, 30, 80, true);\n\n\n\n\t\t// Set the screen so we can see it\n\t\taddToDoDialog.setScene(dialogScene);\n\t\taddToDoDialog.sizeToScene();\n\n\n\t\tsetupButtonUI(btn_AddToDoEntry, \"Arial\", 12, 50, Pos.BASELINE_LEFT, 210, 120);\n\t\tbtn_AddToDoEntry.setOnAction((event) -> { try {\n\t\t\taddToDoEntry();\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t} });\n\n\t\t// Populate the pop-up window with the GUI elements\n\t\ttodoAddControls.getChildren().addAll( \n\t\t\t\tlbl_tdEntry,fld_tdEntry,btn_AddToDoEntry);\n\n\t\t// Show the pop-up window\n\t\taddToDoDialog.show();\n\t}", "title": "" }, { "docid": "bffe81caf6b83f3a331df527cbe5a672", "score": "0.4804209", "text": "public FacilityPropertyDialog(java.awt.Frame parent, boolean modal) {\r\n super(parent, modal);\r\n initComponents();\r\n }", "title": "" }, { "docid": "198615802532611cd93cb27003ea6aaf", "score": "0.48031327", "text": "public void openBrowseDatabaseDialog() {\n final int width = 800;\n final int height = 600;\n \n JDialog info = new GraphClassInformationDialog(this);\n info.setLocation(DEFAULTPOSITION);\n info.pack();\n info.setSize(width, height);\n info.setVisible(true);\n }", "title": "" }, { "docid": "119fbc64274fa5a5712ab50368eb51b4", "score": "0.48020566", "text": "public NewVehicleDialog(String title,VehicleModel model)\n{ \n instance = this;//to pass to NewWarrantyDialog, to set the warranty details\n\tthis.model = model;\n\tsetTitle(title);\n try\n {\n initPanel(true);\n }\n catch(SQLException e)\n {\n JOptionPane.showMessageDialog(null,\"Problem with database.\");\n dispose();\n }\n}", "title": "" }, { "docid": "9d4d8e6e530186e705d878c90fadc01f", "score": "0.48003095", "text": "public void openCreateQuestion(ActionEvent e) throws IOException {\r\n\t\topenScreen(e, \"CreateQuestion\");\r\n\t}", "title": "" }, { "docid": "6eaae77fb9ee5ee7d716b41d04ef7031", "score": "0.4793183", "text": "private void showConfirmDialog() {\n\n AlertDialog.Builder alert = new AlertDialog.Builder(getActivity());\n alert.setTitle(R.string.dialog_title_delete_diagram);\n alert.setPositiveButton(R.string.dialog_delete_button, new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int whichButton) {\n\n deleteDiagram();\n }\n });\n\n alert.setNegativeButton(R.string.dialog_cancel_button, new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int whichButton) {\n\n }\n });\n\n alert.show();\n\n }", "title": "" }, { "docid": "25f0b4b39aba8846a3c353188277f4a9", "score": "0.4786122", "text": "protected void showAddSuppVehicleDialog(SupplierCreatePanel supplierCreate) {\r\n\t\tSuppVehicleDialog suppVehicleDialog = new SuppVehicleDialog(false, new SuppVehicle(), supplierCreate, null);\r\n\t\tsuppVehicleDialog.setTitle(\"Kendaraan\");\r\n\t\tsuppVehicleDialog.setLocationRelativeTo(null);\r\n\t\tsuppVehicleDialog.setVisible(true);\r\n\t}", "title": "" }, { "docid": "7adca8d225aec9be5901defb88160f88", "score": "0.47818536", "text": "private void showDialogAddWName() {\n Dialog<String[]> dialog = new Dialog<>();\n dialog.setTitle(\"Add Edge\");\n\n // Set the button types.\n ButtonType okButtonType = new ButtonType(\"OK\", ButtonBar.ButtonData.OK_DONE);\n dialog.getDialogPane().getButtonTypes().addAll(okButtonType, ButtonType.CANCEL);\n\n GridPane gridPane = new GridPane();\n gridPane.setHgap(10);\n gridPane.setVgap(10);\n gridPane.setPadding(new Insets(20, 20, 10, 10));\n\n Label sourceT = new Label(\"Source :\");\n Label destT = new Label(\"Destination :\");\n Label weightT = new Label(\"Weight :\");\n TextField weightI = new TextField();\n weightI.setPromptText(\"Weight\");\n ChoiceBox<String> sourceI = new ChoiceBox<>(FXCollections.observableArrayList(nodeList));\n sourceI.getSelectionModel().selectFirst();\n ChoiceBox<String> destI = new ChoiceBox<>(FXCollections.observableArrayList(nodeList));\n destI.getSelectionModel().selectFirst();\n\n UnaryOperator<Change> integerFilter = change -> {\n String input = change.getText();\n if (input.matches(\"[0-9]*\")) {\n return change;\n }\n return null;\n };\n\n weightI.setTextFormatter(new TextFormatter<>(integerFilter));\n\n gridPane.add(sourceT, 0, 0);\n gridPane.add(sourceI, 1, 0);\n gridPane.add(destT, 0, 1);\n gridPane.add(destI, 1, 1);\n gridPane.add(weightT, 0, 2);\n gridPane.add(weightI, 1, 2);\n\n dialog.getDialogPane().setContent(gridPane);\n\n // Request focus on the username field by default.\n Platform.runLater(() -> sourceI.requestFocus());\n\n // Convert the result to a username-password-pair when the login button is clicked.\n dialog.setResultConverter(dialogButton -> {\n if (dialogButton == okButtonType) {\n return new String[]{Integer.toString(sourceI.getSelectionModel().getSelectedIndex()), Integer.toString(destI.getSelectionModel().getSelectedIndex()), weightI.getText()};\n }\n return null;\n });\n\n Optional<String[]> result = dialog.showAndWait();\n\n result.ifPresent(nameRes -> {\n try {\n int src = Integer.parseInt(nameRes[0]);\n int dst = Integer.parseInt(nameRes[1]);\n double weight = Double.parseDouble(nameRes[2]);\n \n// if (src == dst) \n\n if (g.addEdges(src, dst, weight)) {\n edgeList.add(new ModelEdge(weight, nodes.get(src), nodes.get(dst)));\n String res = \"Success to add node!!\\nAdded edge from \" + nodes.get(src).getName() + \" to \" + nodes.get(dst).getName() + \" with weight \" + weight + \"!\";\n text.setValue(res);\n HistoryLogPrinter.getInstance().addEdge(nodes.get(src).getName(), nodes.get(dst).getName(), weight);\n } else {\n throw new Exception();\n }\n } catch (Exception e) {\n text.setValue(\"Failed to add edge!!\\nNode code is not valid!\");\n ErrorLogPrinter.getInstance().display(\"\\nFailed to add edge!!\\nNode code is not valid!\\n\" + e.getMessage() + \"\\n\");\n String message = \"\";\n for (int i = 0; i < 5; i++) {\n message += e.getStackTrace()[i].toString() + \"\\n\";\n }\n ErrorAlertDisplayer.getInstance().display(\"Error!\", \"Failed to add edge!!\\nNode code is not valid!\", message);\n }\n });\n }", "title": "" }, { "docid": "f17112c0df23c086db9aa2a8cff4084b", "score": "0.47817925", "text": "private void jBDisassoActionPerformed(java.awt.event.ActionEvent evt) \n {\n String message = \"\";\n \n //If none of the listed persons have been selected,\n //and the Disassociate button has been clicked\n if(table.getSelectedRow()<0)\n {//pop up a dialog box with an error message,\n \t//to prompt the user to select a relation entry,\n \t//and terminate this method immediately\n message = \"Please select a relationship to disassociate !\";\n JOptionPane.showMessageDialog(null, message ,\"Message\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n \n Relation r = new Relation();\n //Set the value of the first column of the selected row as the first name of a relation record\n r.setName1(table.getValueAt(table.getSelectedRow(), 0).toString());\n //Set the value of the second column of the selected row as the second name of a relation record\n r.setName2(table.getValueAt(table.getSelectedRow(), 1).toString());\n //Set the value of the third column of the selected row as the type of a relation record\n r.setRelationType(table.getValueAt(table.getSelectedRow(), 2).toString());\n \n if(r.getRelationType().equals(\"Parent\"))\n {\n message = disassociateParent(r);\n }\n else if(r.getRelationType().equals(\"Couple\"))\n {\n try\n {\n message = deCouple(r);\n }\n catch (NoParentException npe)\n {\n message = npe.getMessage();\n }\n }\n else\n {\n message = disassociate(r);\n }\n \n refTable();\n \n JOptionPane.showMessageDialog(null , message ,\"Message\", JOptionPane.ERROR_MESSAGE);\n }", "title": "" }, { "docid": "89c97b907d47a26ae1a002d2e9714ba6", "score": "0.47734657", "text": "private void ShowCustomDialog_Xml() {\n\t\tContext mContext = getApplicationContext();\n\t\tDialog dialog = new Dialog(mContext);\n\n\t\tdialog.setContentView(R.layout.custom_dialog);\n\t\tdialog.setTitle(\"Custom Dialog\");\n\n\t\tTextView text = (TextView) dialog.findViewById(R.id.custdlg_text);\n\t\ttext.setText(\"Hello, this is a custom dialog!\");\n\t\tImageView image = (ImageView) dialog.findViewById(R.id.custdlg_image);\n\t\timage.setImageResource(R.drawable.icon);\n\t\tdialog.show();\n\t}", "title": "" }, { "docid": "47e38dbd714f264edee830049a09746e", "score": "0.47718892", "text": "private int createEditorDialog(GeometricalObjectEditor editor) {\n\t\treturn JOptionPane.showConfirmDialog(\n\t\t\t\tthis, \n\t\t\t\teditor, \n\t\t\t\t\"Edit values\", \n\t\t\t\tJOptionPane.YES_NO_OPTION\n\t\t\t);\n\t}", "title": "" }, { "docid": "8c21c4fa250e00e753503d7f61781a29", "score": "0.47685924", "text": "@FXML\r\n\tvoid help_btn_clicked(MouseEvent event) {\r\n\t\tDialog<String> dia = new Dialog<>();\r\n\t\tStage stage = (Stage) dia.getDialogPane().getScene().getWindow();\r\n\t\tDialogPane dialogPane = dia.getDialogPane();\r\n\t\tdialogPane.getStylesheets().add(getClass().getResource(\"/client/boundry/dialog.css\").toExternalForm());\r\n\t\tdialogPane.getStyleClass().add(\"dialog\");\r\n\t\tdia.setTitle(\"Help Dialog\");\r\n\t\tdia.setHeaderText(\"Guide:\");\r\n\t\tdia.setGraphic(new ImageView(this.getClass().getResource(\"/icons8-info-48.png\").toString()));\r\n\t\t// Add a custom icon.\r\n\t\tstage.getIcons().add(new Image(this.getClass().getResource(\"/icons8-help-24.png\").toString()));\r\n\t\tdia.getDialogPane().getButtonTypes().addAll(ButtonType.OK);\r\n\t\tdia.setContentText(\"\\nHere you will able to change price of specific fuel.\\n\\n\"\r\n\t\t\t\t+ \"Back button:\\nclick on this button if you want to return the last page.\\n\\n\"+\"Update button:\\nchange the price the fuel\");\r\n\r\n\t\tdia.show();\r\n\t}", "title": "" }, { "docid": "5b4f052f84c42cb5151f9c91c273ed0f", "score": "0.47616988", "text": "@Override public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String message = \"error - mParsedLabel null\";\n if (mAddress != null) {\n message = \"really delete address '\" + mAddress.getLabel() + \"'?\";\n }\n builder.setMessage(message)\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n reallyDelete();\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "title": "" }, { "docid": "eee04ec422799ad6d0430cb87e2ac24b", "score": "0.47572982", "text": "@FXML\r\n\tprivate void add() {\n\t\tPerson person = new Person(\"\");\r\n\t\t\r\n\t\t// re-display the person with text fields\r\n\t\tgridPane.getChildren().clear();\r\n\t\tgridPane.getRowConstraints().clear();\r\n\t\tpopupPerson(person, false);\r\n\r\n\t\t// replace buttons\r\n\t\tbottomHBox.getChildren().clear();\r\n\r\n\t\tButton btnCancel = new Button(\"Cancel\");\r\n\t\tButton btnOK = new Button(\"OK\");\r\n\r\n\t\tbottomHBox.getChildren().add(btnOK);\r\n\t\tbtnOK.setMaxWidth(Double.MAX_VALUE);\r\n\t\tbottomHBox.setHgrow(btnOK, Priority.ALWAYS);\r\n\r\n\t\tbtnOK.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\r\n\t\t\t\t// TODO: modify\r\n\t\t\t\tString name = ReadPersonComponentPopup\r\n\t\t\t\t\t\t.readTextField(tableContent, NAME);\r\n\t\t\t\tString numMatched = ReadPersonComponentPopup\r\n\t\t\t\t\t\t.readTextField(tableContent, MATCHED);\r\n\t\t\t\tString numMatchesAvaiable = ReadPersonComponentPopup\r\n\t\t\t\t\t\t.readTextField(tableContent, MATCHES_AVAILABLE);\r\n\r\n\t\t\t\tfor (Attribute attribute : person.getAttributes()) {\r\n\t\t\t\t\tswitch (attribute.getAttributeType()) {\r\n\t\t\t\t\tcase GENERAL:\r\n\t\t\t\t\t\tString newValue = ReadPersonComponentPopup\r\n\t\t\t\t\t\t\t\t\t\t\t.readTextField(tableContent, attribute.getAttributeName());\r\n\t\t\t\t\t\t// TODO: modify\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase WEIGHTED_ONE_TO_MULTIPLE:\r\n\t\t\t\t\t\tString newChoice = ReadPersonComponentPopup\r\n\t\t\t\t\t\t\t\t\t\t\t.readMultipleChoices(tableContent, attribute.getAttributeName());\r\n\t\t\t\t\t\tSystem.out.println(newChoice);\r\n\t\t\t\t\t\t// TODO: read new expecting choices\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// TODO: read new level of importance\r\n\t\t\t\t\t\tSystem.out.println(PersonComponentPopup.IMPORTANCE_LABEL + attribute.getAttributeName());\r\n\t\t\t\t\t\tString newLevelOfImportance = ReadPersonComponentPopup\r\n\t\t\t\t\t\t\t\t\t\t\t.readMultipleChoices(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttableContent,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPersonComponentPopup.IMPORTANCE_LABEL + attribute.getAttributeName());\r\n\t\t\t\t\t\tSystem.out.println(newLevelOfImportance);\r\n\t\t\t\t\t\t// TODO: modify\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase WEIGHTED_SCALE:\r\n\t\t\t\t\t\tSlider slider = (Slider) tableContent.get(attribute.getAttributeName());\r\n\t\t\t\t\t\tdouble newInput = slider.getValue();\r\n\t\t\t\t\t\t// TODO: modify\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// display original buttons\r\n\t\t\t\tbottomHBox.getChildren().clear();\r\n\t\t\t\tbottomHBox.getChildren().addAll(btnAddNew, btnModify, btnDelete);\r\n\t\t\t\t\r\n\t\t\t\t// TODO: add this new person\r\n\t\t\t\t\r\n\t\t\t\t// re-display the person with updated info\r\n\t\t\t\tgridPane.getChildren().clear();\r\n\t\t\t\tgridPane.getRowConstraints().clear();\r\n\t\t\t\tpopupPerson(person, true);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbottomHBox.getChildren().add(btnCancel);\r\n\t\tbtnCancel.setMaxWidth(Double.MAX_VALUE);\r\n\t\tbottomHBox.setHgrow(btnCancel, Priority.ALWAYS);\r\n\r\n\t\tbtnCancel.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\t// display original buttons\r\n\t\t\t\tbottomHBox.getChildren().clear();\r\n\t\t\t\tbottomHBox.getChildren().addAll(btnAddNew, btnModify, btnDelete);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "e0c3fe715ba05f12b3873f2d1e6b736f", "score": "0.47568235", "text": "public static ProgressDialog displayNewChoiceDialog(Context context, String title, String message, String affirmative, String negative) {\n\t\tfinal ProgressDialog thisDialog = new ProgressDialog(context);\n\t\t\n\t\t// Show.\n\t\tthisDialog.show();\n\t\tthisDialog.setContentView(R.layout.custom_choice_dialog);\n\t\t\n\t\t// Messages.\n\t\tTextView titleView = (TextView)thisDialog.findViewById(R.id.alert_title_text);\n\t\ttitleView.setText(title); \t\n\t\tTextView messageView = (TextView)thisDialog.findViewById(R.id.alert_message_text);\n\t\tmessageView.setText(message);\n\t\t\n\t\tButton affirmativeButton = (Button)thisDialog.findViewById(R.id.affirmative_button);\n\t\tButton negativeButton = (Button)thisDialog.findViewById(R.id.negative_button);\n\t\taffirmativeButton.setText(affirmative);\n\t\tnegativeButton.setText(negative);\n\t\t\n\t\t// Don't cancel.\n\t\tthisDialog.setCanceledOnTouchOutside(false);\n\t\t\n\t\treturn thisDialog;\n\t}", "title": "" }, { "docid": "8ddae064891ca3c6b08cd1c6ca0830f8", "score": "0.47565764", "text": "public void ShowAddSkillPopup(ActionEvent actionEvent) {\n BindingContainer bindings = getBindings();\r\n OperationBinding ob = bindings.getOperationBinding(\"CreateInsertSkills\");\r\n ob.execute();\r\n ADFUtils.showPopupAshish(addSkillPopup, true);\r\n }", "title": "" }, { "docid": "69c21ff4196ac0a36ce49633b89e5366", "score": "0.47429776", "text": "private void setupDictionaryAddPopup() {\n\n\t\t// Set up the pop-up modal dialogue window\n\t\taddDialog.setTitle(\"1. Write the Word, 2. Write the Definition, and then 3. Add it!\");\n\t\tGroup dictionaryAddControls = new Group();\n\n\n\t\t// Set up the pop-up window\n\t\tScene dialogScene = new Scene(dictionaryAddControls, 500, 400);\n\n\t\t// Set up the fields for the edit pop-up window\n\t\tsetupLabelUI(lbl_2AddDefinition, \"Arial\", 14, 100, Pos.BASELINE_LEFT, 10, 30);\n\t\tlbl_2AddDefinition.setText(\"Add New Entry\");\n\t\tsetupLabelUI(lbl_2aWord, \"Arial\", 12, 100, Pos.BASELINE_LEFT, 20, 60);\n\t\tsetupTextUI(fld_2aWord, \"Arial\", 14, 450, Pos.BASELINE_LEFT, 30, 80, true);\n\t\tsetupLabelUI(lbl_2bDefinition, \"Arial\", 12, 100, Pos.BASELINE_LEFT, 20, 115);\n\t\tsetupTextAreaUI(txt_2bDefinition, \"Arial\", 14, 450, 140, 30, 140, true);\n\t\tsetupLabelUI(lbl_addDefinition, \"Arial\", 14, 100, Pos.BASELINE_LEFT, 10, 295);\n\t\t\n\t\t// Clear the Fields\n\t\tfld_2aWord.clear();\n\t\ttxt_2bDefinition.clear();\n\t\t\n\n\n\t\t// Set the screen so we can see it\n\t\taddDialog.setScene(dialogScene);\n\n\n\n\t\tsetupButtonUI(btn_AddChanges, \"Arial\", 12, 50, Pos.BASELINE_LEFT, 30, 320);\n\t\tbtn_AddChanges.setOnAction((event) -> { addToDictionary(); });\n\n\t\t// Populate the pop-up window with the GUI elements\n\t\tdictionaryAddControls.getChildren().addAll( \n\t\t\t\tlbl_2AddDefinition, lbl_2aWord, fld_2aWord, lbl_2bDefinition, \n\t\t\t\ttxt_2bDefinition, lbl_addDefinition, btn_AddChanges);\n\n\t\t// Show the pop-up window\n\t\taddDialog.show();\n\n\n\t}", "title": "" }, { "docid": "f62b0d605693b57b05e58fd54d7a6149", "score": "0.47416323", "text": "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\t\tnew Label(container, SWT.NONE);\n\t\t\n\t\tButton btnNewButton = new Button(container, SWT.FLAT);\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(AboutDlg.class, \"/br/org/isvi/mgadmin/images/mg_admin_logo.png\"));\n\n\t\treturn container;\n\t}", "title": "" }, { "docid": "c5e1c36a841daaefa4158ecf7149fc18", "score": "0.47370195", "text": "public void showNewListDialog() {\n new MaterialDialog.Builder(this.context)\n .title(\"Create new list\")\n .customView(R.layout.create_custom_list, true)\n .positiveText(\"Create\")\n .onPositive(new MaterialDialog.SingleButtonCallback() {\n @Override\n public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {\n View view = dialog.getCustomView();\n EditText nameEditText = (EditText) view.findViewById(R.id.listName);\n EditText descEditText = (EditText) view.findViewById(R.id.listDescription);\n Spinner typeSpinner = (Spinner) view.findViewById(R.id.listType);\n String name = nameEditText.getText().toString();\n String desc = descEditText.getText().toString();\n String type = typeSpinner.getSelectedItem().toString();\n//\n createCustomList(name, desc, type);\n }\n })\n .negativeText(\"Cancel\")\n .canceledOnTouchOutside(false)\n .show();\n\n }", "title": "" }, { "docid": "8ec0dfc902c59f69654016e6ab58fe2e", "score": "0.47364217", "text": "public void createTutorialDialog(){\n final Dialog tutorialDialog = new Dialog(this, R.style.DialogTheme);\n tutorialDialog.setContentView(R.layout.dialog_tutorial);\n Button basicRulesButton = (Button) tutorialDialog.findViewById(R.id.basic_rules_button);\n Button advancedStrategiesButton = (Button) tutorialDialog.findViewById(R.id.advanced_strategies_button);\n tutorialDialog.show();\n\n\n // Setting listeners for the buttons:\n\n basicRulesButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n // Play proper sound:\n if(mSoundStatus.equals(Constants.ON)) mFlipPieceSound.start();\n\n // Dismiss dialog:\n tutorialDialog.dismiss();\n\n // Start tutorial:\n startTutorialActivity(true);\n\n }\n });\n\n advancedStrategiesButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n // Play proper sound:\n if(mSoundStatus.equals(Constants.ON)) mFlipPieceSound.start();\n\n // Dismiss dialog:\n tutorialDialog.dismiss();\n\n // Start tutorial:\n startTutorialActivity(false);\n\n }\n });\n\n\n }", "title": "" }, { "docid": "e8d4a983e52a2b6f5e83d14fe73c0bb2", "score": "0.47260696", "text": "StaticFieldSelection getRelationshipOwner();", "title": "" }, { "docid": "6bfa47ca46736c40802b1fcf011a60c1", "score": "0.47223634", "text": "private void createAndShowRuleDialog() {\n\n ruleDialog_rule = caView.getCurrentRule();\n\n View layout = getLayoutInflater().inflate(R.layout.rule_select, null);\n\n // set the summary of the selected rule, eg \"Rule 110\"\n final TextView ruleSummaryTxt = (TextView) layout.findViewById(R.id.ruleDialog_ruleSummaryTxt);\n ruleSummaryTxt.setText(getResources().getString(R.string.ruledialog_ruleSummary, ruleDialog_rule));\n\n final SeekBar ruleSeek = (SeekBar) layout.findViewById(R.id.ruleDialog_ruleSlider);\n ruleSeek.setMax(255);\n ruleSeek.setProgress(ruleDialog_rule);\n ruleSeek.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n ruleDialog_rule = progress;\n ruleSummaryTxt.setText(getResources().getString(R.string.ruledialog_ruleSummary, ruleDialog_rule));\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }\n });\n\n\n layout.findViewById(R.id.ruleDialog_butRulePrev).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ruleDialog_rule = ruleDialog_rule <= 0 ? 255 : ruleDialog_rule - 1;\n ruleSeek.setProgress(ruleDialog_rule); // seekbar listener will update edittext value\n }\n });\n\n layout.findViewById(R.id.ruleDialog_butRuleNext).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ruleDialog_rule = ruleDialog_rule >= 255 ? 0 : ruleDialog_rule + 1;\n ruleSeek.setProgress(ruleDialog_rule); // seekbar listener will update edittext value\n }\n });\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this)\n .setTitle(getResources().getString(R.string.ruledialog_title))\n .setCancelable(true)\n .setView(layout)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n getSherlock().getActionBar().setTitle(getResources().getString(R.string.actionbar_ruleSummary, ruleDialog_rule));\n caView.setupForRule(ruleDialog_rule);\n }\n })\n .setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n\n\n builder.create().show();\n\n }", "title": "" }, { "docid": "7b3c2a3c3f3d3e495998d6d445dc3cdb", "score": "0.47190142", "text": "public String getAlgorithemForCreate() {\n\t\treturn algorithemForCreate;\n\t}", "title": "" }, { "docid": "51e297ac1d87309fba6066b7201f66d2", "score": "0.47183603", "text": "public DialogBuilder getNewInstance(IAddDialog addable);", "title": "" }, { "docid": "f8575ab3aa320019a5ab0c64857e2be8", "score": "0.47123903", "text": "protected void addDiscriminating(OBOClass discriminatingTerm,\n\t\t\tOBOProperty prop) {\n\t\tRelationshipLinePanel panel = new RelationshipLinePanel();\n\t\tpanel.setProperty(prop);\n\t\tpanel.setParentTerm(discriminatingTerm);\n\t\tlinkListPanel.add(panel);\n\t\tvalidate();\n\t\trepaint();\n\t\tpanel.tabIn();\n\t}", "title": "" }, { "docid": "c126d65a0336532ec4e0d7bed2c36d43", "score": "0.47118887", "text": "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\ttextRelationship.setText(mList[which]);\n\t\t\t\t\tswitch (which) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\trelationshipId = RELATIONSHIPOFCONTACT.NO.getValue()+\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\trelationshipId = RELATIONSHIPOFCONTACT.RELATIVE.getValue()+\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\trelationshipId = RELATIONSHIPOFCONTACT.CLASSMATE.getValue()+\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\trelationshipId = RELATIONSHIPOFCONTACT.COLLEAGUE.getValue()+\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\trelationshipId = RELATIONSHIPOFCONTACT.CLIENT.getValue()+\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\trelationshipId = RELATIONSHIPOFCONTACT.OTHERS.getValue()+\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "title": "" }, { "docid": "3e9a06e52e8509f1e5c4f146434ee5c0", "score": "0.47066596", "text": "@NonNull\n @Override\n public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {\n View view = LayoutInflater.from(getActivity()).inflate(R.layout.info_dialog, null);\n TextView name = (TextView) view.findViewById(R.id.info_dialog_rest_name);\n TextView address = (TextView) view.findViewById(R.id.info_dialog_rest_address);\n TextView hazardLevel = (TextView) view.findViewById(R.id.info_dialog_hazard_level);\n name.setText(marker.getTitle());\n address.setText(getResources().getString(R.string.dialog_information_restaurant_address) + marker.getSnippet());\n if (marker.getHarzardLevel().equals(\"Low\")){\n hazardLevel.setText(getResources().getString(R.string.dialog_information_restaurant_level)\n + getResources().getString(R.string.dialog_information_hazard_level_low));\n }else if(marker.getHarzardLevel().equals(\"Moderate\")){\n hazardLevel.setText(getResources().getString(R.string.dialog_information_restaurant_level)\n + getResources().getString(R.string.dialog_information_hazard_level_moderate));\n }else if (marker.getHarzardLevel().equals(\"High\")){\n hazardLevel.setText(getResources().getString(R.string.dialog_information_restaurant_level)\n + getResources().getString(R.string.dialog_information_hazard_level_high));\n }else if (marker.getHarzardLevel().equals(\"None\")){\n hazardLevel.setText(getResources().getString(R.string.dialog_information_restaurant_level)\n + getResources().getString(R.string.dialog_information_hazard_level_none));\n }\n // Create button Listener\n DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n @RequiresApi(api = Build.VERSION_CODES.O)\n @Override\n public void onClick(DialogInterface dialog, int which) {\n switch(which){\n case DialogInterface.BUTTON_POSITIVE:\n Intent intent = InspectionActivity\n .makeLaunchIntent(getActivity(),\n marker.getPositionInRestaurantList());\n startActivity(intent);\n break;\n case DialogInterface.BUTTON_NEGATIVE:\n break;\n }\n }\n };\n // Build the dialog\n return new AlertDialog.Builder(getActivity())\n .setTitle(getResources().getString(R.string.dialog_information_title))\n .setView(view)\n .setPositiveButton(android.R.string.ok, listener)\n .setNegativeButton(android.R.string.cancel, listener)\n .create();\n }", "title": "" }, { "docid": "799931281261146ceb0d24fbef56b7ac", "score": "0.47006443", "text": "public ListEntityChooserUI()\n {\n initGUI();\n }", "title": "" }, { "docid": "9bca922a12411aff8722b725bd837ee8", "score": "0.46981165", "text": "public interface DialogCreator {\n CustomDialog createDialog();\n\n}", "title": "" }, { "docid": "24fbb749566a937b2d43a2490e509fdf", "score": "0.4697601", "text": "private void setupDictionaryDeletePopup() {\n\t\tdeleteDialog.setTitle(\"1. Select a definition, 2. Delete It!\");\n\t\tGroup dictionaryDeleteControls = new Group();\n\n\t\t// Fetch the search string that user had specified. We know that since the number of\n\t\t// search items must be greater than zero for the code to call this method, so there \n\t\t// had to be a search string, it had to be greater than zero characters, and at least \n\t\t// one dictionary item matched it.\n\t\ttheDictionary.setSearchString(fld_SearchText.getText());\n\n\t\t// Reset the comboBox list and the list of definitions back to empty\n\t\teditComboBox.getItems().clear();\n\t\teditDefinitionList.clear();\n\n\t\t// Fetch the matching items and place them into a list\n\t\tfor (int ndx = 0; ndx < numberOfSearchItemsFound; ndx++) {\n\t\t\tDictEntry<?,?> d = theDictionary.findNextEntry();\n\t\t\teditComboBox.getItems().add(d.getWord());\n\t\t\teditDefinitionList.add(d);\n\t\t}\n\n\t\t// Set up the pop-up window\n\t\tScene dialogScene = new Scene(dictionaryDeleteControls, 500, 400);\n\n\t\t// Set up the fields for the edit pop-up window\n\t\tsetupLabelUI(lbl_1SelectDefinition, \"Arial\", 14, 100, Pos.BASELINE_LEFT, 10, 10);\n\t\tsetupLabelUI(lbl_2aWord, \"Arial\", 12, 100, Pos.BASELINE_LEFT, 20, 100);\n\t\tsetupTextUI(fld_2aWord, \"Arial\", 14, 450, Pos.BASELINE_LEFT, 30, 120, false);\n\t\tsetupLabelUI(lbl_2bDefinition, \"Arial\", 12, 100, Pos.BASELINE_LEFT, 20, 155);\n\t\tsetupTextAreaUI(txt_2bDefinition, \"Arial\", 14, 450, 140, 30, 180, false);\n\t\tsetupLabelUI(lbl_3DeleteDefinition, \"Arial\", 14, 100, Pos.BASELINE_LEFT, 10, 335);\n\n\t\t// Set up the comboBox to select one of the dictionary items that matched\n\t\teditComboBox.setLayoutX(25);\n\t\teditComboBox.setLayoutY(35);\n\t\teditComboBox.getSelectionModel().selectFirst();\n\t\teditComboBox.setOnAction((event) -> { loadTheEditDefinitionData(); });\n\n\n\t\t// Set the screen so we can see it\n\t\tdeleteDialog.setScene(dialogScene);\n\n\t\t// Load in the current word and definition data into the edit fields\n\t\tloadTheEditDefinitionData ();\n\n\t\tsetupButtonUI(btn_Delete, \"Arial\", 12, 50, Pos.BASELINE_LEFT, 30, 360);\n\t\tbtn_Delete.setOnAction((event) -> { deleteData(); });\n\n\t\t// Populate the pop-up window with the GUI elements\n\t\tdictionaryDeleteControls.getChildren().addAll(editComboBox, lbl_1SelectDefinition, \n\t\t\t\tlbl_2aWord, fld_2aWord, lbl_2bDefinition, \n\t\t\t\ttxt_2bDefinition, btn_Delete,lbl_3DeleteDefinition);\n\n\t\t// Show the pop-up window\n\t\tdeleteDialog.show();\n\t}", "title": "" }, { "docid": "b9deb716e732a289cbdd0f9e67136e1b", "score": "0.46967816", "text": "public AssociationLineConnection()\n {\n super();\n\n setStartDecoration(null);\n setEndDecoration(null);\n\n setAttribute(Figure.POPUP_MENU, createPopupMenu());\n }", "title": "" }, { "docid": "6f56355a9b1d452866ff4401633c5e17", "score": "0.46884826", "text": "public CreateDiagramElementModelCommand(ActivityDiagramModel parent, CreateRequest req)\n {\n if (parent == null || req == null || !(req.getNewObject() instanceof DiagramElementModel))\n {\n throw new IllegalArgumentException();\n }\n this.parent = parent;\n this.request = req;\n setLabel(\"shape creation\");\n }", "title": "" }, { "docid": "427d077727243cbebdb4139c0cabefc2", "score": "0.46881604", "text": "public void doubleClick(DoubleClickEvent e)\n\t{\n\t\tRelationship relationship = (Relationship)((TreeSelection)e.getSelection()).getFirstElement();\n\t\tSchema schema = OpenIIManager.getSchema(relationship.getBase());\n\t\tSchemaView.launchEditor(schema, relationship.getName().replaceAll(\" \\\\(.*\", \"\"));\n\t}", "title": "" }, { "docid": "70e190b548009ac703bdd27fc25455e1", "score": "0.46845758", "text": "public GramCreationDialog( PlotControlFrame f )\n {\n super( \"Periodogram Analysis\", false, true, false, false );\n \n frame = f; // grab the interesting frame\n \n this.setSize( new Dimension( 400, 190 ) );\n try {\n // Build the User Interface\n initUI( );\n } catch( Exception e ) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "3eb15a7f23fbf1847836e62a0f89883b", "score": "0.46820736", "text": "public static void set_RelationDescription(String v)\n {\n UmlCom.send_cmd(CmdFamily.umlSettingsCmd, UmlSettingsCmd._setDefaultRelationDescriptionCmd, v);\n UmlCom.check();\n _relation_default_description = v;\n }", "title": "" }, { "docid": "73f5fc6730d75f4b79fc0933e16793af", "score": "0.46812224", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n final View modifyView = inflater.inflate(R.layout.book_layout, null);\n builder.setView(modifyView);\n\n mBookDesc = (EditText) modifyView.findViewById(R.id.bookdescET);\n mBookName = (EditText) modifyView.findViewById(R.id.booknameET);\n\n builder.setPositiveButton(\"COMPARTILHAR\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) { }\n });\n\n builder.setNegativeButton(\"CANCELAR\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dismiss();\n }\n });\n builder.setTitle(\"Doe um livro\");\n\n images = new ArrayList<>();\n // Create the AlertDialog object and return it\n return builder.create();\n }", "title": "" }, { "docid": "78a2f091dca768217b99fc2febd8f715", "score": "0.4676506", "text": "private void alivePrompt(){\n\n AlertDialog.Builder aliveDialogBuilder = new AlertDialog.Builder(\n detailContext);\n aliveDialogBuilder.setTitle(\"Type in the orchid status:\");\n aliveDialogBuilder\n .setCancelable(true)\n .setPositiveButton(\"Alive\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n detailedOrchid.setStatus(1);\n showDetails(detailedOrchid);\n dialog.cancel();\n }\n }\n )\n .setNegativeButton(\"Dead\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n detailedOrchid.setStatus(0);\n showDetails(detailedOrchid);\n dialog.cancel();\n }\n });\n AlertDialog alertDialog = aliveDialogBuilder.create();\n alertDialog.show();\n }", "title": "" }, { "docid": "4aa8cc3c9ef1b8a60f758b7c9aa6bac1", "score": "0.4671024", "text": "public DialogConformation(){\n super();\n }", "title": "" }, { "docid": "a9d3aa9b8d782aa79a74d994c96a49ec", "score": "0.46706194", "text": "private void buildBasicAttrsPanel()\r\n {\n final JLabel lblObjectName = new JLabel( \"Name\" );\r\n final JPanel pnlName = new JPanel();\r\n pnlName.setBorder( new EmptyBorder( 10, 10, 10, 10 ) );\r\n pnlName.setLayout( new BoxLayout( pnlName, BoxLayout.LINE_AXIS ) );\r\n pnlName.add( lblObjectName );\r\n pnlName.add( Box.createRigidArea( new Dimension( 10, 0 ) ) );\r\n\r\n this.edObjectName = new JTextField();\r\n this.edObjectName.setHorizontalAlignment( JTextField.RIGHT );\r\n pnlName.add( edObjectName );\r\n this.pnlAction.add( pnlName );\r\n this.pnlAction.add( Box.createVerticalGlue() );\r\n\r\n // Object's name events\r\n this.edObjectName.addFocusListener( new FocusListener() {\r\n @Override\r\n public void focusGained(FocusEvent e) {}\r\n\r\n @Override\r\n public void focusLost(FocusEvent e) {\r\n Inspector.this.onEditObjectName();\r\n }\r\n } );\r\n\r\n this.edObjectName.addActionListener( (e) -> Inspector.this.onEditObjectName() );\r\n\r\n // Add panel for parent attribute\r\n if ( !( this.getObj() instanceof ObjectParent ) ) {\r\n final JLabel lblParentAttributeName = new JLabel( \"Parent\" );\r\n final JPanel pnlAttrParent = new JPanel();\r\n\r\n this.cbParent = new JComboBox( this.availableObjectsNames );\r\n ( (JLabel) this.cbParent.getRenderer() ).setHorizontalAlignment( JLabel.RIGHT );\r\n ( (JTextField) this.cbParent.getEditor().getEditorComponent() ).setHorizontalAlignment( JTextField.RIGHT );\r\n this.cbParent.setFont( this.visualEngine.getFont() );\r\n this.cbParent.setEditable( true );\r\n this.cbParent.getModel().setSelectedItem( this.getObj().getParentObject().getNameOrValueAsString() );\r\n\r\n pnlAttrParent.setBorder( new EmptyBorder( 10, 10, 10, 10 ) );\r\n pnlAttrParent.setLayout( new BoxLayout( pnlAttrParent, BoxLayout.LINE_AXIS ) );\r\n pnlAttrParent.add( lblParentAttributeName );\r\n pnlAttrParent.add( Box.createRigidArea( new Dimension( 10, 0 ) ) );\r\n pnlAttrParent.add( this.cbParent );\r\n this.pnlAction.add( pnlAttrParent );\r\n this.pnlAction.add( Box.createVerticalGlue() );\r\n\r\n // Combobox's events for the parent attribute\r\n this.cbParent.addFocusListener( new FocusListener() {\r\n @Override\r\n public void focusGained(FocusEvent e) {}\r\n\r\n @Override\r\n public void focusLost(FocusEvent e) {\r\n Inspector.this.onChangeParent();\r\n }\r\n } );\r\n this.cbParent.addActionListener( (e) -> Inspector.this.onChangeParent() );\r\n }\r\n }", "title": "" }, { "docid": "7190a51cb1aa7263a5e3cd0f9cc14bdc", "score": "0.46681985", "text": "@Override\r\n\tprotected void writeHelpDialog() {\n\t\tthis.helpDialog.setText(\"assign help dialog\");\r\n\t}", "title": "" }, { "docid": "331f09ad2c43c2484f3d5343f0feddc3", "score": "0.466813", "text": "public void editPopUp() {\n\t\tfinal Stage myDialog = new Stage();\n\t\tmyDialog.initModality(Modality.APPLICATION_MODAL);\n\t\tmyDialog.centerOnScreen();\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/edu/wpi/cs3733/d21/teamA/fxml/NodePopUp.fxml\"));\n\n\t\t\tNodePopUp controller = new NodePopUp(this);\n\t\t\tloader.setController(controller);\n\n\t\t\tmyDialog.setScene(new Scene(loader.load()));\n\t\t\tmyDialog.show();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "65067fc92495e2db64675d9721b9e33f", "score": "0.46564314", "text": "public String getPopUpDescription() {\n return \"Fits a straight line to data\";\n }", "title": "" }, { "docid": "34e11563b1d8503274357a11e63bcc22", "score": "0.46563962", "text": "protected void createView() {\n\t\tsuper.createView();\n\t\tJTextField namefield = (JTextField) getComponentByName(ForeignKeyView.ID_NAME_FIELD);\n\t\tnamefield.setEnabled(false);\n\t}", "title": "" }, { "docid": "0d0c82abec53de07027b153eed69f1e5", "score": "0.4656169", "text": "public AddClassDialog() {\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\tclassNameField = new JTextField(45);\n\t\tJPanel individualNameFieldHolder = new JPanel(new BorderLayout());\n\t\tindividualNameFieldHolder.setBorder(ComponentFactory.createTitledBorder(\"Class Name\"));\n\t\tindividualNameFieldHolder.add(classNameField, BorderLayout.NORTH);\n\t\tadd(individualNameFieldHolder, BorderLayout.NORTH);\n\t\t\n\t\tiriLabel = new JLabel();\n\t\tiriLabel.setText(GlobalVariables.prefix());\n\t\tJPanel iriFieldHolder = new JPanel(new BorderLayout());\n\t\tiriFieldHolder.setBorder(ComponentFactory.createTitledBorder(\"IRI (auto-generated)\"));\n\t\tiriFieldHolder.add(iriLabel, BorderLayout.CENTER);\n\t\tadd(iriFieldHolder, BorderLayout.CENTER);\n\t\t\n\t\tclassNameField.getDocument().addDocumentListener(new DocumentListener(){\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent arg0) {\n\t\t\t\tchangeText();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent arg0) {\n\t\t\t\tchangeText();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent arg0) {\n\t\t\t\tchangeText();\n\t\t\t}\n\t\t});\n\t\t\n\t\tint dialogeInput = JOptionPaneEx.showValidatingConfirmDialog(this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"Create a new OWLClass\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t JOptionPane.PLAIN_MESSAGE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t JOptionPane.OK_CANCEL_OPTION,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.classNameField);\n\t\t\n\t\tif (dialogeInput == 0) {\n\t\t\tnew AddOWLClass(classNameField.getText());\n\t\t}\n\t\t\n\t\tclassNameField.setText(\"\");\n\t\tiriLabel.setText(GlobalVariables.prefix());\n\t}", "title": "" }, { "docid": "346f07345fcf3860ed2074fc4bb0439b", "score": "0.46508947", "text": "public InfoDialog(Frame owner, String title, ConceptSemanticType sty) {\n // non-modal dialog, i.e., other\n // windows can be active at the same time\n super(owner, false);\n setTitle(title);\n initComponents();\n\n editor.setText(getSTYInfo(sty));\n }", "title": "" }, { "docid": "71edf53cb623b5f41df3b58d6b1c951c", "score": "0.46437633", "text": "protected void generateRelationship( StringBuilder script, String relationId, String type, String target,\n String targetMode )\n {\n script.append( \"<\" );\n script.append( RELATIONSHIP_ELT );\n // Id\n script.append( \" \" );\n script.append( RELATIONSHIP_ID_ATTR );\n script.append( \"=\\\"\" );\n script.append( relationId );\n // Type\n script.append( \"\\\" \" );\n script.append( RELATIONSHIP_TYPE_ATTR );\n script.append( \"=\\\"\" );\n script.append( type );\n // Target\n script.append( \"\\\" \" );\n script.append( RELATIONSHIP_TARGET_ATTR );\n script.append( \"=\\\"\" );\n script.append( target );\n if ( targetMode != null )\n {\n script.append( \"\\\" \" );\n script.append( RELATIONSHIP_TARGET_MODE_ATTR );\n script.append( \"=\\\"\" );\n script.append( targetMode );\n\n }\n script.append( \"\\\" />\" );\n }", "title": "" }, { "docid": "54b8d6c3237521994298dd1e83a3d1c4", "score": "0.46412575", "text": "protected FisProWriterNodeDialog() {\n\t\tsuper();\n\n\t\tcreateNewGroup(\"Insert parameters\");\n\n\t\taddDialogComponent(new DialogComponentString(\n\t\t\t\tnew SettingsModelString(FisProWriterNodeModel.OUT_DIR_STR, System.getProperty(\"user.home\")),\n\t\t\t\t\"Insert output directory:\"));\n\n\t\taddDialogComponent(new DialogComponentString(\n\t\t\t\tnew SettingsModelString(FisProWriterNodeModel.OUT_FILE_NAME_STR, null), \"Insert output filename:\"));\n\n\t}", "title": "" }, { "docid": "76d5dc109419701400bead01f3b556aa", "score": "0.46373966", "text": "public final void testManyManyRelationship() {\r\n try {\r\n loadData(\"relationship_m_n.xml\");\r\n\r\n DDLGenConfiguration conf = _generator.getConfiguration();\r\n Object[] params = new Object[] {\r\n conf.getInteger(PARAM_PREFIX + \"integer\" + PARAM_PRECISION),\r\n conf.getInteger(PARAM_PREFIX + \"char\" + PARAM_LENGTH) };\r\n\r\n ByteArrayOutputStream out = new ByteArrayOutputStream();\r\n DDLWriter writer = new DDLWriter(out, conf);\r\n \r\n _generator.generateCreate(writer);\r\n \r\n writer.close();\r\n String ddl = out.toString();\r\n \r\n boolean b = _expected.match(_engine, 0, ddl, params);\r\n assertTrue(\"Generated DDL: \" + ddl + \"\\n\"\r\n + \"Expected DDL: \" + _expected.getLastMatchString(), b);\r\n\r\n out = new ByteArrayOutputStream();\r\n writer = new DDLWriter(out, conf);\r\n \r\n _generator.generateForeignKey(writer);\r\n \r\n writer.close();\r\n ddl = out.toString();\r\n \r\n b = _expected.match(_engine, 1, ddl, params);\r\n assertTrue(\"Generated DDL: \" + ddl + \"\\n\"\r\n + \"Expected DDL: \" + _expected.getLastMatchString(), b);\r\n } catch (Exception e) {\r\n fail(\"testManyManyRelationship: \" + e.getMessage());\r\n }\r\n }", "title": "" }, { "docid": "d1d0d64a41cae9cdeae8e581acd655c6", "score": "0.46358266", "text": "public TableDialog(java.awt.Frame parent, boolean modal, DefaultTableModel aModel, String aTitle) {\n super(parent, modal);\n initComponents();\n itsModel = aModel;\n itsTitle = aTitle;\n titleLabel.setText(aTitle);\n tablePanel1.setTableModel(aModel);\n tablePanel1.validate();\n }", "title": "" }, { "docid": "44153575f57e87fc163f02d613d5602b", "score": "0.46317172", "text": "public VisualizzaRichiesteAggiuntaAppelloForm() {\n initComponents();\n appelli = new Appelli();\n appelli.caricaRichieste();\n richiesteTable.setModel(appelli);\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": "c200e6b5ec09b03e8c316133db18a561", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel6 = new javax.swing.JLabel();\n jPanel1 = 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 name = new javax.swing.JTextField();\n id = new javax.swing.JTextField();\n hall = new javax.swing.JTextField();\n plan = new javax.swing.JTextField();\n trainer = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n planlist = new javax.swing.JTextArea();\n jScrollPane2 = new javax.swing.JScrollPane();\n halllist = new javax.swing.JTextArea();\n jScrollPane3 = new javax.swing.JScrollPane();\n trainerlist = new javax.swing.JTextArea();\n jButton2 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n jSeparator5 = new javax.swing.JSeparator();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jButton7 = new javax.swing.JButton();\n\n jLabel6.setFont(new java.awt.Font(\"Trebuchet MS\", 1, 24)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"Add Trainer\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(102, 102, 102));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Name\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 130, 59, 33));\n\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"ID\");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(161, 182, 59, 33));\n\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"GymHall\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(161, 233, 59, 33));\n\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Plan\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(161, 284, 59, 33));\n\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Trainer\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(161, 335, 59, 33));\n\n name.setBackground(new java.awt.Color(102, 102, 102));\n name.setForeground(new java.awt.Color(255, 255, 255));\n name.setBorder(null);\n jPanel1.add(name, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 130, 108, -1));\n\n id.setBackground(new java.awt.Color(102, 102, 102));\n id.setForeground(new java.awt.Color(255, 255, 255));\n id.setBorder(null);\n jPanel1.add(id, new org.netbeans.lib.awtextra.AbsoluteConstraints(295, 188, 108, -1));\n\n hall.setBackground(new java.awt.Color(102, 102, 102));\n hall.setForeground(new java.awt.Color(255, 255, 255));\n hall.setBorder(null);\n hall.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n hallActionPerformed(evt);\n }\n });\n jPanel1.add(hall, new org.netbeans.lib.awtextra.AbsoluteConstraints(295, 233, 108, 20));\n\n plan.setBackground(new java.awt.Color(102, 102, 102));\n plan.setForeground(new java.awt.Color(255, 255, 255));\n plan.setBorder(null);\n jPanel1.add(plan, new org.netbeans.lib.awtextra.AbsoluteConstraints(295, 290, 108, -1));\n\n trainer.setBackground(new java.awt.Color(102, 102, 102));\n trainer.setForeground(new java.awt.Color(255, 255, 255));\n trainer.setBorder(null);\n jPanel1.add(trainer, new org.netbeans.lib.awtextra.AbsoluteConstraints(295, 341, 108, -1));\n\n jButton1.setBackground(new java.awt.Color(0, 255, 255));\n jButton1.setForeground(new java.awt.Color(255, 255, 255));\n jButton1.setText(\"Go\");\n jButton1.setBorder(null);\n jButton1.setBorderPainted(false);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 440, 90, 30));\n\n planlist.setColumns(20);\n planlist.setRows(5);\n planlist.setBorder(null);\n jScrollPane1.setViewportView(planlist);\n\n jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 250, 170, 120));\n\n halllist.setColumns(20);\n halllist.setRows(5);\n halllist.setBorder(null);\n jScrollPane2.setViewportView(halllist);\n\n jPanel1.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 420, -1, 116));\n\n trainerlist.setColumns(20);\n trainerlist.setRows(5);\n trainerlist.setBorder(null);\n jScrollPane3.setViewportView(trainerlist);\n\n jPanel1.add(jScrollPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 80, -1, 116));\n\n jButton2.setBorder(null);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(777, 299, -1, -1));\n\n jButton4.setBackground(new java.awt.Color(255, 0, 0));\n jButton4.setForeground(new java.awt.Color(51, 51, 51));\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gymtemp/images/icons8_Delete_50px.png\"))); // NOI18N\n jButton4.setBorder(null);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(940, 0, 40, 40));\n jPanel1.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 150, 120, 21));\n jPanel1.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 210, 120, 10));\n jPanel1.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 260, 120, 20));\n jPanel1.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 310, 120, 20));\n jPanel1.add(jSeparator5, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 360, 120, 20));\n\n jLabel7.setFont(new java.awt.Font(\"Trebuchet MS\", 1, 24)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Add Details\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 20, 280, 60));\n\n jLabel8.setFont(new java.awt.Font(\"Trebuchet MS\", 1, 14)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel8.setText(\"Trainer List\");\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 40, 150, 50));\n\n jLabel9.setFont(new java.awt.Font(\"Trebuchet MS\", 1, 14)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"Plan List\");\n jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 210, 150, 40));\n\n jLabel10.setFont(new java.awt.Font(\"Trebuchet MS\", 1, 14)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(255, 255, 255));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"Hall List\");\n jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 380, 150, 50));\n\n jButton7.setBackground(new java.awt.Color(153, 255, 102));\n jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gymtemp/images/icons8_Undo_50px_1.png\"))); // NOI18N\n jButton7.setBorder(null);\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 50, 40));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 980, 580));\n\n setBounds(500, 200, 979, 578);\n }", "title": "" } ]
[ { "docid": "cd0b28bea46d143fe752578508c201dc", "score": "0.7728879", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n }", "title": "" }, { "docid": "e8b4768b3e3c4c6ca716dae9d0c39df9", "score": "0.7493357", "text": "public RealEstatesForm() {\n initComponents();\n }", "title": "" }, { "docid": "4bbfe05cc175e36d651bc35bf0039652", "score": "0.74358845", "text": "public Mainform() {\n initComponents();\n \n }", "title": "" }, { "docid": "17113ab7a06544a62482637e283ac13d", "score": "0.7393879", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n }", "title": "" }, { "docid": "17113ab7a06544a62482637e283ac13d", "score": "0.7393879", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n }", "title": "" }, { "docid": "b431c293f27700e21b92be92177c04a2", "score": "0.73462504", "text": "public UIForm() {\n initComponents();\n }", "title": "" }, { "docid": "37a5472d5b0f35cf64a077bc1dd978c4", "score": "0.7318655", "text": "public Form() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7289971", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7289971", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7289971", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "d3a53f58370a794f26006a784930f8b8", "score": "0.726237", "text": "public PatDetails_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "5db94d450d3a61db9bf0919e0a4c9e47", "score": "0.7258048", "text": "public Settings_Form() {\n\t\tinitComponents();\n\t\tthis.setLocationRelativeTo(null);\n\t\tsetTextFields();\n\t}", "title": "" }, { "docid": "a2932c04e2171d72b51775e937c4c541", "score": "0.7212279", "text": "public Form1() {\n initComponents();\n }", "title": "" }, { "docid": "81d45a20ed732bcd6dedf7f2b0b279c4", "score": "0.71813625", "text": "public BookingFinalForm() {\n\n //setting bounds of frame\n this.setBounds(100,100,600,500);\n \n }", "title": "" }, { "docid": "28425600ef9ec80e82f03c8c1fc97f1d", "score": "0.71194154", "text": "public STD_VERWALTUNG_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "6772005bb57f5d51b0486dfb4df53996", "score": "0.70718503", "text": "public Editorial() {\n initComponents();\n }", "title": "" }, { "docid": "8e6426acec09bd7d8941839da3b4ae8f", "score": "0.7070398", "text": "public AlapForm() {\n initComponents();\n }", "title": "" }, { "docid": "5404bd5b48c01940ff09ecf78aff0f75", "score": "0.7067581", "text": "public form() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "title": "" }, { "docid": "c58a3c50604b103bf527bda149ca82f1", "score": "0.70496815", "text": "public CambiarContra_Form() {\n initComponents();\n }", "title": "" }, { "docid": "3a50f1029d74ca3be461298e0a51ec1e", "score": "0.7021294", "text": "public frmDoktorTanimlari() {\n initComponents();\n }", "title": "" }, { "docid": "f4b759b0eabda5922df2c2fb08ab2d21", "score": "0.69964135", "text": "public Newpatientform() {\n initComponents();\n }", "title": "" }, { "docid": "c847654ce9a8d1508110ef4143b7f57b", "score": "0.6988271", "text": "public SiParkirUI() {\n initComponents();\n }", "title": "" }, { "docid": "9b0cb168fcd80af9f1fa25903df601f1", "score": "0.6954262", "text": "public ItemForm() {\n initComponents();\n }", "title": "" }, { "docid": "5f10421a33305da5756d42032ef779d1", "score": "0.69471717", "text": "public FrmBarang() {\n initComponents();\n }", "title": "" }, { "docid": "485a92304965cba5e32a2a56fc95993c", "score": "0.6946819", "text": "public MainForm() {\r\n super(\"Main Form\");\r\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n initComponents();\r\n }", "title": "" }, { "docid": "abca895b2170b8f8186464c00859db0a", "score": "0.6937993", "text": "public Kuis1() {\n initComponents();\n }", "title": "" }, { "docid": "5cdd76d5cc764a2b816720f953a7027a", "score": "0.69267833", "text": "public PetunjukPenggunaan() {\n initComponents();\n }", "title": "" }, { "docid": "f7498ded95c7459dad1aa1125436d930", "score": "0.6926314", "text": "public GUI_ThemSuaQuanAo() {\n initComponents();\n }", "title": "" }, { "docid": "f9a87b0b8df9ff1f04c283119bcf5f01", "score": "0.69258195", "text": "public displayform() {\n initComponents();\n }", "title": "" }, { "docid": "37b6840ba0594794d42cdb8f710d4395", "score": "0.6920309", "text": "public ur06b1() {\n initComponents();\n }", "title": "" }, { "docid": "50b81da83b435c4121d8d36034eabcb0", "score": "0.6913303", "text": "public pizzaordergui() {\n initComponents();\n }", "title": "" }, { "docid": "3d68e2c2d1cb4e5a084cff9b2c57447f", "score": "0.68916506", "text": "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "title": "" }, { "docid": "a5e2982f7d19fbd7905607eb8b5483fa", "score": "0.68694705", "text": "public frmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "a5e2982f7d19fbd7905607eb8b5483fa", "score": "0.68694705", "text": "public frmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "a5e2982f7d19fbd7905607eb8b5483fa", "score": "0.68694705", "text": "public frmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "10137775cb07cc0e8d53a42ec1680054", "score": "0.68636227", "text": "public FormPerson() {\n initComponents();\n prepareForm();\n setLocationRelativeTo(null);\n setVisible(true);\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851817", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851817", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851817", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "e3dfb0c2f82437c8d72117b1150c77e6", "score": "0.6845339", "text": "public formSoma() {\n initComponents();\n }", "title": "" }, { "docid": "152f657dec90d8015f1e16ee7ea6854b", "score": "0.6838575", "text": "public chiefp21() {\n initComponents();\n }", "title": "" }, { "docid": "7233c2c898544f3f6abd4cb82768ee82", "score": "0.68376094", "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, 496, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 496, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "f9a62b34de062f3fdfe71ded48f6aa83", "score": "0.6827655", "text": "public FrmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "426c4c46dea4d1dcaa78976eaa6a16ce", "score": "0.68269604", "text": "public formGoiMon() {\n initComponents();\n }", "title": "" }, { "docid": "f00f3f9815468f9c3ded201ed26737a4", "score": "0.68187547", "text": "public ResultsForm() {\n initComponents();\n }", "title": "" }, { "docid": "894693ac5a5e798f40dc439e479f7e5e", "score": "0.68134195", "text": "public HangmanUI()\n {\n initComponents();\n }", "title": "" }, { "docid": "051a55aa53cf1aaaeb6dc20c1a7b737b", "score": "0.6808718", "text": "public lcChemMD() {\n initComponents();\n }", "title": "" }, { "docid": "7a4a0fb3bd294fd5796bb13ba405fd3d", "score": "0.6806858", "text": "public SHAS_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "fad22554042e1b8a318b01286577b06a", "score": "0.68006307", "text": "public AddSongFrm() {\n initComponents();\n }", "title": "" }, { "docid": "ce231278c5415b58a1ca52dc82d54e4f", "score": "0.67917216", "text": "public DesignGUI() {\n initComponents();\n }", "title": "" }, { "docid": "c824c290917e23b543552924ff5ca7ff", "score": "0.67898655", "text": "public Flight_Information() {\n initComponents();\n }", "title": "" }, { "docid": "122000e89363123e51e320eec8a37f1c", "score": "0.6784407", "text": "public PatientForm() {\n initComponents();\n }", "title": "" }, { "docid": "9c130aefb85466c73aded825b084df44", "score": "0.6783565", "text": "public MoviesForm() {\n initComponents();\n }", "title": "" }, { "docid": "9dd96efaf9432449e9a8e04f5a1c9e4d", "score": "0.6757031", "text": "public Old_FrameCadastroAvl() {\n initComponents();\n }", "title": "" }, { "docid": "41af56a3df9a40a1a17cc3881f2fa044", "score": "0.67532915", "text": "public ProductsForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "2a7abfdc3eb3de312f8992e65907394e", "score": "0.67498744", "text": "public Cwk() {\n initComponents();\n }", "title": "" }, { "docid": "4b7e1ef9075f78ad5a3b1752a9d9d22b", "score": "0.67473835", "text": "public d_Main() {\n initComponents();\n \n }", "title": "" }, { "docid": "15ce48f40675d6343e5b61362bb9f832", "score": "0.6747373", "text": "public StudentUI() {\n initComponents();\n }", "title": "" }, { "docid": "8d6cfb05c40166aad916761121d49b51", "score": "0.6744053", "text": "public ServiceDetailsGUI() {\n initComponents();\n }", "title": "" }, { "docid": "4e106ae7a7b0c0cfe394c917a9b32bdf", "score": "0.6740705", "text": "public NewCarForm() {\n super(\"Add New Car\");\n initComponents();\n setLocationRelativeTo(null);\n conn = JavaConnect.connectDb();\n }", "title": "" }, { "docid": "1b3dee170a39d75443ee085bc72d6c94", "score": "0.6739271", "text": "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents()\r\n {\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 684, Short.MAX_VALUE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 483, Short.MAX_VALUE)\r\n );\r\n }", "title": "" }, { "docid": "fd485bdfb087f52829ceea57b4655cbc", "score": "0.6737154", "text": "public UpdateForm() {\n initComponents();\n jLabel1.setVisible(false);\n jLabel2.setVisible(false);\n jLabel3.setVisible(false);\n txtName.setVisible(false);\n txtHomeTown.setVisible(false);\n txtPhone.setVisible(false);\n }", "title": "" }, { "docid": "130e2ee7095a33015a483b40d2c5f423", "score": "0.67316675", "text": "public AddFrame() {\n initComponents();\n\n jTextField1.setText(null);\n jTextField2.setText(null);\n jTextField4.setText(null);\n \n }", "title": "" }, { "docid": "f53b8cb13594faba8eea0453cb92ba36", "score": "0.6730584", "text": "public WhatWeOfferFrame() {\n initComponents();\n }", "title": "" }, { "docid": "cf6097dcf2ff572b1142ca9458aab7a3", "score": "0.6730541", "text": "public frmCustomer() {\n initComponents();\n }", "title": "" }, { "docid": "b1dc49e68642392f5a24c1f8b56230f6", "score": "0.6728987", "text": "public Racun() {\n initComponents();\n }", "title": "" }, { "docid": "90a6f56ddaf85cb99025c57ed7a906c4", "score": "0.67282057", "text": "public FormUser() {\n initComponents();\n this.setLocation(0, 150);\n }", "title": "" }, { "docid": "f34b058ac0206ba07aac79347505d8a6", "score": "0.6727275", "text": "public EhhsistantGUI() {\n initComponents();\n }", "title": "" }, { "docid": "4b1b16b647a7f02f62eb4b2d4d957647", "score": "0.6726325", "text": "public Pregunta5() {\n initComponents();\n }", "title": "" }, { "docid": "cf01e40ca73a7c25909e63f5afad0871", "score": "0.67205113", "text": "public Tugas1() {\n initComponents();\n }", "title": "" }, { "docid": "215de132ed2b69437c537e57e3358be9", "score": "0.6718474", "text": "public LaundryFrame() {\n initComponents();\n }", "title": "" }, { "docid": "cd28b35499f064da0634bd647583b159", "score": "0.67140156", "text": "public Studentframe() {\n initComponents();\n }", "title": "" }, { "docid": "2326a6ff6073efbea2b151e3efc84e80", "score": "0.67125875", "text": "public GUIPagtos() {\n initComponents();\n }", "title": "" }, { "docid": "621411ac09401e2363ffb7152b508b83", "score": "0.670804", "text": "public UserListForm() {\n initComponents();\n }", "title": "" }, { "docid": "a747df9e716eccdf556b0df271bdb10f", "score": "0.67000777", "text": "public jpLecuyer() {\n initComponents();\n }", "title": "" }, { "docid": "f23a8913333f237ffbaf21d9c70deb48", "score": "0.66998607", "text": "public suhu() {\n initComponents();\n }", "title": "" }, { "docid": "f23a8913333f237ffbaf21d9c70deb48", "score": "0.66998607", "text": "public suhu() {\n initComponents();\n }", "title": "" }, { "docid": "45467e91bb851f8133584e37cba9866a", "score": "0.6693102", "text": "public MPframe() {\n initComponents();\n }", "title": "" }, { "docid": "e9c667e330af9f292639de982df07f01", "score": "0.6687399", "text": "public DreamGUI() {\n initComponents();\n }", "title": "" }, { "docid": "2fc720f850f9d115252430cc8455c87e", "score": "0.66873217", "text": "public BasePanelForm() {\n initComponents();\n }", "title": "" }, { "docid": "8c540e4ea7d722be6f768d8b45ec8965", "score": "0.6687219", "text": "public FrmMain() {\n initComponents();\n }", "title": "" }, { "docid": "8c540e4ea7d722be6f768d8b45ec8965", "score": "0.6687219", "text": "public FrmMain() {\n initComponents();\n }", "title": "" }, { "docid": "320512266a4f36eff0842389b089768f", "score": "0.6684704", "text": "public nhanVienForm() {\n initComponents();\n init();\n\n }", "title": "" }, { "docid": "068aaa41811215ad82f63ce6d6db0e90", "score": "0.6684287", "text": "public frmPrincipall() {\n initComponents();\n }", "title": "" }, { "docid": "82b91be09cfa9974003384049dcd30a6", "score": "0.66826314", "text": "public Frhosobenhan() {\n initComponents();\n }", "title": "" }, { "docid": "15428cb69f877c12dec0a8afa57c4999", "score": "0.668213", "text": "public frmDescricaoAtendimento() {\n initComponents();\n }", "title": "" }, { "docid": "676139c62ce639e43ccb839239e111d7", "score": "0.66815555", "text": "public New_Librarian() {\n initComponents();\n }", "title": "" }, { "docid": "9c710eea7ae348d99ee55ec7265da139", "score": "0.6680025", "text": "public UI() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "5b5a055f2223a1ffd95c2733e2d69a0e", "score": "0.6679229", "text": "public JFormPassageiro() {\n initComponents();\n }", "title": "" }, { "docid": "083b4b6b69b02db07fa2d867b9b7decf", "score": "0.6678006", "text": "public FormPetugas() {\n initComponents();\n }", "title": "" }, { "docid": "904042565319552d05b540cc4c71b6d1", "score": "0.6675382", "text": "public MainJFormGUI() {\r\n initComponents();\r\n setEvent();\r\n setTitle(\"QUẢN LÝ QUÁN ĂN\");\r\n jlbTenNhanVien.setText(NhanVienBus.nhanVienDangNhap.getTenNV());\r\n ChucVuBUS chucVuBUS = new ChucVuBUS();\r\n jlbChucVu.setText(chucVuBUS.getChucVuByMaChucVu(NhanVienBus.nhanVienDangNhap.getMaCV()).getTenChucVu());\r\n }", "title": "" }, { "docid": "d56b2a2923a71ba164e1dbe6774308ed", "score": "0.6674612", "text": "public Ques12() {\n initComponents();\n }", "title": "" }, { "docid": "52d9b3cc58c6fc26455839a43ecaddcf", "score": "0.6673329", "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 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, 703, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 535, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "40f19e8a2ec781de929c8389a58c7116", "score": "0.66728324", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "title": "" }, { "docid": "bf6fe12ebdf7306560f672e4f7c09871", "score": "0.6669649", "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 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, 224, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 266, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "0c5905ced98324f5893dec823438988c", "score": "0.66669136", "text": "public PhoneNumberGUI() {\n initComponents();\n this.setSize(400,300);\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "0ad1ce74acfc509e1a85d3aa588a495d", "score": "0.6663852", "text": "public frmCalculadora() {\n initComponents();\n }", "title": "" }, { "docid": "0ad1ce74acfc509e1a85d3aa588a495d", "score": "0.6663852", "text": "public frmCalculadora() {\n initComponents();\n }", "title": "" }, { "docid": "f062d655931b31f9b0b47b4bb36beb49", "score": "0.6663081", "text": "public StoreHouseFrame() {\n initComponents();\n }", "title": "" }, { "docid": "72e9407f2a8c77e1ec604d30d1cc45db", "score": "0.6662847", "text": "public UI() {\n initComponents();\n }", "title": "" }, { "docid": "d1246ccaf67de5ba4c5db7d584ae3006", "score": "0.6661758", "text": "public frmBackup() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" } ]
fd1541b967780a8b568214f2f8238a5e
Method checks if the second course created has in database data about the predecessor course and returns it.
[ { "docid": "d780cbe7dbe079211df3ff901c461ed9", "score": "0.58017784", "text": "public String courseTwoPred(){\n\t\tString query = \"SELECT * FROM course_pre WHERE number = '\" + course2NumberToBeAddedForTesting + \"' and unit_id = '\" + course2AcUnitToBeAddedForTesting + \"'\";\n\t\tArrayList<ArrayList<Object>> arr = testHelperUtil.executeRawQuery(query);\n\t\tif(arr.size()>0){\n\t\t\treturn (String)arr.get(0).get(3)+(String)arr.get(0).get(2);\n\t\t}\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "bcf601f795cb91c6157a0d749dc12eb4", "score": "0.54325294", "text": "boolean hasPredecessorApplicPartTreeId();", "title": "" }, { "docid": "acbe541a9d74381112cf746917a63329", "score": "0.5423713", "text": "public String getPreviousCourse() {\n\t\treturn previousCourse;\n\t}", "title": "" }, { "docid": "e8bb528604a13e33cc940dc07ea14419", "score": "0.536017", "text": "boolean hasPreviousRecord();", "title": "" }, { "docid": "153ab7fbdc3a215e6075537e3890cf92", "score": "0.5319155", "text": "private boolean checkPreReqs() {\r\n\t\tCourse theCourse = theOffering.getTheCourse();\r\n\t\tif(theStudent.getPastCourses().contains(theCourse)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(Course c : theCourse.getPreReq()) {\r\n\t\t\tif(!theStudent.getPastCourses().contains(c)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "67dab061bf03e34f2a653b1f73a9086c", "score": "0.5252856", "text": "private void fillCoursePrecedessorOld(Population pop) {\n\t\tList<Integer> precedings;\n\t\tboolean sameCur= false;\n\t\tfor (int ind=0; ind< pop.individuals.length; ind++){\n\t\t\t\n\t\t\tCourse course1; Course course2;\n\t\t\tfor (int crs=0; crs < parameters.numCourses; crs++){\n\t\t\t\tprecedings= new ArrayList<Integer>();\t\n\t\t\t\tcourse1= convertionManager.getCourseFromArray(crs, pop.individuals[ind].Data);\n\t\t\t\tfor (int crs2=0; crs2 < parameters.numCourses; crs2++){\n\t\t\t\t\tsameCur= false;\n\t\t\t\t\tfor (int cur=0; cur< parameters.numCurriculums; cur++){\n\t\t\t\t\t\tif (dataHolder.course_Curriculum[crs][cur] && dataHolder.course_Curriculum[crs2][cur]){\n\t\t\t\t\t\t\tsameCur= 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 (!sameCur)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcourse2= convertionManager.getCourseFromArray(crs2, pop.individuals[ind].Data);\n\t\t\t\t\t\tfor (Event e: course1.myEvents){\n\t\t\t\t\t\t\tif (e.time % parameters.numDailyPeriods ==0)\n\t\t\t\t\t\t\t\tcontinue;\t\n\t\t\t\t\t\t\tfor (Event e2: course2.myEvents){\n\t\t\t\t\t\t\t\tif (e.id== e2.id) \n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\tif(e2.time+1 == e.time){\n\t\t\t\t\t\t\t\t\tprecedings.add(crs2);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} // end e2 for each\n\t\t\t\t\t\t} // end e for each\n\t\t\t\t} // end crs2 for\n\t\t\t\tindCoursePrecedessor[ind][crs]= precedings;\n\t\t\t} // end crs for\n\t\t} // end ind for\n\n\t}", "title": "" }, { "docid": "e6b5e6e6b3b38b8f26202c8ab9da44b4", "score": "0.5209206", "text": "public int loadCourses () {\n try {\n // 1. Instantiate a connection variable\n Connection conn; \n // 2. Connect to your DB\n conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/enrolldb?useTimezone=true&serverTimezone=UTC&user=root&password=12345678\");\n // 3. Indicate a notice of successful connection\n System.out.println(\"Connection Successful\");\n // 4. Prepare our SELECT Statement\n PreparedStatement pstmt = conn.prepareStatement(\"SELECT * FROM coursedegree WHERE degree=? AND NOT EXISTS (SELECT (1) FROM enrollment WHERE studentid=? AND coursedegree.courseid=enrollment.courseid)\");\n pstmt.setString(1, Student.getDegreeId());\n pstmt.setInt(2, Student.getStudentId());\n // 5. Supply the statement with values\n // 6. Execute the SQL Statement\n ResultSet rs = pstmt.executeQuery(); \n \n // 7. Get the results\n CourseList.clear();\n while (rs.next()) {\n coursedegree CD = new coursedegree(rs.getString(\"courseid\"), rs.getString(\"degree\"));\n boolean notInEnrollmentList = true;\n for(enrollment e : EnrollmentList) {\n if(e.getCourseId().equals(CD.getCourseId())) {\n notInEnrollmentList = false;\n break;\n }\n }\n if(notInEnrollmentList) CourseList.add(CD);\n }\n \n rs.close();\n pstmt.close();\n conn.close();\n return 1;\n } catch (SQLException e) {\n System.out.println(e.getMessage()); \n return 0;\n } \n }", "title": "" }, { "docid": "99695c1ce4b11a55d3bd89eb9bb1482b", "score": "0.51746535", "text": "private boolean isOldCourse(Course course) {\n\n return course.courseYear.get(Calendar.YEAR) < date.get(Calendar.YEAR);\n\n }", "title": "" }, { "docid": "b1824516cb82f4208c4f26a82ac47059", "score": "0.5148563", "text": "public boolean hasPredecessorApplicPartTreeId() {\n return predecessorApplicPartTreeId_ != null;\n }", "title": "" }, { "docid": "d3f94eca870ec34db76b320b2f4b97bb", "score": "0.51028174", "text": "public boolean isSuccessorTo(Producer other) {\n return Objects.equals(producerName, other.producerName)\n && Objects.equals(topic, other.topic)\n && producerId == other.producerId\n && Objects.equals(cnx, other.cnx)\n && other.getEpoch() < epoch;\n }", "title": "" }, { "docid": "a9eb49af799995ad1a25eea3ef28d5ed", "score": "0.5092434", "text": "private Program checkSecondProgram(final Program first, final Program second) {\n if (first != null && second != null) {\r\n final int diff = second.getDate().compareTo(first.getDate()) * 24\r\n + second.getStartTime() / 60 - first.getStartTime() / 60;\r\n if (diff > 12) {\r\n return null;\r\n }\r\n }\r\n return second;\r\n }", "title": "" }, { "docid": "37ce95d9a44091492eba7d741e914054", "score": "0.50668216", "text": "private boolean allSuccesorsOfAreThePredecessorsOf(Block aFirstBlock, Block aSecondBlock) {\n int size = aFirstBlock.getSuccs().size();\n Iterator<Block> it = aFirstBlock.getSuccs().iterator();\n\n List<Block> preds = aSecondBlock.getPreds();\n while (it.hasNext()) {\n if (!preds.contains(it.next())) {\n return false;\n }\n }\n\n if (size == preds.size()) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "64828c987893e301d51514356f9f699a", "score": "0.50442755", "text": "public boolean defineCourseTwo(){\n\t\t\n\t\tPacket pck = DefineCourseController.sendRequestDefineCoursePacket(course2NumberToBeAddedForTesting, course2Name, course2AcUnitToBeAddedForTesting, course2WeeklyHours, course2PredCourses);\n\t\ttry {\n\t\t\ttestHelperUtil.getClient().sendToServer(pck);\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\ttestHelperUtil.waitUntilResponse(15000);\n\t\tif (response instanceof Boolean){\n\t\t\treturn (Boolean)response;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1a39df50a93d801ffad4bb5147f70fdf", "score": "0.5030934", "text": "public boolean tookCourse(Course c) {\n\n\t\tListIterator<CourseTaken> l1 = this.courseList.iterator();\n\t\twhile (l1.hasNext()) {\n\t\t\tCourseTaken c1 = l1.next();\n\t\t\tif (c1.getCourse().getCid() == c.getCid()) { // Check if the current course if the one that the user ask about\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ffe666391d0285f7665236196615507b", "score": "0.50153714", "text": "public boolean hasPredecessorApplicPartTreeId() {\n return predecessorApplicPartTreeIdBuilder_ != null || predecessorApplicPartTreeId_ != null;\n }", "title": "" }, { "docid": "5fb340f85f3bb79def1a50f96639204e", "score": "0.5008702", "text": "public String getCourseInstance(){\n\t\t\n\t\tcourseGroupId = jwLocalService.getGroupIdByCourseAlias(courseAlias);\n\t\tcourseInstanceGroupId = jwLocalService.getGroupIdByCourseRemoteId(courseRemoteId);\n\t\t\n\t\tLocalResult<Integer> localResult1 = jwLocalService.getGroupUserNum(courseGroupId);\n\t\tLocalResult<Integer> localResult2 = jwLocalService.getGroupUserNum(courseInstanceGroupId);\n\t\t//LocalResult<Integer> localResult3 = jwLocalService.getSameGradeUserNum(studentId, remoteId);\n\t\t\n\t\tLocalResult<CourseInstance> localResult4 = jwLocalService.getCourseInstance(courseRemoteId);\n\t\t\n\t\tsameCourseMemberNum = localResult1.getResult();\n\t\tsameClassMemberNum = localResult2.getResult();\n\t\t//sameGradeMemberNum = localResult3.getResult();\n\t\t\n\t\tgoodEval = localResult4.getResult().getGoodEval();\n\t\tbadEval = localResult4.getResult().getBadEval();\n\t\t\n\t\t\n\t\t\n\t\tclasses = Arrays.asList(localResult4.getResult().getClasses().split(\"\\\\|\"));\n\t\tcourseMemberNum = localResult4.getResult().getCourseMemberNum();\n\t\t\n\t\tif(localResult1.getResultState()!=ResultState.SUCCESS.ordinal()||localResult2.getResultState()!=ResultState.SUCCESS.ordinal()||localResult4.getResultState()!=ResultState.SUCCESS.ordinal()){\n\t\t\tflag = ResultState.FAIL.ordinal();\n\t\t}else{\n\t\t\tflag = ResultState.SUCCESS.ordinal();\n\t\t}\n\t\t\n\t\treturn SUCCESS;\n\t}", "title": "" }, { "docid": "ef5e59e5b259dbea24f49d93f2edebe2", "score": "0.49915603", "text": "public boolean exists(Course course){\r\n int i = 0;\r\n while(i < size()){\r\n if (courseList[i].equals(course)){\r\n System.out.println(\"\\n\" + course.getDepartment() + \" \" + course.getCode() \r\n + \".0\" + course.getSection() + \" is found in the \"\r\n + \"planner at position \" + (i + 1));\r\n return true;\r\n }\r\n i++;\r\n }\r\n System.out.println(\"\\nThis course does not exist in your planner\"); \r\n return false; \r\n }", "title": "" }, { "docid": "cc0d6fc88770331cf1067d26e6924aaa", "score": "0.49583113", "text": "private boolean checkIfCurrentlyTaking() {\r\n\t\tfor(Registration reg : theStudent.getStudentRegList()) {\r\n\t\t\tif(reg.getTheOffering().getTheCourse().equals(theOffering.getTheCourse())) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "6245c5d712d613dccd53fb915a0311bb", "score": "0.49430057", "text": "public boolean existsDuplicate(Course course){\r\n int i = 0;\r\n while(i < size()){\r\n if (courseList[i].equals(course)){\r\n return true;\r\n }\r\n i++;\r\n } \r\n return false;\r\n }", "title": "" }, { "docid": "9fae00c844253381c7dcb44979977d3c", "score": "0.49177426", "text": "boolean getPredecessorApplicPartTreeIdNull();", "title": "" }, { "docid": "4ed9af5237bf02c4d8dc31277eed3d15", "score": "0.48620605", "text": "Result getCourseResult(int studentID, int runningCourseID) throws DAOException;", "title": "" }, { "docid": "1f4e15118da3a133aa5076201f414ba6", "score": "0.48473227", "text": "boolean hasPrev();", "title": "" }, { "docid": "71213f82904d3bc059e75e64ec75acc5", "score": "0.48121873", "text": "public boolean tienePre()\n\t{\n\t\tListIterator<Cuenta> it = cuentas.listIterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tif(it.next() instanceof CuentaPrepago)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "79124bece0db9092c0bf417ecfaa72e7", "score": "0.48056424", "text": "public boolean addCourse();", "title": "" }, { "docid": "e380f26b8ca77754df358989cc216d54", "score": "0.47763318", "text": "final public boolean chained_backward() {\r\n \treturn ! predecessors.isEmpty();\r\n }", "title": "" }, { "docid": "edf881a2349af4995ef0cc84436519f5", "score": "0.47762802", "text": "public boolean isPreviousstep() {\n\t\tif (previousstep)\n\t\t\tpreviousstep = false;\n\t\telse\n\t\t\tpreviousstep = true;\n\t\treturn previousstep;\n\t}", "title": "" }, { "docid": "d870f26f72e968c3ff09b87dc48a945a", "score": "0.47673988", "text": "@Override\n public boolean hasPrevious() {\n try {\n // do a quick game to see if the resultSet is empty:\n // if we are not in the first or beforeFirst positions and we haven't made any values yet, the result set is\n // empty so return false\n return !(resultSet.isFirst() || resultSet.isBeforeFirst()) && (haveMadeValue || resultSet.isAfterLast() || resultSet.isLast());\n } catch (SQLException e) {\n tryCloseWithWarning(\"Warning: auto-closed EntityListIterator because of exception: \" + e.toString());\n throw new GeneralRuntimeException(\"Error while checking to see if this is the first result\", e);\n }\n }", "title": "" }, { "docid": "dbba0917bceb726ed58ff259db48fe62", "score": "0.4763506", "text": "public Boolean isGoTo2ndPageTransExistInDashboard() throws Exception{\n\t\treturn bot.isElementDisplayed1(transactionGoTo2ndPageWidget);\n\t}", "title": "" }, { "docid": "837e032574e4a4f45275bec0f15f9d68", "score": "0.47574842", "text": "boolean hasPrevPage();", "title": "" }, { "docid": "837e032574e4a4f45275bec0f15f9d68", "score": "0.47574842", "text": "boolean hasPrevPage();", "title": "" }, { "docid": "aeb8bc676dde752ccb079562166f42da", "score": "0.4728152", "text": "@Override public boolean hasPrevious() {\n // Aquí va su código.\n if(this.anterior == null){\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "e77bd3c4d03bc83cbba51b842690c51b", "score": "0.4703249", "text": "public tfnode best_predecessor() {\r\n \ttfnode best = null;\r\n \tif (chained_backward() == true) {\r\n \t\tboolean found = false;\r\n \t\tIterator<tfnode> iter = predecessors.iterator();\r\n \t\t/* search previous nodes for best one */\r\n \t\twhile (! found && iter.hasNext()) {\r\n \t\t\ttfnode pred;\r\n \t\t\tpred = iter.next();\r\n \t\t\tif (pred.earliest_pred == earliest_pred) {\r\n \t\t\t\tfound = true; /* got it */\r\n \t\t\t\tbest = pred;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tif (! found) {\r\n \t\t\t// throw an exception, we shouldn't see this\r\n \t\t}\r\n \t}\r\n \treturn best;\r\n }", "title": "" }, { "docid": "ce0169749c9dd812e082cbca17954b1f", "score": "0.47028488", "text": "@Override\n\tpublic boolean updateCourse(Course c) {\n\t\tif (c != null) {\n\t\t\tDate date_debut = c.getStartdate();\n\t\t\tDate date_fin = c.getEnddate();\n\n\t\t\tif (date_debut.before(date_fin) == true) {\n\t\t\t\tem.merge(c);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "49ba208b9ae1afaee1ba0a0d5ab32c00", "score": "0.46837732", "text": "@Test(expected = HibernateException.class)\n\tpublic void addDuplicate() {\n\t\tCourses newcourse = new Courses(\"55555\", \"course1\", \"course description 1\");\n\t\tcoursesDao.createCourse(newcourse);\n\t}", "title": "" }, { "docid": "c4de5057871f82e4bcec83753eb9d021", "score": "0.4663752", "text": "public static boolean checkIfCourseExist(String courseID) {\r\n\r\n CourseDAO courseDAO = new CourseDAO();\r\n Course toReturn = courseDAO.retrieveCourse(courseID);\r\n if (toReturn != null) {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "d3eca88f1fa7c554eee4e2ec68679b07", "score": "0.46628386", "text": "public boolean previous() throws InvalidDataAccessException;", "title": "" }, { "docid": "15ce10ae67540942003bd34c59419d08", "score": "0.46579435", "text": "private boolean isCyclic(Course cur, int[] result) {\n\t\t\n if (cur.added == true) return false; // Check if an added course \n\t\t\n if (cur.visited == true) return true; // visited before --> cyclic!!!\n\t\t\n cur.visited = true; // confirmed visited \n\t\t\t\n for (Course c: cur.pre) {\n if (isCyclic(c, result)) {\n return true;\n }\n }\n\t\t \n result[N++] = cur.number; // build such result \n \n cur.added = true; \t // confirmed if already added \n\t\t\n return false;\n }", "title": "" }, { "docid": "6258b40e2d6bf9f74d620cda63de8400", "score": "0.46466193", "text": "public static String isPrereqMsg(String prereq, String course, String key) throws IOException, JSONException {\n Pattern pattern = Pattern.compile(\"(?<subject>\\\\w{2,})\\\\s*(?<number>\\\\d{2,}+\\\\w{0,1})\"); \n Matcher m1 = pattern.matcher(prereq);\n Matcher m2 = pattern.matcher(course);\n \n \n \n if(!m1.matches() || !m2.matches()){\n return \"You didn't enter valid courses :(\";\n }\n \n String text = \"\"; \n \n prereq = prereq.toUpperCase().replace(\" \", \"\"); \n course = course.toUpperCase();\n \n URL url = new URL(\"https://api.uwaterloo.ca/v2/courses/\" + m2.group(\"subject\") + \"/\" + m2.group(\"number\") + \"/prerequisites.json?key=\" + key);\n\n \n String str;\n try (Scanner scan = new Scanner(url.openStream())) {\n str = new String();\n while (scan.hasNext())\n str += scan.nextLine();\n }\n\n // build a JSON object\n JSONObject obj = new JSONObject(str);\n \n \n if (obj.getJSONObject(\"meta\").getInt(\"status\") != 200)\n return course + \" doesn't exist :(\";\n \n String prereqsParsed = \"\";\n \n \n try {\n prereqsParsed = obj.getJSONObject(\"data\").get(\"prerequisites_parsed\").toString();\n \n } catch (JSONException e){\n return prereq + \" is not a prerequisite for \" + course + \".\" + \"<br>\";\n }\n \n \n if(prereqsParsed.isEmpty()){\n return prereq + \" is not a prerequisite for \" + course + \".\" + \"<br>\";\n \n }\n \n PrereqTree tree = new PrereqTree(prereqsParsed);\n \n if(isRequired(prereq,prereqsParsed)){\n text += (prereq + \" is required for \" + course + \".\") + \"<br>\";\n }else if (prereqsParsed.contains(prereq)){\n \n ArrayList<PrereqTree> replaceWith = getReplaceWith(tree,prereq);\n ArrayList<PrereqTree> requiredWith = getRequiredWith(tree,prereq);\n \n ArrayList<PrereqTree> otherRequiredCourses = new ArrayList<>();\n \n for(PrereqTree element : replaceWith){\n for(PrereqTree t : getRequiredWith(tree,element.rawPrereqs) ){\n \n if(requiredWith.contains(t) && !otherRequiredCourses.contains(t)) \n otherRequiredCourses.add(t);\n \n }\n }\n \n for(int i = 0; i < requiredWith.size(); i++){\n \n if(otherRequiredCourses.contains(requiredWith.get(i))) {\n requiredWith.remove(i);\n i--;\n }\n \n }\n \n text += (prereq + \" can be used\" );\n \n if(!requiredWith.isEmpty()){\n text += (\" with \");\n \n String requiredWithRaw = join(requiredWith,requiredWith.size());\n \n \n text += (clean(parsedToText(requiredWithRaw)) + \"\");\n \n }\n \n text += (\" for \" + course + \".\") + \"<br>\";\n String replaceWithRaw = join(replaceWith,1);\n \n text += (\"Don't want to take \" + prereq + \"? Take \");\n \n \n text += (clean(parsedToText(replaceWithRaw)) + \" instead.\") + \"<br>\";\n \n \n \n if(!otherRequiredCourses.isEmpty()){\n text += (\"Other requirements: \");\n String otherRequiredCoursesRaw = join(otherRequiredCourses,otherRequiredCourses.size());\n \n text += (clean(parsedToText(otherRequiredCoursesRaw)) + \".\") + \"<br>\";\n }\n } else {\n \n text += (prereq + \" is not a prerequisite for \" + course + \".\") + \"<br>\";\n }\n \n return text;\n \n }", "title": "" }, { "docid": "a42f8ad2339b60c3c5422466d40199db", "score": "0.46400726", "text": "public boolean IsTaboo(int course1, int course2)\n\t{\n\t\tfor (int i = 0 ; i < this.tabooList1.size(); i++)\n\t\t{\n\t\t\tif(course2==ASSIGNNO) { //that means we need to check TABU list for assign\n\n\t\t\t\tif(tabooList1.elementAt(i) == course1) \n\t\t\t\t{\n\t\t\t\t\tif(tabooList2.elementAt(i) == REMOVENO) //that means if we remove the course before dont assign that course again it is TABU\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (course2 == REMOVENO) {//check TABU list for remove\n\t\t\t\tif(tabooList1.elementAt(i) == course1) \n\t\t\t\t{\n\t\t\t\t\tif(tabooList2.elementAt(i) == ASSIGNNO) //that means if we assign the course before dont remove that course again it is TABU\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse { //finaly if course2 is not ASSIGNNO or REMOVENO then check TABU list for Swap\n\t\t\t\tif(tabooList1.elementAt(i) == course1) \n\t\t\t\t{\n\t\t\t\t\tif(tabooList2.elementAt(i) == course2)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(tabooList1.elementAt(i) == course2)\n\t\t\t\t{\n\t\t\t\t\tif(tabooList2.elementAt(i) == course1)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\n\t}", "title": "" }, { "docid": "66a008058b6d3acfcfe0ab76ed0cdbca", "score": "0.4638006", "text": "public boolean isCoursePaymentRequired();", "title": "" }, { "docid": "d9c48fb115f89451e4cb5706c6189b76", "score": "0.4636794", "text": "private boolean courseExists(int id) {\n\t\tboolean flag = false;\n\t\t// connection to database\n\t\tDB db = new DB();\n\t\t\n\t\t// find course id\n\t\tString sql = \"SELECT ID FROM COURSES WHERE ID = \" + id + \";\";\n\t\ttry {\n\t\t\tdb.rs = db.s.executeQuery(sql);\n\t\t\tif (db.rs.next())\tflag = true;\n\t\t\telse flag = false;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdb.closeconnection();\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "4fb65458715a08c4336100d154f1fda0", "score": "0.46205217", "text": "public boolean getIsOrigin(String id, String requires){\n SQLiteDatabase db = getReadableDatabase();\n String courses = \"\";\n Cursor cursor = db.rawQuery(\"SELECT \"+COL_C2+\" FROM [\"+id+\"] WHERE (\"+COL_C4+\" IS NULL OR \"+COL_C4\n +\"=?) AND (\"+COL_C2+\"=?)\" , new String[]{\"\", requires});\n boolean exist = (cursor.getCount()>0);\n return exist;\n }", "title": "" }, { "docid": "17c87b0d34508c1d2779cb4383fe6a7e", "score": "0.46199322", "text": "public void setPreviousCourse(String previousCourse) {\n\t\tthis.previousCourse = previousCourse;\n\t}", "title": "" }, { "docid": "d4a6f5269ac7bc2449346fe46e950a84", "score": "0.4616294", "text": "boolean hasPrevious();", "title": "" }, { "docid": "987709944eb986df809b0c9739440066", "score": "0.45968515", "text": "private boolean checkSourceReconnection() \r\n\t\t{\n\t\tfor (Iterator<ITransit> iter = newSource.getSourceTransits().iterator(); iter.hasNext();) \r\n\t\t\t{\r\n\t\t\tITransit transit = iter.next();\r\n\t\t\t// return false if a newSource -> oldTarget transit exists already\r\n\t\t\t// and it is a different instance than the transit-field\r\n\t\t\tif (transit.getTarget().equals(oldTarget) && !transit.equals(this.transit)) \r\n\t\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}", "title": "" }, { "docid": "9c611250128f81c0f3bc3aae0cfc78ae", "score": "0.4594391", "text": "@Test\r\n\tpublic void testCompareTo() throws InvalidTransitionException {\r\n\t\t\r\n\t\tCourse c1 = new Course(NAME, TITLE, SECTION, CREDITS, INSTRUCTOR_ID, CAP, MEETING_DAYS, START_TIME, END_TIME);\r\n\t\tCourse c2 = new Course (\"abcd\", TITLE, SECTION, CREDITS, INSTRUCTOR_ID, CAP, MEETING_DAYS, START_TIME, END_TIME);\r\n\t\tCourse c3 = new Course (NAME, TITLE, \"aaa\", CREDITS, INSTRUCTOR_ID, CAP, MEETING_DAYS, START_TIME, END_TIME);\r\n\t\t//Student s4 = new Student (\"b\", \"b\", \"a\", \"email@ncsu.edu\", \"hashedpassword\", 15);\r\n\t\t//compare two equal students\r\n\t\tassertEquals(0, c1.compareTo(c1));\r\n\t\t\r\n\t\t//compare two course with different names\r\n\t\tassertEquals(-1, c1.compareTo(c2));\r\n\t\tassertEquals(1, c2.compareTo(c1));\r\n\t\t\r\n\t\t//compare two students with same names, different section\r\n\t\tassertEquals(-1, c1.compareTo(c3));\r\n\t\tassertEquals(1, c3.compareTo(c1));\r\n\t}", "title": "" }, { "docid": "b67a3c90d3e11bc9e63c1391538d781b", "score": "0.4586472", "text": "public boolean isNewPB()\n{\n if(this.getResults().getRaceTime() < this.getHistory().getPersonalBest())\n {\n newPB = true;\n this.history.setPersonalBest(this.getResults().getRaceTime());\n }\n return newPB;\n\n }", "title": "" }, { "docid": "949b765d49732813bba603ece3b92cc8", "score": "0.4586094", "text": "public boolean hasPrevPage() {\n return page > 1;\n }", "title": "" }, { "docid": "4e19a85844057689a150ceb0b7f93028", "score": "0.45846525", "text": "public boolean isSetComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(COMPARESOURCE$2) != 0;\r\n }\r\n }", "title": "" }, { "docid": "79dc354ee8b5d55abab83c279f3691b7", "score": "0.45633495", "text": "public Course getCourseAttempted()\n {\n return this.courseAttempted;\n }", "title": "" }, { "docid": "6c7ed848e3d0cd00bbbd0f2835095922", "score": "0.45571932", "text": "public boolean getCoursePaymentRequired();", "title": "" }, { "docid": "3a83b72bdd38eecdb92e6bd7f1ef20ed", "score": "0.45534125", "text": "public boolean hasPrevious(){\n return currentTurn > 0;\n }", "title": "" }, { "docid": "92a65e9c0da06efbc104ecfbc2f35d36", "score": "0.45429587", "text": "public boolean previous() {\n\t\t\n\t\tboolean ret;\n\t\t\n\t\tif(hasPrevious()) {\n\t\t\tret = true;\n\t\t\tthis.current = this.current.prev;\n\t\t}else {\n\t\t\tret = false;\n\t\t}\n\t\t\n\t\tassert(this.invariant()):\"Invariant violé !\";\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "711fb8d4a1ac1eea5a6c6605e5282aff", "score": "0.45312908", "text": "public boolean noSecond()\n {\n return this.second == null;\n }", "title": "" }, { "docid": "c81c16f03edd05abea84fc8ce6c0334c", "score": "0.452793", "text": "public boolean hasPrev() {\n int csr = cursor;\n gotoPrev();\n boolean rtn = cursor >= 0;\n cursor = csr;\n return rtn;\n }", "title": "" }, { "docid": "a23dc3eb70de062db6e7580750fc9ea4", "score": "0.45275092", "text": "@Override\n public boolean hasPrevious() {\n return (currentSegmentIdx != 0);\n }", "title": "" }, { "docid": "fc9f33dd6eebf9a71a0982a0158fa631", "score": "0.4511901", "text": "public boolean canFinish(int numCourses, int[][] prerequisites) {\n //Find all nodes with degree 0\n int[] inDegree = new int[numCourses];\n for (int i = 0; i < prerequisites.length; i++) {\n inDegree[prerequisites[i][0]]++;\n }\n \n //Topological Sort/BFS\n Queue<Integer> queue = new LinkedList<>(); //Set of nodes with no incoming edges\n //Find starting courses (nodes with degree 0)\n for (int i = 0; i < inDegree.length; i++) {\n if (inDegree[i] == 0) {\n queue.add(i);\n }\n }\n \n while (!queue.isEmpty()) {\n int curr = queue.poll();\n //For each node with an edge from curr to i\n for (int i = 0; i < prerequisites.length; i++) {\n if (prerequisites[i][1] == curr) { //Get the prereq of course i\n inDegree[prerequisites[i][0]]--; //Ending course indegree--\n if (inDegree[prerequisites[i][0]] == 0) {\n queue.add(prerequisites[i][0]);\n }\n }\n }\n }\n \n for (int i = 0; i < inDegree.length; i++) {\n if (inDegree[i] != 0) {\n return false;\n }\n }\n \n return true;\n \n }", "title": "" }, { "docid": "f0393243c5c5657e6ff05dccbb391c47", "score": "0.45104244", "text": "public boolean hasPrevModule() {\n return prevModuleNode != null;\n }", "title": "" }, { "docid": "7fae4eb5d2a65fa2ac0ea6908d0ef11d", "score": "0.45091325", "text": "private boolean previousCommit(Instruction ins, ArrayList<Instruction> inst) {\n boolean OK = true;\n int index = ins.getIDIns() - 1; \n for (int i = index; i <= 0; i--) {\n if (inst.get(index).getCommit() == 0) {\n OK = false;\n }\n }\n return OK;\n }", "title": "" }, { "docid": "ef04b0f2925db6b7a6bb485b14de95a5", "score": "0.4508515", "text": "public List<Course> getCoursesPreparingForCertificate(String certCode) \r\n\t\t\tthrows SQLException {\r\n\t\tList<Course> list = null;\r\n\t\tPreparedStatement stmt = connection.prepareStatement(\r\n\t\t\t\" SELECT * \" +\r\n\t\t\t\" FROM course NATURAL JOIN prepares_for\" +\r\n\t\t\t\" WHERE certificate_code = ?\");\r\n\t\tstmt.setString(1, certCode);\r\n\t\tlist = getListOfCourses(stmt);\r\n\t\t\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "1c9405ffdb7b3ab19ab210a684950d7d", "score": "0.45083243", "text": "Node<T> getCommonPredecessor(Node<T> firstNode, Node<T> secondNode);", "title": "" }, { "docid": "4b3b1c0764d92e221b4f23a503015498", "score": "0.4503808", "text": "public String checkIfInCouple(String name1, String name2) {\n\t\tString relation = null;\n\t\tString sqlCheckIfInCou = \"select Relation from relation where (NameF = ? or NameS = ? or NameF = ? or Names = ?) and Relation = 'couple'\";\n\t\tString[] paras = { name1, name2, name2, name1 };\n\t\tdb = new DBConnect();\n\t\tResultSet rs = db.checkRelation(sqlCheckIfInCou, paras);\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\trelation = rs.getString(1);\n\t\t\t}\n\t\t\tif (relation == null) {\n\t\t\t\trelation = \"Notcouple\";\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}\n\t\treturn relation;\n\t}", "title": "" }, { "docid": "3479781223854eefeeb6c78ce17f0dd2", "score": "0.45032972", "text": "@Override\r\n\t\tpublic boolean hasPrevious()\r\n\t\t{\r\n\t\t\t//check the next node's data\r\n\t\t\tif (this.left.getElement() != null){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "b8c001f9bdf30b39021e83cee2e65101", "score": "0.4496509", "text": "public boolean addCourse(String course) {\n // Loops through the array to see if the course is already there\n // If it is, then it will return false and nothing else\n for(int i = 0; i < courses.length; i++) {\n if(course.equals(courses[i]))\n return false;\n }\n // If it passes through at this point return true\n // Add 1 to num courses\n // And make the last course in the list equal to the user's course\n numCourses++;\n courses[numCourses-1] = course;\n\n return true;\n }", "title": "" }, { "docid": "1fc1e2fa9f56ea4861ec4b0fe786b2d7", "score": "0.44928992", "text": "public boolean follows(VLSN other) {\n return ((other.isNull() && sequence == 1) ||\n ((!other.isNull()) &&\n (other.getSequence() == (sequence - 1))));\n }", "title": "" }, { "docid": "f99b243f70eca14be446871bf7df0799", "score": "0.44909334", "text": "public boolean canFinish1(int numCourses, int[][] prerequisites) {\n Node[] graph = new Node[numCourses];\n boolean[] visited = new boolean[numCourses];\n boolean[] recStack = new boolean[numCourses];\n\n for (int i = 0; i < numCourses; i++) {\n graph[i] = new Node(i);\n }\n for (int i = 0; i < prerequisites.length; i++) {\n int[] val = prerequisites[i];\n graph[val[1]].list.add(graph[val[0]]);\n }\n for (int i = 0; i < numCourses; i++) {\n if (!visited[i])\n if (isCyclicUtil(graph, visited, recStack, i)) return false;\n }\n return true;\n }", "title": "" }, { "docid": "469341ba9014c227051d09486dfc5b04", "score": "0.44881207", "text": "public boolean isSelfDuplication() {\n/* 115 */ String refName = getReferenceCode().getEntityName();\n/* 116 */ String dupName = getDuplicateCode().getEntityName();\n/* 117 */ if (refName.compareTo(dupName) == 0) {\n/* 118 */ return true;\n/* */ }\n/* 120 */ return false;\n/* */ }", "title": "" }, { "docid": "f9c2d293943854b3f0b30dcfe2d62e9e", "score": "0.44830436", "text": "@Override\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "9a052a0439b6088dabd20dcedaa200ca", "score": "0.44825706", "text": "public boolean isBeforeFirst() throws InvalidDataAccessException;", "title": "" }, { "docid": "972c33d9dc2de9769f6c9dbf3d7344dd", "score": "0.44818503", "text": "private boolean isSpacialBefore(String time1, String time2){\n boolean isBefore = false;\n \n String up1 = getUP(time1);\n String up2 = getUP(time2);\n int i1 = 0;\n int i2 = 0;\n for (String up: unitProcedureList){\n if (up.equals(up1)){\n i1= unitProcedureList.indexOf(up);\n }\n if (up.equals(up2)){\n i2= unitProcedureList.indexOf(up);\n } \n }\n if (i1<i2){\n isBefore = true;\n }\n return isBefore;\n }", "title": "" }, { "docid": "cbebab3036bf47bec0ffaaf445df524b", "score": "0.44800508", "text": "public boolean previous() throws GDAOException {\n boolean ret = false;\n try {\n if (this.resultSet.previous()) {\n\n setRecordFound(true);\n\n this.changedColumns.clear();\n ret = true;\n\n this.MONITOR_ID = this.resultSet.getString(1);\n this.ACCOUNT_ID = this.resultSet.getString(2);\n this.MONITOR_BANK_ID = this.resultSet.getBigDecimal(3);\n this.MONITOR_BANK_NAME = this.resultSet.getString(4);\n this.ACCOUNT_FIRST_NAME = this.resultSet.getBigDecimal(5);\n this.ACCOUNT_LAST_NAME = this.resultSet.getString(6);\n this.ACCOUNT_BANK_ID = this.resultSet.getString(7);\n this.ACCOUNT_BANK_NAME = this.resultSet.getBigDecimal(8);\n this.EMPLOYEE_ID = this.resultSet.getString(9);\n this.EMPLOYEE_FIRST_NAME = this.resultSet.getString(10);\n this.EMPLOYEE_LAST_NAME = this.resultSet.getString(11);\n this.EMPLOYEE_BANK_NAME = this.resultSet.getString(12);\n this.MONITOR_PERMISSION_DATE = this.resultSet.getString(13);\n this.MONITOR_AS_OF_DATE = this.resultSet.getTimestamp(14);\n this.MONITOR_END_DATE = this.resultSet.getTimestamp(15);\n this.MONITOR_COMMENT = this.resultSet.getTimestamp(16);\n this.MONITOR_STATUS = this.resultSet.getString(17);\n \n }\n else {\n //record is not found, set recordFound indicator to false\n //and reset all database related variables\n reset();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n throw new GDAOException(e);\n }\n return ret;\n }", "title": "" }, { "docid": "9280bb8af51c8a0204f1ce3c74975eaa", "score": "0.4477486", "text": "@Test\r\n\tpublic void TestGetCoursesTwo() {\r\n\t\tSchedule test = new Schedule();\r\n\t\ttest.add(math);\t\r\n\t\ttest.add(basketball);\r\n\t\ttest.add(history);\r\n\t\t\r\n\t\tList<Course> output = test.getCourses();\r\n\t\tassertEquals(2, output.size());\r\n\t}", "title": "" }, { "docid": "43220f9502d8075531a4300bf3079a3e", "score": "0.447308", "text": "boolean hasPrereqId();", "title": "" }, { "docid": "e7a9d361e420ef858cc44a0ed4d4b7b9", "score": "0.44636324", "text": "boolean hasPrestige();", "title": "" }, { "docid": "986af18ef858b775602be3b6093eb384", "score": "0.44595003", "text": "boolean hasPrimaryForTransaction();", "title": "" }, { "docid": "986af18ef858b775602be3b6093eb384", "score": "0.44595003", "text": "boolean hasPrimaryForTransaction();", "title": "" }, { "docid": "78a29e7a0563bc308550eaad053dd5cf", "score": "0.44567108", "text": "public void testNoPrereqs() {\n CourseInfo info = fullcc.getCourseInfo(\"CS1301\");\n assertNotNull(info.getPrerequisites());\n assertEquals(info.getPrerequisites().getHours(), 0);\n assertEquals(info.getPrerequisites().getCourse(), 0);\n }", "title": "" }, { "docid": "a01f13d5f817fa2faf09c2a041836262", "score": "0.44533518", "text": "boolean hasPredecessor(E item);", "title": "" }, { "docid": "99223adeec12c83fa285d2ae5fcc34f8", "score": "0.44531128", "text": "if (hasAlegebraPrereq) {\n // enroll in course\n }", "title": "" }, { "docid": "3ec133b2fe7ce7b73223eafc8d7b55fa", "score": "0.44515377", "text": "public String getCourseInfoLocal(){\n\t\tLocalResult<List<CourseInstance>> localResult = jwLocalService.queryLocalCourseTabel(studentId, sessionId,false);\n\t\t\n\t\tcourseDtos = localResult.getResult();\n\t\t\n\t\tflag = localResult.getResultState();\n\t\t\n\t\treturn SUCCESS;\n\t}", "title": "" }, { "docid": "d66683e179af6904d3cff7043fe57e27", "score": "0.44505277", "text": "@Override\n\tpublic Course SelectCourse(Course course) {\n\t\t\n\t\tif(completedCourses.contains(course) || currentCourses.contains(course)) \n\t\t{\n\t\t\tlogger.error(\"Cannot Select the Course \"+course.Title() +\" Because its either you are already registered or it has been completed\");\n\t\t\tthrow new NullPointerException(\"Course Cannot be selected/dropped: Because its either you are already registered or it has been completed\");\n\t\t}\n\t\tSetSelectedCourse(course);\n\t\tlogger.info(\"Course Selected \"+course.Title());\n\t\t//Course Selected\n\t\treturn selectedCourse;\n\t}", "title": "" }, { "docid": "15816c4b165658b726862a5251e763da", "score": "0.4450288", "text": "public boolean isFirstTime() {\n //Returns the single SharedPreferences instance that can be used to retrieve and modify the preference values.\n //MODE_PRIVATE: can only be accessed by the calling application\n SharedPreferences preferences = getActivity().getPreferences(Context.MODE_PRIVATE);\n boolean ranBefore = preferences.getBoolean(\"Schedule\", false);\n SharedPreferences.Editor editor = preferences.edit();\n if (!ranBefore && networkInfo != null && networkInfo.isConnected()) {\n editor.putBoolean(\"Schedule\", true);\n editor.commit();\n }\n return !ranBefore;\n }", "title": "" }, { "docid": "4a65219279902995d2f08477bc313575", "score": "0.44390684", "text": "Maybe<String> getPreviousListIdIfExists()\n {\n logMsg(\"getPreviousListIdIfExists is starting\");\n String previousListId = mPrefsManager.getCurrentListId();\n if (previousListId == null) return Maybe.empty();\n else return mDbHelper.canAccessList(mUserId, previousListId).flatMapMaybe(canAccess -> canAccess ? Maybe.just(previousListId) : Maybe.empty());\n }", "title": "" }, { "docid": "c46632f66575c0b561f474b2213b11dd", "score": "0.4432887", "text": "public void addCourse(Course course2) {\n\t\tconn = DBUtils.getConnection();\n\t\ttry {\n\t\t\tstmt = conn.prepareStatement(SQLQueryConstant.COURSE_INSERT);\n\t\t\tstmt.setString(1, course2.getName());\n\t\t\tstmt.setInt(2, course2.getCatalogID());\n\t\t\tstmt.setInt(3,course2.getFees());\n\t\t\tstmt.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tlogger.debug(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "4ec308fb5b1e3660581c701eb41f4bdc", "score": "0.44282907", "text": "public static void CheckExistingParents(int currentParent1, int currentParent2) {\n\t\t\r\n\t\tint childrenCount = 0;\r\n\t\t\r\n\t\tList<Integer> head = null;\r\n\t\t\r\n\t\tint[] array = null;\r\n\t\t\r\n\t\tint parentOne = -1;\r\n\t\tint parentTwo = -1;\r\n\t\t\r\n\t\tint curParentOne = currentParent1;\r\n\t\tint curParentTwo = currentParent2;\r\n\t\t\r\n\t\tcheating = false;\r\n\r\n\t\t\tfor (int j = 0; j < count; j++) {\r\n\t\t\t\t// Extract out each child/infant record, check their parent IDs\r\n\t\t\t\t\r\n\t\t\t\tif (accountList[j] instanceof Child) {\r\n\t\t\t\t\thead = ((Child)accountList[j]).getParents().subList(0, 2); \r\n\t\t\t\t\tarray = head.stream().mapToInt(i->i).toArray();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (parentOne == -1) {\r\n\t\t\t\t\t\t// If no existing parents found yet, take their IDs down now\r\n\t\t\t\t\t\tparentOne = array[0];\r\n\t\t\t\t\t\tparentTwo = array[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\telse {\r\n\t//\t\t\t\t\tSystem.out.println(\"1: curP: \" + curParentOne + \" Found: \" + array[0]);\r\n\t\t\t\t\t\tif (curParentOne == array[0]) {\r\n\t//\t\t\t\t\t\tSystem.out.println(\"2: curP: \" + curParentTwo + \" Found: \" + array[1]);\r\n\t\t\t\t\t\t\tif (curParentTwo != array[1]) {\r\n\t\t\t\t\t\t\t\tcheating = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif (curParentOne == array[1]) {\r\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(\"2: curP: \" + curParentTwo + \" Found: \" + array[1]);\r\n\t\t\t\t\t\t\t\tif (curParentTwo != array[0]) {\r\n\t\t\t\t\t\t\t\t\tcheating = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t//\t\t\t\t\tSystem.out.println(\"1: curP: \" + curParentOne + \" Found: \" + array[0]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (curParentTwo == array[0]) {\r\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(\"2: curP: \" + curParentTwo + \" Found: \" + array[1]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (curParentOne != array[1]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcheating = true;\r\n\t\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\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\tif (curParentTwo == array[1]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(\"2: curP: \" + curParentTwo + \" Found: \" + array[1]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (curParentOne != array[0]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcheating = true;\r\n\t\t\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\t\t}\r\n\t\t\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\t\t}\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// Monogamy\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\telse if (accountList[j] instanceof Infant) {\r\n\t\t\t\t\thead = ((Infant)accountList[j]).getParents().subList(0, 2); \r\n\t\t\t\t\tarray = head.stream().mapToInt(i->i).toArray();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (parentOne == -1) {\r\n\t\t\t\t\t\t// If no existing parents found yet, take their IDs down now\r\n\t\t\t\t\t\tparentOne = array[0];\r\n\t\t\t\t\t\tparentTwo = array[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t//\t\t\t\t\tSystem.out.println(\"1: curP: \" + curParentOne + \" Found: \" + array[0]);\r\n\t\t\t\t\t\t\t\t\t\t\tif (curParentOne == array[0]) {\r\n\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(\"2: curP: \" + curParentTwo + \" Found: \" + array[1]);\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (curParentTwo != array[1]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcheating = true;\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\tif (curParentOne == array[1]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(\"2: curP: \" + curParentTwo + \" Found: \" + array[1]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (curParentTwo != array[0]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcheating = true;\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\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\tSystem.out.println(\"1: curP: \" + curParentOne + \" Found: \" + array[0]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (curParentTwo == array[0]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(\"2: curP: \" + curParentTwo + \" Found: \" + array[1]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (curParentOne != array[1]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcheating = true;\r\n\t\t\t\t\t\t\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\t\t\t\t\t\t}\r\n\t\t\t\t\t\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\t\t\t\t\tif (curParentTwo == array[1]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(\"2: curP: \" + curParentTwo + \" Found: \" + array[1]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (curParentOne != array[0]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcheating = true;\r\n\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\r\n\t\t\t\t\t\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\t\t\t// Monogamy\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tarray = null;\r\n\t\t\r\n\t\t\r\n\t\t\tif (cheating == true) {\r\n\t\t\t\tSystem.out.println(\"Cheater alert. What are you going to tell your partner about this? \\n\");\r\n\t\t\t\tSystem.out.println(\"Account not created.\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tcheating = false;\r\n\t\t\t}\r\n\t\t\t}}", "title": "" }, { "docid": "0b75354e7a74736d536c0029e359fd42", "score": "0.44274542", "text": "public boolean isNotUnique(Course c){\n return this.courseCode.equals(c.courseCode);\r\n }", "title": "" }, { "docid": "a14a70f420086634ac3d668f01ad88a0", "score": "0.44086158", "text": "private boolean isDuplicatedCpf (StudentVO studentVO) {\n\t\tboolean isDuplicated = false;\n\t\ttry {\n\t\t\tint numberDuplicatedCpf = studentService.findDuplicatedCpf (studentVO);\n\t\t\tisDuplicated = (numberDuplicatedCpf > 0) ? true : false; \n\t\t\tif (isDuplicated) {\n\t\t\t\tsuper.addWarnMessage (\"formUpdateStudent:messagesUpdateStudent\", \"CPF já existente, preencha outro CPF.\");\n\t\t\t\tlogger.warn (\"isDuplicatedCpf: \" + isDuplicated);\n\t\t\t}\n\t\t} catch (BusinessException e) {\n\t\t\tString error = \"An error occurred while finding a duplicated cpf. \" + e.getMessage();\n\t\t\tlogger.error (error);\n\t\t}\n\t\treturn isDuplicated;\t\t\n\t}", "title": "" }, { "docid": "a8a2a978957cb33d72a5ff278e231922", "score": "0.44058514", "text": "boolean getPrev();", "title": "" }, { "docid": "86bca6d9a01aebafca2f95b9ab52cdc4", "score": "0.4405385", "text": "public boolean defineCourseOne(){\n\t\t\n\t\tPacket pck = DefineCourseController.sendRequestDefineCoursePacket(course1NumberToBeAddedForTesting, course1Name, course1AcUnitToBeAddedForTesting, course1WeeklyHours, course1PredCourses);\n\t\ttry {\n\t\t\ttestHelperUtil.getClient().sendToServer(pck);\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\ttestHelperUtil.waitUntilResponse(15000);\n\t\tif (response instanceof Boolean){\n\t\t\treturn (Boolean)response;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e90415886428396e5a32edf4e7505d5c", "score": "0.44041252", "text": "private IAVLNode predecessor(IAVLNode node) {\n\t IAVLNode predecessor=node;\n\t if(node.getLeft().getKey()!=-1) {\n\t\t predecessor=node.getLeft();\n\t\t while(predecessor.getRight().getKey()!=-1) {\n\t\t\t predecessor=predecessor.getRight();\n\t\t }\n\t\t return predecessor;\n\t }\n\t while(predecessor.getParent()!=null && predecessor.getKey()<predecessor.getParent().getKey() ) {\n\t\t predecessor=predecessor.getParent();\n\t }\n\t if (predecessor.getParent()==null) {\n\t\t return new AVLNode();\n\t }\n\t return predecessor.getParent();\n }", "title": "" }, { "docid": "4d55aeed9d53f5f0c07c10229ce4272b", "score": "0.44007236", "text": "public boolean isFirst() {\n return !hasPrevious();\n }", "title": "" }, { "docid": "725ec1072af28b7f806043ed367785b7", "score": "0.43997148", "text": "private boolean isFirstTime() {\n SharedPreferences preferences = getPreferences(MODE_PRIVATE);\n boolean ranBefore = preferences.getBoolean(\"RanBefore\", false);\n if (!ranBefore) {\n // first time\n SharedPreferences.Editor editor = preferences.edit();\n editor.putBoolean(\"RanBefore\", true);\n editor.commit();\n }\n return !ranBefore;\n }", "title": "" }, { "docid": "186efea15112be76dbb07cf93d1b14bb", "score": "0.43995646", "text": "@Override\n\tpublic boolean hasPrevious() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8accdbfe6c3571d05ee08c8663c441d6", "score": "0.43943134", "text": "@Override\r\n\tpublic boolean hasPrevious() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "41c33af8d4846dd85582fb85d828b85c", "score": "0.43937784", "text": "@Override\n public boolean hasPrevious() {\n return false;\n }", "title": "" }, { "docid": "387b64eb2b9ee86510bb3a4dea5b85e0", "score": "0.43924755", "text": "private boolean isInStudentList(Course course) {\n\n return course.studentList.indexOf(this) != -1;\n\n }", "title": "" }, { "docid": "ef30c1370cea309696a8bcb7c33a9b93", "score": "0.4390083", "text": "boolean hasInitialLeft();", "title": "" }, { "docid": "1df691ca70654d7ec23daa2fe038fd4e", "score": "0.4389822", "text": "@Override\n public boolean hasPrevious() {\n if (current == null) {\n return false;\n }\n return current.prev != null;\n // END\n }", "title": "" }, { "docid": "8f3dad4e0b9063f4db6204deeea5e33f", "score": "0.4383511", "text": "public Course getCompleteCourse() {\n\treturn this.completeCourse;\n }", "title": "" }, { "docid": "c72990ef4a5d84021e085a44a06e390c", "score": "0.43788388", "text": "public boolean isFirst() throws InvalidDataAccessException;", "title": "" }, { "docid": "a3c20a9b4f18694abbdcdd20d5e1339d", "score": "0.43788245", "text": "public boolean isAlreadyReversed(String currentDocument){\n _logger.info(\"Calling DB function \" + SQL_CHECK_IS_REVERSED + \n \"for current document: \" + currentDocument);\n int reverseExistInt;\n reverseExistInt = (Integer)callStoredFunction(Types.INTEGER, \n SQL_CHECK_IS_REVERSED, \n new Object[] { currentDocument });\n if (reverseExistInt == 1) {\n return true;\n } else {\n return false;\n }\n }", "title": "" } ]
cfa7a83ec9dd6f00dff48aed052bb6b2
/ Private helper method for toString. Displays ? for invalid values, spaces for 0's, and the actual held value for all valid values.
[ { "docid": "a3141b498965c90920f0370096afec01", "score": "0.0", "text": "private String charFor(int i, int j) {\r\n int v = getValue(i, j);\r\n if(v < 0) {\r\n return \"?\";\r\n } else if(v == 0) {\r\n return \" \";\r\n } else if(v < 36) {\r\n return Character.toString(Character.forDigit(v, 36)).toUpperCase();\r\n } else {\r\n return \"?\";\r\n }\r\n }", "title": "" } ]
[ { "docid": "3d6e4eccf0d3e0b3f35773cb76d8cb14", "score": "0.7243756", "text": "public String toString() {\r\n int index = 0;\r\n String sign = \"\";\r\n if (internalValue.charAt(0) == '+' || internalValue.charAt(0) == '-') {\r\n index++;\r\n }\r\n if (!positive) {\r\n sign = \"-\";\r\n }\r\n while (internalValue.charAt(index) == '0') {\r\n index++;\r\n if (index == internalValue.length()) {\r\n break;\r\n }\r\n }\r\n String output = sign + internalValue.substring(index);\r\n if (output.length() == 0) {\r\n return \"0\";\r\n }\r\n return output;\r\n }", "title": "" }, { "docid": "34326a9d1e2ef89ee86bb2331cf50a2d", "score": "0.72282404", "text": "@Override\n public String toString() {\n String returnString = \"\" + this.value;\n if (this.value < 10) {\n returnString = \"0\" + returnString;\n }\n return returnString;\n }", "title": "" }, { "docid": "b025f0475727c8f8116c246db234a870", "score": "0.69441944", "text": "public String toString()\n {\n\treturn value?\"#t\":\"#f\";\n }", "title": "" }, { "docid": "7b20af7d3c8d8504c5b8da9f8a827ade", "score": "0.6907231", "text": "@Override\n public String toString()\n {\n if (errorFlag)\n {\n return \"**invalid**\";\n }\n return getValue() + \" of \" + getSuit();\n }", "title": "" }, { "docid": "c6ce7bbb4f847b9155926c72408929ea", "score": "0.67748445", "text": "public String toString()\n {\n \tif (val)\n \t\treturn \"#t\";\n \treturn \"#f\";\n }", "title": "" }, { "docid": "f632d35bc3f0cc6ee0586c423ead4967", "score": "0.6757322", "text": "public String toString()\r\n {\r\n if(isError())\r\n return \"NaN\";\r\n //\r\n RemoveZero();\r\n //\r\n Long l=new Long(m_Val);\r\n String str=l.toString();\r\n int len=str.length();\r\n boolean neg=false;\r\n if(m_Val<0L)\r\n {\r\n neg=true;\r\n str=str.substring(1, len);\r\n len--;\r\n }\r\n //\r\n StringBuffer sb=new StringBuffer();\r\n //\r\n if(m_E<0L)\r\n {\r\n int absE=(int)Math.abs(m_E);\r\n if(absE<len)\r\n {\r\n sb.append(str.substring(0, len-absE));\r\n sb.append(\".\");\r\n sb.append(str.substring(len-absE));\r\n }\r\n else\r\n {\r\n sb.append(str);\r\n for(int i=0; i<(absE-len); i++)\r\n sb.insert(0, \"0\");\r\n sb.insert(0, \"0.\");\r\n }\r\n }\r\n else\r\n {\r\n if(len+m_E>6)\r\n {\r\n sb.append(str.charAt(0));\r\n if(str.length()>1)\r\n {\r\n sb.append(\".\");\r\n sb.append(str.substring(1));\r\n }\r\n else\r\n sb.append(\".0\");\r\n sb.append(\"E\"+(len-1+m_E));\r\n }\r\n else\r\n {\r\n sb.append(str);\r\n for(int i=0; i<m_E; i++)\r\n sb.append(\"0\");\r\n }\r\n }\r\n //\r\n str=sb.toString();\r\n sb=null;\r\n if(neg)\r\n str=\"-\"+str;\r\n //\r\n return str;\r\n }", "title": "" }, { "docid": "2d8c5ecb2f2d0db00aca1867addaf792", "score": "0.6756096", "text": "public String toString(){\r\n \r\n if(errorFlag == true){\r\n return \"** illegal **\";\r\n }\r\n else{\r\n return value + \" of \" + suit;\r\n }\r\n \r\n }", "title": "" }, { "docid": "40f3ef6f2a3c06bdce90aa1b5055a684", "score": "0.6629817", "text": "public String format()\n {\n return String.valueOf(m_nVal);\n }", "title": "" }, { "docid": "f7ca9110bbf98a28d4dcf5d0058c14d2", "score": "0.6537619", "text": "public String getValueAsString() {\n/* 165 */ revalidate();\n/* 166 */ if (this.unitType == 0) {\n/* 167 */ return \"\";\n/* */ }\n/* 169 */ return Float.toString(this.value) + UNITS[this.unitType];\n/* */ }", "title": "" }, { "docid": "5f3fd472f1354727ba5f095f12eb36a7", "score": "0.64715654", "text": "public String toString(){\n return String.format(\"%s\",this.value);\n }", "title": "" }, { "docid": "9400cb85ec863c2ff20367a6da18352d", "score": "0.64370966", "text": "public String toShortString()\r\n {\r\n if(isError())\r\n return \"NaN\";\r\n //\r\n StringBuffer sb=new StringBuffer();\r\n sb.append(m_Val);\r\n int len=(int)m_E;\r\n if(len>0)\r\n {\r\n for(int k=0; k<len; k++)\r\n sb.append(\"0\");\r\n len=0;\r\n }\r\n //\r\n String str=sb.toString();\r\n len += str.length();\r\n //\r\n if(m_Val<0L)\r\n {\r\n if(len>1)\r\n return str.substring(0, len);\r\n }\r\n else\r\n {\r\n if(len>0)\r\n return str.substring(0, len);\r\n }\r\n //\r\n return \"0\";\r\n }", "title": "" }, { "docid": "defa8c7062cf39e174fd246ca0928750", "score": "0.64166546", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn String.valueOf(value_);\r\n\t}", "title": "" }, { "docid": "bce37c77ce90e6a3f8d30e305236d1bc", "score": "0.6414402", "text": "public String toString() {\n\treturn String.valueOf(value);\n }", "title": "" }, { "docid": "1898492ca66842dad59ef8314944c529", "score": "0.6408234", "text": "public String toString() {\n String s = \"\\n+===+===+===+===+===+===+===+===+===+\\n\";\n String num = \"\";\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (getValueIn(i,j) == 0) num = \" \";\n else num = String.valueOf(getValueIn(i,j));\n\n if (j == 0) s += \"∥ \" + num + \" | \";\n else if (j % 3 == 2) s += num + \" ∥ \";\n else s += num + \" | \";\n }\n if (i % 3 == 2)\n s += \"\\n+===+===+===+===+===+===+===+===+===+\\n\";\n else\n s += \"\\n+— +- +- +- +- +- +- +- +- +\\n\";\n }\n return s;\n }", "title": "" }, { "docid": "ab559f2d223d62b04b6dccf64cb0530e", "score": "0.6369609", "text": "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn String.valueOf(value);\r\n\t}", "title": "" }, { "docid": "6655b9485d4c46d28b0580640176811e", "score": "0.63098955", "text": "@Override\n\t\tpublic String toString() {\n\t\t\tString str = \"\";\n\t\t\tstr += this.value;\n\t\t\treturn str;\n\t\t}", "title": "" }, { "docid": "baf5e8ffba31cf053eb4d958c0b503a0", "score": "0.6295217", "text": "@Override\r\n public String toString() {\r\n return String.format(local_En, \"%.\" + 2 + \"f\", value);\r\n }", "title": "" }, { "docid": "639f4b7c10fb8423f32ae5c549529405", "score": "0.6282193", "text": "public String toString() \r\n\t{\r\n\t\treturn \"Value: \"+ this.value + \"\\n\";\r\n\t}", "title": "" }, { "docid": "4e7f88cf4614b8190fb8fb672fb4acbb", "score": "0.6273461", "text": "@Override\n public String toString() {\n return String.valueOf(this.value);\n }", "title": "" }, { "docid": "4e7f88cf4614b8190fb8fb672fb4acbb", "score": "0.6273461", "text": "@Override\n public String toString() {\n return String.valueOf(this.value);\n }", "title": "" }, { "docid": "f5b30dab0e32a0afb045972b964c94a5", "score": "0.62291145", "text": "public String toString() {\n return \"\" + getValue(0);\n }", "title": "" }, { "docid": "b09f8133c08290e9eb23a023d176b451", "score": "0.62173426", "text": "@Override\n public java.lang.String toString()\n {\n return \"\" + dataVal;\n }", "title": "" }, { "docid": "5f008b01c300dbfc5658e5a624661cd0", "score": "0.6216105", "text": "public String toString () {\n\t\treturn \"(\" + value.toString() + \")\";\n\t}", "title": "" }, { "docid": "a27bc4279273e7fd8c30e44ccef45be7", "score": "0.6208443", "text": "@Override\n\tpublic String toString(){\n\t\treturn \"\" + value;\n\t}", "title": "" }, { "docid": "4181af87fdd1f7123be3e5c9c3fdc654", "score": "0.620733", "text": "protected abstract String formatValue( Object val, ValueInfo vinfo,\n int width );", "title": "" }, { "docid": "925beb9c3d13174b301e286faddd70a4", "score": "0.6203422", "text": "@Override\n\tpublic String toString() {\n\t\treturn measuredValue.toDecimalString() + \",\" + errorValue.toDecimalString() + \",\" + resUnit;\n\t}", "title": "" }, { "docid": "5776723c317399e2ffdd32850fbd4ff0", "score": "0.61836463", "text": "public String getFormattedValue() {\r\n return \"abstract value\";\r\n }", "title": "" }, { "docid": "2da5b24f9376a02d1c27d15b232caf8e", "score": "0.6183475", "text": "public String toString() {\n if (isZero()) return \"0\";\n\n int top = len * 10 + 1;\n final char[] buf = new char[top];\n Arrays.fill(buf, '0');\n final int[] cpy = Arrays.copyOf(dig, len);\n while (true) {\n final int j = top;\n for (long tmp = toStringDiv(); tmp > 0; tmp /= 10)\n buf[--top] += tmp % 10; //TODO: Optimize.\n if (len == 1 && dig[0] == 0) break;\n else top = j - 13;\n }\n if (sign < 0) buf[--top] = '-';\n System.arraycopy(cpy, 0, dig, 0, len = cpy.length);\n return new String(buf, top, buf.length - top);\n }", "title": "" }, { "docid": "1978caa6fdc7ad4e34ead6b29403954d", "score": "0.6140909", "text": "@Override\n\tpublic String toString() {\n\t\treturn val+\"\";\n\t}", "title": "" }, { "docid": "f6b56c5a11e48d76557dd8b74458e19d", "score": "0.6137549", "text": "@Override\r\n public String toString(Number value) {\r\n // If the specified value is null, return a zero-length String\r\n if (value == null) { return \"\"; }\r\n\r\n // Create and configure the formatter to be used\r\n NumberFormat formatter = getNumberFormat();\r\n\r\n // Perform the requested formatting\r\n String string = formatter.format(value);\r\n if ((Double) value > 0) { return new String(\"+\" + value); }\r\n\r\n return string;\r\n\r\n }", "title": "" }, { "docid": "56f68f62f77745ee47d5de5d8e3faa89", "score": "0.6125724", "text": "public String toString()\n\t{\n\t\tString s = \"\";\n\t\ts = s + value.toString();\n\t\treturn s;\n\t}", "title": "" }, { "docid": "bc23165a505bfd1f247a9e3f2b4a288a", "score": "0.61242044", "text": "@Override\r\n\tpublic String toString() { return fValue; }", "title": "" }, { "docid": "1014bffafcf8c8135ceb906ce12975c7", "score": "0.6123401", "text": "public String toString() {\n\n StringBuilder sb = new StringBuilder();\n\n// this.arr = convertToOriginalBase();\n// this.len = this.arr.length;\n if(this.isNegative){\n sb.append(\"-\");\n }\n\n for(int i= len-1;i>=0;i--){\n\n if(String.valueOf(arr[i]).length() != 9 && i!=len-1 ){\n int zeros = String.valueOf(arr[i]).length();\n\n while(9-zeros > 0){\n sb.append(\"0\");\n zeros++;\n }\n }\n sb.append(this.arr[i]);\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "075cea8feb167943ec9dfd98a1edbe72", "score": "0.61030245", "text": "public String toString() { return _value.toString(); }", "title": "" }, { "docid": "4c7ba44f504f6863343c8c6f7346f1c7", "score": "0.60988235", "text": "public String getValueString(){\n\t\tif(value == 1 || value > 10){\n\n\t\t\tswitch (value) {\n\t\t\tcase QUEEN:\n\t\t\t\treturn \"Queen\";\n\t\t\t\t\n\t\t\tcase JACK:\n\t\t\t\treturn \"Jack\";\n\t\t\t\t\n\t\t\tcase ACE:\n\t\t\t\treturn \"Ace\";\n\t\t\t\t\n\t\t\tcase KING:\n\t\t\t\treturn \"King\";\n\t\t\tdefault:\n\t\t\t\treturn \"\";\n\n\t\t\t}\n\t\t\t\n\t\t\t}else{\n\t\t\t\treturn Integer.toString(value);\n\t\t\t}\n\t\t }", "title": "" }, { "docid": "5e694a3d2ad6a2b9cee9ce1cda8d503f", "score": "0.6093529", "text": "@Override\n\tpublic String toString() {\n\t\treturn toString(value);\n\t}", "title": "" }, { "docid": "a9197a6c44ee16874998b97bc5116518", "score": "0.60715425", "text": "public String getValueS(){\n\t\treturn getNumericDisplayString(getValueF());\n\t}", "title": "" }, { "docid": "a9197a6c44ee16874998b97bc5116518", "score": "0.60715425", "text": "public String getValueS(){\n\t\treturn getNumericDisplayString(getValueF());\n\t}", "title": "" }, { "docid": "0879a331b29f4367340a80f2b8793fc1", "score": "0.6068679", "text": "@Override\n\tpublic String toString() {\n\t\tDecimalFormat format = new DecimalFormat();\n\t\tformat.setMaximumFractionDigits(4);\n\t\treturn this.value + \",\" + format.format(this.key);\n\t}", "title": "" }, { "docid": "68cec016f3c2c6123dfcd7837a02739a", "score": "0.60633653", "text": "public String toString()\n {\n String valueStr;\n \n NumberFormat fmt = NumberFormat.getCurrencyInstance();\n valueStr = fmt.format(value);\n valueStr += \"\\t\" + super.toString();\n return valueStr;\n }", "title": "" }, { "docid": "a19c170a2442bdc640761271faef3560", "score": "0.6038882", "text": "public String toString() {\n return internalValue;\n }", "title": "" }, { "docid": "735c13d20c7de6a44f26a23bd641ac02", "score": "0.6033298", "text": "public String toString() {\n StringBuilder rv = new StringBuilder();\n if (this.validity) {\n rv.append(\"valid\"); \n } else {\n rv.append(\"invalid\");\n }\n rv.append(\" 0x\");\n rv.append(Long.toString(this.tag, 16));\n return rv.toString();\n }", "title": "" }, { "docid": "507a196e682051d38e8a87efda4b244d", "score": "0.6020084", "text": "public String toString(){\n String s = \"{\";\n if(this.den == 0){\n s += \"}\";\n return s;\n }\n s += num;\n s += \"/\";\n s += den;\n s += \"}\";\n return s;\n }", "title": "" }, { "docid": "d83c93a6236b4425a705297bad7c3939", "score": "0.60010487", "text": "private String replaceZeroWithSpace(String outputValue) {\n\t\tif(outputValue.equals(\"0\")){\n\t\t\toutputValue = \" \";\n\t\t}\n\t\treturn outputValue;\n\t}", "title": "" }, { "docid": "6a33ef5595e41cb471fe0a6444601bd3", "score": "0.59944427", "text": "public String toString() {\n\t\treturn value + \"-\" + currency;\n\t}", "title": "" }, { "docid": "26840803cdf1a574ee62ee79d46fb4ed", "score": "0.5979562", "text": "public String toString() {\n\t\tString value;\n\t\tif (this == ROJA)\n\t\t\tvalue = \"O\";\n\t\telse if (this == NEGRA)\n\t\t\tvalue = \"X\";\n\t\telse\n\t\t\tvalue = \" \";\n\t\treturn value;\n\t}", "title": "" }, { "docid": "17c912446226c4fe56f7e1370a7f967d", "score": "0.5971154", "text": "public String formatValue(Double value) {\r\n if (value == null) {\r\n return \"N/A\";\r\n } else {\r\n return ((long) (value.doubleValue() / getScale())) + \" \" + getUnit();\r\n }\r\n }", "title": "" }, { "docid": "e0f2cd0b69eb23903971058144f57890", "score": "0.5967725", "text": "public String debugToString() {\n\t\treturn \"measuredValue = \" + measuredValue + \"\\nerrorValue = \" + errorValue + \"\\nerrorMessage = \" + errorMessage + \"\\n\";\n\t}", "title": "" }, { "docid": "c83f33fa3140932c48f4396bbf6c3a02", "score": "0.5959898", "text": "public String valueToString()\r\n\t{\r\n\t\treturn valueToString(value);\r\n\t}", "title": "" }, { "docid": "4b155d8b46bb9391d327b9664a1eb602", "score": "0.5939822", "text": "public String getValueAsString() {\n // Return a String representing the card's value.\n // If the card's value is invalid, \"??\" is returned.\n switch ( value ) {\n case ACE: return \"Ace\";\n case 2: return \"Two\";\n case 3: return \"Three\";\n case 4: return \"Four\";\n case 5: return \"Five\";\n case 6: return \"Six\";\n case 7: return \"Seven\";\n case 8: return \"Eight\";\n case 9: return \"Nine\";\n case 10: return \"Ten\";\n case JACK: return \"Jack\";\n case QUEEN: return \"Queen\";\n case KING: return \"King\";\n default: return \"??\";\n }\n }", "title": "" }, { "docid": "0efc8d0b830c18a6343525c03e1da8dd", "score": "0.5930504", "text": "@Override\r\n\t\tpublic String toString() {\r\n\t\t\treturn this.value.toString();\r\n\t\t}", "title": "" }, { "docid": "99684c035807ba705cc42acbb6d58e07", "score": "0.5929901", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"(\" + getValue(0) + \", \" + getValue(1) + \", \" + getValue(2) + \")\";\n\t}", "title": "" }, { "docid": "23a07c4a04d147752b49e746c6b0472d", "score": "0.591797", "text": "public String stringValue() {\r\n\t\treturn \"\" + internalValue;\r\n\t}", "title": "" }, { "docid": "3305c5c4f7349e143cffde6203ed2a36", "score": "0.5908655", "text": "public String toString(){\n String zero = \"\";\n if (cents <= 10){\n zero = \"0\";\n }\n\n return getEuros() + \".\" + zero + getCents() + \"e\";\n }", "title": "" }, { "docid": "3ea1f09c92548d14ea8b5c5854b58750", "score": "0.5907608", "text": "public String forDisplay() {\n return value;\n }", "title": "" }, { "docid": "611f35a918b5bd599a1e2f78554591c1", "score": "0.59032166", "text": "public String toString() { return getValueAsString(); }", "title": "" }, { "docid": "4f25d79826081bf29b08b2b2815dfab4", "score": "0.59013647", "text": "@Override\n public String toString() {\n StringBuilder b = new StringBuilder();\n\n for (int equation = 0; equation < getEquationCount(); equation++) {\n for (int unknown = 0; unknown < getUnknownCount(); unknown++) {\n double coefficient = coefficients.get(equation, unknown);\n if (coefficient == 0) {\n b.append(\" \").append(getUnknownCount() > 4 ? \" \" : \"\");\n } else {\n if (Math.abs(coefficient) == 1) {\n b.append(\" \");\n b.append(coefficient > 0 ? \"+\" : \"-\");\n } else {\n b.append(coefficient > 0 ? \"+\" : \"\");\n b.append(trimZeroes(coefficient));\n }\n\n b.append(getUnknownName(unknown));\n }\n\n if (unknown - 1 < getUnknownCount()) {\n b.append(\" \");\n }\n }\n\n b.append(\" = \");\n\n b.append(trimZeroes(constants.get(equation, 0)));\n\n b.append(\"\\n\");\n }\n\n return b.toString();\n }", "title": "" }, { "docid": "88af7f424896adcc06a751a00c321d8a", "score": "0.5888407", "text": "public String toString()\n\t{\n\t\tswitch(type_)\n\t\t{\n\t\tcase MKSINTERFACE_MKSFIELD_TYPE_STRING:\n\t\t\treturn stringValue_;\n\t\tcase MKSINTERFACE_MKSFIELD_TYPE_INT:\n\t\t\treturn intValue_+\"\";\n\t\tcase MKSINTERFACE_MKSFIELD_TYPE_BOOLEAN:\n\t\t\tif (booleanValue_)\n\t\t\t\treturn \"true\";\n\t\t\telse \n\t\t\t\treturn \"false\";\n\t\tcase MKSINTERFACE_MKSFIELD_TYPE_DOUBLE:\n\t\t\treturn doubleValue_+\"\";\n\t\tcase MKSINTERFACE_MKSFIELD_TYPE_CALENDAR:\n\t\t\treturn calendarValue_.toString();\n\t\tcase MKSINTERFACE_MKSFIELD_TYPE_OBJECTLIST:\n\t\t\treturn listValue_.toString();\n\t\tcase MKSINTERFACE_MKSFIELD_TYPE_LONG:\n\t\t\treturn longValue_+\"\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}", "title": "" }, { "docid": "97f1801e56a00dc54a3ad535965b71ea", "score": "0.5885785", "text": "public String toString() {\n if (imag == 0) return real + \"\";\n if (real == 0) return imag + \"i\";\n if (imag < 0) return real + \" - \" + (-imag) + \"i\";\n return real + \" + \" + imag + \"i\";\n }", "title": "" }, { "docid": "66f013e0aff6533780bcf6dae08a9bd0", "score": "0.5881831", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"\"+value + \" \"+ index;\n\t}", "title": "" }, { "docid": "360d4ca97f51217e9ecde869019f760c", "score": "0.58807087", "text": "@Override\n\tpublic String toString() {\n\t\treturn this.value;\n\t}", "title": "" }, { "docid": "7b1095211be44c0b9d96c77c6b8551d9", "score": "0.58723265", "text": "private void showNothing(){\n // clear everything now that there are no values\n this.amountValue = \"0\";\n this.minValue = \"Not calculated\";\n this.maxValue = \"Not calculated\";\n this.meanValue = \"Not calculated\";\n this.medianValue = \"Not calculated\";\n this.modeValue = \"Not calculated\";\n\n }", "title": "" }, { "docid": "dd7244a8ee2c8ebd6cdff80fbff408f9", "score": "0.58670026", "text": "public String toString()\n {\n boolean[] abMark = new boolean[1];\n V value = get(abMark).join();\n\n return value + \" (\" + abMark[0] + ')';\n }", "title": "" }, { "docid": "817965b42bc76ab399d3cdf9edabb32c", "score": "0.5858228", "text": "private String spaces(int value)\r\n {\r\n\tString napis = \"\";\r\n for (int i=0;i<22-value;i++)\r\n napis+=\" \";\r\n return napis;\r\n }", "title": "" }, { "docid": "04804dac3131160f911b2ae354d81f48", "score": "0.58568305", "text": "@Override\n public String imprimir() {\n if (getBase() > 0 && getAltura() > 0) {\n return \"La base del triangulo es: \" + this.getBase() + \"\\nLa altura del triangulo es: \" + this.getAltura() + \" \\nEl area del triangulo es: \" + this.area();\n } else {\n return \"Numeros no validos\";\n } \n }", "title": "" }, { "docid": "67f274d6f2ff8e81cf2e55f7d84d8592", "score": "0.58543116", "text": "public String stringifyMatrix() {\n String returnString = \"\";\n JLabel jl;\n for (int i = 0; i < (9 * 9); i++) {\n jl = squares.elementAt(i);\n String s = jl.getText().trim();\n if (s.equals(\"\")) {\n returnString += \"0\";\n } else {\n returnString += s;\n } // end if\n } // end for\n\n return returnString;\n }", "title": "" }, { "docid": "79125d2f23795f8482c47564f3395a55", "score": "0.5853024", "text": "public String toString() {\n\tString str = \"\";\n\tfor (int i=size()-1; i>=0; i--) {\n\t str += ((bits[i] ? \"1\" : \"0\"));\n\t}\n\t// put it in quotes to make the null string more recognizable\n\treturn \"\\\"\" + str + \"\\\"\";\n }", "title": "" }, { "docid": "62dc2b726ff8fd3aa2b9a268d4d35071", "score": "0.5846681", "text": "public String toString() {\n if (hunger <= 0) {\n return \"0\";\n }\n return \"\" + hunger;\n }", "title": "" }, { "docid": "eb8995b2169ed877f9768e24ba159aef", "score": "0.5839889", "text": "@Override\n public String toString() {\n return int2ip((int) this.value);\n// return HexString.toHexString(this.value);\n }", "title": "" }, { "docid": "3a8ecbcc161a32294e514f074308aac8", "score": "0.58372456", "text": "public String toString() {\n\t\treturn \"Perímetro: \" + String.format(\"%.2f\", perimetroRet()) // para definir a quantidade de casas decimais [2].\n\t\t\t\t+ \" Diagonal: \" + String.format(\"%.2f\", diagonalRet()) + \" Area Total: \"\n\t\t\t\t+ String.format(\"%.2f\", totalRet());\n\t}", "title": "" }, { "docid": "9a08f5c1879b72e41857ca95030a821c", "score": "0.5832339", "text": "public String toString() {\r\n if (denominator == 0) \r\n return \"Error: Denominator cannot be 0\";\r\n else\r\n return rational;\r\n }", "title": "" }, { "docid": "639cd479d281d1b737cde1a015d8725c", "score": "0.58312666", "text": "public String toString()\n {\n return getValueDisplayText();\n }", "title": "" }, { "docid": "3ce7efad806f5a3b7882cf9606dd6ab9", "score": "0.5826593", "text": "public String validate()\n\t{\n\t\tint positive = 0;\n\t\tint negative = 0;\n\t\t\n\t\tfor( int i = 0; i < getDegree(); i++ )\n\t\t{\n\t\t\tint val = get(i);\n\t\t\tif( val > 0 )\n\t\t\t\tpositive += val;\n\t\t\telse\n\t\t\t\tnegative += val;\n\t\t}\n\t\t\n\t\tif( positive != 100 ) return \"positive preferences add up to \" + positive + \": \" + this.toString();\n\t\tif( negative != -100 ) return \"negative preferences add up to \" + negative + \": \" + this.toString();\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7b50e798439fc8354a5f9bd6b59d2ad6", "score": "0.58210856", "text": "protected String translateValueToString(short value) {\n if(hideNullValue) {\n if(value == nullValue)\n return \"\";\n else\n return Format.translateValueToString(value, dataFormat);\n }\n else return Format.translateValueToString(value, dataFormat);\n\n }", "title": "" }, { "docid": "912980f664f4c0d577ca17cf68c8fc38", "score": "0.5820499", "text": "public String toString() {\n\t\tString tmp = \"\";\n\t\tswitch(Integer.parseInt(this.value)) {\n\t\tcase 0:\n\t\t\ttmp = String.join(\"\", \"J\", this.color);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\ttmp = String.join(\"\", \"A\", this.color);\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\ttmp = String.join(\"\", \"J\", this.color);\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\ttmp = String.join(\"\", \"Q\", this.color);\n\t\t\tbreak;\n\t\tcase 13:\n\t\t\ttmp = String.join(\"\", \"K\", this.color);\n\t\t\tbreak;\n\t\tcase 14:\n\t\t\ttmp = String.join(\"\", \"A\", this.color);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttmp = String.join(\"\", this.value, this.color);\n\t\t\tbreak;\n\t\t}\n\t\treturn tmp;\n\t}", "title": "" }, { "docid": "012669c98cffc4d5d008e91bc2b10061", "score": "0.5820135", "text": "@Override\n public String toString() {\n if (this == null) {\n return (\"-\");\n }\n return (Integer.toString(this.key) + \":\" + Integer.toString(this.value));\n }", "title": "" }, { "docid": "e1b2ccab4d5a13e56b046ae273703d66", "score": "0.5819585", "text": "@Override\n public String toString() {\n if (re == 0 && img == 0) {\n return \"0\";\n } else if (re == 0) {\n return img + \"i\";\n } else if (img == 0) {\n return Double.toString(re);\n } else if (img > 0) {\n return re + \" + \" + (img + \"i\");\n } else {\n return re + \" - \" + (-1 * img + \"i\");\n }\n }", "title": "" }, { "docid": "9b1d2d162ef969fd68f90e2bbc0c36c6", "score": "0.5816115", "text": "public String toString()\n\t{\n\t\treturn value.toString();\n\t}", "title": "" }, { "docid": "658e2498e4eaa1658ffd84981367e1ba", "score": "0.581082", "text": "protected boolean valueAsString() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "35b04741160229e7e4c70ad507fbdfda", "score": "0.5806264", "text": "public String toString(){\n\t\tString s = new String();\n\n\t\tfor (int i = 0; i < this.vars.length; i++)\n\t\t\tif(vars[i] != null)\n\t\t\t\ts += \" \" + vars[i].valor.toString();\n\t\t\telse\n\t\t\t\ts += \" \" + \"N\";\n\t\treturn s;\n\t}", "title": "" }, { "docid": "51a68d9d0ddd95c37cff8369658aba7d", "score": "0.58024937", "text": "@Override\n protected String internals ()\n {\n StringBuilder sb = new StringBuilder(super.internals());\n\n if (ratio != null) {\n sb.append(\" ratio:\")\n .append((float) ratio.getMaxGap());\n }\n\n if (delta != null) {\n sb.append(\" delta:\")\n .append((float) delta.getMaxGap());\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "b6878a519c8a8ae88be95888e14784f4", "score": "0.580198", "text": "public String formatValue(Long value) {\r\n if (value == null) {\r\n return \"N/A\";\r\n } else {\r\n return ((long) (value.longValue() / getScale())) + \" \" + getUnit();\r\n }\r\n }", "title": "" }, { "docid": "3fadbbdd26ce201e7e7f4ab05b51ea39", "score": "0.58009195", "text": "public String toString(){\n \treturn String.format(\"%.4f, %.4f,%.4f,%.4f,%.4f, %.6f,%.6f,%.6f,%.6f,%.6f, %.6f,%.6f,%.6f,%.6f,%.6f, %.6f,%.6f,%.6f,%.6f,%.6f, %.4f,%.4f,%.4f,%.4f,%.4f,%.4f,%.4f, %E,%E,%E, %E,%E,%E, %.6f,%.6f,%.6f, %.4f,%.4f,%.4f, %.4f,%.4f,%.4f, %E,%E,%E, %E,%E,%E, %E,%E,%E, %s,%s, %.6f,%.6f,%.6f, %.4f,%.4f,%.4f, %E,%E,%E, %E,%E,%E\",\n \n xlocation,\n depth,width,benthicArea,length,\n \n SCOM[0][0],SCOM[0][1],SCOM[0][2],SCOM[0][3],SCOM[0][4],\n SCOM[1][0],SCOM[1][1],SCOM[1][2],SCOM[1][3],SCOM[1][4],\n SCOM[2][0],SCOM[2][1],SCOM[2][2],SCOM[2][3],SCOM[2][4],\n \n 0.0,\n 0.0,\n 0.0,\n 0.0,\n 0.0,\n 0.0,\n 0.0,\n\n 0.0,0.0,0.0,\n 0.0,0.0,0.0,\n \n GWdissolved[1],GWdissolved[2],GWdissolved[3],\n 0.0,\n 0.0,\n 0.0,\n 0.0,\n 0.0,\n 0.0,\n 0.0,0.0,0.0,\n 0.0,0.0,0.0,\n 0.0,0.0,0.0,\n \n immobilizer.toString(),\n miner.toString(),\n \n fbom[0],fbom[1],fbom[2],\n 0.0,\n 0.0,\n 0.0,\n 0.0,0.0,0.0,\n 0.0,0.0,0.0\n );\n \n }", "title": "" }, { "docid": "80fc27b70541e1a4c566169db7400aec", "score": "0.58002144", "text": "public String toString()\r\n/* 52: */ {\r\n/* 53:110 */ return this.mStringValue;\r\n/* 54: */ }", "title": "" }, { "docid": "ffc419a2de2a45d3d8c50fb3c734e1f0", "score": "0.5795603", "text": "@Override\n\tpublic String toString() {\n\t\tString mypuz= \"\";\n\t\tfor (int i = 0; i < row; i++){\n for (int j = 0; j < colum; j++){\n if (this.cell(i,j) > 0)\n \tmypuz+=this.cell(i,j)+\"\\t\";\n else if(this.cell(i,j)==-1)\n \tmypuz+=\"bb\\t\";\n else if(this.cell(i,j)==0)\n \tmypuz+=\" \\t\";\n else\t\n \tmypuz+=\"xx\\t\";\n }\n mypuz+=\"\\n\\n\";\n }\n\t\treturn mypuz;\n\t}", "title": "" }, { "docid": "5da26eef5297b95be8c6371b144e4e97", "score": "0.57935864", "text": "public String getValue() {\n\tString res = new String(\"\");\n\tswitch (myState.shape) {\n\tcase 0:\n\t System.out.println(\"No Shape\");\n\t res = res.concat(\"No Shape\");\n\t break;\n\tcase 1:\n\t System.out.println(\"Square\");\n\t res = res.concat(\"Square\");\n\t break;\n\tcase 2:\n\t System.out.println(\"Triangle\");\n\t res = res.concat(\"Triangle\");\n\t break;\n\tcase 4:\n\t System.out.println(\"H-Rectangle\");\n\t res = res.concat(\"H-Rectangle\");\n\t break;\n\tcase 8:\n\t System.out.println(\"V-Rectangle\");\n\t res = res.concat(\"V-Rectangle\");\n\t break;\n\tcase 16:\n\t System.out.println(\"Plus\");\n\t res = res.concat(\"Plus\");\n\t break;\n\tdefault:\n\t System.out.println(\"returning ?? \" + myState.shape);\n\t res = res.concat(\"eh? \" + myState.shape);\n\t break;\n\t}\n\t\n\tres = res.concat(\" -- Possibly: \");\n\tif ((myState.byteguess & 0x01) > 0) {\n\t System.out.println(\"Possible sqr\");\n\t res = res.concat(\"Sqr \");\n\t}\n\tif ((myState.byteguess & 0x02) > 0) {\n\t res = res.concat(\"Tri \");\n\t System.out.println(\"Possible tri\");\n\t}\n\tif ((myState.byteguess & 0x04) > 0) {\n\t res = res.concat(\"HRect \");\n\t System.out.println(\"Possible HRect\");\n\t}\n\tif ((myState.byteguess & 0x08) > 0) {\n\t res = res.concat(\"VRect \");\n\t System.out.println(\"Possible VRect\");\n\t}\n\tif ((myState.byteguess & 0x10) > 0) {\n\t res = res.concat(\"Pls \");\n\t System.out.println(\"Possible Pls\");\n\t}\n\t\n\treturn res;\n }", "title": "" }, { "docid": "e1d3fc7b73fc31f36cf19391f52bb3fe", "score": "0.57920176", "text": "String getValueFormat();", "title": "" }, { "docid": "fd1890620a8cea83240934263ae193d6", "score": "0.5788094", "text": "public String toStringWithUnits() {\n return String.format(\"%9.1f m\", value);\n }", "title": "" }, { "docid": "4b2338efe6a62554befab6ae979f492c", "score": "0.5786271", "text": "public String toString() {\n return (new Integer(val)).toString();\n }", "title": "" }, { "docid": "d610998bc5652c7f63a07fdd72c12490", "score": "0.5785477", "text": "@Override\n public String toString() {\n\t\treturn _format.format( _number );\n\t}", "title": "" }, { "docid": "2e69a7334f8d07e664d5cd4c1a9a043c", "score": "0.5771393", "text": "@Override\n\tpublic String toString() {\n\t\treturn _val;\n\t}", "title": "" }, { "docid": "7eddc3cb3ed0551dafb5a06f6def2bf5", "score": "0.5769458", "text": "public String toString () {\n String response = SafeScanner.fixedLengthString(this.getName(), 20);\n response += SafeScanner.fixedLengthString(\"Checking\", 16);\n response += SafeScanner.fixedLengthString(SafeScanner.displayDouble(initialBalance), 16);\n response += SafeScanner.fixedLengthString(SafeScanner.displayDouble(currentBalance), 16);\n return response;\n }", "title": "" }, { "docid": "790805db231ed5dd49ded969d24b7063", "score": "0.57632536", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn getValue().toString();\r\n\t}", "title": "" }, { "docid": "9e847ae6ee3ec9ad1e9a2a32580a12a8", "score": "0.5755252", "text": "private String e03(){\n\t\tString result = null;\n\t\t\n\t\tfor(int i=values.size(); i>=0; i--){\n\t\t\tresult = result + \" \" + values.get(i);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "f53ac4089d34f4004ca3161296efd3c3", "score": "0.57526785", "text": "protected String formatString(String value)\n\t{\n\t\tif (value == null) return \"-\";\n\t\treturn value;\n\t}", "title": "" }, { "docid": "41f096b38306a3d2a2ad758b60afac94", "score": "0.57515925", "text": "public String toString()\n {\n return Integer.toString(this.value);\n }", "title": "" }, { "docid": "1e5491ba6d229d4c2f31eeaa1231ce59", "score": "0.57450944", "text": "@Override\n\t\tpublic String toString() {\n\n\t\t\tchar offset = 'A' - '0';\n\t\t\tchar base = '0';\n\n\t\t\treturn \"\" + (char) (column + offset + base)\n\t\t\t\t\t+ (char) (row + 1 + base);\n\n\t\t}", "title": "" }, { "docid": "2e821bc86089f5299a56cef01c4c2040", "score": "0.57344455", "text": "public String toString(){\n return this.suit.toString() + \"-\" + this.value.toString();\n }", "title": "" }, { "docid": "d05d6efdde1783b70e0a1b02f44e0425", "score": "0.57331824", "text": "public String toString () {\n\t\treturn value.toString();\n\t}", "title": "" }, { "docid": "27b259086a5404f27ccf0dbe924e2ea5", "score": "0.5728927", "text": "@Override\r\n public String toString() {\r\n return value;\r\n }", "title": "" }, { "docid": "f967ee698864018dad307b632a8becd1", "score": "0.572233", "text": "public String toString() {\n\t\treturn value.toString();\n\t}", "title": "" } ]
a93d3d5a89c6c0f9af37c36ce4da8056
NAMA KOLOM TEMPAT LAHIR
[ { "docid": "e6835330d6bfc881146517998977d3db", "score": "0.0", "text": "public DBHandler(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "title": "" } ]
[ { "docid": "3e10fd34fb855883541bda5fbe7c803b", "score": "0.66179806", "text": "private double komi() {\n\n return DEFAULT_KOMI;\n }", "title": "" }, { "docid": "e0dc840426337a3c16d7f01970054cf8", "score": "0.65169513", "text": "void kalkulasiKeramikPersegi(){\n int luas;\n luas = this.sisi * this.sisi / 100; /*karena dalam satuan meter maka dibagi 100*/\n int keperluanP;\n keperluanP = 100 / luas; /*luas tanah -> 100m^2 dibagi luas keramik*/\n int hargaSatuanP;\n hargaSatuanP = this.hargaPerbox / this.jmlKeramik;\n int hargaBayarP;\n hargaBayarP = keperluanP * hargaSatuanP;\n System.out.println(\"Luas Keramik: \"+luas+\"m^2\");\n System.out.println(\"Jumlah Keramik yang dibutuhkan: \"+keperluanP+\" pcs\");\n System.out.println(\"Harga Keramik Perbox: \"+hargaPerbox+\" dengan jumlah keramik \"+jmlKeramik);\n System.out.println(\"Harga Keramik Satuan: \"+hargaSatuanP);\n System.out.println(\"Harga yang harus dibayar: Rp.\"+hargaBayarP);\n }", "title": "" }, { "docid": "8c8611be544691516300684e3632776d", "score": "0.64490193", "text": "@Override\n\tpublic double dienTich() {\n\t\treturn dai*rong;\n\t}", "title": "" }, { "docid": "c370967ff4bb2b9d702b483a6ce00641", "score": "0.64253443", "text": "public double getTunjangan() {\n double tunjangan = 0;\n if (menikah) {\n if (jenisKelamin) {\n tunjangan = 25;\n } else {\n tunjangan = 20;\n }\n } else {\n tunjangan = 15;\n }\n return tunjangan;\n }", "title": "" }, { "docid": "d41c4411666b4efc3f989953cadb4309", "score": "0.64052045", "text": "public void Tampilkan2()\n\t{\n\t\tSystem.out.println(\"Nomor Karyawan\t\t= \" +noKaryawan);\n\t\tSystem.out.println(\"Gaji Pokok\t\t= \" +Gapok);\n\t}", "title": "" }, { "docid": "c778efcb7b09d5f56902b0034b13334c", "score": "0.6390603", "text": "private double aTemperatura(double nivelAbrigo)\r\n\t{\r\n\t\treturn -1.5 * nivelAbrigo + 22.5;\r\n\t}", "title": "" }, { "docid": "ce7a536736db139919c4b5fbc7057c0e", "score": "0.6358347", "text": "public float getTempo() {\n float tempo;\n tempo = km / vMed;\n return tempo;\n }", "title": "" }, { "docid": "e6ef597b79dd95144365af9b3ab3f2d9", "score": "0.63333404", "text": "@Override\r\n public void dienTich() {\n double temp = (a + b + c) / 2;\r\n double temp2 = temp * (temp - a) * (temp - b) * (temp - c);\r\n double dienTich = Math.sqrt(temp2);\r\n System.out.println(\"Dien tich hinh tam giac la: \" + dienTich);\r\n }", "title": "" }, { "docid": "91dbd88615be574a1987400e90af03a2", "score": "0.63298714", "text": "void kalkulasiKeramikPersegiPanjang(){\n int luasPP; /* PP -> Persegi Panjang */\n luasPP = this.panjang * this.lebar / 100; /*karena dalam satuan meter maka dibagi 100*/\n int keperluanPP;\n keperluanPP = 100 / luasPP; /*luas tanah -> 100m^2 dibagi luas keramik PP*/\n int hargaSatuanPP;\n hargaSatuanPP = this.hargaPerbox / this.jmlKeramik;\n int hargaBayarPP;\n hargaBayarPP = keperluanPP * hargaSatuanPP;\n System.out.println(\"Luas Keramik : \"+ luasPP + \"m^2\");\n System.out.println(\"Jumlah Keramik yang dibutuhkan: \"+keperluanPP+\" pcs\");\n System.out.println(\"Harga Keramik Perbox: \"+hargaPerbox+\" dengan jumlah keramik \"+jmlKeramik);\n System.out.println(\"Harga Keramik Satuan: \"+hargaSatuanPP);\n System.out.println(\"Harga yang Harus dibayar: Rp.\"+hargaBayarPP);\n }", "title": "" }, { "docid": "00b2a8f2f1310b44f7b4837c7f0287ac", "score": "0.63019925", "text": "@Override\r\n\tpublic float volumen() {\n\t\treturn (float) Math.pow(tamano, 3);\r\n\t}", "title": "" }, { "docid": "fc37aeb9d8c3f9b1b684d1ced942d0c0", "score": "0.6266132", "text": "void HitungBalok(float panjang, float lebar, float tinggi){\n \n System.out.println(\"\\nSebuah balok memiliki panjang \"+panjang+\"cm, lebar \"\n +lebar+\"cm, dan tinggi \"+tinggi+\"cm\"); \n //menghitung volume balok\n float volume = panjang * lebar * tinggi;\n System.out.println(\"Volume Balok = \"+volume); \n }", "title": "" }, { "docid": "be6815a6819fad1bbe55edf39e791a56", "score": "0.6235376", "text": "private static void tiempo(Ruta ruta) {\n\t\tfloat route = ruta.distancia.getLongitud(); // [km]\n float speed = ruta.distancia.getVelocidadMaxima(); // [km/h]\n float time = route / speed;\n int hours = (int) time;\n int minutes = (int) (60 * (time - hours));\n\n System.out.println(hours + \"h \" + minutes + \"m \" );\n\t}", "title": "" }, { "docid": "9c5744cd648f2ba8236949e4d04384dd", "score": "0.622453", "text": "private double getHargaPokok () {\n return harga_pokok;\n }", "title": "" }, { "docid": "81f8597c4fa28f54af29704d3fd0a503", "score": "0.618609", "text": "@Override\n\tpublic double arie() {\n\t\t\n\t\treturn ((baza_mare+baza_mica)/2)*inaltime;\n\t}", "title": "" }, { "docid": "79e5934e6443ab8e9931a94cb8b2765c", "score": "0.617832", "text": "void HitungBalok(float rumus, float panjang, float lebar, float tinggi){\n \n System.out.println(\"\\nSebuah balok memiliki panjang \"+panjang+\"cm, lebar \"\n +lebar+\"cm, dan tinggi \"+tinggi+\"cm\"); \n //menghitung luas permukaan balok\n float luas = rumus * ((panjang*lebar)+(panjang*tinggi)+(lebar*tinggi));\n System.out.println(\"Luas Permukaan Balok = \"+luas);\n }", "title": "" }, { "docid": "fca8ffb745a3c12f4617e907eedb68f0", "score": "0.6164899", "text": "@Override\n public void calcularVolumen() {\n volumenGeo = Math.pow(aristaGeo,3);\n }", "title": "" }, { "docid": "4e95f6f79c6d767c19d03b6763b58efa", "score": "0.61405295", "text": "private double Kelvin(double Temp) {\n\t\t/* ' http://en.wikipedia.org/wiki/Kelvin */\n\t\treturn Temp + C2K;\n\t}", "title": "" }, { "docid": "ebb29af6b2f98049bf061fedbdf10e57", "score": "0.6136558", "text": "public int getShAirCondTemperature(){\r\n return localShAirCondTemperature;\r\n }", "title": "" }, { "docid": "ed26aea5b656e38fa4fdd93b7626a897", "score": "0.6123696", "text": "public void kuole() {\n setTyyppi(Tyyppi.KUOLLUTDALEK);\n }", "title": "" }, { "docid": "0773352e52df8ec50a1699052e27369e", "score": "0.609379", "text": "int getMotorTemperature();", "title": "" }, { "docid": "05037b2600cd46101336adc3f811f658", "score": "0.605195", "text": "private double hitungKeliling(){\r\n return 2*super.getRadius()*(Math.sin(Math.toRadians(sudut/2)) + sudut/360*PHI);\r\n }", "title": "" }, { "docid": "1356bd824ce4871869f1f8e4674042c9", "score": "0.60467803", "text": "public String getTempatLahir() {\n return tempatLahir;\r\n }", "title": "" }, { "docid": "22a4654feaa30c91e9fb43c533ecfb07", "score": "0.6038326", "text": "public int getTemperatureSang()\r\n\t\t{\r\n\t\treturn this.temperatureSang;\r\n\t\t}", "title": "" }, { "docid": "3c2b6ba050263325207109d6cb8bd10e", "score": "0.6026063", "text": "public double getTemperature(){\n return localTemperature;\n }", "title": "" }, { "docid": "afb9adf80c1fc9484351a959de569d77", "score": "0.6004148", "text": "double getUmfang(){\n return 2 * Math.PI * getRadius();\r\n }", "title": "" }, { "docid": "17ac24a72c7d419fa5c7da0f02cec6aa", "score": "0.59690493", "text": "double getTemperature();", "title": "" }, { "docid": "17ac24a72c7d419fa5c7da0f02cec6aa", "score": "0.59690493", "text": "double getTemperature();", "title": "" }, { "docid": "17ac24a72c7d419fa5c7da0f02cec6aa", "score": "0.59690493", "text": "double getTemperature();", "title": "" }, { "docid": "53ce3fe2457c475688d598559c48bf78", "score": "0.59475213", "text": "static void kwadrat() {\n\r\n pole = a * a;\r\n przekatna = a * Math.sqrt(2);\r\n obwod = 4 * a;\r\n\r\n pole = Math.round(pole);\r\n\r\n przekatna = Math.round(przekatna * 100);\r\n przekatna = przekatna / 100;\r\n\r\n obwod = Math.round(obwod);\r\n\r\n // System.out.println(\"Pole = \" + pole);\r\n // System.out.println(\"Przekątna = \" + przekatna);\r\n // System.out.println(\"Obwod = \" + obwod);\r\n\r\n }", "title": "" }, { "docid": "975a45bca2915552d052fe5c9ccc4792", "score": "0.59103626", "text": "float getAlti();", "title": "" }, { "docid": "277daf67d35713717fb5858348097638", "score": "0.5903644", "text": "private double getTemperature() {\n\t\treturn 24.0;\n\t}", "title": "" }, { "docid": "0cfc3c9c6326136ed3071eb2337bc574", "score": "0.58964896", "text": "public double stampajCenu() {\n\t\tdouble cena = 0;\n\t\tcena = this.cenaIzrade * 1.9 * (100 - this.musterija.getClanskaKarta().getPopust()) / 100;\n\t\treturn cena;\n\t}", "title": "" }, { "docid": "4f573261cf88e836cfd19d00d48b67ba", "score": "0.5889592", "text": "@Override\n\tpublic double tongDT() {\n\t\treturn this.tongDTXeNoiThanh() + this.tongDTXeNgoaiThanh();\n\t}", "title": "" }, { "docid": "a8158acca3dd7ad584606674ea1bd2dc", "score": "0.5854544", "text": "private void inicijalizacijaPodataka() {\n this.zavrsetak = \"\";\n this.trajanje = 0;\n this.brojObradenihPoruka = 0;\n this.brojDodanihIOT = 0;\n this.brojAzuriranihIOT = 0;\n this.brojNeispravnihPoruka = 0;\n\n Date date = new Date(System.currentTimeMillis());\n DateFormat formatter = new SimpleDateFormat(\"dd.MM.yyyy HH:mm:ss:SSS zzz\");\n\n this.pocetak = formatter.format(date);\n }", "title": "" }, { "docid": "c6b2b7e3aad8cd3e2f73bd338e206cb4", "score": "0.58501273", "text": "static double torstatistikenToreProSpiel() throws IOException {\n\t\tBundesliga bl = Bundesliga.loadFromResource();\n\t\tdouble tore = 0;\n\t\tfor(Spiel s: bl.spiele){\n\t\t\ttore += s.getToreGast() + s.getToreHeim();\n\t\t}\n\t\treturn tore/bl.spiele.size();\n\n\t}", "title": "" }, { "docid": "a0a81d75ef12c2d83867f23b33273763", "score": "0.584807", "text": "public double getTemp(int t){\n\t\tif(t < limit){\n\t\t\tdouble res = k * Math.exp( (-1) * lam * t);\n\t\t\treturn res;\n\t\t} else {\n\t\t\treturn 0.0;\n\t\t}\n\t}", "title": "" }, { "docid": "55273da5bf3986d8d259fc9e0ca9e1c2", "score": "0.58306336", "text": "static native float getTempo();", "title": "" }, { "docid": "6d6a48a5514adfc0689cee45af58dbb4", "score": "0.5823384", "text": "@Override\npublic double energVr() {\n\treturn kolicina * enVr;\n}", "title": "" }, { "docid": "2f2bea393330bd8fcabc1652b1345516", "score": "0.58108366", "text": "private static double changeCelciusToFarenhait (double temperature){\n return 32.0 / (9.0 /5.0) * temperature; // zmienno przecinkowe bo przyjmuje i zwraca double\n }", "title": "" }, { "docid": "d73134bc04bb586212f353724cbb1559", "score": "0.58095527", "text": "void regresiLinierBerganda(){\n // IS matriks terdefinisi\n // FS terbentuk solusi regresi linier berganda dari matriks\n // nilai baris di sini = nilai sampel\n int baris = this.baris; int kolom = this.kolom;\n double jml;\n Matriks X = new Matriks(baris, kolom - 1);\n Matriks XT = new Matriks(kolom - 1, baris);\n Matriks Y = new Matriks(baris, 1);\n Matriks XTX = new Matriks(baris, kolom);\n Matriks XTY = new Matriks(baris, 1);\n // Isi matriks X dengan matriks this, tanpa kolom terakhir\n for (int b = 0; b < baris; b++){\n for (int k = 0; k < (kolom - 1); k++){\n X.ubahIsi(b, k, this.isi[b][k]);\n }\n }\n // Isi matriks Y dengan indeks kolom = kolom -1\n for (int b = 0; b < baris; b++){\n Y.ubahIsi(b, 0, this.isi[b][kolom - 1]);\n }\n // Transpose matriks X\n XT = transpose(X);\n // Kali XT dengan X dan Y\n XTX = perkalianMatriks(XT, X);\n XTY = perkalianMatriks(XT, Y);\n // ubah ukuran matriks this ke (peubah_x + 1 x peubah_x + 1 ditambah kolom Y) dan alokasi memori matriks baru\n this.ubahBaris(kolom);\n this.ubahKolom(kolom + 1);\n this.isi = new double[this.baris][this.kolom];\n // Ubah isi matriks this yg ukurannya udah diubah\n for (int b = 0; b < this.baris; b++){\n for (int k = 0; k < this.kolom; k++){\n // Cek apabila b = 0 dan k = 0, maka isinya adalah jumlah sampel, dimana jumlah sampel = baris matriks sebelum diubah\n if (b == 0 && k == 0) {\n this.isi[b][k] = baris;\n } else if (b == 0 && k != 0 && k != this.kolom-1){ // Cek apabila b = 0 dan k != 0 dan k != kolom - 1, maka diisi jumlah X ke-n dan n = k - 1\n jml = 0;\n for (int i = 0; i < X.Baris(); i++){\n jml += X.Isi(i, k - 1);\n }\n this.isi[b][k] = jml;\n } else if (k == 0 && b != 0 && k != this.kolom-1){ // Cek apabila k = 0 dan b != 0 dan k != kolom - 1, maka diisi jumlah X ke-n dan n = k - 1\n jml = 0;\n for (int i = 0; i < X.Baris(); i++){\n jml += X.Isi(i, b - 1);\n }\n this.isi[b][k] = jml;\n } else if (k == this.kolom - 1){ // Cek apabila indeks k = kolom terakhir\n // Cek apabila b = 0\n if (b == 0){\n jml = 0;\n for (int i = 0; i < Y.Baris(); i++){\n jml += Y.Isi(i, 0);\n }\n this.isi[b][k] = jml;\n } else { // Selaim b = 0\n this.isi[b][k] = XTY.Isi(b - 1, 0);\n }\n } else {\n this.isi[b][k] = XTX.Isi(b-1, k-1);\n }\n }\n }\n // Lakukan gauss-Jordan pada matriks\n this.OBEGauss(this.baris, this.kolom);\n }", "title": "" }, { "docid": "caa989afbfc2d479a38234512ebdcc2e", "score": "0.58077097", "text": "int getTempo();", "title": "" }, { "docid": "caa989afbfc2d479a38234512ebdcc2e", "score": "0.58077097", "text": "int getTempo();", "title": "" }, { "docid": "74fd3d7bc5947f82409b40dfdc2ea752", "score": "0.5805187", "text": "public void testWaveThermDallas() {\t\t\t\n\t\ttry {\n\t\t\t// Test with value +125°C bits : 0000 0111 1101 0000 hexa : 0x07D0\n\t\t\tint MSB = 0x07;\n\t\t\tint LSB = 0xD0;\n\t\t\tdouble value = CoronisLib.parseDallasTemp(MSB, LSB);\t\t\n\t\t\tassertTrue(value== 125.0);\n\t\t\t// Test with value +85°C 0000 0101 0101 0000 0x0550\n\t\t\tMSB = 0x05;\n\t\t\tLSB = 0x50;\n\t\t\tvalue = CoronisLib.parseDallasTemp(MSB, LSB);\n\t\t\tassertTrue(value == 85.0);\n\t\t\t//Test with value -10.125°C 1111 1111 0101 1110 0xFF5E\n\t\t\tMSB = 0xFF;\n\t\t\tLSB = 0x5E;\n\t\t\tvalue = CoronisLib.parseDallasTemp(MSB, LSB);\n\t\t\tassertTrue(value == -10.125);\n\t\t\t//Test with value -55°C 1111 1100 1001 0000 0xFC90\n\t\t\tMSB = 0xFC;\n\t\t\tLSB = 0x90;\n\t\t\tvalue = CoronisLib.parseDallasTemp(MSB, LSB);\n\t\t\tassertTrue(value == -55.0);\n\t\t\t// Test with -25.0625 +125°C 1111 1110 0110 1111 0xFE6F\n\t\t\tMSB = 0xFE;\n\t\t\tLSB = 0x6F;\n\t\t\tvalue = CoronisLib.parseDallasTemp(MSB, LSB);\n\t\t\tassertTrue(value == -25.0625);\n\t\t\tMSB = 0x01;\n\t\t\tLSB = 0x41;\n\t\t\tvalue = CoronisLib.parseDallasTemp(MSB, LSB);\n\t\t\tassertTrue(value == 20.0625);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "7ca08d84d1a7512cc9e85fdf2e250794", "score": "0.57842827", "text": "public static void calculatetimenext() {\n double[] hangtruoc = new double[CFQNSHelper.jobsqueuecapacity + 1];\r\n // he so\r\n double[] a = new double[CFQNSHelper.jobsqueuecapacity + 1];\r\n double[] b = new double[CFQNSHelper.jobsqueuecapacity + 1];\r\n // xet dong 0\r\n double sum = 0;\r\n double sum1 = 0;\r\n hangtruoc[0] = 1;\r\n sum = sum + hangtruoc[0];\r\n // tong cac pi_ii:\r\n double sum2 = hangtruoc[0];\r\n for (int i = 1; i < CFQNSHelper.jobsqueuecapacity; i++) {\r\n hangtruoc[i] = hangtruoc[i - 1] * CFQNSHelper.lamda / (CFQNSHelper.lamda + i * CFQNSHelper.alpha);\r\n sum = sum + hangtruoc[i];\r\n sum1 = sum1 + hangtruoc[i] * (i - 0);\r\n }\r\n hangtruoc[CFQNSHelper.jobsqueuecapacity] = hangtruoc[CFQNSHelper.jobsqueuecapacity - 1] * CFQNSHelper.lamda / (CFQNSHelper.jobsqueuecapacity * CFQNSHelper.alpha);\r\n sum = sum + hangtruoc[CFQNSHelper.jobsqueuecapacity];\r\n\r\n // xet tu dong thu 1 tro di\r\n // pi_11:\r\n hangtruoc[1] = CFQNSHelper.lamda / CFQNSHelper.muy;\r\n sum = sum + hangtruoc[1];\r\n sum2 = sum2 + hangtruoc[1];\r\n // tinh he so:\r\n\r\n for (int i = 1; i < CFQNSHelper.jobsqueuecapacity; i++) { // i tu 1 den K-1\r\n // xet dong i:\r\n // tinh cac he so\r\n a[CFQNSHelper.jobsqueuecapacity] = (CFQNSHelper.jobsqueuecapacity - i + 1) * CFQNSHelper.alpha *\r\n hangtruoc[CFQNSHelper.jobsqueuecapacity] / ((CFQNSHelper.jobsqueuecapacity - i) * CFQNSHelper.alpha + i * CFQNSHelper.muy);\r\n\r\n b[CFQNSHelper.jobsqueuecapacity] = CFQNSHelper.lamda / ((CFQNSHelper.jobsqueuecapacity - i) * CFQNSHelper.alpha + i * CFQNSHelper.muy);\r\n\r\n for (int j = CFQNSHelper.jobsqueuecapacity - 1; j > i; j--) {\r\n a[j] = (i * CFQNSHelper.muy * a[j + 1] + (j - i + 1) * CFQNSHelper.alpha * hangtruoc[j])\r\n / (CFQNSHelper.lamda + (j - i) * CFQNSHelper.alpha + i * CFQNSHelper.muy - i * CFQNSHelper.muy * b[j + 1]);\r\n\r\n b[j] = CFQNSHelper.lamda / (CFQNSHelper.lamda + (j - i) * CFQNSHelper.alpha + i * CFQNSHelper.muy - i * CFQNSHelper.muy * b[j + 1]);\r\n }\r\n\r\n // tinh limiting probability cho dong thu i ke tu pi_i,i+1\r\n double temp = 0;\r\n for (int j = i + 1; j < CFQNSHelper.jobsqueuecapacity + 1; j++) {\r\n hangtruoc[j] = a[j] + b[j] * hangtruoc[j - 1];\r\n temp = temp + (j - i) * CFQNSHelper.alpha * hangtruoc[j];\r\n sum = sum + hangtruoc[j];\r\n sum1 = sum1 + hangtruoc[j] * (j - i);\r\n }\r\n\r\n // tinh limiting probability pi_i+1,i+1\r\n hangtruoc[i + 1] = temp / ((i + 1) * CFQNSHelper.muy);\r\n sum = sum + hangtruoc[i + 1];\r\n sum2 = sum2 + hangtruoc[i + 1];\r\n\r\n }\r\n\r\n // gia tri cua pi_00 = 1/sum\r\n // => tong cac pi_ii = sum2/sum\r\n // tinh timenext:\r\n CFQNSHelper.timenext = 1 / (CFQNSHelper.alpha * sum1 / sum);\r\n System.out.println(\"time next: \" + CFQNSHelper.timenext);\r\n\r\n// CFQNSHelper.timenext = 1/0.136;\r\n// System.out.println(\"time next: \"+ CFQNSHelper.timenext);\r\n }", "title": "" }, { "docid": "ac0e00a696ac1795ad2aa0c43488339c", "score": "0.57690483", "text": "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\tdouble taskas = 0;\n\t\tKeturkampis suvestasKeturkampis = new Keturkampis();\n\t\tSystem.out.print(\"Iveskite a tasko X koordinate: \");\n\t\tsuvestasKeturkampis.setaTaskasXKoordinate(input.nextDouble());\n\t\t//System.out.prdoubleln(arKvadratas.getaTaskasXKoordinate());\n\t\tSystem.out.print(\"Iveskite a tasko Y koordinate: \");\n\t\tsuvestasKeturkampis.setaTaskasYKoordinate(input.nextDouble());\n\t\tSystem.out.print(\"Iveskite b tasko X koordinate: \");\n\t\tsuvestasKeturkampis.setbTaskasXKoordinate(input.nextDouble());\n\t\tSystem.out.print(\"Iveskite b tasko Y koordinate: \");\n\t\tsuvestasKeturkampis.setbTaskasYKoordinate(input.nextDouble());\n\t\tSystem.out.print(\"Iveskite c tasko X koordinate: \");\n\t\tsuvestasKeturkampis.setcTaskasXKoordinate(input.nextDouble());\n\t\tSystem.out.print(\"Iveskite c tasko Y koordinate: \");\n\t\tsuvestasKeturkampis.setcTaskasYKoordinate(input.nextDouble());\n\t\tSystem.out.print(\"Iveskite d tasko X koordinate: \");\n\t\tsuvestasKeturkampis.setdTaskasXKoordinate(input.nextDouble());\n\t\tSystem.out.print(\"Iveskite d tasko y koordinate: \");\n\t\tsuvestasKeturkampis.setdTaskasYKoordinate(input.nextDouble());\n\t\t\n\t\t//patikrinti ar kvadratas?\n\t\tif(suvestasKeturkampis.arKvadratas(suvestasKeturkampis.getaTaskasXKoordinate(), suvestasKeturkampis.getaTaskasYKoordinate(), suvestasKeturkampis.getbTaskasXKoordinate(),\n\t\t\t\tsuvestasKeturkampis.getbTaskasYKoordinate(), suvestasKeturkampis.getcTaskasXKoordinate(), suvestasKeturkampis.getcTaskasYKoordinate(),\n\t\t\t\tsuvestasKeturkampis.getdTaskasXKoordinate(), suvestasKeturkampis.getdTaskasYKoordinate()) == true) {\n\t\t\tSystem.out.println(\"Ivesti taskai sudaro kvadrata\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Ivesti taskai kvadrato nesudaro\");\n\t\t}\n\t}", "title": "" }, { "docid": "3e98db45de27fb129c3e84c1d5478ad7", "score": "0.5768418", "text": "public double valorDeAluguel();", "title": "" }, { "docid": "ae14f98b6481644ada3291e720ef1311", "score": "0.576577", "text": "public double Localiser()\n\t{\n\tshort l = getShort(0x0870);\n\n\tdouble loc = (double)(l*360.0)/65536.0;\n\treturn loc;\n\t}", "title": "" }, { "docid": "a212b436945afa7bc0fcd1495479e0f8", "score": "0.5765067", "text": "public void nacrtaj(){\n //naredbe za crtanje pravougaonika\n }", "title": "" }, { "docid": "d7cb7fab4b3ed7aa65cbac1a014b6ff0", "score": "0.5759862", "text": "static double torstatustikenToreProErstligaspiel() throws IOException {\n\t\tBundesliga bl = Bundesliga.loadFromResource();\n\t\tList <Integer> ersteL = new LinkedList<>();\n\t\tfor(Verein v: bl.vereine.values()){\n\t\t\tif(v.getLiga() == 1){\n\t\t\t\tersteL.add(v.getId());\n\t\t\t}\n\t\t}\n\t\tdouble spiele = 0;\n\t\tint tore = 0;\n\t\tfor(Spiel s: bl.spiele){\n\t\t\tif(ersteL.contains(s.getHeim())){\n\t\t\t\ttore += s.getToreGast()+s.getToreHeim();\n\t\t\t\tspiele ++;\n\t\t\t}\n\t\t}\n\t\treturn tore/spiele;\n\t}", "title": "" }, { "docid": "cbdb0626b6d832dd241cde6eaa02bcc8", "score": "0.5750515", "text": "int getControllerTemperature();", "title": "" }, { "docid": "ee3891d8be13d1f53b60490feeff2e2c", "score": "0.57385737", "text": "@Override\r\n\tpublic double uyelikHesapla(double fiyat) {\n\t\treturn fiyat;\r\n\t}", "title": "" }, { "docid": "c221b19d6c347b07b56e32e10850e1ce", "score": "0.5735486", "text": "@Override\r\n\tpublic double calculerPerimetre() {\n\t\treturn (2*largeur)+(2*longueur);\r\n\t}", "title": "" }, { "docid": "940e058f07292de7bc7dd4c4cbc56664", "score": "0.5730913", "text": "private void actualizaTemperatura(){\n int tempActual = chimenea.getTemperatura();\n \n //Actualizamos Visualmente la Temperatura\n visualizaTemperatura(tempActual);\n }", "title": "" }, { "docid": "830a69888daa8bcd9b5f7885741b9f01", "score": "0.5727556", "text": "public int getShFridgeTemperature(){\r\n return localShFridgeTemperature;\r\n }", "title": "" }, { "docid": "16ff4c93bfef2666bf646b003a18e468", "score": "0.5726573", "text": "public void SettKurs(Double ValutaKurs) {\n kurs = ValutaKurs;\r\n }", "title": "" }, { "docid": "eb10996223a27c8038317c7d4b098e18", "score": "0.5710646", "text": "public long getNumerKonta() {\n return numerKonta;\n }", "title": "" }, { "docid": "38349427d13003cd348b1d96175d13a0", "score": "0.57076097", "text": "@Override\r\n\tpublic double karekokalma(double a) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "b3ce3ae026feb1e36f922d6980a080bb", "score": "0.5704989", "text": "public double calculatePhase(double T)\n{\n //\n // Constants\n //\n double tau_Sun = 8.32 / (1440.0*36525.0); // 8.32 min [cy]\n double beta,l_Moon,l_Sun;\n double [] moonLongLat;\n double pi2=2*Math.PI;\n //\n // Variables\n //\n l_Sun=EclipticPosition.getMiniSunLongitude (T-tau_Sun);\n moonLongLat=EclipticPosition.getMiniMoon (T);//4.348761468846075\n l_Moon=moonLongLat[0];//-0.039226153787816305\n beta=moonLongLat[1];\n\n\n double LongDiff = l_Moon - l_Sun;\n\n\n //if (LongDiff<0) LongDiff=LongDiff+pi2;\n// return ((LongDiff+Math.PI)%pi2)-Math.PI;\n return Modulo ( LongDiff+Math.PI,pi2)-Math.PI;\n}", "title": "" }, { "docid": "4693001f57c2e57f21cb8cbd8712d403", "score": "0.5696207", "text": "int getTemperature();", "title": "" }, { "docid": "4693001f57c2e57f21cb8cbd8712d403", "score": "0.5696207", "text": "int getTemperature();", "title": "" }, { "docid": "899e117a2e7b21482ee843111d69f9bc", "score": "0.569386", "text": "private static double calculaPesoPonderadoInicial(){\n int i=0;\n double coef = 0.0;\n \n for(i=0;i<DIAS_RELEVANTES;i++){\n coef += Math.pow((1+TAXA),i);\n }\n \n return MAX_FORMA/coef;\n }", "title": "" }, { "docid": "969c9773b4899df9cd1c2a0281dd1c0c", "score": "0.5693449", "text": "public int getTempo() {\n return tempo;\n }", "title": "" }, { "docid": "409b6e841bc4f72ba5b4c2050e25fbed", "score": "0.56805784", "text": "public abstract double calculPrixKilo();", "title": "" }, { "docid": "7e26c1fff64cbe87385f2552e4a5cb24", "score": "0.56794405", "text": "static void informacion_angulo (double n)\n {\n n = Math.PI/180*n; // otra forma sería n = Math.toRadians(n);\n \n System.out.println(\"seno: \" + Math.sin(n));\n System.out.println(\"coseno: \" + Math.cos(n));\n System.out.println(\"tangente: \" + Math.tan(n));\n }", "title": "" }, { "docid": "745431aca5abe3bb2bd2cb51d493794a", "score": "0.5672637", "text": "public void setTinhTrang(int tt){\n this.tinhTrang = tt;\n }", "title": "" }, { "docid": "99a7022c29f771e8ce2eb111cca5e607", "score": "0.5670452", "text": "public void tampilInformasi(){\n System.out.println(\"Merek Mobil : \"+merek);\n System.out.println(\"Warna Mobil : \"+warna);\n System.out.println(\"Stok Mobil : \"+stok);\n }", "title": "" }, { "docid": "fbedf9579c17519e0e92cc15ee9799d2", "score": "0.56688553", "text": "public double preparePowerToSetGsmStandAllone(double mocPozostalaDoUstawienia)\r\n {\n Hashtable<String,Double> maxPowerPerSrn=maxPowPerSrnGsmStandAlonePrepare();\r\n Hashtable<String,Double> PowerPerSrnTMP=(Hashtable<String,Double>)maxPowerPerSrn.clone();\r\n \r\n Hashtable<String,Double> maxPowerPerAntPass=maxPowPerAntPassPrepare(maxPowerPerSrn);\r\n Hashtable<String,Double> PowerPerAntPassTMP=(Hashtable<String,Double>)maxPowerPerAntPass.clone();\r\n Hashtable<String,Integer> TxPerAntPass=txNumPerAntPass();\r\n //for(int w=0;w<this.rru.size();w++)\r\n // ;\r\n Enumeration<String> srny= maxPowerPerSrn.keys();\r\n //System.out.println(\"///////////////MAKSYMLNE MOCE PER SRN Azymut=\"+this.azymut+\" Pasmo=\"+this.pasmo+\" sektor ids=\"+this.sektors_Id.toString()+\" snry=\"+this.getSRNs()+\"/////////\");\r\n double maxAllRRU=0;\r\n while(srny.hasMoreElements())\r\n {\r\n String key=srny.nextElement();\r\n // System.out.println(\"SRN\"+key+\" MOC MAKSYMALNA RRU=\"+maxPowerPerSrn.get(key));\r\n maxAllRRU=maxAllRRU+maxPowerPerSrn.get(key);\r\n }\r\n // System.out.println(\"///////////MAKSYMLNE MOCE PER SectorEq Azymut=\"+this.azymut+\" Pasmo=\"+this.pasmo+\" sektor ids=\"+this.sektors_Id.toString()+\"/////////\");\r\n Enumeration<String> eqipmenty= maxPowerPerAntPass.keys();\r\n double maxAllEq=0;\r\n while(eqipmenty.hasMoreElements())\r\n {\r\n String key=eqipmenty.nextElement();\r\n // System.out.println(\"SECEQID=\"+key+\" MOC MAKSYMALNA=\"+maxAllEq);\r\n maxAllEq=maxAllEq+maxPowerPerAntPass.get(key);\r\n }\r\n if(maxAllEq>maxAllRRU)\r\n maxAllEq=maxAllRRU;\r\n \r\n \r\n //System.out.println(\"MAX SPRZETOWY=\"+(maxAllRRU)+\" MAX KONFIGURACYJNY=\"+maxAllEq+\" DO USTAWIENIA(3% tolerancji)=\"+(this.mocAsOs*(1.0-tolerancja)));\r\n /*if((this.mocAsOs*(1.0-tolerancja))>maxAllRRU||(this.mocAsOs*(1.0-tolerancja))>maxAllEq)\r\n {\r\n //System.out.println(\"Moc do ustawienia=\"+this.mocAsOs+\"(\"+(this.mocAsOs*(1.0-tolerancja))+\") przekracza mozliwosci sprzetowe.Konf RRU maxPow=\"+maxAllRRU+\", Konf SecEq maxPow=\"+maxAllEq);\r\n valuOutOfRange=true;\r\n errors=errors+\"Moc do ustawienia=\"+this.mocAsOs+\"(\"+(this.mocAsOs*(1.0-tolerancja))+\"). Mozliwosci hardware'owe=\"+maxAllRRU+\", z wuzglednieniem aktualnej konfiguracji=\"+maxAllEq+\"\\r\\n\";\r\n }\r\n else*/\r\n double sumaryPowToSet=mocPozostalaDoUstawienia;\r\n {\r\n \r\n \r\n /*if((mocPozostalaDoUstawienia)>maxAllRRU)\r\n sumaryPowToSet=maxAllRRU;\r\n \r\n if((mocPozostalaDoUstawienia)>maxAllEq)\r\n sumaryPowToSet=maxAllEq;*/\r\n \r\n \r\n \r\n for(int a=0;a<this.komorki.size();a++)\r\n {\r\n \r\n String eqId=this.komorki.get(a).getPosition(); \r\n String srnId=null;\r\n boolean locGr=false; \r\n \r\n if(this.komorki.get(a).getPriorytet()==Komorka.KOMORKA_GSM)\r\n {\r\n srnId=this.komorki.get(a).getPosition();\r\n \r\n if(((KomorkaGsm)this.komorki.get(a)).isLocGr())\r\n locGr=true;\r\n }\r\n // System.out.println(\"KOMORKA=\"+this.komorki.get(a).getName()+\" srnId=\"+srnId+\" eqId=\"+eqId+\" PowerPerSrnTMP.get(srnId)=\"+PowerPerSrnTMP.get(srnId)+\" PowerPerEqTMP.get(eqId)=\"+PowerPerEqTMP.get(eqId));\r\n if(srnId!=null&&PowerPerSrnTMP.get(srnId)!=null)\r\n {\r\n //PowerPerSrnTMP\r\n //PowerPerEqTMP\r\n double powToSetOnCell=-1;\r\n if(sumaryPowToSet==0)\r\n {\r\n powToSetOnCell=0; \r\n }\r\n else if(PowerPerSrnTMP.get(srnId)>=sumaryPowToSet)//&&komorki.get(a).getMaximumCellPower()>=sumaryPowToSet) \r\n {\r\n powToSetOnCell=sumaryPowToSet;\r\n PowerPerSrnTMP.put(srnId, PowerPerSrnTMP.get(srnId)-powToSetOnCell);\r\n \r\n sumaryPowToSet=sumaryPowToSet-powToSetOnCell;\r\n }\r\n else\r\n {\r\n if(PowerPerSrnTMP.get(srnId)<sumaryPowToSet)\r\n {\r\n powToSetOnCell=PowerPerSrnTMP.get(srnId);\r\n \r\n PowerPerSrnTMP.put(srnId,0.0);\r\n sumaryPowToSet=sumaryPowToSet-powToSetOnCell; \r\n }\r\n \r\n }\r\n if(powToSetOnCell<mocPozostalaDoUstawienia*(tolerancja))\r\n {\r\n powToSetOnCell=0.0;\r\n //sumaryPowToSet=0.0;\r\n }\r\n \r\n if(powToSetOnCell==0.0)\r\n {\r\n if(locGr)\r\n this.komorki.get(a).setPowerToSet(0.1);\r\n else\r\n this.komorki.get(a).setPowerToSet(powToSetOnCell);\r\n }\r\n else\r\n this.komorki.get(a).setPowerToSet(powToSetOnCell); \r\n }\r\n\r\n }\r\n if(sumaryPowToSet<mocPozostalaDoUstawienia*(tolerancja))\r\n {\r\n sumaryPowToSet=0.0;\r\n //sumaryPowToSet=0.0;\r\n }\r\n else if(sumaryPowToSet<(tolerancja*this.mocAsOs))\r\n sumaryPowToSet=0.0;\r\n \r\n if(sumaryPowToSet>0.0)\r\n {\r\n \r\n //valuOutOfRange=true;\r\n errors=errors+\"Moc do ustawienia=\"+this.mocAsOs+\"W przekracza mozliwosci sprzetowe.Po podziale mocy per komorki pozostalo=\"+sumaryPowToSet+\"W .Mozliwosci sprzetowe=\"+maxAllRRU+\"W, Aktualna konfiguracja umozliwia=\"+maxAllEq+\"W\\r\\n\";\r\n \r\n }\r\n }\r\n \r\n return sumaryPowToSet;\r\n \r\n }", "title": "" }, { "docid": "892fccd9f9735818cfda4bf5cfb537ca", "score": "0.56672", "text": "@Override\r\n\tpublic int hitungBiayaKopi(int jumlahHalaman) {\n\t\treturn jumlahHalaman*2000;\r\n\t}", "title": "" }, { "docid": "24f2eb93fb1ef57b0f90d7d69e0def28", "score": "0.5661512", "text": "public int getkilometros() {\n return kilometros; //retorna los kilometros\n }", "title": "" }, { "docid": "a0626476b093a2a2ac3f7de0a77d9e56", "score": "0.5659309", "text": "private static double T3(double voz, double a1) {\n\t return -voz/a1;\t\n\t}", "title": "" }, { "docid": "86b8b1c51ea91ded2baa76f250589a39", "score": "0.56530184", "text": "public void tampilurutankode() { \r\n SimpleDateFormat tgl = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n form.getTxttgnota().setText(String.valueOf(tgl.format(new Date())));\r\n \r\n Nota D = new Nota();\r\n model.autonumber(D);\r\n String no_mor=String.valueOf(model.autonumber(D));\r\n String oke=\"000\".substring(0, 4 - no_mor.length());\r\n form.getTxtnonota().setText( \"NO\"+ oke +\"\"+no_mor );\r\n }", "title": "" }, { "docid": "a72c2a279fc7fa376256e17b383b8e3a", "score": "0.56511843", "text": "double getCicada();", "title": "" }, { "docid": "50e125e93f39dd9f8af4e1e29a07c077", "score": "0.5648083", "text": "private double hitungLuas(){\r\n return sudut/360 * super.getLuas() - 1.0/2*Math.pow(super.getRadius(),2)*Math.sin(Math.toRadians(sudut));\r\n }", "title": "" }, { "docid": "8621882625782f3eca44c555fa56ab5a", "score": "0.5639877", "text": "private static double changeFartoCl (double temperature){\n return (temperature - 32.0)* 5.0/9.0;\n }", "title": "" }, { "docid": "eef81f2a05096c075b1905a81fbe939f", "score": "0.56381315", "text": "public void jaaKortit() {\n pelaaja.setKortti(korttipakka.annaKortti());\n pelaaja.setKortti(korttipakka.annaKortti());\n\n jakaja.setKortti(korttipakka.annaKortti());\n jakaja.setKortti(korttipakka.annaKortti());\n }", "title": "" }, { "docid": "a79045f84255be98f32bc11238429c4e", "score": "0.5625516", "text": "public Latihan5Kalkulator() {\n initComponents();\n angka =\"\";\n }", "title": "" }, { "docid": "506f845c321e09416aec66c8c6da871f", "score": "0.5617127", "text": "public ArrayList<Double> LEO_to_Escape(double alt_LEO) { // l'altitude LEO en m � laquelle le lanceur peut amener sans \n\t\t\t\t\t\t\t\t\t\t\t\t//compter le rayon de la TERRE\n\t\tdouble v0=Math.sqrt(Constant.mu_T/(alt_LEO+Constant.RT));\n\t\tdouble m0=this.mass;\n\t\tdouble v=v0;\n\t\tdouble vnew=v0;\n\t\tdouble dV=0.0;\n\t\tdouble dV_global=0;\n\t\tdouble m=m0;\n\t\tdouble m_c=0;\n\t\tdouble a=alt_LEO+Constant.RT;\n\t\tdouble t=0.0;\n\t\tint i=0;\n\t\tArrayList<Double> list_param= new ArrayList<Double>();\n\t\t//System.out.println(a);\n\t\twhile (a<Constant.alt_SOI_T) {\n\t\t\ta=a/Math.pow((1-this.poussee*Constant.s2d/(m*v)),2);\n\t\t\tvnew=Math.sqrt(Constant.mu_T/a);\n\t\t\tdV=vnew-v;\n\t\t\tdV_global=dV_global+Math.abs(dV);\n\t\t\tm_c=m_c+m*(1-Math.exp(-Math.abs(dV)/(this.Isp*Constant.g0)));\n\t\t\tv=vnew;\n\t\t\ti=i+1;\n\t\t\tt=t+Constant.s2d;\n\t\t\t//System.out.println(dV);\n\t\t}\n\t\t/**System.out.println(\"Terminé\");\n\t\tSystem.out.println(\"Temps (jour): \");\n\t\tSystem.out.println(t/86400);\n\t\tSystem.out.println(i);\n\t\tSystem.out.println(\"Masse: \");\n\t\tSystem.out.println(m);\n\t\t*/\n\t\tlist_param.add(dV_global);\n\t\tlist_param.add(m_c);\n\t\tlist_param.add(t/Constant.s2d); //en jours\n\t\treturn list_param;\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "6990eba3657735e713c274ba3c06634c", "score": "0.5617076", "text": "static double torstatistikenToreProSpieltag2teLiga() throws IOException {\n\t\tBundesliga bl = Bundesliga.loadFromResource();\n\t\tList <Integer> zweiteL = new LinkedList<>();\n\t\tfor(Verein v: bl.vereine.values()){\n\t\t\tif(v.getLiga() == 2){\n\t\t\t\tzweiteL.add(v.getId());\n\t\t\t}\n\t\t}\n\n\t\tdouble tore = 0;\n\t\tdouble spielT = 0;\n\t\tfor(Spiel s: bl.spiele){\n\t\t\tif(zweiteL.contains(s.getHeim())){\n\t\t\t\ttore += s.getToreGast()+ s.getToreHeim();\n\t\t\t\tif (spielT < s.getSpieltag()){\n\t\t\t\t\tspielT = s.getSpieltag();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn tore/spielT;\n\t}", "title": "" }, { "docid": "d7f708f750fb31d927669e654b7e55a0", "score": "0.5615306", "text": "public void poistaKaikki() {\n Oppilas oppilas = ensimmainen;\n while (oppilas != null) {\n ensimmainen = null;\n oppilas = oppilas.seuraava;\n }\n oppilaita = 0;\n }", "title": "" }, { "docid": "c74109088aefbd47aaebeec98ad53373", "score": "0.560989", "text": "public float getIntensidadeSolar(){\n\t\t\n\t\tfloat hora = (float) (tempo/3600);\n\t\t\n\t\treturn (float) ((-27.778f * (Math.pow(hora, 2))) + (666.667f * hora) - 3000.024f) ;\n\t}", "title": "" }, { "docid": "9b688cd9cd51ff3c4ac939603f88b312", "score": "0.5607365", "text": "public double getChilometraggio() {\n return chilometraggio;\n }", "title": "" }, { "docid": "18d9a4cfe5b597afa61d8c1a72d9be25", "score": "0.55982274", "text": "public static void laskekeskiarvot() {\n for( int i = 0; i < rivit; i++ ) {\n for( int j = 0; j < energiasarakkeet; j++ ) {\n liikeenergiakeskiarvot[i] += liikeenergiadata[i][j];\n potentiaalienergiakeskiarvot[i] += potentiaalienergiadata[i][j];\n }\n liikeenergiakeskiarvot[i] = liikeenergiakeskiarvot[i]/energiasarakkeet;\n potentiaalienergiakeskiarvot[i] = potentiaalienergiakeskiarvot[i]/energiasarakkeet;\n }\n }", "title": "" }, { "docid": "b12530795c9c7730255fafa681d29619", "score": "0.55980915", "text": "@Override\r\n\tpublic void greateTemperament() {\n\t\tSystem.out.println(this.name+\"的气质很好!\");\r\n\t}", "title": "" }, { "docid": "aa5a5158f8538e533f42e387a1e2fa0a", "score": "0.5597902", "text": "public double getSetPoint() {\r\n\t\treturn temperatura(Byte1 & 0x3F,(Byte1 & 0x80) >> 7);\r\n\t}", "title": "" }, { "docid": "8109f41ebc99f151207c7b1d7dddacea", "score": "0.55975693", "text": "public double getKio() {\n\t\treturn this.kilo;\n\t}", "title": "" }, { "docid": "7a5216bd4689911e2fe5ebaea545deb0", "score": "0.559397", "text": "public void ustalWspPrzedmiotu() {\n\t\tint bokRamki = losuj.nextInt(4) ;\n\t\t\n\t\tif( bokRamki == 0 ) {\n\t\t\tpolozenieX = ( losuj.nextInt( 47 ) + 3 ) * 10 ; \n\t\t\tpolozenieY = ( losuj.nextInt( 3 ) + 3 ) * 10 ;\n\t\t}\n\t\telse if( bokRamki == 1 ) {\n\t\t\tpolozenieX = ( losuj.nextInt( 3 ) + 47 ) * 10 ;\n\t\t\tpolozenieY = ( losuj.nextInt( 31 ) + 3 ) * 10 ;\n\t\t}\n\t\telse if( bokRamki == 2 ) {\n\t\t\tpolozenieX = ( losuj.nextInt( 47 ) + 3 ) * 10 ;\n\t\t\tpolozenieY = ( losuj.nextInt( 3 ) + 31 ) * 10 ;\n\t\t}\n\t\telse if( bokRamki == 3 ) {\n\t\t\tpolozenieX = ( losuj.nextInt( 3 ) + 3 ) * 10 ;\n\t\t\tpolozenieY = ( losuj.nextInt( 31 ) + 3 ) * 10 ;\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "29c52b0ca2f9587a8cf3705d64bfee8f", "score": "0.55884784", "text": "@Override\n\tpublic double getSalaire() {\n\t\treturn (nbJours * montantJournalier);\n\t}", "title": "" }, { "docid": "752e22c68c934be269fe87a334141cfa", "score": "0.5587535", "text": "public int getTanggalLahir() {\n return tanggalLahir;\r\n }", "title": "" }, { "docid": "f5a4e630edb1f474bea78e33c8a51784", "score": "0.55873346", "text": "public double mideAzucar(String time)\r\n\t{\n\t\treturn azucar;\r\n\t}", "title": "" }, { "docid": "3e14dd63eb01fb976f0391ce034dd56f", "score": "0.5586633", "text": "public static double CalcUTCI(double Ta, double va, double Tmrt, double RH)\n {\n\n if (CheckIfInputsValid(Ta, va, Tmrt, RH) != InputsChecks.Pass) return Double.MIN_VALUE;\n\n double ehPa = es(Ta) * (RH / 100.0);\n double D_Tmrt = Tmrt - Ta;\n double Pa = ehPa / 10.0;// convert vapour pressure to kPa\n\n //region whoa_mamma\n double UTCI_approx = Ta +\n (0.607562052) +\n (-0.0227712343) * Ta +\n (8.06470249 * Math.pow(10, (-4))) * Ta * Ta +\n (-1.54271372 * Math.pow(10, (-4))) * Ta * Ta * Ta +\n (-3.24651735 * Math.pow(10, (-6))) * Ta * Ta * Ta * Ta +\n (7.32602852 * Math.pow(10, (-8))) * Ta * Ta * Ta * Ta * Ta +\n (1.35959073 * Math.pow(10, (-9))) * Ta * Ta * Ta * Ta * Ta * Ta +\n (-2.25836520) * va +\n (0.0880326035) * Ta * va +\n (0.00216844454) * Ta * Ta * va +\n (-1.53347087 * Math.pow(10, (-5))) * Ta * Ta * Ta * va +\n (-5.72983704 * Math.pow(10, (-7))) * Ta * Ta * Ta * Ta * va +\n (-2.55090145 * Math.pow(10, (-9))) * Ta * Ta * Ta * Ta * Ta * va +\n (-0.751269505) * va * va +\n (-0.00408350271) * Ta * va * va +\n (-5.21670675 * Math.pow(10, (-5))) * Ta * Ta * va * va +\n (1.94544667 * Math.pow(10, (-6))) * Ta * Ta * Ta * va * va +\n (1.14099531 * Math.pow(10, (-8))) * Ta * Ta * Ta * Ta * va * va +\n (0.158137256) * va * va * va +\n (-6.57263143 * Math.pow(10, (-5))) * Ta * va * va * va +\n (2.22697524 * Math.pow(10, (-7))) * Ta * Ta * va * va * va +\n (-4.16117031 * Math.pow(10, (-8))) * Ta * Ta * Ta * va * va * va +\n (-0.0127762753) * va * va * va * va +\n (9.66891875 * Math.pow(10, (-6))) * Ta * va * va * va * va +\n (2.52785852 * Math.pow(10, (-9))) * Ta * Ta * va * va * va * va +\n (4.56306672 * Math.pow(10, (-4))) * va * va * va * va * va +\n (-1.74202546 * Math.pow(10, (-7))) * Ta * va * va * va * va * va +\n (-5.91491269 * Math.pow(10, (-6))) * va * va * va * va * va * va +\n (0.398374029) * D_Tmrt +\n (1.83945314 * Math.pow(10, (-4))) * Ta * D_Tmrt +\n (-1.73754510 * Math.pow(10, (-4))) * Ta * Ta * D_Tmrt +\n (-7.60781159 * Math.pow(10, (-7))) * Ta * Ta * Ta * D_Tmrt +\n (3.77830287 * Math.pow(10, (-8))) * Ta * Ta * Ta * Ta * D_Tmrt +\n (5.43079673 * Math.pow(10, (-10))) * Ta * Ta * Ta * Ta * Ta * D_Tmrt +\n (-0.0200518269) * va * D_Tmrt +\n (8.92859837 * Math.pow(10, (-4))) * Ta * va * D_Tmrt +\n (3.45433048 * Math.pow(10, (-6))) * Ta * Ta * va * D_Tmrt +\n (-3.77925774 * Math.pow(10, (-7))) * Ta * Ta * Ta * va * D_Tmrt +\n (-1.69699377 * Math.pow(10, (-9))) * Ta * Ta * Ta * Ta * va * D_Tmrt +\n (1.69992415 * Math.pow(10, (-4))) * va * va * D_Tmrt +\n (-4.99204314 * Math.pow(10, (-5))) * Ta * va * va * D_Tmrt +\n (2.47417178 * Math.pow(10, (-7))) * Ta * Ta * va * va * D_Tmrt +\n (1.07596466 * Math.pow(10, (-8))) * Ta * Ta * Ta * va * va * D_Tmrt +\n (8.49242932 * Math.pow(10, (-5))) * va * va * va * D_Tmrt +\n (1.35191328 * Math.pow(10, (-6))) * Ta * va * va * va * D_Tmrt +\n (-6.21531254 * Math.pow(10, (-9))) * Ta * Ta * va * va * va * D_Tmrt +\n (-4.99410301 * Math.pow(10, (-6))) * va * va * va * va * D_Tmrt +\n (-1.89489258 * Math.pow(10, (-8))) * Ta * va * va * va * va * D_Tmrt +\n (8.15300114 * Math.pow(10, (-8))) * va * va * va * va * va * D_Tmrt +\n (7.55043090 * Math.pow(10, (-4))) * D_Tmrt * D_Tmrt +\n (-5.65095215 * Math.pow(10, (-5))) * Ta * D_Tmrt * D_Tmrt +\n (-4.52166564 * Math.pow(10, (-7))) * Ta * Ta * D_Tmrt * D_Tmrt +\n (2.46688878 * Math.pow(10, (-8))) * Ta * Ta * Ta * D_Tmrt * D_Tmrt +\n (2.42674348 * Math.pow(10, (-10))) * Ta * Ta * Ta * Ta * D_Tmrt * D_Tmrt +\n (1.54547250 * Math.pow(10, (-4))) * va * D_Tmrt * D_Tmrt +\n (5.24110970 * Math.pow(10, (-6))) * Ta * va * D_Tmrt * D_Tmrt +\n (-8.75874982 * Math.pow(10, (-8))) * Ta * Ta * va * D_Tmrt * D_Tmrt +\n (-1.50743064 * Math.pow(10, (-9))) * Ta * Ta * Ta * va * D_Tmrt * D_Tmrt +\n (-1.56236307 * Math.pow(10, (-5))) * va * va * D_Tmrt * D_Tmrt +\n (-1.33895614 * Math.pow(10, (-7))) * Ta * va * va * D_Tmrt * D_Tmrt +\n (2.49709824 * Math.pow(10, (-9))) * Ta * Ta * va * va * D_Tmrt * D_Tmrt +\n (6.51711721 * Math.pow(10, (-7))) * va * va * va * D_Tmrt * D_Tmrt +\n (1.94960053 * Math.pow(10, (-9))) * Ta * va * va * va * D_Tmrt * D_Tmrt +\n (-1.00361113 * Math.pow(10, (-8))) * va * va * va * va * D_Tmrt * D_Tmrt +\n (-1.21206673 * Math.pow(10, (-5))) * D_Tmrt * D_Tmrt * D_Tmrt +\n (-2.18203660 * Math.pow(10, (-7))) * Ta * D_Tmrt * D_Tmrt * D_Tmrt +\n (7.51269482 * Math.pow(10, (-9))) * Ta * Ta * D_Tmrt * D_Tmrt * D_Tmrt +\n (9.79063848 * Math.pow(10, (-11))) * Ta * Ta * Ta * D_Tmrt * D_Tmrt * D_Tmrt +\n (1.25006734 * Math.pow(10, (-6))) * va * D_Tmrt * D_Tmrt * D_Tmrt +\n (-1.81584736 * Math.pow(10, (-9))) * Ta * va * D_Tmrt * D_Tmrt * D_Tmrt +\n (-3.52197671 * Math.pow(10, (-10))) * Ta * Ta * va * D_Tmrt * D_Tmrt * D_Tmrt +\n (-3.36514630 * Math.pow(10, (-8))) * va * va * D_Tmrt * D_Tmrt * D_Tmrt +\n (1.35908359 * Math.pow(10, (-10))) * Ta * va * va * D_Tmrt * D_Tmrt * D_Tmrt +\n (4.17032620 * Math.pow(10, (-10))) * va * va * va * D_Tmrt * D_Tmrt * D_Tmrt +\n (-1.30369025 * Math.pow(10, (-9))) * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt +\n (4.13908461 * Math.pow(10, (-10))) * Ta * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt +\n (9.22652254 * Math.pow(10, (-12))) * Ta * Ta * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt +\n (-5.08220384 * Math.pow(10, (-9))) * va * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt +\n (-2.24730961 * Math.pow(10, (-11))) * Ta * va * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt +\n (1.17139133 * Math.pow(10, (-10))) * va * va * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt +\n (6.62154879 * Math.pow(10, (-10))) * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt +\n (4.03863260 * Math.pow(10, (-13))) * Ta * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt +\n (1.95087203 * Math.pow(10, (-12))) * va * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt +\n (-4.73602469 * Math.pow(10, (-12))) * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt +\n (5.12733497) * Pa +\n (-0.312788561) * Ta * Pa +\n (-0.0196701861) * Ta * Ta * Pa +\n (9.99690870 * Math.pow(10, (-4))) * Ta * Ta * Ta * Pa +\n (9.51738512 * Math.pow(10, (-6))) * Ta * Ta * Ta * Ta * Pa +\n (-4.66426341 * Math.pow(10, (-7))) * Ta * Ta * Ta * Ta * Ta * Pa +\n (0.548050612) * va * Pa +\n (-0.00330552823) * Ta * va * Pa +\n (-0.00164119440) * Ta * Ta * va * Pa +\n (-5.16670694 * Math.pow(10, (-6))) * Ta * Ta * Ta * va * Pa +\n (9.52692432 * Math.pow(10, (-7))) * Ta * Ta * Ta * Ta * va * Pa +\n (-0.0429223622) * va * va * Pa +\n (0.00500845667) * Ta * va * va * Pa +\n (1.00601257 * Math.pow(10, (-6))) * Ta * Ta * va * va * Pa +\n (-1.81748644 * Math.pow(10, (-6))) * Ta * Ta * Ta * va * va * Pa +\n (-1.25813502 * Math.pow(10, (-3))) * va * va * va * Pa +\n (-1.79330391 * Math.pow(10, (-4))) * Ta * va * va * va * Pa +\n (2.34994441 * Math.pow(10, (-6))) * Ta * Ta * va * va * va * Pa +\n (1.29735808 * Math.pow(10, (-4))) * va * va * va * va * Pa +\n (1.29064870 * Math.pow(10, (-6))) * Ta * va * va * va * va * Pa +\n (-2.28558686 * Math.pow(10, (-6))) * va * va * va * va * va * Pa +\n (-0.0369476348) * D_Tmrt * Pa +\n (0.00162325322) * Ta * D_Tmrt * Pa +\n (-3.14279680 * Math.pow(10, (-5))) * Ta * Ta * D_Tmrt * Pa +\n (2.59835559 * Math.pow(10, (-6))) * Ta * Ta * Ta * D_Tmrt * Pa +\n (-4.77136523 * Math.pow(10, (-8))) * Ta * Ta * Ta * Ta * D_Tmrt * Pa +\n (8.64203390 * Math.pow(10, (-3))) * va * D_Tmrt * Pa +\n (-6.87405181 * Math.pow(10, (-4))) * Ta * va * D_Tmrt * Pa +\n (-9.13863872 * Math.pow(10, (-6))) * Ta * Ta * va * D_Tmrt * Pa +\n (5.15916806 * Math.pow(10, (-7))) * Ta * Ta * Ta * va * D_Tmrt * Pa +\n (-3.59217476 * Math.pow(10, (-5))) * va * va * D_Tmrt * Pa +\n (3.28696511 * Math.pow(10, (-5))) * Ta * va * va * D_Tmrt * Pa +\n (-7.10542454 * Math.pow(10, (-7))) * Ta * Ta * va * va * D_Tmrt * Pa +\n (-1.24382300 * Math.pow(10, (-5))) * va * va * va * D_Tmrt * Pa +\n (-7.38584400 * Math.pow(10, (-9))) * Ta * va * va * va * D_Tmrt * Pa +\n (2.20609296 * Math.pow(10, (-7))) * va * va * va * va * D_Tmrt * Pa +\n (-7.32469180 * Math.pow(10, (-4))) * D_Tmrt * D_Tmrt * Pa +\n (-1.87381964 * Math.pow(10, (-5))) * Ta * D_Tmrt * D_Tmrt * Pa +\n (4.80925239 * Math.pow(10, (-6))) * Ta * Ta * D_Tmrt * D_Tmrt * Pa +\n (-8.75492040 * Math.pow(10, (-8))) * Ta * Ta * Ta * D_Tmrt * D_Tmrt * Pa +\n (2.77862930 * Math.pow(10, (-5))) * va * D_Tmrt * D_Tmrt * Pa +\n (-5.06004592 * Math.pow(10, (-6))) * Ta * va * D_Tmrt * D_Tmrt * Pa +\n (1.14325367 * Math.pow(10, (-7))) * Ta * Ta * va * D_Tmrt * D_Tmrt * Pa +\n (2.53016723 * Math.pow(10, (-6))) * va * va * D_Tmrt * D_Tmrt * Pa +\n (-1.72857035 * Math.pow(10, (-8))) * Ta * va * va * D_Tmrt * D_Tmrt * Pa +\n (-3.95079398 * Math.pow(10, (-8))) * va * va * va * D_Tmrt * D_Tmrt * Pa +\n (-3.59413173 * Math.pow(10, (-7))) * D_Tmrt * D_Tmrt * D_Tmrt * Pa +\n (7.04388046 * Math.pow(10, (-7))) * Ta * D_Tmrt * D_Tmrt * D_Tmrt * Pa +\n (-1.89309167 * Math.pow(10, (-8))) * Ta * Ta * D_Tmrt * D_Tmrt * D_Tmrt * Pa +\n (-4.79768731 * Math.pow(10, (-7))) * va * D_Tmrt * D_Tmrt * D_Tmrt * Pa +\n (7.96079978 * Math.pow(10, (-9))) * Ta * va * D_Tmrt * D_Tmrt * D_Tmrt * Pa +\n (1.62897058 * Math.pow(10, (-9))) * va * va * D_Tmrt * D_Tmrt * D_Tmrt * Pa +\n (3.94367674 * Math.pow(10, (-8))) * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt * Pa +\n (-1.18566247 * Math.pow(10, (-9))) * Ta * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt * Pa +\n (3.34678041 * Math.pow(10, (-10))) * va * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt * Pa +\n (-1.15606447 * Math.pow(10, (-10))) * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt * Pa +\n (-2.80626406) * Pa * Pa +\n (0.548712484) * Ta * Pa * Pa +\n (-0.00399428410) * Ta * Ta * Pa * Pa +\n (-9.54009191 * Math.pow(10, (-4))) * Ta * Ta * Ta * Pa * Pa +\n (1.93090978 * Math.pow(10, (-5))) * Ta * Ta * Ta * Ta * Pa * Pa +\n (-0.308806365) * va * Pa * Pa +\n (0.0116952364) * Ta * va * Pa * Pa +\n (4.95271903 * Math.pow(10, (-4))) * Ta * Ta * va * Pa * Pa +\n (-1.90710882 * Math.pow(10, (-5))) * Ta * Ta * Ta * va * Pa * Pa +\n (0.00210787756) * va * va * Pa * Pa +\n (-6.98445738 * Math.pow(10, (-4))) * Ta * va * va * Pa * Pa +\n (2.30109073 * Math.pow(10, (-5))) * Ta * Ta * va * va * Pa * Pa +\n (4.17856590 * Math.pow(10, (-4))) * va * va * va * Pa * Pa +\n (-1.27043871 * Math.pow(10, (-5))) * Ta * va * va * va * Pa * Pa +\n (-3.04620472 * Math.pow(10, (-6))) * va * va * va * va * Pa * Pa +\n (0.0514507424) * D_Tmrt * Pa * Pa +\n (-0.00432510997) * Ta * D_Tmrt * Pa * Pa +\n (8.99281156 * Math.pow(10, (-5))) * Ta * Ta * D_Tmrt * Pa * Pa +\n (-7.14663943 * Math.pow(10, (-7))) * Ta * Ta * Ta * D_Tmrt * Pa * Pa +\n (-2.66016305 * Math.pow(10, (-4))) * va * D_Tmrt * Pa * Pa +\n (2.63789586 * Math.pow(10, (-4))) * Ta * va * D_Tmrt * Pa * Pa +\n (-7.01199003 * Math.pow(10, (-6))) * Ta * Ta * va * D_Tmrt * Pa * Pa +\n (-1.06823306 * Math.pow(10, (-4))) * va * va * D_Tmrt * Pa * Pa +\n (3.61341136 * Math.pow(10, (-6))) * Ta * va * va * D_Tmrt * Pa * Pa +\n (2.29748967 * Math.pow(10, (-7))) * va * va * va * D_Tmrt * Pa * Pa +\n (3.04788893 * Math.pow(10, (-4))) * D_Tmrt * D_Tmrt * Pa * Pa +\n (-6.42070836 * Math.pow(10, (-5))) * Ta * D_Tmrt * D_Tmrt * Pa * Pa +\n (1.16257971 * Math.pow(10, (-6))) * Ta * Ta * D_Tmrt * D_Tmrt * Pa * Pa +\n (7.68023384 * Math.pow(10, (-6))) * va * D_Tmrt * D_Tmrt * Pa * Pa +\n (-5.47446896 * Math.pow(10, (-7))) * Ta * va * D_Tmrt * D_Tmrt * Pa * Pa +\n (-3.59937910 * Math.pow(10, (-8))) * va * va * D_Tmrt * D_Tmrt * Pa * Pa +\n (-4.36497725 * Math.pow(10, (-6))) * D_Tmrt * D_Tmrt * D_Tmrt * Pa * Pa +\n (1.68737969 * Math.pow(10, (-7))) * Ta * D_Tmrt * D_Tmrt * D_Tmrt * Pa * Pa +\n (2.67489271 * Math.pow(10, (-8))) * va * D_Tmrt * D_Tmrt * D_Tmrt * Pa * Pa +\n (3.23926897 * Math.pow(10, (-9))) * D_Tmrt * D_Tmrt * D_Tmrt * D_Tmrt * Pa * Pa +\n (-0.0353874123) * Pa * Pa * Pa +\n (-0.221201190) * Ta * Pa * Pa * Pa +\n (0.0155126038) * Ta * Ta * Pa * Pa * Pa +\n (-2.63917279 * Math.pow(10, (-4))) * Ta * Ta * Ta * Pa * Pa * Pa +\n (0.0453433455) * va * Pa * Pa * Pa +\n (-0.00432943862) * Ta * va * Pa * Pa * Pa +\n (1.45389826 * Math.pow(10, (-4))) * Ta * Ta * va * Pa * Pa * Pa +\n (2.17508610 * Math.pow(10, (-4))) * va * va * Pa * Pa * Pa +\n (-6.66724702 * Math.pow(10, (-5))) * Ta * va * va * Pa * Pa * Pa +\n (3.33217140 * Math.pow(10, (-5))) * va * va * va * Pa * Pa * Pa +\n (-0.00226921615) * D_Tmrt * Pa * Pa * Pa +\n (3.80261982 * Math.pow(10, (-4))) * Ta * D_Tmrt * Pa * Pa * Pa +\n (-5.45314314 * Math.pow(10, (-9))) * Ta * Ta * D_Tmrt * Pa * Pa * Pa +\n (-7.96355448 * Math.pow(10, (-4))) * va * D_Tmrt * Pa * Pa * Pa +\n (2.53458034 * Math.pow(10, (-5))) * Ta * va * D_Tmrt * Pa * Pa * Pa +\n (-6.31223658 * Math.pow(10, (-6))) * va * va * D_Tmrt * Pa * Pa * Pa +\n (3.02122035 * Math.pow(10, (-4))) * D_Tmrt * D_Tmrt * Pa * Pa * Pa +\n (-4.77403547 * Math.pow(10, (-6))) * Ta * D_Tmrt * D_Tmrt * Pa * Pa * Pa +\n (1.73825715 * Math.pow(10, (-6))) * va * D_Tmrt * D_Tmrt * Pa * Pa * Pa +\n (-4.09087898 * Math.pow(10, (-7))) * D_Tmrt * D_Tmrt * D_Tmrt * Pa * Pa * Pa +\n (0.614155345) * Pa * Pa * Pa * Pa +\n (-0.0616755931) * Ta * Pa * Pa * Pa * Pa +\n (0.00133374846) * Ta * Ta * Pa * Pa * Pa * Pa +\n (0.00355375387) * va * Pa * Pa * Pa * Pa +\n (-5.13027851 * Math.pow(10, (-4))) * Ta * va * Pa * Pa * Pa * Pa +\n (1.02449757 * Math.pow(10, (-4))) * va * va * Pa * Pa * Pa * Pa +\n (-0.00148526421) * D_Tmrt * Pa * Pa * Pa * Pa +\n (-4.11469183 * Math.pow(10, (-5))) * Ta * D_Tmrt * Pa * Pa * Pa * Pa +\n (-6.80434415 * Math.pow(10, (-6))) * va * D_Tmrt * Pa * Pa * Pa * Pa +\n (-9.77675906 * Math.pow(10, (-6))) * D_Tmrt * D_Tmrt * Pa * Pa * Pa * Pa +\n (0.0882773108) * Pa * Pa * Pa * Pa * Pa +\n (-0.00301859306) * Ta * Pa * Pa * Pa * Pa * Pa +\n (0.00104452989) * va * Pa * Pa * Pa * Pa * Pa +\n (2.47090539 * Math.pow(10, (-4))) * D_Tmrt * Pa * Pa * Pa * Pa * Pa +\n (0.00148348065) * Pa * Pa * Pa * Pa * Pa * Pa;\n //endregion\n\n return UTCI_approx;\n }", "title": "" }, { "docid": "575930f0bb5ef2d7a9b84f85e257edd1", "score": "0.5583208", "text": "@Override\n\tpublic void nakup(double cena) {\n\t\t penazenka.ubytok(cena);\n\t\t ucet.prirastok(cena);\n\t}", "title": "" }, { "docid": "fd87a9a2d6771531e65438bea53e1111", "score": "0.55799675", "text": "float getK();", "title": "" }, { "docid": "93aee35cfba99bf546baf68057bbe309", "score": "0.5573571", "text": "public Pair<Double, Double> genererTemperature(int nombreIteration, int taille){\n\n\n Integer[] solutionEssai = new Integer[taille];\n\n Arrays.setAll(solutionEssai, i -> i + 1);\n\n List<Integer> solutionAleatoireList = Arrays.asList(solutionEssai);\n\n Integer[] voisinEssai = new Integer[taille];\n\n Arrays.setAll(voisinEssai, i -> i + 1);\n\n List<Integer> voisinAleatoireList = Arrays.asList(voisinEssai);\n\n double fitnessActuelle = 0;\n double fitnessVoisin = 0;\n double deltaMax = 0;\n\n for(int i = 0 ; i<= nombreIteration ; i++){\n Collections.shuffle(solutionAleatoireList);//genere une nouvelle solution\n fitnessActuelle = this.calculerFitness(solutionAleatoireList.stream().mapToInt(Integer::intValue).toArray());\n\n for(int j =0; j<= nombreIteration ; j++){\n Collections.shuffle(voisinAleatoireList);//genere une nouvelle solution\n fitnessVoisin = this.calculerFitness(voisinAleatoireList.stream().mapToInt(Integer::intValue).toArray());\n\n deltaMax = Math.max((Math.abs(fitnessVoisin - fitnessActuelle)), deltaMax);\n }\n\n }\n\n System.out.println(\"Delta max : \" + deltaMax + \" temperature : \" + ((-deltaMax)/Math.log(0.8)));\n\n double temperatureGeneree = ((-deltaMax)/Math.log(0.8));\n System.out.println(temperatureGeneree);\n double nombrePasGenere = Math.log( -deltaMax / (temperatureGeneree * Math.log(0.01))) / Math.log(0.9993);\n\n return new Pair(temperatureGeneree, nombrePasGenere);\n }", "title": "" }, { "docid": "9820bca73bcdfbb4f9052cca250c1e78", "score": "0.5572854", "text": "public double getRaio()\n {\n return this.raio;\n }", "title": "" }, { "docid": "1400838b982330b02bec6e4bd59319f5", "score": "0.555449", "text": "public float perimetre(){\n\t\t\treturn this.longueur*2+2*this.largeur;\n\t\t}", "title": "" }, { "docid": "d0f0124c3e3858c43802c5ced63d1d33", "score": "0.55472076", "text": "public Nyersanyag Kinyer() {\n if (kulsoRetegek == 0) {\n Nyersanyag kinyert = mag;\n mag = null;\n return kinyert;\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "fb542cbc30d17578dca4682fc1b5376f", "score": "0.55421036", "text": "static int velocidades(int distancia, int tiempo){\n int velocidad;\n velocidad= distancia / tiempo;\n return velocidad;\n }", "title": "" }, { "docid": "2a32e7101b73641dc14daf1bedc2f5b9", "score": "0.55407256", "text": "public void tampilkodelensa() {\r\n if (form.getCmblensa().getSelectedIndex() != 0) {\r\n for (Nota b : model.getkdlensa(form.getCmblensa().getSelectedItem().toString())) {\r\n form.getTxtkdlensa().setText(String.valueOf(b.getKodelensa()));\r\n form.getTxthrglensa().setText(String.valueOf(b.getHrglensa()));\r\n }\r\n }\r\n }", "title": "" }, { "docid": "f623d429df98b956b49704df6cbf790c", "score": "0.5540238", "text": "private int swi_nutation_iau2000ab(double J, double nutlo[]) {\n int i, j, k, inls;\n double M, SM, F, D, OM;\n double AL, ALSU, AF, AD, AOM, APA;\n double ALME, ALVE, ALEA, ALMA, ALJU, ALSA, ALUR, ALNE;\n double darg, sinarg, cosarg;\n double dpsi = 0, deps = 0;\n double T = (J - SwephData.J2000 ) / 36525.0;\n int nut_model = swed.astro_models[SweConst.SE_MODEL_NUT];\n if (nut_model == 0) nut_model = SweConst.SEMOD_NUT_DEFAULT;\n /* luni-solar nutation */\n /* Fundamental arguments, Simon & al. (1994) */\n /* Mean anomaly of the Moon. */\n M = swe_degnorm(( 485868.249036 +\n T*( 1717915923.2178 +\n T*( 31.8792 +\n T*( 0.051635 +\n T*( - 0.00024470 ))))) / 3600.0) * SwissData.DEGTORAD;\n /* Mean anomaly of the Sun */\n SM = swe_degnorm((1287104.79305 +\n T*( 129596581.0481 +\n T*( - 0.5532 +\n T*( 0.000136 +\n T*( - 0.00001149 ))))) / 3600.0) * SwissData.DEGTORAD;\n /* Mean argument of the latitude of the Moon. */\n F = swe_degnorm(( 335779.526232 +\n T*( 1739527262.8478 +\n T*( - 12.7512 +\n T*( - 0.001037 +\n T*( 0.00000417 ))))) / 3600.0) * SwissData.DEGTORAD;\n /* Mean elongation of the Moon from the Sun. */\n D = swe_degnorm((1072260.70369 +\n T*( 1602961601.2090 +\n T*( - 6.3706 +\n T*( 0.006593 +\n T*( - 0.00003169 ))))) / 3600.0) * SwissData.DEGTORAD;\n /* Mean longitude of the ascending node of the Moon. */\n OM = swe_degnorm(( 450160.398036 +\n T*( - 6962890.5431 +\n T*( 7.4722 +\n T*( 0.007702 +\n T*( - 0.00005939 ))))) / 3600.0) * SwissData.DEGTORAD;\n /* luni-solar nutation series, in reverse order, starting with small terms */\n if (nut_model == SweConst.SEMOD_NUT_IAU_2000B)\n inls = Swenut2000a.NLS_2000B;\n else\n inls = Swenut2000a.NLS;\n for (i = inls - 1; i >= 0; i--) {\n j = i * 5;\n darg = swe_radnorm((double) Swenut2000aNls.nls[j + 0] * M +\n (double) Swenut2000aNls.nls[j + 1] * SM +\n (double) Swenut2000aNls.nls[j + 2] * F +\n (double) Swenut2000aNls.nls[j + 3] * D +\n (double) Swenut2000aNls.nls[j + 4] * OM);\n sinarg = SMath.sin(darg);\n cosarg = SMath.cos(darg);\n k = i * 6;\n dpsi += (Swenut2000a_cls.cls[k+0] + Swenut2000a_cls.cls[k+1] * T) * sinarg + Swenut2000a_cls.cls[k+2] * cosarg;\n deps += (Swenut2000a_cls.cls[k+3] + Swenut2000a_cls.cls[k+4] * T) * cosarg + Swenut2000a_cls.cls[k+5] * sinarg;\n }\n nutlo[0] = dpsi * Swenut2000a.O1MAS2DEG;\n nutlo[1] = deps * Swenut2000a.O1MAS2DEG;\n if (nut_model == SweConst.SEMOD_NUT_IAU_2000A) {\n /* planetary nutation\n * note: The MHB2000 code computes the luni-solar and planetary nutation\n * in different routines, using slightly different Delaunay\n * arguments in the two cases. This behaviour is faithfully\n * reproduced here. Use of the Simon et al. expressions for both\n * cases leads to negligible changes, well below 0.1 microarcsecond.*/\n /* Mean anomaly of the Moon.*/\n AL = swe_radnorm(2.35555598 + 8328.6914269554 * T);\n /* Mean anomaly of the Sun.*/\n ALSU = swe_radnorm(6.24006013 + 628.301955 * T);\n /* Mean argument of the latitude of the Moon. */\n AF = swe_radnorm(1.627905234 + 8433.466158131 * T);\n /* Mean elongation of the Moon from the Sun. */\n AD = swe_radnorm(5.198466741 + 7771.3771468121 * T);\n /* Mean longitude of the ascending node of the Moon. */\n AOM = swe_radnorm(2.18243920 - 33.757045 * T);\n /* Planetary longitudes, Mercury through Neptune (Souchay et al. 1999). */\n ALME = swe_radnorm(4.402608842 + 2608.7903141574 * T);\n ALVE = swe_radnorm(3.176146697 + 1021.3285546211 * T);\n ALEA = swe_radnorm(1.753470314 + 628.3075849991 * T);\n ALMA = swe_radnorm(6.203480913 + 334.0612426700 * T);\n ALJU = swe_radnorm(0.599546497 + 52.9690962641 * T);\n ALSA = swe_radnorm(0.874016757 + 21.3299104960 * T);\n ALUR = swe_radnorm(5.481293871 + 7.4781598567 * T);\n ALNE = swe_radnorm(5.321159000 + 3.8127774000 * T);\n /* General accumulated precession in longitude. */\n APA = (0.02438175 + 0.00000538691 * T) * T;\n /* planetary nutation series (in reverse order).*/\n dpsi = 0;\n deps = 0;\n for (i = Swenut2000a.NPL - 1; i >= 0; i--) {\n j = i * 14;\n darg = swe_radnorm((double) Swenut2000a_npl.npl[j + 0] * AL +\n (double) Swenut2000a_npl.npl[j + 1] * ALSU +\n (double) Swenut2000a_npl.npl[j + 2] * AF +\n (double) Swenut2000a_npl.npl[j + 3] * AD +\n (double) Swenut2000a_npl.npl[j + 4] * AOM +\n (double) Swenut2000a_npl.npl[j + 5] * ALME +\n (double) Swenut2000a_npl.npl[j + 6] * ALVE +\n (double) Swenut2000a_npl.npl[j + 7] * ALEA +\n (double) Swenut2000a_npl.npl[j + 8] * ALMA +\n (double) Swenut2000a_npl.npl[j + 9] * ALJU +\n (double) Swenut2000a_npl.npl[j +10] * ALSA +\n (double) Swenut2000a_npl.npl[j +11] * ALUR +\n (double) Swenut2000a_npl.npl[j +12] * ALNE +\n (double) Swenut2000a_npl.npl[j +13] * APA);\n k = i * 4;\n sinarg = SMath.sin(darg);\n cosarg = SMath.cos(darg);\n dpsi += (double) Swenut2000a.icpl[k+0] * sinarg + (double) Swenut2000a.icpl[k+1] * cosarg;\n deps += (double) Swenut2000a.icpl[k+2] * sinarg + (double) Swenut2000a.icpl[k+3] * cosarg;\n }\n nutlo[0] += dpsi * Swenut2000a.O1MAS2DEG;\n nutlo[1] += deps * Swenut2000a.O1MAS2DEG;\n /* changes required by adoption of P03 precession\n * according to Capitaine et al. A & A 412, 366 (2005) = IAU 2006 */\n dpsi = -8.1 * SMath.sin(OM) - 0.6 * SMath.sin(2 * F - 2 * D + 2 * OM);\n dpsi += T * (47.8 * SMath.sin(OM) + 3.7 * SMath.sin(2 * F - 2 * D + 2 * OM) + 0.6 * SMath.sin(2 * F + 2 * OM) - 0.6 * SMath.sin(2 * OM));\n deps = T * (-25.6 * SMath.cos(OM) - 1.6 * SMath.cos(2 * F - 2 * D + 2 * OM));\n nutlo[0] += dpsi / (3600.0 * 1000000.0);\n nutlo[1] += deps / (3600.0 * 1000000.0);\n } /* NUT_IAU_2000A */ // Well, the C #define is a constant here\n nutlo[0] *= SwissData.DEGTORAD;\n nutlo[1] *= SwissData.DEGTORAD;\n return 0;\n }", "title": "" }, { "docid": "030ff77003bff16c04b0f6a607891b43", "score": "0.5534772", "text": "public static double haepotentiaalienergia( int rivi ) {\n return potentiaalienergiakeskiarvot[rivi];\n }", "title": "" }, { "docid": "1f1d7eab9d3b364657dee63679a46267", "score": "0.55319756", "text": "public void setRaio(double raio){\n this.raio = raio;\n }", "title": "" } ]
fe1c2544103fd80bf42f4b5964a298cb
the url to view this blog entry online
[ { "docid": "a8511dfdb9f94902a893824b76af7bb1", "score": "0.64914435", "text": "public String getUrl() {\n return getString(\"url\");\n }", "title": "" } ]
[ { "docid": "25b6d0d5d11da620b42cd95e0020b403", "score": "0.68821603", "text": "@Override\r\n\tpublic String getUrl() {\n\t\treturn \"/web/show.html\";\r\n\t}", "title": "" }, { "docid": "52182ad2c28ed634bb2aedb2ef944bf9", "score": "0.65925515", "text": "private String getRssFeedURL() {\n return String.format(\"%s/rss.do\", cfg.getBaseUrl());\n }", "title": "" }, { "docid": "7f849ef016ece8c1a1c5c22ad11b1c1f", "score": "0.6543498", "text": "public String Url() {\n\treturn Url;\n\t\n}", "title": "" }, { "docid": "629029aa46b7dde46e4b965fedc69f6c", "score": "0.649492", "text": "URL getViewURL();", "title": "" }, { "docid": "896898749b06f4e812a5061a2a163719", "score": "0.6478591", "text": "public String getURL();", "title": "" }, { "docid": "cab78e4d3b8274dcf8ecfc011c06e7bd", "score": "0.6464531", "text": "public String getUrl() {return url;}", "title": "" }, { "docid": "563bb414785151594bf05f76567d5519", "score": "0.644203", "text": "public String getUrl() { return url; }", "title": "" }, { "docid": "7b225790964c7870fb52768059258b45", "score": "0.64272505", "text": "public String getUrl()\n\t{\n\t\treturn url;\n\t}", "title": "" }, { "docid": "f424d375f1b100e7d5af0a0e38c9941c", "score": "0.63911986", "text": "public String url() {\n return this.url;\n }", "title": "" }, { "docid": "f424d375f1b100e7d5af0a0e38c9941c", "score": "0.63911986", "text": "public String url() {\n return this.url;\n }", "title": "" }, { "docid": "23bc838cad41ea7d7da6847aac2219f1", "score": "0.6388928", "text": "public String getUrl();", "title": "" }, { "docid": "23bc838cad41ea7d7da6847aac2219f1", "score": "0.6388928", "text": "public String getUrl();", "title": "" }, { "docid": "174853e8226e21d2513d49a9b5ff5e0e", "score": "0.632221", "text": "public String getUrl(){\n\t\treturn url;\n\t}", "title": "" }, { "docid": "9db4573498abdc59dc2f2e2526aa4765", "score": "0.63202655", "text": "public static String getUrl() {\r\n\t\treturn URL;\r\n\t}", "title": "" }, { "docid": "b41dafdbe501727665b6947ee39786bd", "score": "0.62862676", "text": "public String getUrl() {\n\t\t\n\t\treturn url;\n\t}", "title": "" }, { "docid": "604a8fbbc111d96c68a1193da06a66ef", "score": "0.62589145", "text": "public static String getUrl() {\n return Url;\n }", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.6254793", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.6254793", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.6254793", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.6254793", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.6254793", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.6254793", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "270a97b864502e91d579fffa708af4a2", "score": "0.6253729", "text": "public String getUrl()\n {\n return url;\n }", "title": "" }, { "docid": "77ac972553aabaf7de8637c94b21c8cf", "score": "0.6246164", "text": "@Override\n\t\tpublic String getUrl() {\n\t\t\treturn mUrl;\n\t\t}", "title": "" }, { "docid": "0cab584440b9ab45d11ba11f4e921ce7", "score": "0.62382585", "text": "public final String getUrl() {\n return url;\n }", "title": "" }, { "docid": "2bd60cfc8119c858572a800f63d54e7a", "score": "0.62306106", "text": "String getLinkUrl();", "title": "" }, { "docid": "736069aa29df5b12e2e537cedd1ff86b", "score": "0.62261367", "text": "public java.lang.String getUrl() {\n return url;\n }", "title": "" }, { "docid": "4f48d47d58635b760c690516394f42f7", "score": "0.62177026", "text": "public String getUrl() {\r\n return url;\r\n }", "title": "" }, { "docid": "4f48d47d58635b760c690516394f42f7", "score": "0.62177026", "text": "public String getUrl() {\r\n return url;\r\n }", "title": "" }, { "docid": "4f48d47d58635b760c690516394f42f7", "score": "0.62177026", "text": "public String getUrl() {\r\n return url;\r\n }", "title": "" }, { "docid": "b0ad2ca8cb6dd99014e8fa8ae65db9ef", "score": "0.62173766", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b0ad2ca8cb6dd99014e8fa8ae65db9ef", "score": "0.62173766", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "3a73bb7053c214024dc5d7edf1f09fbe", "score": "0.62158954", "text": "public String getUrl()\n {\n return url;\n }", "title": "" }, { "docid": "3a73bb7053c214024dc5d7edf1f09fbe", "score": "0.62158954", "text": "public String getUrl()\n {\n return url;\n }", "title": "" }, { "docid": "3a73bb7053c214024dc5d7edf1f09fbe", "score": "0.62158954", "text": "public String getUrl()\n {\n return url;\n }", "title": "" }, { "docid": "3a73bb7053c214024dc5d7edf1f09fbe", "score": "0.62158954", "text": "public String getUrl()\n {\n return url;\n }", "title": "" }, { "docid": "3a73bb7053c214024dc5d7edf1f09fbe", "score": "0.62158954", "text": "public String getUrl()\n {\n return url;\n }", "title": "" }, { "docid": "d6e4c20c3a99295fe43d03741ba81e17", "score": "0.6211676", "text": "public String getURL()\n\t{\n\t\treturn URL;\n\t}", "title": "" }, { "docid": "e218c52798e71cd19cc19ed26e478797", "score": "0.6194618", "text": "public String getURL()\n {\n return url;\n }", "title": "" }, { "docid": "b430ce3381c0a92993ce8b28adf0565d", "score": "0.61862475", "text": "public java.lang.String getUrl() {\n return url;\n }", "title": "" }, { "docid": "7b697ffe44a5698c051a24304147e873", "score": "0.6174336", "text": "public String getURL()\r\n {\r\n return url;\r\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b50deb5041355de19740e291275466b3", "score": "0.61658865", "text": "public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "69d2f2e428fabc60b2d09942c91bce22", "score": "0.61604434", "text": "String getPageUrl();", "title": "" }, { "docid": "da0de5e7acfa7b36ecc8a90c27bef70f", "score": "0.6137317", "text": "public java.lang.String getUrl() {\r\n return url;\r\n }", "title": "" }, { "docid": "da0de5e7acfa7b36ecc8a90c27bef70f", "score": "0.6137317", "text": "public java.lang.String getUrl() {\r\n return url;\r\n }", "title": "" }, { "docid": "811488f96b620cb71e8f8233fc5a0eeb", "score": "0.6131068", "text": "public String getURL() {\n\t\treturn this.url;\n\t}", "title": "" }, { "docid": "1868daafb16c0bada0e0563d9b09bb9c", "score": "0.6129821", "text": "public String getUrl()\n {\n return this.url;\n }", "title": "" }, { "docid": "ef4de49b7bce88142e70595a61c6c03e", "score": "0.6127973", "text": "public String getUrl() {\r\n\t\treturn this.url;\r\n\t}", "title": "" }, { "docid": "c18e116b00b4142e2a206cf536d7000b", "score": "0.61213696", "text": "public String getURL() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "d1b00ebc67a878f265ac4a99b2581b3e", "score": "0.6115208", "text": "java.lang.String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6109284", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6109284", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6109284", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6109284", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6109284", "text": "String getUrl();", "title": "" }, { "docid": "3e903a6405eb49f12cff5b15bc542b7d", "score": "0.6103145", "text": "public String getUrl() {\r\n return this.url;\r\n }", "title": "" }, { "docid": "5a1958ed37b00bc4e7c6483e859f987c", "score": "0.6099356", "text": "public String getURL() {\n\t\treturn normURL;\n\t}", "title": "" }, { "docid": "05b620c618b9bfc1ace55ba60c79d61e", "score": "0.6099128", "text": "public String getUrl() {\n\t\treturn this.url;\n\t}", "title": "" }, { "docid": "ff0ffe3d64057d8b42dde2c93cd023c2", "score": "0.609357", "text": "public String buildURLString() {\n\t\treturn Flinnt.API_URL + Flinnt.URL_POLL_EDIT;\n\t}", "title": "" }, { "docid": "86142c624cae1046546dd5892d66f9f5", "score": "0.6075485", "text": "public String getUrl() {\n return this.url;\n }", "title": "" }, { "docid": "86142c624cae1046546dd5892d66f9f5", "score": "0.6075485", "text": "public String getUrl() {\n return this.url;\n }", "title": "" }, { "docid": "be96a114fa62ffa23de0847a4ba15d6b", "score": "0.60629624", "text": "@RequestMapping(value = \"/feed\", method = RequestMethod.GET)\n public String displayPostFeed() {\n return \"redirect:/feed/0\";\n }", "title": "" }, { "docid": "36819039050aa4d1db90cab2df208afe", "score": "0.60486406", "text": "String url();", "title": "" }, { "docid": "98f251b8356ab539d351480e4e08320e", "score": "0.6045344", "text": "@Override\n\tpublic String getURL();", "title": "" }, { "docid": "730dee0594dc764473e845178ed25825", "score": "0.60394454", "text": "public String getDisplayUrl() {\r\n return displayUrl;\r\n }", "title": "" }, { "docid": "36b74f185734330a8f1ea31fe443830e", "score": "0.60249895", "text": "public String getUrl() {\n\t\t\n\t\tString url;\n\t\tif (port == 0) {\n\t\t\turl = String.format(\"remote:%s/%s\", host, database);\n\t\t} else {\n\t\t\turl = String.format(\"remote:%s:%s/%s\", host, port, database);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn url;\n\n\t}", "title": "" } ]
8cdb5822fb329cab57bbc02e06e0f8d1
/ Alle Elemnete in einem Interface sind Public
[ { "docid": "1b8d7dcd4ef1dc0e8f2553eedbc0b663", "score": "0.0", "text": "interface MyInterface{\r\n\t/*\r\n\t * Deklarationen abstrakte Methoden\r\n\t */\r\n\tvoid m1(); \t\t\t\t// impliziert auch: public abstract\r\n\tabstract void m2(); \t// impliziert auch noch: public\r\n\tpublic abstract void m3(); \r\n\t\r\n\t/*\r\n\t * default Definizionen der Instanzmethoden (auch immer public)\r\n\t */\r\n\tdefault void m4() {\t\t// implizit public\r\n\t\tSystem.out.println(\"m4. Definiert in einem Interface\");\r\n\t}\r\n\t\r\n\t/*\r\n\t * keine Object-Attribute (Instanz-Attribute, Felder)\r\n\t */\r\n\t\r\n\t/*\r\n\t * Statiche Konstatn (auch immer public)\r\n\t */\r\n//\tint ATT0; // impliziert auch noch: public static final, CF muss manuell explizit initialisiert werden\r\n\tint ATT = 2; \t\t\t\t// impliziert auch noch: public static final\r\n\tstatic int ATT2 = 2; \t\t// impliziert auch noch: public final\r\n\tpublic int ATT3 = 2; \t\t// impliziert auch noch: static final\r\n\tpublic static int ATT4 = 2; // impliziert auch noch: final\r\n\t\r\n\t/*\r\n\t * Statische Methoden (auch public)\r\n\t */\r\n\tstatic void m5() { // implizit public\r\n\t\tSystem.out.println(\"m5. Statische Methode aus einem Interface\");\r\n\t}\r\n\t\r\n\t/*\r\n\t * Innere Typen (Nicht in der OCA - Prufung)\r\n\t */\r\n\tclass InnerClass{} // static public\r\n}", "title": "" } ]
[ { "docid": "a25528f9906d24967ea42ef0b105c70e", "score": "0.72396255", "text": "public interface Fecha extends ElementoVisual\n{\n}", "title": "" }, { "docid": "4aebf61fc27092862cb4dc3013475dfb", "score": "0.7190756", "text": "public interface KwakanieInterfejs {\n}", "title": "" }, { "docid": "fb17f3603888aa45ee74d78841403e97", "score": "0.7115011", "text": "public interface IElementoDeJuego \n{\n\t/**\n\t * Metodo para cargar los componentes del elemento de juego.\n\t */\n\tpublic void init();\n\t\n\t/**\n\t * Metodo para dibujar.\n\t * @param g parametro encargado de dibujar.\n\t */\n\tpublic void render(Graphics g);\n\t\n\t/**\n\t * Actualizaciones que tenga el elemento de juego.\n\t */\n\tpublic void tick();\n}", "title": "" }, { "docid": "bfd8ad2f4079ea939488465ef090f3ff", "score": "0.6919965", "text": "public interface IUbranie {\n void wlozUbranie();\n void zdejmijUbranie();\n}", "title": "" }, { "docid": "858f8c62e04e5d7fdb512419a52bebe1", "score": "0.6906214", "text": "public interface AllElements extends EObject {\n}", "title": "" }, { "docid": "951d853fef935c12748c1e2740cef005", "score": "0.6882791", "text": "public interface Element {\n\n /**\n * Metoda zwracajaca wspolrzedna X przez obiekty klas implementujacych interfejs Element\n * (Player, Wall, Crate, Finish)\n */\n int getStartX();\n\n /**\n * Metoda zwracajaca wspolrzedna Y przez obiekty klas implementujacych interfejs Element\n * (Player, Wall, Crate, Finish)\n */\n int getStartY();\n}", "title": "" }, { "docid": "022e3b2c51c94979c377d5fe30888494", "score": "0.6851881", "text": "public interface Diplomski extends Visokoskolska {\r\n\r\n\tpublic Student odrediStudentaZaRektorovuNagradu();\r\n}", "title": "" }, { "docid": "bc1947f3e0909e03579f025610b9e305", "score": "0.6845218", "text": "public interface Podmiot {\n void zarejestrujObserwatora(Obserwator o);\n void usunObserwatora(Obserwator o);\n void powiadomObserwatorow();\n}", "title": "" }, { "docid": "cbb313d44b52394ad6f72ad2f9261ae0", "score": "0.6663268", "text": "public interface FioriElement extends Visitable<FioriElementVisitor> {\n\n String getId();\n}", "title": "" }, { "docid": "32b6485310ec593f9a38c179201c0265", "score": "0.6644816", "text": "public interface MElement {\n}", "title": "" }, { "docid": "9f302c732162b51d93cb7411bd10817d", "score": "0.6637955", "text": "public interface FeuillesDeTemps {\n FeuilleDeTemps trouverParTravailleurEtMois(MoisTravailleur moisTravailleur);\n}", "title": "" }, { "docid": "a19c180055ec9ef58ab84d1b4479a447", "score": "0.6620874", "text": "public interface PublicInterfaceView {\n Map<String, Object> setPublicInterfaceData(final int tag);\n\n void onPublicInterfaceSuccess(int code,String data,String msg, final int tag);\n void onPublicInterfaceError(String error, final int tag);\n}", "title": "" }, { "docid": "6b4c051689d2d9b5c49bfc4a7b693868", "score": "0.6611451", "text": "public interface AfectablePorSuperficie{\r\n\r\n\t/**\r\n\t * El metodo expuesto recibe como parametros una superficie,y la clase\r\n\t * que implementa esta interfaz sera la encargada de determinar la\r\n\t * interaccion entre ambas clases. \r\n\t * @param superficie\r\n\t */\r\n\tpublic void afectar(Superficie superficie);\r\n}", "title": "" }, { "docid": "f1fca14cd9428f467d885e1034f88a38", "score": "0.6606888", "text": "public interface JardineroInterfaz {//Los Métodos siempre públicos en interface\r\n\tpublic void regar();\r\n\t\r\n\tpublic void cortar();\r\n\t\r\n\tpublic void abonar();\r\n\t\r\n\tpublic void fertilizar();\r\n}", "title": "" }, { "docid": "871375e138d665f68f4f2c432e39eaef", "score": "0.6562115", "text": "interface Element {\n ElementImpl impl();\n }", "title": "" }, { "docid": "eae7f4c03a45f1be0d502762050f8302", "score": "0.65524846", "text": "public interface IBaseElement {\n}", "title": "" }, { "docid": "b46b30b59ef45c12572381afaccb5585", "score": "0.6527824", "text": "public interface ComplexElement {\r\n}", "title": "" }, { "docid": "d28bdd70583fe75552d7ee3cba3114a5", "score": "0.6526393", "text": "public interface IDodaj {\n void dodaj();\n}", "title": "" }, { "docid": "4cdc5f8ec39e96562f855a36095e1968", "score": "0.65173596", "text": "public interface Apilable {\r\n /**\r\n * Metodo para determinar si una pila esta o no vacia.\r\n * @return boolean -- true si la pila esta vacia y false en otro caso.\r\n */\r\n public boolean estaVacia ();\r\n /**\r\n * Metodo para eliminar todos los elementos de una pila\r\n */\r\n public void vaciar() ;\r\n /** \r\n * Metodo para obtener el elemento del tope de la pila sin alterar esta\r\n * @return Object -- ultimo elemento en entrar a la pila\r\n */\r\n public Object top() ;\r\n /** \r\n * Metodo para sacar el elemento del tope de la pila\r\n * @return Object -- ultimo elemento en entrar a la pila\r\n */\r\n public Object pop() ;\r\n /**\r\n * Metodo para introducir un elemento en la pila\r\n * @param elem -- elemento a introducir en la pila\r\n */\r\n public void push(Object elem) ;\r\n /**\r\n * Metodo para obtener un iterador sobre la pila\r\n * @return Iterator -- iterador sobre la pila\r\n */\r\n public java.util.Iterator iterador();\r\n}", "title": "" }, { "docid": "624772a6f9bd205f4c06bbdf45f0e70d", "score": "0.6499533", "text": "public interface Tueur {\r\n\r\n /**\r\n *Methode non implémentée au final car jugée trop forte\r\n */\r\n void ravage();\r\n}", "title": "" }, { "docid": "0bc1e08baff171dcb93c7a3fd422b789", "score": "0.6481478", "text": "public interface Arac {\n\n int hizSoyle();\n\n String calis();\n}", "title": "" }, { "docid": "9f4495624b5e2f75ff833557d88a1d9e", "score": "0.6474009", "text": "public interface Ceromuchos extends Cardinalidad {\r\n}", "title": "" }, { "docid": "2a2c24e543715937be792ecdefe2787f", "score": "0.646937", "text": "public interface DisplayElement {\n\t\n\tpublic void display();\n\n}", "title": "" }, { "docid": "8565c40e7fd64f317574f9a4b0750e9b", "score": "0.64514655", "text": "public void obirisLekciju(){\n\t}", "title": "" }, { "docid": "92148416e9bbd14cdc6cfaff66d0dfd6", "score": "0.6436017", "text": "public void getElement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7c7c871a2e4b947d1888e8ff1372f039", "score": "0.6396932", "text": "public interface Treballador{\n void pagaAlTreballador(Treballador treballador);\n String getcCC();\n}", "title": "" }, { "docid": "4275ba165f159a106d495654e2ce1ea0", "score": "0.63882095", "text": "public interface Steuerpflichtig {\n\n\tpublic int berechneSteuer();\n}", "title": "" }, { "docid": "673f15abc49b7ecc269eb1b01e5c5307", "score": "0.6387063", "text": "public interface IWyswietl {\n void wyswietl();\n}", "title": "" }, { "docid": "f53ff11325671bef2e1243b6a185704c", "score": "0.63847446", "text": "public interface C1273uba {\n}", "title": "" }, { "docid": "7c1b02d8a1a0290b8ad6fe310e937cd1", "score": "0.63798046", "text": "public interface InterfaceConsultarNivell {\n\n\n public void prOkCrearPartida(String nivell, int fila, int columna);\n\n public void prCancel();\n}", "title": "" }, { "docid": "32eb424e648e7d70c008e89ce42e5771", "score": "0.63663834", "text": "public interface BenutzerVerwaltung {\n void benutzerEintragen (Benutzer benutzer) throws IOException, ClassNotFoundException;\n boolean benutzerVorhanden(Benutzer benutzer) throws IOException, ClassNotFoundException;\n\n}", "title": "" }, { "docid": "45749d79c8bd18f9cf1e3401950c3867", "score": "0.6351272", "text": "public interface SiparisKomutu {\n public String name();\n public void execute();\n}", "title": "" }, { "docid": "40a489ac868950ffc97f2ba3eb417f4b", "score": "0.6340833", "text": "public interface VBanqueCompACAContainer\n extends tamago.aca.VBanqueCompACA, tamago.ext.tamagocc.TamagoCCContainer\n{\n // Members Variables\n\n // Properties\n\n // Methods\n public void deposit(tamago.ext.aca.Quad quad) throws tamago.TamagoException;\n\n\n public void modify(tamago.ext.aca.Quad quad) throws tamago.TamagoException;\n\n\n public void validate(tamago.ext.aca.Quad quad) throws tamago.TamagoException;\n}", "title": "" }, { "docid": "f52b85ca30df7e39cf6e2f07e3be8a2c", "score": "0.6326773", "text": "public interface Eierleggend {\n int getAantalEierenPerJaar();\n}", "title": "" }, { "docid": "9c0be8b41abbc5a688c29d02287c4158", "score": "0.6325624", "text": "public void wyjscie(){}", "title": "" }, { "docid": "29cd4a38a0a214de62a72d20c6fb044a", "score": "0.63051087", "text": "public interface CombatElement {\n /**\n * Get de los usos restantes\n * @return usos restantes\n */\n public int getUses();\n \n /**\n * Usa el elemento\n * @return potencia del uso\n */\n public float useIt();\n}", "title": "" }, { "docid": "66d7ee2b8d3fc1566229e4a98d0d9fe0", "score": "0.62964755", "text": "public interface IIdiogram extends IPicture, IXmlReader {\n}", "title": "" }, { "docid": "8e2d278b6ee0e5e1e6a25815eb472269", "score": "0.6290734", "text": "public interface AI {\n void asetaSiirto(String ekanSiirto);\n String annaSiirto();\n\n}", "title": "" }, { "docid": "ac5a7a92eda66d2b7ef40199230fa4af", "score": "0.6273987", "text": "@Override\n\tpublic void arbeiteInPizzeria() {\n\n\t}", "title": "" }, { "docid": "48baf909cd3fedfe931104c7d1ea54e9", "score": "0.6272062", "text": "public interface DisplayElement\n{\n void display();\n}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.62547886", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "856de0fc211b310f30a89bfa56200d0e", "score": "0.624297", "text": "public interface Component {\n\n /**\n * Restituisce il ruolo più specifico dell'oggetto decorato\n * @return una stringa che qualifica il ruolo\n */\n public StatoUtente getRuolo();\n \n public String getUsername();\n\n /**\n *\n * @return il ComponentS successivo nella catena\n */\n public Component next();\n\n public String toString();\n}", "title": "" }, { "docid": "4613699db871f421e34afb5fb430764b", "score": "0.62391126", "text": "public interface IARole {\n String getTitle();\n\n void setTitle(String title);\n\n IHomoSapiens getStart();\n\n void setStart(IHomoSapiens start);\n\n IHomoSapiens getEnd();\n\n void setEnd(IHomoSapiens end);\n}", "title": "" }, { "docid": "d945bb2c394c56a01a8ffe0163ba72d1", "score": "0.62376475", "text": "public interface Idata {\n\n\n void getWijken();\n\n void getMaanden();\n\n void getMerken();\n\n void getColours();\n\n void getGroupChart();\n\n void getGazelle();\n\n void getPeugeot();\n\n void getSparta();\n\n void getGiant();\n\n void getUnion();\n\n void getYamaha();\n}", "title": "" }, { "docid": "c00d56ac635197d984182d16fffa50d8", "score": "0.62226665", "text": "public interface Transmission {\n\n /**\n * showTransmission - show transmission.\n */\n void showTransmission();\n\n}", "title": "" }, { "docid": "a8a61c5302213f85c3311671975450ad", "score": "0.62202495", "text": "@Override\n public void InterfacePrint()\n {\n\n }", "title": "" }, { "docid": "224cc1917aec24f9421e865a1ebca436", "score": "0.6219478", "text": "@Override\n public void exibirPublico() {\n System.out.println(\"Exibindo o método implementado\");\n }", "title": "" }, { "docid": "af142db9c633b1f02d14659fede0a63d", "score": "0.6218561", "text": "public interface DisplayElement {\n public void display();\n}", "title": "" }, { "docid": "c02cce944ee548e6dfa40f7d003632d8", "score": "0.62118804", "text": "protected abstract void descrivi();", "title": "" }, { "docid": "eb65831b004a4951b11b0a1692ccc2c5", "score": "0.6209391", "text": "public interface IElementDrawable {\n\n /**\n *\n * @return\n */\n public Drawable getPitcto();\n\n /**\n *\n * @return\n */\n public DomainType getDomainType();\n\n /**\n *\n * @param domainType\n */\n public void setDomainType(DomainType domainType);\n\n}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.62089807", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "4644696cca3bbc211a6e68b678cc4dca", "score": "0.62052983", "text": "public interface IActiveElement extends IBoardElement {\n\n /**\n * activates the element and makes it push/attack/...\n */\n IRobot activate();\n\n}", "title": "" }, { "docid": "5a4b924fc7621a078817a9b4de4b2c3f", "score": "0.6202543", "text": "public interface IPresenterXuLyMenu {\n\n void layDanhSachMenu();\n\n}", "title": "" }, { "docid": "b04ed49986fb3f4321a90ec19ab7f86d", "score": "0.61956626", "text": "@Override\n public void alistar() {\n }", "title": "" }, { "docid": "ee2274bbf42f2b5bf365796c6b90dcce", "score": "0.61947644", "text": "public interface pertanyaan_view {\n\n void pertanyaan(List<DataItem_pertanyaan> pertanyaan);\n void status(String status,String pesan);\n void rentang_usia(String rentang_usi);\n\n\n}", "title": "" }, { "docid": "abf01b4728c270ccc53fd38fd54f1056", "score": "0.61855924", "text": "public interface UiObject {\r\r public String getId();\r}", "title": "" }, { "docid": "a47926e2265512c3e338d295a1d6ba1c", "score": "0.618515", "text": "public interface GraphicElement extends CloneableElement {\n\n /**\n * Shows graphic object as text.\n *\n * @return this graphic object data as String text.\n */\n String show();\n}", "title": "" }, { "docid": "7f17ac7319dd065f51ae79fdc1f4a5ce", "score": "0.6178855", "text": "public interface IWetbulb extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}", "title": "" }, { "docid": "ec0a0eaff9a69bb8ef6bd043f511d505", "score": "0.6174437", "text": "public interface HerkunftVariante {\r\n\t\r\n\t/**\r\n\t * @return Liste von Elementen die aus der original-Kultur \"entfernt\" (also nicht beachtet) \r\n\t * werden sollen, z.B. SF, Vorteile, Nachteile. \r\n\t * KEINE Elemente die in einer Auswahl stehen!.\r\n\t */\r\n\tpublic IdLinkList getEntferneElement();\r\n\t\r\n\t/**\r\n\t * @param entferneElement Liste von Elementen die aus der original-Kultur \"entfernt\"\r\n\t * (also nicht beachtet) werden sollen, z.B. SF, Vorteile, Nachteile. \r\n\t * KEINE Elemente die in einer Auswahl stehen!.\r\n\t */\r\n\tpublic void setEntferneElement(IdLinkList entferneElement);\r\n\t\r\n\t/**\r\n\t * @return Liste von XML-Tags die aus der original-Kultur \"entfernt\" (also nicht beachtet) \r\n\t * werden sollen, z.B. \"sonderfertigkeiten\", \"vorteile\" (ins Schema schauen für Namen).\r\n\t * Natürlich soll nicht wirklich etwas aus den CharElement entfernt werden, sondern nur\r\n\t * nicht übernommen in das neue Objekt.\r\n\t */\r\n\tpublic String[] getEntferneXmlTag();\r\n\t\r\n\t/**\r\n\t * @param entferneXmlTag Liste von XML-Tags die aus der original-Kultur \"entfernt\" \r\n\t * (also nicht beachtet) werden sollen, z.B. \"sonderfertigkeiten\", \"vorteile\" \r\n\t * (ins Schema schauen für Namen) atürlich soll nicht wirklich etwas aus den \r\n\t * CharElement entfernt werden, sondern nur nicht übernommen in das neue Objekt\r\n\t */\r\n\tpublic void setEntferneXmlTag(String[] entferneXmlTag);\r\n\t\r\n\t/** Gibt an ob diese Varante mit anderen Varianten zusammen gewählt werden kann.\r\n\t * @return true - Diese Variante kann zusätzlich zu anderen gewählt werden, \r\n\t * ansonsten false\r\n\t */\r\n\tpublic boolean isMultibel();\r\n\t\r\n\t/** Gibt an ob diese Varante mit anderen Varianten zusammen gewählt werden kann.\r\n\t * Ob immer nur eine Variante aktiv sein kann, oder mehrere gleichzeitig.\r\n\t * @param isMultibel true - Diese Variante kann zusätzlich zu anderen gewählt werden, \r\n\t * ansonsten false\r\n\t */\r\n\tpublic void setMultibel(boolean isMultibel);\r\n\t\r\n\t/**\r\n\t * @return Die Herkunft, von der diese \"abstammt\". Kann auch wiederum eine Variante sein.\r\n\t */\r\n\tpublic Herkunft getVarianteVon();\r\n\t\r\n\t/**\r\n\t * @param varianteVon Die Herkunft, von der diese \"abstammt\". Kann auch wiederum eine Variante sein.\r\n\t */\r\n\tpublic void setVarianteVon(Herkunft varianteVon);\r\n\t\r\n\t/**\r\n\t * Bei einer AdditionsVariante (=true) werden alle Werte/ Elemente der Varinate zu der \r\n\t * original-Kultur hinzugefügt (mit den entfernten Elementen). \r\n\t * Eine NICHT AdditionsVariante (=false) ist eine eigenständige Kultur ohne Abhängigkeiten, \r\n\t * von der \"original-Rasse\". Alle nötigen angaben sind dementsprechend enthalten.\r\n\t * true - Es ist eine AdditionsVariante, ansonsten false \r\n\t * @return true - diese Variante ist eine additionsvariante, ansonsten false.\r\n\t */\r\n\tpublic boolean isAdditionsVariante();\r\n\t\r\n\t/**\r\n\t * Bei einer AdditionsVariante (=true) werden alle Werte/ Elemente der Varinate zu der \r\n\t * original-Kultur hinzugefügt (mit den entfernten Elementen). \r\n\t * Eine NICHT AdditionsVariante (=false) ist eine eigenständige Kultur ohne Abhängigkeiten, \r\n\t * von der \"original-Rasse\". Alle nötigen angaben sind dementsprechend enthalten.\r\n\t * true - Es ist eine AdditionsVariante, ansonsten false \r\n\t * @param isAdditionsVariante Setzt das Attribut isAdditionsVariante.\r\n\t */\r\n\tpublic void setAdditionsVariante(boolean isAdditionsVariante);\r\n\t\r\n}", "title": "" }, { "docid": "dd5347b9ee85e4b8a8db348970374b0b", "score": "0.61616933", "text": "public interface CilckViewPageHinhAnh {\n void clickHinhAnh(int position);\n}", "title": "" }, { "docid": "cb46050a9d2f49cad11a2ef13f68888f", "score": "0.6160266", "text": "public interface PAuditeurLogIn\r\n extends ViewObject\r\n{\r\n int auditeurConnecte(String paramCode, String paramMotDePasse);\r\n\r\n}", "title": "" }, { "docid": "68c10ebdadf9fd756f7f367e9c4f4306", "score": "0.6158804", "text": "public interface IPartieRemoteOperations \n{\n Jeux.Partie[] partiesEnAttente ();\n Jeux.Partie creerPartie (int nbJoueurs);\n Jeux.Joueur[] voirJoueursEnPartie (Jeux.Partie partie);\n}", "title": "" }, { "docid": "f5a1ec69eea2fd49aced439e40fde0fd", "score": "0.6155366", "text": "public interface Verwaltung {\n\n /**\n * Zum ausgeben aller darunterliegenden Daten, welche verwaltet werden(vor allem fuer interne zwecke)\n */\n public void printAll();\n\n /**\n * Zum initialisieren der Management-Files\n */\n public void initialisiere();\n}", "title": "" }, { "docid": "6b7f3ba4746db2c0c3ddc9021fe1fbab", "score": "0.61517054", "text": "public interface Figura {\n\tdouble perimetro();\n\tvoid dibujar();\n}", "title": "" }, { "docid": "a13c6c7bf974c5645d5ace102820cdd6", "score": "0.61481243", "text": "public void inici() {\r\n \r\n \r\n }", "title": "" }, { "docid": "1a0a5cb60941232a833af49f1d5099c0", "score": "0.61347437", "text": "public interface IPersonne {\n\n int getId();\n void setId(int id);\n String getNom();\n void setNom(String nom);\n String getPrenom();\n void setPrenom(String prenom);\n}", "title": "" }, { "docid": "ed1fce9894ab0de2ce457129512aae3d", "score": "0.6127075", "text": "public interface avu extends esc {\n avt a();\n\n ISpotGuideManager b();\n}", "title": "" }, { "docid": "c2dd8cd9d76f8e8d4417024855e3a78a", "score": "0.61258495", "text": "public void irAPosicion() {\n\t\t\n\t}", "title": "" }, { "docid": "b6145ea9f951bf0c3bc6a928e0afdb4c", "score": "0.6124836", "text": "interface zzbj\n{\n\n public abstract zzco zzwH();\n\n public abstract zzch zzwX();\n}", "title": "" }, { "docid": "2c9664051a8bbed3681c3e02deed0725", "score": "0.61241823", "text": "public interface DDDElement {\n\n}", "title": "" }, { "docid": "5ced5466b7f9b5060a9ffae423769951", "score": "0.6123853", "text": "@Override\n\tpublic void showInterface() {\n\t\t\n\t}", "title": "" }, { "docid": "87baeb95817ce0785b2c3114ba360b04", "score": "0.6123121", "text": "public interface IWangyiPersenter extends IBasePersenter{\n void getNewsList(int t);\n}", "title": "" }, { "docid": "c35d3140768c1ced4760bbaf898ae943", "score": "0.6120461", "text": "public interface IViewDanhGia {\n\n void danhGiaThanhCong();\n void danhGiaThatBai();\n void hienThiDSDanhGiaTheoSP(List<DanhGia> danhGiaList);\n}", "title": "" }, { "docid": "48474daf20c6557972f1526845975f2f", "score": "0.6118744", "text": "public interface Telefonar {\n void ligar();\n}", "title": "" }, { "docid": "c74c7ff65d7e67007e70a5be846b1141", "score": "0.6105912", "text": "public interface IPresenterBinhLuan {\n void themBinhLuan(BinhLuan binhLuan);\n void layBinhLuanTheoMa(int masp);\n void countComment(int masp);\n void layDanhSachSoSao(int masp);\n}", "title": "" }, { "docid": "a10e60a8ccc2119460082ab42acc0160", "score": "0.6104845", "text": "@Override\n\tprotected void integreObjet(final String nom, final Object obj) {\n\t}", "title": "" }, { "docid": "b9386460d5e8035d6c561bcbd0986bd2", "score": "0.61037195", "text": "public interface Epoque {\n\n\tpublic ArrayList<Bateau> setEpoque(ArrayList<Bateau> listBateau);\n\t\n\tpublic String getNomEpoque();\n\t\n}", "title": "" }, { "docid": "f79154d7e9e6696c4ce748d527acefe0", "score": "0.6103224", "text": "public interface IOpcion {\r\n\r\n\t/**\r\n\t * Obtiene los roles de una determinada opcion.\r\n\t * @param rol rol del cual se obtendra sus opciones.\r\n\t * @throws SQLException para excepciones tipo SQL.\r\n\t */\r\n\tpublic abstract void obtenerOpcionesUsuario(BRol rol)\r\n throws SQLException;\t\r\n\t\r\n\t/**\r\n\t * Obtiene el listado del menu de la aplicacion.\r\n\t * @return listado del menu de la aplicacion\r\n\t * @throws SQLException para excepciones tipo SQL.\r\n\t */\r\n\tpublic abstract Lista obtenerMenu()\r\n throws SQLException;\r\n}", "title": "" }, { "docid": "a47ad9866f08ec9f40cc128bf864aefa", "score": "0.60968065", "text": "public interface ItfUsoVisualizadorAccesoIDL extends ItfUsoVisualizadorAccesoIDLOperations, icaro.infraestructura.corba.patronRecursoSimple.itfUsoRecursoSimpleIDL.ItfUsoRecursoSimpleIDL, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}", "title": "" }, { "docid": "e2ba6ab3166c1401c14d54cc5fbf9a29", "score": "0.6095858", "text": "public interface Reference extends Lien {\r\n}", "title": "" }, { "docid": "25cc9090c3ad16d2b41aa4d12834a725", "score": "0.60925394", "text": "public interface icontract {\n /**\n * iview层\n */\n public interface iview{\n\n //显示方法\n void showdata(List<work> works);\n }\n /**\n * ipresenter\n */\n public interface ipresenter<iview>{\n //关联\n void attachview(iview iview);\n //取消\n void detachview(iview iview);\n //逻辑\n void requestinfo();\n }\n /**\n * imoudle\n *\n */\n public interface imoudle{\n //接口回调\n public interface callisten{\n //信息回显\n void responsemsg(List<work> works);\n }\n void requestdata(callisten callisten);\n }\n}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6085129", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6084623", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6084623", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "e781bdc3debfc71e5cd8e94ad0996e3e", "score": "0.6084351", "text": "public interface IDHeadPresent extends IPresent{\n\n}", "title": "" }, { "docid": "5c98d30716b75c4e60f3d97e4a5d3040", "score": "0.6079473", "text": "public interface HeaderRenderedElement extends RenderedElement {\n}", "title": "" }, { "docid": "ba963f127e25438414b696e5b991a6a2", "score": "0.6078716", "text": "public interface IMostrar {\n public void mostrarInfo();\n}", "title": "" }, { "docid": "c4943ca09ff18b6d505104111acf538d", "score": "0.6077031", "text": "public interface Magazzino {\n\n /**\n * @return l'ID del magazzino.\n */\n int getId();\n\n /**\n * @return il nome del magazzino.\n */\n String getNome();\n\n /**\n * @param nome il nuovo nome del magazzino.\n */\n void setNome(String nome);\n\n /**\n * @return l'indirizzo del magazzino.\n */\n String getIndirizzo();\n\n /**\n * @param indirizzo il nuovo indirizzo del magazzino.\n */\n void setIndirizzo(String indirizzo);\n\n\n}", "title": "" }, { "docid": "d02edf8e72aa1cb3aa0c42c567b41c4f", "score": "0.6072387", "text": "public interface AccionPersistente extends Accion {\n\n List<ObjetoPersistente> getObjetosPersistentes();\n}", "title": "" }, { "docid": "be3d57e58deb19153844cffa9984f099", "score": "0.6071472", "text": "public interface WebPageableBase extends org.semanticwb.model.GenericObject\r\n{\r\n /**\r\n * Una Página Web es el elemento de SemanticWebBuilder a través del cual se estructura la información del portal. \r\n */\r\n public static final org.semanticwb.platform.SemanticClass swb_WebPage=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticClass(\"http://www.semanticwebbuilder.org/swb4/ontology#WebPage\");\r\n public static final org.semanticwb.platform.SemanticProperty swb_webPage=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticProperty(\"http://www.semanticwebbuilder.org/swb4/ontology#webPage\");\r\n /**\r\n * Interfaz que define propiedades para los elementos que pueden tener asociado una pagina web \r\n */\r\n public static final org.semanticwb.platform.SemanticClass swb_WebPageable=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticClass(\"http://www.semanticwebbuilder.org/swb4/ontology#WebPageable\");\r\n\r\n /**\r\n * Sets a value from the property WebPage\r\n * @param value An instance of org.semanticwb.model.WebPage\r\n */\r\n public void setWebPage(org.semanticwb.model.WebPage value);\r\n\r\n /**\r\n * Remove the value from the property WebPage\r\n */\r\n public void removeWebPage();\r\n\r\n public org.semanticwb.model.WebPage getWebPage();\r\n}", "title": "" }, { "docid": "0a6de800b161dafde5239f8ad5c21bb3", "score": "0.6067533", "text": "public abstract interface GeneradorEstructuraSVG{\n\n\t/**\n\t * Imprime el codigo SVG que representa a la Estructura de Datos.\n\t * @throws NoSuchElementException si la estructura es null.\n\t */\n\tpublic void imprimirCodigoSVG();\n}", "title": "" }, { "docid": "e26b6ba424cb0ff87e2b42d7d06f0c4c", "score": "0.60662985", "text": "public interface IMau_sfss_stm extends IStm, IMau, ISfss{\n\n\tpublic IRI iri();\n\n}", "title": "" }, { "docid": "b2a6856c19de038b4c3196587b9e9fae", "score": "0.60631424", "text": "public interface SOAPModuleElement extends ExtensionElement, \n AttributeExtensible, \n ElementExtensible\n{\n public void setRef(URI uri);\n \n public URI getRef();\n \n public void setParentElement(WSDLElement wsdlEl);\n \n public WSDLElement getParentElement();\n\n public void addDocumentationElement(DocumentationElement docEl);\n \n public DocumentationElement[] getDocumentationElements();\n}", "title": "" }, { "docid": "c904fe92e636775293c94e296af4d158", "score": "0.60615396", "text": "public interface IVertex<V> {\r\n \r\n /**\r\n * Returns the element (object reference) stored in this vertex.\r\n * @return Vertex stored element.\r\n */\r\n public V element();\r\n \r\n}", "title": "" }, { "docid": "93a75fb5951465c1a4ccb3f7ef1156d2", "score": "0.605768", "text": "public interface IDAOAsignatura {\r\n\t\r\n\t/**\r\n\t * Interface para crear una asignatura\r\n\t * @author Jhoan Sebastian Salazar Henao<br/>\r\n\t * email: jsebastian48@hotmail.com <br/>\r\n\t * Fecha: 8/08/2016<br/>\r\n\t * @param asignatura\r\n\t */\r\n\tpublic void crear(Asignatura asignatura) throws Exception;\r\n\t\r\n\t/**\r\n\t * Interface para editar una asignatura\r\n\t * @author Jhoan Sebastian Salazar Henao<br/>\r\n\t * email: jsebastian48@hotmail.com <br/>\r\n\t * Fecha: 8/08/2016<br/>\r\n\t * @param asignatura\r\n\t */\r\n\tpublic void editar(Asignatura asignatura) throws Exception;\r\n\t\r\n\t/**\r\n\t * Interface para eliminar una asignatura\r\n\t * @author Jhoan Sebastian Salazar Henao<br/>\r\n\t * email: jsebastian48@hotmail.com <br/>\r\n\t * Fecha: 8/08/2016<br/>\r\n\t * @param asignatura\r\n\t */\r\n\tpublic void eliminar(String codigo) throws Exception;\r\n\t\r\n\t/**\r\n\t * Interface para buscar una asignatura\r\n\t * @author Jhoan Sebastian Salazar Henao<br/>\r\n\t * email: jsebastian48@hotmail.com <br/>\r\n\t * Fecha: 8/08/2016<br/>\r\n\t * @param codigo\r\n\t * @return\r\n\t */\r\n\tpublic Asignatura buscar(String codigo) throws Exception;\r\n\t\r\n\t/**\r\n\t * Interface para listar todas las asignatura\r\n\t * @author Jhoan Sebastian Salazar Henao<br/>\r\n\t * email: jsebastian48@hotmail.com <br/>\r\n\t * Fecha: 8/08/2016<br/>\r\n\t * @return\r\n\t */\r\n\tpublic List<Asignatura> listarAsignatura() throws Exception;\r\n\t\r\n\t\r\n\t\r\n\r\n}", "title": "" }, { "docid": "a2e6eedc7a6bbf88163652cb1789de2a", "score": "0.6053994", "text": "public interface Iview {\r\n void suss(List<ShouYe_Bean.DataBean.Ad5Bean> list,ShouYe_Bean.DataBean data);\r\n}", "title": "" }, { "docid": "c763751b7ef9659cdbeeef311c920849", "score": "0.605038", "text": "public interface EinfachInterface {\n\t/*public static void test(){\n\t\t\n\t}*/\n}", "title": "" }, { "docid": "7808a16753511ea884ed65a4fdd435b5", "score": "0.6048084", "text": "public interface IFuliView extends IBaseView {\n void onSuccess(List<Meizi> meizis);\n\n void onLoadMoreSuccess(List<Meizi> meizis);\n\n void onRefreshEnable(boolean isEnable);\n\n void onLoadMoreEnable(boolean isEnable);\n\n void loadMoreError();\n\n void refreshError();\n}", "title": "" }, { "docid": "02a2243acf5ccf7d912592a63af933a6", "score": "0.6047684", "text": "public interface IServicioIva {\n\n /**\n * Firma para verificar si existe un iva por su Id\n * @param iva el objeto iva a ser verificado\n * @return boolean que indicara true si existe, false sino existe\n */\n public boolean existeIvaId(Iva iva);\n\n /**\n * Firma para editar un iva existente\n * @param montaje el objeto iva a ser editado\n */\n public Boolean editarIva(Iva iva);\n\n /**\n * Firma para listar todos los ivas\n * @return List<IVA> lista con todos los ivas\n */\n public List<Iva> listarIvas(Integer id, Double porcentaje);\n\n /**\n * Firma para obtener un iva por su id\n * @param id el identificador del iva a consultar\n * @return Iva consultado\n */\n public Iva getIva(Integer id);\n \n}", "title": "" }, { "docid": "127975c6afbe83645ff9bf0086797b6f", "score": "0.60455096", "text": "public interface Zakupljivo {\r\n\t/**\r\n\t * Metoda zakup vraca cenu zakupa\r\n\t * \r\n\t * @return cena zakupa\r\n\t */\r\n\tpublic int zakup();\r\n\t\r\n\t/**\r\n\t * Metoda otkazi vraca novac koji se vraca u slucaju otkazivanja\r\n\t * \r\n\t * @param povracajNovca decimalna vrednost od 0 do 1 kojom se mnozi cena zakupa\r\n\t * @return novac koji se vraca u slucaju otkazivanja\r\n\t */\r\n\tpublic float otkazi(float povracajNovca); \r\n}", "title": "" }, { "docid": "68ac2ece0e443a8d18cf2355c3e34dec", "score": "0.60445213", "text": "public interface iVIDevice\r\n{ /** metodo di lettura di una stringa mediante il dispositivo di input virtuale.\r\n\t @return stringa letta\r\n\t @throws IOException in caso di errore\r\n */\r\n public String leggiStringa()throws IOException;\r\n \r\n /** metodo di lettura di un carattere mediante il dispositivo di input virtuale.\r\n @return carattere letto\r\n \t @throws IOException in caso di errore\r\n */\r\n public char leggiChar()throws IOException;\r\n}", "title": "" } ]
8f77114ad2913ef88d050faf33af7bd3
This function is called only after knowing that the king is already under check Check Mate if there is no valid position for the king or the king is in check in each valid position that he might move to
[ { "docid": "f4b40cffabe4f71dce6d542e01699959", "score": "0.61021495", "text": "public static int isCheckMate(int color)\n {\n\n String kingPos = \"\";\n int checkMate = 1;\n if(color == WHITE) {\n kingPos = getPiecePosition(\"WK\", 1);\n }\n else if(color == BLACK) {\n kingPos = getPiecePosition(\"BK\", 1);\n }\n // generate all possible positions for the king\n int kingCol = (int)(kingPos.charAt(0));\n int kingRow = (int)(kingPos.charAt(1));\n\n // move to left for WHITE\n // move to right for BLACK\n if(((char)kingCol) != 'a') {\n char col = (char)(kingCol - 1);\n char row = (char)kingRow;\n String pos = \"\" + col + row;\n int underCheck = isKingUnderCheckAtPos(color, pos);\n if(underCheck == 0) return 0;\n }\n // move diagonally to left and forward for WHITE\n // move diagonally to right and 1 row below for BLACK\n if((((char)kingCol) != 'a') && (((char)kingRow) != '8')) {\n char col = (char)(kingCol - 1);\n char row = (char)(kingRow + 1);\n String pos = \"\" + col + row;\n int underCheck = isKingUnderCheckAtPos(color, pos);\n if(underCheck == 0) return 0;\n }\n // move 1 row forward for WHITE\n // move 1 row below for BLACK\n if(((char)kingRow) != '8') {\n char col = (char)(kingCol);\n char row = (char)(kingRow + 1);\n String pos = \"\" + col + row;\n int underCheck = isKingUnderCheckAtPos(color, pos);\n if(underCheck == 0) return 0;\n }\n // move diagonally to right and forward for WHITE\n // move diagonally to left and back for BLACK\n if((((char)kingCol) != 'h') && (((char)kingRow) != '8')) {\n char col = (char)(kingCol + 1);\n char row = (char)(kingRow + 1);\n String pos = \"\" + col + row;\n int underCheck = isKingUnderCheckAtPos(color, pos);\n if(underCheck == 0) return 0;\n }\n // move to right for WHITE\n // move to left for BLACK\n if(((char)kingCol) != 'h') {\n char col = (char)(kingCol + 1);\n char row = (char)(kingRow);\n String pos = \"\" + col + row;\n int underCheck = isKingUnderCheckAtPos(color, pos);\n if(underCheck == 0) return 0;\n }\n // move to right and back for WHITE\n // move diagonally to left and forward for BLACK\n if((((char)kingCol) != 'h') && (((char)kingRow) != '1')) {\n char col = (char)(kingCol + 1);\n char row = (char)(kingRow - 1);\n String pos = \"\" + col + row;\n int underCheck = isKingUnderCheckAtPos(color, pos);\n if(underCheck == 0) return 0;\n }\n // move 1 row BACK\n // move 1 row FORWARD\n if(((char)kingRow) != '1') {\n char col = (char)(kingCol);\n char row = (char)(kingRow - 1);\n String pos = \"\" + col + row;\n int underCheck = isKingUnderCheckAtPos(color, pos);\n if(underCheck == 0) return 0;\n }\n // move diagonally to left and back for WHITE\n // move diagonally to right and forward for BLACK\n if((((char)kingCol) != 'a') && (((char)kingRow) != '1')) {\n char col = (char)(kingCol + 1);\n char row = (char)(kingRow - 1);\n String pos = \"\" + col + row;\n int underCheck = isKingUnderCheckAtPos(color, pos);\n if(underCheck == 0) return 0;\n }\n return checkMate;\n }", "title": "" } ]
[ { "docid": "bec4de58ad268651e38845a2dc51fe91", "score": "0.6983616", "text": "public boolean isCheckMate(boolean player1){\n\t\t\n\t\tint[] kingPos = getCoordinatesOfKing(player1);\n\t\tint[] tempPos = {kingPos[0], kingPos[1]};\n\t\t\n\n\t\ttempPos[1] = tempPos[1] - 1;\n\t\tif(kingsMove(kingPos, tempPos, player1)) {\n return false;\n }\t\n\t\ttempPos[0] = tempPos[0] - 1;\n\t\tif(kingsMove(kingPos, tempPos, player1)){\n return false;\n } \n\n\t\ttempPos[1] = tempPos[1] + 1;\n\t\tif(kingsMove(kingPos, tempPos, player1)) {\n return false;\n }\n\n\t\ttempPos[1] = tempPos[1] + 1;\n\t\tif(kingsMove(kingPos, tempPos, player1)) {\n return false;\n }\n\t\ttempPos[0] = tempPos[0] + 1;\n\t\tif(kingsMove(kingPos, tempPos, player1)) {\n return false;\n }\n\t\ttempPos[0] = tempPos[0] + 1;\n\t\tif(kingsMove(kingPos, tempPos, player1)) {\n return false;\n }\n\t\ttempPos[1] = tempPos[1] - 1;\n\t\tif(kingsMove(kingPos, tempPos, player1)) {\n return false;\n }\n\t\ttempPos[1] = tempPos[1] - 1;\n\t\tif(kingsMove(kingPos, tempPos, player1)) {\n return false;\n }\n\n\n ArrayList<int[]> cantMove = new ArrayList<int[]>();\n\t\t\n\t\tfor(int i = 0; i < 8; i++){\n\t\t\t\n\t\t\tfor(int j = 0; j < 8; j++){\n\t\t\t\t\n\t\t\t\tint[] tempStart = {i, j};\n\t\t\t\tChessPiece dontMove = boardPos[i][j];\n\t\t\t\t\n\t\t\t\tif(dontMove != null && dontMove.validTurn(tempStart, kingPos, this)) cantMove.add(tempStart);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif(cantMove.size() > 1) {\n \n return true;\n }\n\n\t\tif(!cantMove.isEmpty()){\n\t\t\t\n\t\t\tint[] danger = cantMove.get(0);\n\t\t\t\n\t\t\tfor(int i = 0; i < 8; i++){\n\t\t\t\t\n\t\t\t\tfor(int j = 0; j < 8; j++){\n\t\t\t\t\t\n\t\t\t\t\tint[] saving= {i, j};\n\t\t\t\t\tChessPiece save = boardPos[i][j];\n\t\t\t\t\t\n\t\t\t\t\tif(save != null && save.validTurn(saving, danger, this)) return false; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4523348c4a16711ac264dbc15a295251", "score": "0.69518316", "text": "public void moveChecker() {\r\n\t\tfor (int i=0; i<peopleOnFloor.size(); i++) {\r\n\t\t\tPerson buffer = peopleOnFloor.get(i);\r\n\t\t\tbuffer.tick();\r\n\t\t\tif (buffer.wantToMove && buffer.done ) {\r\n\t\t\t\tpeopleOnFloor.remove(i);\r\n\t\t\t\ti = i-1;\r\n\t\t\t}\r\n\t\t\telse if (buffer.wantToMove && !(buffer.whatFloor == floornumber)) {\r\n\t\t\t\tpeopleOnFloor.remove(i);\r\n\t\t\t\ti = i-1;\r\n\t\t\t\taddToQ(buffer);\r\n\t\t\t\tb.elevators.get(0).getFloorsCalled().add(buffer.currentFloor);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "01dcf99d77514423e09c1d048dfd2757", "score": "0.6882563", "text": "@Override\n\tpublic boolean valid_move(Point from, Point to, Piece[][] checkPieces) {\n\t\tArrayList<Point> tmpPath = new ArrayList<>();\n\t\tif(to.getX()<8 && to.getY() <8 && to.getX()>-1 && to.getY() > -1){\n\t\t\tif (cntMove == 0) { //First move\n\t\t\t\t// ** first + WHITE\n\t\t\t\tif(checkPieces[from.getX()][from.getY()] != null && checkPieces[from.getX()][from.getY()].getColor() == Color.WHITE){\n\t\t\t\t\t// one move\n\t\t\t\t\tif((to.getX() == from.getX()-1) && (to.getY() == from.getY())){\n\t\t\t\t\t\tif (checkPieces[to.getX()][to.getY()] == null) {\n\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE; // actually I should have used countMovingWholePieces static field to set ownSequence, It is better to reduce redundant codes, but I forgot this field after I made.\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn false; //check is there any piece or not\n\t\t\t\t\t}\n\t\t\t\t\t// two move\n\t\t\t\t\telse if((to.getX() == from.getX()-2) && (to.getY() == from.getY())){\n\t\t\t\t\t\tif (checkPieces[from.getX()-1][from.getY()] == null //check are there any pieces or not\n\t\t\t\t\t\t\t\t&& checkPieces[to.getX()][to.getY()] == null) {\n\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\tthis.setEnPassant(true);\n\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t// attack diagonal move\n\t\t\t\t\telse if((to.getX() == from.getX()-1) && (to.getY() == from.getY()+1) // right up\n\t\t\t\t\t\t\t|| (to.getX() == from.getX()-1) && (to.getY() == from.getY()-1)){ // left up\n\t\t\t\t\t\tif (checkPieces[to.getX()][to.getY()] != null && checkPieces[to.getX()][to.getY()].getColor() == Color.BLACK) {\n\t\t\t\t\t\t\tif(checkPieces[to.getX()][to.getY()] instanceof King){\n\t\t\t\t\t\t\t\ttmpPath.add(new Point(from.getX(),from.getY()));\n\t\t\t\t\t\t\t\tsetPath_pieceToKing(tmpPath);\n\t\t\t\t\t\t\t\tsetCheckKing(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn false; // if the piece is black then can go.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// ** first + BLACK\n\t\t\t\telse {\n\t\t\t\t\t// one move\n\t\t\t\t\tif((to.getX() == from.getX()+1) && (to.getY() == from.getY())){\n\t\t\t\t\t\tif (checkPieces[to.getX()][to.getY()] == null) {\n\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn false; //check is there any piece or not\n\t\t\t\t\t}\n\t\t\t\t\t// two move\n\t\t\t\t\telse if((to.getX() == from.getX()+2) && (to.getY() == from.getY())){\n\t\t\t\t\t\tif (checkPieces[from.getX()+1][from.getY()] == null //check are there any pieces or not\n\t\t\t\t\t\t\t\t&& checkPieces[to.getX()][to.getY()] == null) {\n\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\tthis.setEnPassant(true);\n\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t// attack diagonal move\n\t\t\t\t\telse if((to.getX() == from.getX()+1) && (to.getY() == from.getY()+1) // right down\n\t\t\t\t\t\t\t|| (to.getX() == from.getX()+1) && (to.getY() == from.getY()-1)){ // left down\n\t\t\t\t\t\tif (checkPieces[to.getX()][to.getY()] != null && checkPieces[to.getX()][to.getY()].getColor() == Color.WHITE) {\n\t\t\t\t\t\t\tif(checkPieces[to.getX()][to.getY()] instanceof King){\n\t\t\t\t\t\t\t\ttmpPath.add(new Point(from.getX(),from.getY()));\n\t\t\t\t\t\t\t\tsetPath_pieceToKing(tmpPath);\n\t\t\t\t\t\t\t\tsetCheckKing(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn false; // if the piece is black then can go.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//End First move\n\t\t\t}\n\n\t\t\telse{ // after first move\n\t\t\t\t// ** normal + WHITE\n\t\t\t\tif(checkPieces[from.getX()][from.getY()] != null && checkPieces[from.getX()][from.getY()].getColor() == Color.WHITE) {\n\t\t\t\t\t// one move\n\t\t\t\t\tif ((to.getX() == from.getX() - 1) && (to.getY() == from.getY())) {\n\t\t\t\t\t\tif (checkPieces[to.getX()][to.getY()] == null) {\n\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\treturn false; //check is there any piece or not\n\t\t\t\t\t}\n\t\t\t\t\t// attack diagonal move\n\t\t\t\t\telse if((to.getX() == from.getX()-1) && (to.getY() == from.getY()+1) // right up\n\t\t\t\t\t\t\t|| (to.getX() == from.getX()-1) && (to.getY() == from.getY()-1)){ // left up\n\t\t\t\t\t\tif (checkPieces[to.getX()][to.getY()] != null && checkPieces[to.getX()][to.getY()].getColor() == Color.BLACK) {\n\t\t\t\t\t\t\tif(checkPieces[to.getX()][to.getY()] instanceof King){\n\t\t\t\t\t\t\t\ttmpPath.add(new Point(from.getX(),from.getY()));\n\t\t\t\t\t\t\t\tsetPath_pieceToKing(tmpPath);\n\t\t\t\t\t\t\t\tsetCheckKing(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//enpassant:\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif(to.getY() == from.getY()+1) { // right up move\n\t\t\t\t\t\t\t\tPiece p = checkPieces[from.getX()][from.getY()+1];\n\t\t\t\t\t\t\t\tif(p != null && p.getEnPassant() && p.getColor() == Color.BLACK ) {\n\n\t\t\t\t\t\t\t\t\tif (((Pawn) p).getOwnSequence() == Piece.MOVE_SEQUENCE){\n\t\t\t\t\t\t\t\t\t\tcheckPieces[from.getX()][from.getY()+1] = null;\n\t\t\t\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"ENPASSANT!!\");\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n//\t\t\t\t\t\t\t\t\tSystem.out.println(Chess.countMovingWholePieces +\" \"+ cntMove);\n\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(to.getY() == from.getY() -1) {\t//left up move\n\t\t\t\t\t\t\t\tPiece p = checkPieces[from.getX()][from.getY()-1];\n\t\t\t\t\t\t\t\tif(p != null && p.getEnPassant() && p.getColor() == Color.BLACK ) {\n\n\t\t\t\t\t\t\t\t\tif (((Pawn) p).getOwnSequence() == Piece.MOVE_SEQUENCE){\n\t\t\t\t\t\t\t\t\t\tcheckPieces[from.getX()][from.getY()-1] = null;\n\t\t\t\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"ENPASSANT!!\");\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n//\t\t\t\t\t\t\t\t\tSystem.out.println(Chess.countMovingWholePieces +\" \"+ cntMove);\n\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\treturn false; // if the piece is black then can go.\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// ** normal + BLACK\n\t\t\t\telse {\n\t\t\t\t\t// one move\n\t\t\t\t\tif((to.getX() == from.getX()+1) && (to.getY() == from.getY())) {\n\t\t\t\t\t\tif (checkPieces[to.getX()][to.getY()] == null) {\n\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\treturn false; //check is there any piece or not\n\t\t\t\t\t}\n\t\t\t\t\t// attack diagonal move\n\t\t\t\t\telse if((to.getX() == from.getX()+1) && (to.getY() == from.getY()+1) // right down\n\t\t\t\t\t\t\t|| (to.getX() == from.getX()+1) && (to.getY() == from.getY()-1)){ // left down\n\t\t\t\t\t\tif (checkPieces[to.getX()][to.getY()] != null && checkPieces[to.getX()][to.getY()].getColor() == Color.WHITE) {\n\t\t\t\t\t\t\tif(checkPieces[to.getX()][to.getY()] instanceof King){\n\t\t\t\t\t\t\t\ttmpPath.add(new Point(from.getX(),from.getY()));\n\t\t\t\t\t\t\t\tsetPath_pieceToKing(tmpPath);\n\t\t\t\t\t\t\t\tsetCheckKing(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tif(to.getY() == from.getY()+1) { // right up move\n\t\t\t\t\t\t\t\tPiece p = checkPieces[from.getX()][from.getY()+1];\n\t\t\t\t\t\t\t\tif(p != null && p.getEnPassant() && p.getColor() == Color.WHITE ) {\n\n\t\t\t\t\t\t\t\t\tif (((Pawn) p).getOwnSequence() == Piece.MOVE_SEQUENCE){\n\t\t\t\t\t\t\t\t\t\tcheckPieces[from.getX()][from.getY()+1] = null;\n\t\t\t\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"ENPASSANT!!\");\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n//\t\t\t\t\t\t\t\t\tSystem.out.println(\"1\");\n//\t\t\t\t\t\t\t\t\tSystem.out.println(Piece.MOVE_SEQUENCE +\" \"+ ((Pawn) p).getOwnSequence());\n\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(to.getY() == from.getY() -1) {\t//left up move\n\t\t\t\t\t\t\t\tPiece p = checkPieces[from.getX()][from.getY()-1];\n\t\t\t\t\t\t\t\tif(p != null && p.getEnPassant() && p.getColor() == Color.WHITE ) {\n\n\t\t\t\t\t\t\t\t\tif (((Pawn) p).getOwnSequence() == Piece.MOVE_SEQUENCE){\n\t\t\t\t\t\t\t\t\t\tcheckPieces[from.getX()][from.getY()-1] = null;\n\t\t\t\t\t\t\t\t\t\tcntMove++;\n\t\t\t\t\t\t\t\t\t\tPiece.MOVE_SEQUENCE++;\n\t\t\t\t\t\t\t\t\t\townSequence = Piece.MOVE_SEQUENCE;\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"ENPASSANT!!\");\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n//\t\t\t\t\t\t\t\t\tSystem.out.println(Chess.countMovingWholePieces +\" \"+ cntMove);\n\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\treturn false; // if the piece is black then can go.\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bb456e5badd4a005daaa1cc3562eb4dc", "score": "0.67230964", "text": "private boolean isKingAttackedAfterMove(Move move) {\n var source = move.getSource();\n var destination = move.getDestination();\n var movedPiece = board.getPiece(source);\n\n board.movePiece(move);\n\n var kingColour = movedPiece.colour;\n var kingPosition = board.getKingPosition(kingColour);\n\n var result = false;\n if (kingPosition == destination) { // King has moved\n\n }\n else if (source.x == kingPosition.x) {\n if (source.y < kingPosition.y) {\n // Attacks from Queen or Rook\n for (int j = kingPosition.y - 1; j >= 0; --j) {\n var currentPiece = board.getPiece(kingPosition.x, j);\n if (currentPiece != null) {\n if (currentPiece.colour != kingColour && (currentPiece instanceof Queen || currentPiece instanceof Rook))\n result = true;\n break;\n }\n }\n }\n else { // source.y > kingPosition.y\n // Attacks from Queen or Rook\n for (int j = kingPosition.y + 1; j < Board.columnsNum; ++j) {\n var currentPiece = board.getPiece(kingPosition.x, j);\n if (currentPiece != null) {\n if (currentPiece.colour != kingColour && (currentPiece instanceof Queen || currentPiece instanceof Rook))\n result = true;\n break;\n }\n }\n }\n }\n else if (source.x < kingPosition.x) {\n if (source.y == kingPosition.y) {\n // Attacks from Queen or Rook\n for (int i = kingPosition.x - 1; i >= 0; --i) {\n var currentPiece = board.getPiece(i, kingPosition.y);\n if (currentPiece != null) {\n if (currentPiece.colour != kingColour && (currentPiece instanceof Queen || currentPiece instanceof Rook))\n result = true;\n break;\n }\n }\n }\n else if (source.y < kingPosition.y) {\n\n }\n else { // source.y > kingPosition.y\n\n }\n }\n else { // source.x > kingPosition.x\n if (source.y == kingPosition.y) {\n // Attacks from Queen or Rook\n for (int i = kingPosition.x + 1; i < Board.rowsNum; ++i) {\n var currentPiece = board.getPiece(i, kingPosition.y);\n if (currentPiece != null) {\n if (currentPiece.colour != kingColour && (currentPiece instanceof Queen || currentPiece instanceof Rook))\n result = true;\n break;\n }\n }\n }\n else if (source.y < kingPosition.y) {\n\n }\n else { // source.y > kingPosition.y\n\n }\n }\n\n\n board.movePiece(destination, source);\n return result;\n }", "title": "" }, { "docid": "b8298ce836bd33a6f1d37f9d9a2c6dc4", "score": "0.66473013", "text": "private boolean isThreatened(int checkPosition[]){\n boolean forReturn = false;\r\n boolean checkUpDown = false;\r\n boolean checkUpDownRight = false;\r\n boolean checkUpDownLeft = false;\r\n boolean checkKnight = false;\r\n int left = checkPosition[1]-1;\r\n int right = checkPosition[1]+1;\r\n boolean check = true;\r\n int[][] positions = new int[4][2];\r\n if(checkPosition[0]==7){\r\n int position1[]={checkPosition[0]-1,checkPosition[1]-2};\r\n int position2[]={checkPosition[0]-2,checkPosition[1]-1};\r\n int position3[]={checkPosition[0]-1,checkPosition[1]+2};\r\n int position4[]={checkPosition[0]-2,checkPosition[1]+1};\r\n positions[0]=position1;\r\n positions[1]=position2;\r\n positions[2]=position3;\r\n positions[3]=position4;\r\n }\r\n else{\r\n check = false;\r\n int position1[]={checkPosition[0]+1,checkPosition[1]-2};\r\n int position2[]={checkPosition[0]+2,checkPosition[1]-1};\r\n int position3[]={checkPosition[0]+1,checkPosition[1]+2};\r\n int position4[]={checkPosition[0]-2,checkPosition[1]+1};\r\n positions[0]=position1;\r\n positions[1]=position2;\r\n positions[2]=position3;\r\n positions[3]=position4;\r\n }\r\n if(check){\r\n for(int i = checkPosition[0]-1;i>=0;i--){\r\n if(Board.getBoard()[i][checkPosition[1]]!=null){\r\n if(Board.getBoard()[i][checkPosition[1]].color.equals(this.color)){break;}\r\n else{\r\n if(Board.getBoard()[i][checkPosition[1]].name.substring(1).equals(\"RK\")||\r\n Board.getBoard()[i][checkPosition[1]].name.substring(1).equals(\"QN\")){checkUpDown = true;break;}\r\n }\r\n }\r\n }\r\n for(int i = checkPosition[0]-1;i>=0&&right<8;i--){//right\r\n if(Board.getBoard()[i][right]!=null){\r\n if(Board.getBoard()[i][right].color.equals(this.color)){break;}\r\n else{\r\n if(Board.getBoard()[i][right].name.substring(1).equals(\"BP\")||\r\n Board.getBoard()[i][right].name.substring(1).equals(\"QN\")){checkUpDownRight = true;break;}\r\n if(Board.getBoard()[i][right].name.substring(1).equals(\"PN\")&&right==checkPosition[1]+1){checkUpDownRight = true;\r\n break;}\r\n }\r\n }\r\n right++;\r\n }\r\n for(int i = checkPosition[0]-1;i>=0&&left>=0;i--){\r\n if(Board.getBoard()[i][left]!=null){\r\n if(Board.getBoard()[i][left].color.equals(this.color)){break;}\r\n else{\r\n if(Board.getBoard()[i][left].name.substring(1).equals(\"BP\")||\r\n Board.getBoard()[i][left].name.substring(1).equals(\"QN\")){checkUpDownLeft = true;break;}\r\n if(Board.getBoard()[i][left].name.substring(1).equals(\"PN\")&&left==checkPosition[1]-1){checkUpDownLeft = true;\r\n break;}\r\n }\r\n }\r\n left--;\r\n }\r\n }\r\n else{\r\n for(int i = checkPosition[0]+1;i<8;i++){\r\n if(Board.getBoard()[i][checkPosition[1]]!=null){\r\n if(Board.getBoard()[i][checkPosition[1]].color.equals(this.color)){break;}\r\n else{\r\n if(Board.getBoard()[i][checkPosition[1]].name.substring(1).equals(\"RK\")||\r\n Board.getBoard()[i][checkPosition[1]].name.substring(1).equals(\"QN\")){checkUpDown = true;break;}\r\n }\r\n }\r\n }\r\n for(int i = checkPosition[0]+1;i<8&&right<8;i++){//right\r\n if(Board.getBoard()[i][right]!=null){\r\n if(Board.getBoard()[i][right].color.equals(this.color)){break;}\r\n else{\r\n if(Board.getBoard()[i][right].name.substring(1).equals(\"BP\")||\r\n Board.getBoard()[i][right].name.substring(1).equals(\"QN\")){checkUpDownRight = true;break;}\r\n if(Board.getBoard()[i][right].name.substring(1).equals(\"PN\")&&right==checkPosition[1]+1){checkUpDownRight = true;\r\n break;}\r\n }\r\n }\r\n right++;\r\n }\r\n for(int i = checkPosition[0]+1;i<8&&left>=0;i++){\r\n if(Board.getBoard()[i][left]!=null){\r\n if(Board.getBoard()[i][left].color.equals(this.color)){break;}\r\n else{\r\n if(Board.getBoard()[i][left].name.substring(1).equals(\"BP\")||\r\n Board.getBoard()[i][left].name.substring(1).equals(\"QN\")){checkUpDownLeft = true;break;}\r\n if(Board.getBoard()[i][left].name.substring(1).equals(\"PN\")&&left==checkPosition[1]-1){checkUpDownLeft = true;\r\n break;}\r\n }\r\n }\r\n left--;\r\n }\r\n }\r\n for(int i = 0;i<4;i++){\r\n int position2[] = positions[i];\r\n if(position2[0]<8&&position2[0]>=0&&position2[1]>=0&&position2[1]<8){\r\n if(Board.getBoard()[position2[0]][position2[1]]!=null){\r\n if(!Board.getBoard()[position2[0]][position2[1]].color.equals(this.color)){\r\n if(Board.getBoard()[position2[0]][position2[1]].name.substring(1).equals(\"KT\")){\r\n checkKnight=true;break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if(checkUpDown==true||checkUpDownRight==true||checkUpDownLeft==true||checkKnight==true){\r\n forReturn = true;\r\n }\r\n return forReturn;\r\n }", "title": "" }, { "docid": "d6a0fa09b1f691b9917b287544db6acc", "score": "0.6617058", "text": "private void findValidMoves() {\n\t\tnbrValidMoves = 0;\n\t\tfor (int i = 0; i < sizeX; i++) {\n\t\t\tfor (int j = 0; j < sizeY; j++) {\n\t\t\t\tif (board[i][j] != p1Checker && board[i][j] != p2Checker) {\n\t\t\t\t\tboard[i][j] = invalidPos;\n\t\t\t\t\tcheckDir(i,j,\"validation\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1ff70eaea5c906e5970ca4eeb95f396d", "score": "0.65956813", "text": "public boolean isTeamInCheckMate(int evaluatedTeam) {\n //if(evaluatedTeam == Piece.WHITE) System.out.println(\"**Evaulating checkMATE status for white king\");\n //if(evaluatedTeam == Piece.BLACK) System.out.println(\"**Evaulating checkMATE status for black king\");\n Spot kingSpot = findKing(evaluatedTeam);\n\n if(!isTeamInCheck(makeCopy(), evaluatedTeam)) return false;\n\n System.out.println(\"Check\");\n \n //Build list of spots king could move to\n ArrayList<Spot> potSpots = new ArrayList<Spot>();\n potSpots.add(new Spot(kingSpot.getX(), kingSpot.getY()-1)); //up one\n potSpots.add(new Spot(kingSpot.getX(), kingSpot.getY()+1)); //down one\n potSpots.add(new Spot(kingSpot.getX()-1, kingSpot.getY())); //left one\n potSpots.add(new Spot(kingSpot.getX()+1, kingSpot.getY())); //right one\n potSpots.add(new Spot(kingSpot.getX()+1, kingSpot.getY()-1)); //up right one\n potSpots.add(new Spot(kingSpot.getX()-1, kingSpot.getY()-1)); //up left one\n potSpots.add(new Spot(kingSpot.getX()-1, kingSpot.getY()+1)); //down left one\n potSpots.add(new Spot(kingSpot.getX()+1, kingSpot.getY()+1)); //down right one\n ArrayList<Spot> validSpots = new ArrayList<Spot>();\n \n for(Spot potSpot : potSpots) {\n if(potSpot.getX() <= 8 && potSpot.getX() >= 1 && potSpot.getY() <= 8 && potSpot.getY() >= 1) {\n validSpots.add(potSpot);\n }\n }\n\n for(Spot spot : validSpots) {\n if(checkMove(kingSpot, spot, null)) {\n return false;\n }\n }\n return true;\n \n }", "title": "" }, { "docid": "3b9fbdbeb183a991231e4d94e33d9104", "score": "0.65558684", "text": "private void checkMoves() {\n int movesMade = movesMade(_turn.opponent());\n if (movesMade > lim) {\n this._winner = _turn;\n }\n }", "title": "" }, { "docid": "fce65ef87d5875d6b73dfea1aec5886d", "score": "0.65504193", "text": "@Override\r\n\tpublic void updatePossibleMoves(Board board)\r\n\t{\n\t\tsuper.clearPossibleMoves();\r\n\t\tsuper.clearPossibleAttacks();\r\n\t\t\r\n\t\tsuper.checkPosition(this.getPosition().getXAxis() + 2, this.getPosition().getYAxis() - 1, board);\r\n\t\tsuper.checkPosition(this.getPosition().getXAxis() + 2, this.getPosition().getYAxis() + 1, board);\r\n\t\tsuper.checkPosition(this.getPosition().getXAxis() - 2, this.getPosition().getYAxis() - 1, board);\r\n\t\tsuper.checkPosition(this.getPosition().getXAxis() - 2, this.getPosition().getYAxis() + 1, board);\r\n\t\t\r\n\t\t//since the Knight can jump over pieces there is no checkBlockedPath method\r\n\t\tsuper.checkPosition(this.getPosition().getXAxis() - 1, this.getPosition().getYAxis() + 2, board);\r\n\t\tsuper.checkPosition(this.getPosition().getXAxis() + 1, this.getPosition().getYAxis() + 2, board);\r\n\t\tsuper.checkPosition(this.getPosition().getXAxis() - 1, this.getPosition().getYAxis() - 2, board);\r\n\t\tsuper.checkPosition(this.getPosition().getXAxis() + 1, this.getPosition().getYAxis() - 2, board);\r\n\r\n\t}", "title": "" }, { "docid": "8b9944922042ec38e1cf901e4978c803", "score": "0.6535563", "text": "public void move() {\n\n if(valid(m,n + 1) && (Map.map[m][n+1] == 1 || Map.map[m][n+1] == 3) && Valid[m][n+1] != -1) turn = 1; //RIGHT\n else if(valid(m,n - 1) && (Map.map[m][n-1] == 1 || Map.map[m][n-1] == 3) && Valid[m][n-1] != -1) turn = 2; //LEFT\n else if(valid(m + 1,n) && (Map.map[m+1][n] == 1 || Map.map[m+1][n] == 3) && Valid[m+1][n] != -1) turn = 3; //UP\n else if(valid(m - 1,n) && (Map.map[m-1][n] == 1 || Map.map[m-1][n] == 3) && Valid[m-1][n] != -1) turn = 4; //DOWN\n\n if(turn == 1) {\n if(x != enemy.getWidth()*(n+1)) x+=speed;\n if(x >= enemy.getWidth()*(n+1)) {\n x = enemy.getWidth()*(n+1);\n if(Map.map[m][n+1] == 1) {\n Valid[m][n+1] = -1;\n n++;\n }\n else if(Map.map[m][n+1] == 3 && !finished) finished = true;\n }\n direction2 = 1;\n turn = 0;\n }\n\n if(turn == 2) {\n if(x != enemy.getWidth()*(n-1)) x-=speed;\n if(x <= enemy.getWidth()*(n-1)) {\n x = enemy.getWidth()*(n-1);\n if(Map.map[m][n-1] == 1) {\n Valid[m][n-1] = -1;\n n--;\n }\n else if(Map.map[m][n-1] == 3 && !finished) finished = true;\n }\n direction2 = 2;\n turn = 0;\n }\n\n if(turn == 3) {\n if(y != enemy.getHeight()*(m+1)) y+=speed;\n if(y >= enemy.getHeight()*(m+1)) {\n y = enemy.getHeight()*(m+1);\n if(Map.map[m+1][n] == 1) {\n Valid[m+1][n] = -1;\n m++;\n }\n else if(Map.map[m+1][n] == 3 && !finished) finished = true;\n }\n direction2 = 3;\n turn = 0;\n }\n\n if(turn == 4) {\n if(y != enemy.getHeight()*(m-1)) y-=speed;\n if(y <= enemy.getHeight()*(m-1)) {\n y = enemy.getHeight()*(m-1);\n if(Map.map[m-1][n] == 1) {\n Valid[m-1][n] = -1;\n m--;\n }\n else if(Map.map[m-1][n] == 3 && !finished) finished = true;\n }\n direction2 = 4;\n turn = 0;\n }\n }", "title": "" }, { "docid": "f29b0d01121449fd8a19c1c55b1efcda", "score": "0.6526906", "text": "public boolean movePiece(char direction) {\n ArrayList<Piece> pieces = this.getBoard().getPieces();\n Tile[] terrain = this.getBoard().getTerrain();\n int checkX = 0;\n int checkY = 0;\n\n switch (direction) {\n case 'N':\n checkY = 1;\n break;\n case 'S':\n checkY = -1;\n break;\n case 'E':\n checkX = 1;\n break;\n case 'W':\n checkX = -1;\n break;\n default:\n return false;\n }\n\n\n int collisionIndex = 0;\n boolean collision = false;\n\n\n //iterate through entire piece array for piece collision checking\n for (int i = 0; i < pieces.size(); i++) {\n if (pieces.get(i).getX() == (this.getX() + checkX) && pieces.get(i).getY() == (this.getY() + checkY)) {\n collision = true;\n collisionIndex = i;\n }\n }\n\n //terrain collision checking\n //water is the only terrain feature that has collision,\n //but we also need to check if we're moving into a den\n for (int i = 0; i < terrain.length; i++) {\n if (terrain[i].getX() == (this.getX() + checkX) && terrain[i].getY() == (this.getY() + checkY)) {\n\n if (terrain[i].getType().matches(\"Water\")) {\n //TODO: return na lang\n //if it walks into water it should be invalid anyway\n return false;\n }\n //TODO: same as above\n if (terrain[i].getType().matches(\"Den\") && terrain[i].getOwner() == this.getOwner()) {\n return false;\n }\n\n }\n }\n\n //capture checking\n if (collision && capturePiece(pieces.get(collisionIndex))) {\n this.x += checkX;\n this.y += checkY;\n pieces.get(collisionIndex).getCaptured();\n System.out.println(\"Captured an enemy \" + pieces.get(collisionIndex).getType());\n return true;\n }\n\n if (collision) {\n return false;\n }\n\n //check if movement is inbounds after water check\n if (this.getX() + checkX == 0 || this.getX() + checkX == 10 || this.getY() + checkY == 0 || this.getY() + checkY == 8) {\n return false;\n }\n\n //make the move if the desired space is clear of any pieces\n this.x += checkX;\n this.y += checkY;\n\n return true;\n }", "title": "" }, { "docid": "fa01454f9ae1dbb4f602da5359147dfc", "score": "0.6473509", "text": "public void calcValidMoves() {\n\t\tsuper.calcValidMoves();\n\n\t\tint forward = (side == Side.BLACK) ? 1 : -1;\n\t\tVector2 newPos = new Vector2(position.getX(), position.getY() + forward);\n\n\t\t// move forward\n\t\tif (Board.isInBounds(newPos) && Board.isPositionEmpty(newPos)) {\n\t\t\tvalidMoves.add(Board.getSquareOnPosition(newPos));\n\t\t\tnewPos = new Vector2(newPos.getX(), newPos.getY() + forward);\n\t\t\tif (timesMoved == 0 && Board.isInBounds(newPos) && Board.isPositionEmpty(newPos)) {\n\t\t\t\tvalidMoves.add(Board.getSquareOnPosition(newPos));\n\t\t\t}\n\t\t}\n\n\t\t// capturing\n\t\tfor (int i = -1; i < 2; i += 2) {\n\t\t\tnewPos = new Vector2(position.getX() + i, position.getY() + forward);\n\t\t\tif (Board.isInBounds(newPos) && !Board.isPositionEmpty(newPos)\n\t\t\t\t\t&& Board.getPieceOnPosition(newPos).getSide() != side) {\n\t\t\t\tvalidMoves.add(Board.getSquareOnPosition(newPos));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c0e32470e4d0962bc57945f48be1996c", "score": "0.6465016", "text": "public void AI() {\r\n\r\n /*******************************************************\r\n * Checks if black king is in danger\r\n * If so, moves king\r\n ********************************************************/\r\n\r\n // checks if black king is in check\r\n if(blackInCheck){\r\n\r\n // iterates through rows around king\r\n for(int r = kingRow - 1; r < kingRow + 2; ++r){\r\n\r\n // iterates through columns around king\r\n for(int c = kingCol - 1; c < kingCol + 2; ++c){\r\n\r\n // creates a temporary move from the original king spot, to r,c\r\n Move temp = new Move(kingRow, kingCol, r, c);\r\n\r\n // executes move if it is valid\r\n if(isValidMove(temp)) {\r\n this.move(temp);\r\n\r\n // exits if move is executed to prevent multiple moves\r\n return;\r\n }\r\n }\r\n }\r\n }\r\n\r\n /*******************************************************\r\n * Checks if any black pieces are in danger\r\n * If so, moves one of those pieces\r\n ********************************************************/\r\n\r\n // assesses if any black pieces are in danger\r\n blackThreats();\r\n\r\n if(!blackThreats.isEmpty()){\r\n\r\n // finding location of the threatened piece\r\n int pieceRow = blackThreatRows.get(0);\r\n int pieceCol = blackThreatCols.get(0);\r\n\r\n // NOW need to attempt to move that piece...\r\n\r\n // an array list of potential moves\r\n ArrayList<Move> potentialMoves = new ArrayList<>();\r\n\r\n // iterate through all possible black moves\r\n for(Move move : blackMoves){\r\n\r\n // finds all potential moves for the piece we are at\r\n if(move.fromRow == pieceRow && move.fromColumn == pieceCol){\r\n\r\n // adds all moves for piece we're at to potential moves ArrayList\r\n potentialMoves.add(move);\r\n }\r\n }\r\n\r\n // now for all potential moves we need to see if they are valid\r\n for(Move move : potentialMoves){\r\n if(isValidMove(move)){\r\n\r\n // executes the move\r\n this.move(move);\r\n\r\n // exits method if moves is made to prevent multiple moves\r\n return;\r\n }\r\n }\r\n }\r\n\r\n /*******************************************************\r\n * Checks if any white pieces could be captured\r\n * If so, captures them\r\n ********************************************************/\r\n // assesses if any white pieces are in danger\r\n whiteThreats();\r\n\r\n // checks if any white pieces can be captured\r\n if(!whiteThreats.isEmpty()){\r\n\r\n // iterates through all possible black attack moves\r\n for(Move move : blackAttackMoves){\r\n\r\n IChessPiece piece = pieceAt(move.toRow, move.toColumn);\r\n\r\n // checks if there is a white piece in any place a black piece can attack\r\n if(piece != null && piece.player() == Player.WHITE){\r\n\r\n // executes the move to capture the piece\r\n move(move);\r\n\r\n // exits if move is executed to prevent multiple moves\r\n return;\r\n }\r\n }\r\n }\r\n\r\n /*******************************************************\r\n * Randomly moves a black piece if no previous conditions\r\n * are met\r\n ********************************************************/\r\n\r\n move(blackMoves.get(rand.nextInt(blackMoves.size())));\r\n }", "title": "" }, { "docid": "1c03edcda8f4c61281bc7a4f2c1ebef1", "score": "0.6460738", "text": "private boolean hasCheckmateCondition() \n\t{\n\t\t//boolean canGetKing = true;\n\t\tif (this.turn == 1)\n\t\t{\n\t\t\t\n\t\t\tfor(int i = 0; i < board.wPieces.size(); i++)\n\t\t\t{\n\t\t\t\tint oldX = board.wPieces.get(i).getX();\n\t\t\t\tint oldY = board.wPieces.get(i).getY();\n\t\t\t\tArrayList<String> moves = board.showMoves(oldX, oldY);\n\t\t\t\tif(moves == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tboolean pieceCanGetKingOut = false;\n\t\t\t\tfor(int j = 0; j < moves.size(); j++)\n\t\t\t\t{\n\t\t\t\t\tif(moves.get(j) == \"\")\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tint newX = board.getMoveX(moves, j);\n\t\t\t\t\tint newY = board.getMoveY(moves, j);\n\t\t\t\t\tboard.makeFakeMove(oldX, oldY, newX, newY);\n\t\t\t\t\tboolean noBlackPiecesCanAttack = true;\n\t\t\t\t\tfor(int z = 0; z < board.bPieces.size(); z++)\n\t\t\t\t\t{\n\t\t\t\t\t\tint tempX = board.bPieces.get(z).getX();\n\t\t\t\t\t\tint tempY = board.bPieces.get(z).getY();\n\t\t\t\t\t\tArrayList<String> newMoves = board.showMoves(tempX,tempY);\n\t\t\t\t\t\tif(newMoves == null)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tif(newMoves.contains(board.wKing.getTile()))\n\t\t\t\t\t\t\tnoBlackPiecesCanAttack = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(noBlackPiecesCanAttack)\n\t\t\t\t\t\tpieceCanGetKingOut = true;\n\t\t\t\t\tboard.undoFakeMove(oldX, oldY, newX, newY);\n\t\t\t\t}\n\t\t\t\tif(pieceCanGetKingOut)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(int i = 0; i < board.bPieces.size(); i++)\n\t\t\t{\n\t\t\t\tint oldX = board.bPieces.get(i).getX();\n\t\t\t\tint oldY = board.bPieces.get(i).getY();\n\t\t\t\tArrayList<String> moves = board.showMoves(oldX, oldY);\n\t\t\t\tif(moves == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tboolean pieceCanGetKingOut = false;\n\t\t\t\tfor(int j = 0; j < moves.size(); j++)\n\t\t\t\t{\n\t\t\t\t\tif(moves.get(j) == \"\")\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tint newX = board.getMoveX(moves, j);\n\t\t\t\t\tint newY = board.getMoveY(moves, j);\n\t\t\t\t\tboard.makeFakeMove(oldX, oldY, newX, newY);\n\t\t\t\t\tboolean noWhitePiecesCanAttack = true;\n\t\t\t\t\tfor(int z = 0; z < board.wPieces.size(); z++)\n\t\t\t\t\t{\n\t\t\t\t\t\tint tempX = board.wPieces.get(z).getX();\n\t\t\t\t\t\tint tempY = board.wPieces.get(z).getY();\n\t\t\t\t\t\tArrayList<String> newMoves = board.showMoves(tempX,tempY);\n\t\t\t\t\t\tif(newMoves == null)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tif(newMoves.contains(board.bKing.getTile()))\n\t\t\t\t\t\t\tnoWhitePiecesCanAttack = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(noWhitePiecesCanAttack)\n\t\t\t\t\t\tpieceCanGetKingOut = true;\n\t\t\t\t\tboard.undoFakeMove(oldX, oldY, newX, newY);\n\t\t\t\t}\n\t\t\t\tif(pieceCanGetKingOut)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "dc1722441788a2f01cca4aeab1ac66ef", "score": "0.6434496", "text": "@Override\n\tpublic boolean moveCheck(int x, int y) {\n\t\t//prevents moving backwards\n\t\tif(this.color == \"White\"){\n\t\t\tif(this.y < y){ //White pawns cannot move back\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(this.y > y ){ //Black pawns cannot move back\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t//cannot take a piece while moving forwards\n\t\tif(this.x == x){\n\t\t\tif(board.getNodeXY(x,y).occupied){ //checks if the spot if occupied\n\t\t\t\t//System.out.println(\"cannot take with pawn\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t//moves 2 pieces forward on start\n\t\tif(this.start == true && this.x == x) {\n\t\t\tif (Math.abs(this.y - y) == 2) { //Check obstruction on double jump.\n\t\t\t\tif(this.color == \"Black\"){\n\t\t\t\t\tif(board.getNodeXY(this.x,this.y+1).occupied == true){ //Cannot double jump over a piece.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (board.getNodeXY(this.x, this.y - 1).occupied == true) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if( Math.abs(this.y - y) == 1) { //check occupied above\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse { //going up more than 2 on start\n\t\t\t\t//System.out.println(\"Invalid Move\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\telse if(this.start == false && this.x == x) { // moving one up\n\t\t\tif (Math.abs(this.y - y) == 1 ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//System.out.println(\"Invalid Move\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\telse if (Math.abs(this.x - x) == 1 && Math.abs(this.y - y) == 1 ) {\n\n\t\t\t\tif(board.getNodeXY(x,y).occupied == false && board.getNodeXY(x,this.y).occupied == true) //checks enpassant condition\n\t\t\t\t\t{\n\t\t\t\t\tif(board.getNodeXY(x,this.y).piece instanceof Pawn){\n\n\t\t\t\t\t\tif(((Pawn) board.getNodeXY(x,this.y).piece).canEnpassant == true){\n\n\t\t\t\t\t\t\t//System.out.println(\"here\");\n\t\t\t\t\t\t\tdidEnpassant = true;\n\t\t\t\t\t\t\treturn true;\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\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(board.getNodeXY(x,y).occupied == true){\n\t\t\t\t\t\tif(board.getNodeXY(x,y).piece.color != this.color){\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t//System.out.println(\"Invalid Move\");\n\t\treturn false;\n\t\t\n\t}", "title": "" }, { "docid": "7107a219d25c54b69b1b6e208678af60", "score": "0.64237446", "text": "public void checkGameOver() {\n\t\tthis.gameState.setValue(false);\n\t\tfor (int i = 0; i < 6; i++) {\n\t\t\tfor (int j = 0; j < 6; j++) {\n\t\t\t\tif (this.board.getGridRow(i)[j].equals(\"z\")) {\n\t\t\t\t\tint count = 0;\n\t\t\t\t\tint k = j + 2;\n\t\t\t\t\tint left = 6 - k;\n\t\t\t\t\twhile (k < 6) {\n\t\t\t\t\t\tif (this.board.getGridRow(i)[k].equals(\"*\")) count++;\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\n\t\t\t\t\tif (count == left) {\n\t\t\t\t\t\tInteger[] lastPosition = new Integer[2];\n\t\t\t\t\t\tlastPosition[0] = i;\n\t\t\t\t\t\tlastPosition[1] = 4;\n\t\t\t\t\t\tthis.makeMove(\"z\", lastPosition, true);\n\t\t\t\t\t\tthis.gameState.setValue(true);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f352694235777eb3c0329460e9b2d69f", "score": "0.64005727", "text": "private boolean doesPutKingInCheck(int toX,int toY, int fromX, int fromY) \n\t{\n\t\tboolean didPutKingInCheck = false;\n\t\tboard.makeFakeMove(fromX, fromY, toX, toY);\n\t\tif(turn == 0)\n\t\t{\n\t\t\tfor(int i = 0; i < board.bPieces.size(); i++)\n\t\t\t{\n\t\t\t\tint tempX = board.bPieces.get(i).getX();\n\t\t\t\tint tempY = board.bPieces.get(i).getY();\n\t\t\t\tArrayList<String> newMoves = board.showMoves(tempX, tempY);\n\t\t\t\tif(newMoves == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(newMoves.contains(board.wKing.getTile()))\n\t\t\t\t\tdidPutKingInCheck = true;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t////System.out.println(\"checking if black move puts king in check\");\n\t\t\tfor(int i = 0; i < board.wPieces.size(); i++)\n\t\t\t{\n\t\t\t\tint tempX = board.wPieces.get(i).getX();\n\t\t\t\tint tempY = board.wPieces.get(i).getY();\n\t\t\t\tArrayList<String> newMoves = board.showMoves(tempX, tempY);\n\t\t\t\t////System.out.println(newMoves);\n\t\t\t\tif(newMoves == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(newMoves.contains(board.bKing.getTile()))\n\t\t\t\t\tdidPutKingInCheck = true;\n\t\t\t}\n\t\t}\n\t\tboard.undoFakeMove(fromX, fromY, toX, toY);\n\t\treturn didPutKingInCheck;\n\t}", "title": "" }, { "docid": "b7c37149f7ef283c8ccc541e783daabc", "score": "0.6363277", "text": "private boolean attemptMove()\r\n\t{\r\n\t\t// Check to see if the next locations intersected,\r\n\t\t// if they didnt then move to those positions.\r\n\t\tif (!intersectsField())\r\n\t\t{\r\n\t\t\tmoveToNext();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "4c1bf90ec3cd44265011a387b72679d9", "score": "0.632828", "text": "@Test\n\tpublic void TestBlackCheckMove() {\n\t\tassertTrue(board.getPiece(3, 1).checkMove(new Point(3, 3), board));\t\t\n\t\t\n\t\t//check move 1 space forward \n\t\tassertTrue(board.getPiece(3, 1).checkMove(new Point(3, 2), board));\n\t\t\n\t\t//check move if another piece in the way\n\t\tboard.setPiece(new Pawn(PieceType.PAWN, new Point(3, 2), 1));\n\t\tassertFalse(board.getPiece(3, 1).checkMove(new Point(3, 2), board));\n\t\t\n\t\t//check 2 space move if another piece in the way\n\t\tboard.setPiece(new Pawn(PieceType.PAWN, new Point(3, 2), 1));\n\t\tassertFalse(board.getPiece(3, 1).checkMove(new Point(3, 3), board));\n\t\t\n\t\t//check move on the x-axis\n\t\tassertFalse(board.getPiece(3, 1).checkMove(new Point(2, 1), board));\n\t\t\n\t\t//check move backwards \n\t\tassertFalse(board.getPiece(3, 1).checkMove(new Point(3, 0), board));\n\t\t\n\t\t//check move forward diagonally +x -y\n\t\tassertFalse(board.getPiece(3, 1).checkMove(new Point(4, 2), board));\n\t\t\n\t\t//check move forward diagonally -x -y\n\t\tassertFalse(board.getPiece(3, 1).checkMove(new Point(2, 2), board));\n\t\t\n\t\t//check move backward diagonally +x +y\n\t\tassertFalse(board.getPiece(3, 1).checkMove(new Point(4, 0), board));\n\t\t\n\t\t//check move backward diagonally -x +y\n\t\tassertFalse(board.getPiece(3, 1).checkMove(new Point(2, 0), board));\n\t\t\n\t\t//check capture +x -y\n\t\tboard.setPiece(new Pawn(PieceType.PAWN, new Point(4, 2), 0));\n\t\tassertTrue(board.getPiece(3, 1).checkMove(new Point(4, 2), board));\n\t\t\n\t\t//check capture -x -y\n\t\tboard.setPiece(new Pawn(PieceType.PAWN, new Point(2, 2), 0));\n\t\tassertTrue(board.getPiece(3, 1).checkMove(new Point(2, 2), board));\n\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "942f61443d7b64a0964ca0026cbfb22b", "score": "0.6322788", "text": "private boolean mateCheck(Player p1,Player p2){\n\t\t//A temporary holding cell for the coordinates of a piece before it is\n\t\t//moved, so that it may be moved back in the event a move is invalid.\n\t\tCoord temp;\n\t\tint n = 1;\n\t\tif(toMove == Shade.BLACK){\n\t\t\tfor(Piece pc: p2.getPieces()){\n\t\t\t\tif (pc instanceof PassantShadow) continue;\n\t\t\t\ttemp = pc.getCoord();\n\t\t\t\tfor(Coord cd:pc.getMoves()){\n\t\t\t\t\tif(board.getSquare(cd).isOccupied()) limboPiece = board.getSquare(cd).getOccupant();\n\t\t\t\t\tif(board.movePiece(pc, cd)){\n\t\t\t\t\t\tif(!(p1.getSquaresAttacked().contains(p2.getKingCoord()))){\n\t\t\t\t\t\t\tSystem.out.print(\"Found move for \" + pc.toString() + \" from \" + board.getSquare(temp).toString() + \"\\n\");\n\t\t\t\t\t\t\tboard.getSquare(temp).place(pc);\n\t\t\t\t\t\t\tif(limboPiece != null) limboPiece.revive();\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tboard.getSquare(temp).place(pc);\n\t\t\t\t\t\tif(limboPiece != null) limboPiece.revive();\n\t\t\t\t\t\tSystem.out.print(n + \" moves evaluated\\n\");\n\t\t\t\t\t\tn++;\n\t\t\t\t\t}\n\t\t\t\t\tlimboPiece = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\tfor(Piece pc: p1.getPieces()){\n\t\t\t\tif (pc instanceof PassantShadow) continue;\n\t\t\t\ttemp = pc.getCoord();\n\t\t\t\tfor(Coord cd:pc.getMoves()){\n\t\t\t\t\tif(board.getSquare(cd).isOccupied()) limboPiece = board.getSquare(cd).getOccupant();\n\t\t\t\t\tif(board.movePiece(pc, cd)){\n\t\t\t\t\t\tif(!(p2.getSquaresAttacked().contains(p1.getKingCoord()))){\n\t\t\t\t\t\t\tSystem.out.print(\"Found move for \" + pc.toString() + \" at \" + board.getSquare(cd).toString());\n\t\t\t\t\t\t\tboard.getSquare(temp).place(pc);\n\t\t\t\t\t\t\tif(limboPiece != null) limboPiece.revive();\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tboard.getSquare(temp).place(pc);//movePiece(pc, temp);\n\t\t\t\t\t\tif(limboPiece != null) limboPiece.revive();\n\t\t\t\t\t}\n\t\t\t\t\tlimboPiece = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "c6c351223d00f73da260d3f9a976833b", "score": "0.6291044", "text": "private static boolean isCheck(Tile targetTile, Tile[][] board, Piece[][] pieceMap, Player currentPlayer) {\r\n //initialize king position\r\n Tile kingPos = null;\r\n Tile othKingPos = null;\r\n\r\n\r\n //create a copy of board and pieces to make the move\r\n Tile[][] boardCopy = new Tile[8][8];\r\n Piece[][] pieceMapCopy = new Piece[8][8];\r\n\r\n setBoard(boardCopy);\r\n setNewPieceMap(boardCopy, pieceMapCopy, board, pieceMap);\r\n\r\n Piece targetPieceCopy = targetPiece(input, boardCopy, pieceMapCopy, currentPlayer);\r\n Tile targetTileCopy = targetTile(input, boardCopy, pieceMapCopy, currentPlayer, targetPieceCopy);\r\n\r\n input1 = null;\r\n input2 = null;\r\n\r\n for (int i = 0; i < boardCopy.length; i++) {\r\n for (int j = 0; j < boardCopy[i].length; j++) {\r\n if (board[i][j].getCoord() == targetTile.getCoord()) {\r\n targetTileCopy = boardCopy[i][j];\r\n }\r\n }\r\n }\r\n\r\n //make the move with the board and piece copies\r\n flicker = 1;\r\n movePieceToTile(targetPieceCopy, targetTileCopy, boardCopy, pieceMapCopy, currentPlayer);\r\n flicker = 0;\r\n\r\n //loop to save the king's location in copied game\r\n for (int i = 0; i < boardCopy.length; i++) {\r\n for (int j = 0; j < boardCopy[i].length; j++) {\r\n if (pieceMapCopy[i][j] != null) {\r\n if (pieceMapCopy[i][j].getPieceType().equals(\"King\")) {\r\n if (currentPlayer.getPlayerColor().equals(pieceMapCopy[i][j].getPieceColor())) {\r\n kingPos = boardCopy[i][j];\r\n }else{\r\n othKingPos = boardCopy[i][j];\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n //loop to find the location of all other enemy pieces in copied game\r\n //using king's location, find if a piece can legally check the king in copied game\r\n for (int i = 0; i < boardCopy.length; i++) {\r\n for (int j = 0; j < boardCopy[i].length; j++) {\r\n if (pieceMapCopy[i][j] != null && kingPos != null && othKingPos != null) {\r\n //if the piece is an enemy piece, check if it can legally get to the king\r\n if (!pieceMapCopy[i][j].getPieceColor().equals(currentPlayer.getPlayerColor())) {\r\n //if it can legally move and path to the king's position, return false (king is not safe)\r\n if (pieceMapCopy[i][j].isLegalMove(kingPos.getCoord())\r\n && pieceMapCopy[i][j].isLegalPath(kingPos.getCoord(), boardCopy, pieceMapCopy)) {\r\n return false;\r\n }\r\n }else{\r\n if (pieceMapCopy[i][j].getPieceColor().equals(currentPlayer.getPlayerColor())){\r\n if (pieceMapCopy[i][j].isLegalMove(othKingPos.getCoord())\r\n && pieceMapCopy[i][j].isLegalPath(othKingPos.getCoord(), boardCopy, pieceMapCopy)){\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tC H E C K !\");\r\n System.out.println();\r\n for (int k = 0; k < boardCopy.length; k++){\r\n for (int l = 0; l < boardCopy[k].length; l++){\r\n if (othKingPos.getCoord() == pieceMap[k][l].getStartCoord()){\r\n pieceMap[k][l].setIsChecked(true);\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n //if it never returns false, then the king must be safe\r\n return true;\r\n }", "title": "" }, { "docid": "2f67eaaffb8b1b12eba6371e25c8f774", "score": "0.6280335", "text": "boolean isMoveUpPossible() {\n\n if (whoseMoveItIs.equals(WhoseMove.ME)) {\n if (myCoordinates.y <= 0)\n return false;\n return mapState[myCoordinates.y - 1][myCoordinates.x] == ' ';\n } else {\n if (enemyCoordinates.y <= 0)\n return false;\n return mapState[enemyCoordinates.y - 1][enemyCoordinates.x] == ' ';\n }\n }", "title": "" }, { "docid": "3d0d2c58ab393ba5f5dadaafae68f1e6", "score": "0.6256263", "text": "private void check(){\n \tMoveValidator mv = new MoveValidator();\n \tmv.setMoves(moves);\n \tmv.sequenceCheckFull();\n \tif(mv.getValidity() == true){\n \t\tjTextArea2.append(\"Move serialization is OK!\\n\");\n \t}\n \telse{\n \t\tjTextArea2.append(mv.getReport());\n \t}\n }", "title": "" }, { "docid": "7d2d7895d06b650404f36b4df6347111", "score": "0.62417054", "text": "public boolean checkMate(King Louis, Squishies blocker, Squishies checker, Board currentBoard){\n\tboolean inCheck = isCheck(Louis);\n\t//Checks to see if the king can move out of check\n\tboolean kingMove = canMove(Louis.xCoord, Louis.yCoord, Louis.xCoord + 1, Louis.yCoord + 1) ||\n\t canMove(Louis.xCoord, Louis.yCoord, Louis.xCoord - 1, Louis.yCoord - 1) ||\n\t canMove(Louis.xCoord, Louis.yCoord, Louis.xCoord + 1, Louis.yCoord - 1) ||\n\t canMove(Louis.xCoord, Louis.yCoord, Louis.xCoord - 1, Louis.yCoord + 1) ||\n\t canMove(Louis.xCoord, Louis.yCoord, Louis.xCoord, Louis.yCoord - 1) ||\n\t canMove(Louis.xCoord, Louis.yCoord, Louis.xCoord, Louis.yCoord + 1) ||\n\t canMove(Louis.xCoord, Louis.yCoord, Louis.xCoord + 1, Louis.yCoord) ||\n\t canMove(Louis.xCoord, Louis.yCoord, Louis.xCoord - 1, Louis.yCoord);\n\t//Checks to see if the piece can be eated\n\tboolean canEated = true;\n\tfor(String piece: Louis.checkKing()){\n\t if (piece.equals(\"Q\")){\n\t\tif(!Woo.one.color.equals(Louis.color)){\t\t \n\t\t\tif(Woo.one.Q.xCoord == Louis.xCoord){\n\t\t\t if(Louis.yCoord < Woo.one.Q.yCoord){\n\t\t\t\tfor(int y = Louis.yCoord; y <= Woo.one.Q.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.yCoord > Woo.one.Q.yCoord){\n\t\t\t\tfor(int y = Woo.one.Q.yCoord; y <= Louis.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\tif(Woo.one.Q.yCoord == Louis.yCoord){\n\t\t\t if(Louis.xCoord < Woo.one.Q.xCoord){\n\t\t\t\tfor(int x = Louis.xCoord; x <= Woo.one.Q.xCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.yCoord > Woo.one.Q.yCoord){\n\t\t\t\tfor(int x = Woo.one.Q.xCoord; x <= Louis.xCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord > Woo.one.Q.xCoord && Louis.yCoord > Woo.one.Q.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int qX = Woo.one.Q.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int qY = Woo.one.Q.yCoord;\n\t\t\t while(kingX>qX && kingY>qY){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, qX, qY); \n\t\t\t\tqX++;\n\t\t\t\tqY++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord < Woo.one.Q.xCoord && Louis.yCoord < Woo.one.Q.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int qX = Woo.one.Q.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int qY = Woo.one.Q.yCoord;\n\t\t\t while(kingX<qX && kingY<qY){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, kingX, kingY); \n\t\t\t\tkingX++;\n\t\t\t\tkingY++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord < Woo.one.Q.xCoord && Louis.yCoord > Woo.one.Q.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int qX = Woo.one.Q.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int qY = Woo.one.Q.yCoord;\n\t\t\t while(kingX<qX && kingY>qY){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, kingX, qY); \n\t\t\t\tkingX++;\n\t\t\t\tqY++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord > Woo.one.Q.xCoord && Louis.yCoord < Woo.one.Q.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int qX = Woo.one.Q.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int qY = Woo.one.Q.yCoord;\n\t\t\t while(kingX>qX && kingY<qY){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, qX, kingY); \n\t\t\t\tqX++;\n\t\t\t\tkingY++;\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\tif(!Woo.two.color.equals(Louis.color)){\t\t \n\t\t\tif(Woo.two.Q.xCoord == Louis.xCoord){\n\t\t\t if(Louis.yCoord < Woo.two.Q.yCoord){\n\t\t\t\tfor(int y = Louis.yCoord; y <= Woo.two.Q.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.yCoord > Woo.two.Q.yCoord){\n\t\t\t\tfor(int y = Woo.two.Q.yCoord; y <= Louis.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\tif(Woo.two.Q.yCoord == Louis.yCoord){\n\t\t\t if(Louis.xCoord < Woo.two.Q.xCoord){\n\t\t\t\tfor(int x = Louis.xCoord; x <= Woo.two.Q.xCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.yCoord > Woo.two.Q.yCoord){\n\t\t\t\tfor(int x = Woo.two.Q.xCoord; x <= Louis.xCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord > Woo.two.Q.xCoord && Louis.yCoord > Woo.two.Q.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int qX = Woo.two.Q.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int qY = Woo.two.Q.yCoord;\n\t\t\t while(kingX>qX && kingY>qY){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, qX, qY); \n\t\t\t\tqX++;\n\t\t\t\tqY++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord < Woo.two.Q.xCoord && Louis.yCoord < Woo.two.Q.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int qX = Woo.two.Q.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int qY = Woo.two.Q.yCoord;\n\t\t\t while(kingX<qX && kingY<qY){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, kingX, kingY); \n\t\t\t\tkingX++;\n\t\t\t\tkingY++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord < Woo.two.Q.xCoord && Louis.yCoord > Woo.two.Q.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int qX = Woo.two.Q.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int qY = Woo.two.Q.yCoord;\n\t\t\t while(kingX<qX && kingY>qY){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, kingX, qY); \n\t\t\t\tkingX++;\n\t\t\t\tqY++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord > Woo.two.Q.xCoord && Louis.yCoord < Woo.two.Q.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int qX = Woo.two.Q.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int qY = Woo.two.Q.yCoord;\n\t\t\t while(kingX>qX && kingY<qY){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, qX, kingY); \n\t\t\t\tqX++;\n\t\t\t\tkingY++;\n\t\t\t }\n\t\t\t}\n\t\t }\n\t }\n\t if (piece.equals(\"N\")){\n\t\tif(!Woo.one.color.equals(Louis.color)){\n\t\t if(canMove(Woo.one.N1.xCoord, Woo.one.N1.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, Woo.one.N1.xCoord, Woo.one.N1.yCoord);\n\t\t }\n\t\t if(canMove(Woo.one.N2.xCoord, Woo.one.N2.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, Woo.one.N2.xCoord, Woo.one.N2.yCoord);\n\t\t }\n\t\t}\n\t\tif(!Woo.two.color.equals(Louis.color)){\n\t\t if(canMove(Woo.two.N1.xCoord, Woo.two.N1.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, Woo.two.N1.xCoord, Woo.two.N1.yCoord);\n\t\t }\n\t\t if(canMove(Woo.two.N1.xCoord, Woo.two.N1.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, Woo.two.N2.xCoord, Woo.two.N2.yCoord);\n\t\t }\n\t\t}\n\t }\n\t if (piece.equals(\"R\")){\n\t\tif(!Woo.one.color.equals(Louis.color)){\t\t \n\t\t if(canMove(Woo.one.R1.xCoord, Woo.one.R1.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tif(Woo.one.R1.xCoord == Louis.xCoord){\n\t\t\t if(Louis.yCoord < Woo.one.R1.yCoord){\n\t\t\t\tfor(int y = Louis.yCoord; y <= Woo.one.R1.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.yCoord > Woo.one.R1.yCoord){\n\t\t\t\tfor(int y = Woo.one.R1.yCoord; y <= Louis.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\tif(Woo.one.R1.yCoord == Louis.yCoord){\n\t\t\t if(Louis.xCoord < Woo.one.R1.xCoord){\n\t\t\t\tfor(int x = Louis.yCoord; x <= Woo.one.R1.yCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.xCoord > Woo.one.R1.xCoord){\n\t\t\t\tfor(int x = Woo.one.R1.xCoord; x <= Louis.xCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\t\n\t\t }\n\t\t if(canMove(Woo.one.R2.xCoord, Woo.one.R2.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tif(Woo.one.R2.xCoord == Louis.xCoord){\n\t\t\t if(Louis.yCoord < Woo.one.R2.yCoord){\n\t\t\t\tfor(int y = Louis.yCoord; y <= Woo.one.R2.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.yCoord > Woo.one.R2.yCoord){\n\t\t\t\tfor(int y = Woo.one.R2.yCoord; y <= Louis.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\tif(Woo.one.R2.yCoord == Louis.yCoord){\n\t\t\t if(Louis.xCoord < Woo.one.R2.xCoord){\n\t\t\t\tfor(int x = Louis.yCoord; x <= Woo.one.R2.yCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.xCoord > Woo.one.R2.xCoord){\n\t\t\t\tfor(int x = Woo.one.R2.xCoord; x <= Louis.xCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.one.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\t\n\t\t }\n\t\t}\n\t\tif(!Woo.two.color.equals(Louis.color)){\t\t \n\t\t if(canMove(Woo.two.R1.xCoord, Woo.two.R1.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tif(Woo.two.R1.xCoord == Louis.xCoord){\n\t\t\t if(Louis.yCoord < Woo.two.R1.yCoord){\n\t\t\t\tfor(int y = Louis.yCoord; y <= Woo.two.R1.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.yCoord > Woo.two.R1.yCoord){\n\t\t\t\tfor(int y = Woo.two.R1.yCoord; y <= Louis.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\tif(Woo.two.R1.yCoord == Louis.yCoord){\n\t\t\t if(Louis.xCoord < Woo.two.R1.xCoord){\n\t\t\t\tfor(int x = Louis.yCoord; x <= Woo.two.R1.yCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.xCoord > Woo.two.R1.xCoord){\n\t\t\t\tfor(int x = Woo.two.R1.xCoord; x <= Louis.xCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\t\n\t\t }\n\t\t if(canMove(Woo.two.R2.xCoord, Woo.two.R2.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tif(Woo.two.R2.xCoord == Louis.xCoord){\n\t\t\t if(Louis.yCoord < Woo.two.R2.yCoord){\n\t\t\t\tfor(int y = Louis.yCoord; y <= Woo.two.R2.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.yCoord > Woo.two.R2.yCoord){\n\t\t\t\tfor(int y = Woo.two.R2.yCoord; y <= Louis.yCoord; y++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, Louis.xCoord, y);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\tif(Woo.two.R2.yCoord == Louis.yCoord){\n\t\t\t if(Louis.xCoord < Woo.two.R2.xCoord){\n\t\t\t\tfor(int x = Louis.yCoord; x <= Woo.two.R2.yCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(Louis.xCoord > Woo.two.R2.xCoord){\n\t\t\t\tfor(int x = Woo.two.R2.xCoord; x <= Louis.xCoord; x++){\n\t\t\t\t //Checks to see if the piece can be eaten or blocked.\n\t\t\t\t canEated = canEated && dangerCheck(Woo.two.color, x, Louis.yCoord);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\t}\n\t }\n\t if(piece.equals(\"P\")){\n\t\tif(!Woo.one.color.equals(Louis.color)){\n\t\t if(canMove(Woo.one.P1.xCoord, Woo.one.P1.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, Woo.one.P1.xCoord, Woo.one.P1.yCoord);\n\t\t }\n\t\t if(canMove(Woo.one.P2.xCoord, Woo.one.P2.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, Woo.one.P2.xCoord, Woo.one.P2.yCoord);\n\t\t }\n\t\t if(canMove(Woo.one.P3.xCoord, Woo.one.P3.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, Woo.one.P3.xCoord, Woo.one.P3.yCoord);\n\t\t }\n\t\t if(canMove(Woo.one.P4.xCoord, Woo.one.P4.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, Woo.one.P4.xCoord, Woo.one.P4.yCoord);\n\t\t }\n\t\t if(canMove(Woo.one.P5.xCoord, Woo.one.P5.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, Woo.one.P5.xCoord, Woo.one.P5.yCoord);\n\t\t }\n\t\t if(canMove(Woo.one.P6.xCoord, Woo.one.P6.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, Woo.one.P6.xCoord, Woo.one.P6.yCoord);\n\t\t }\n\t\t if(canMove(Woo.one.P7.xCoord, Woo.one.P7.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, Woo.one.P7.xCoord, Woo.one.P7.yCoord);\n\t\t }\n\t\t if(canMove(Woo.one.P8.xCoord, Woo.one.P8.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, Woo.one.P8.xCoord, Woo.one.P8.yCoord);\n\t\t }\n\t\t}\n\t\tif(!Woo.two.color.equals(Louis.color)){\n\t\t if(canMove(Woo.two.P1.xCoord, Woo.two.P1.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, Woo.two.P1.xCoord, Woo.two.P1.yCoord);\n\t\t }\n\t\t if(canMove(Woo.two.P2.xCoord, Woo.two.P2.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, Woo.two.P2.xCoord, Woo.two.P2.yCoord);\n\t\t }\n\t\t if(canMove(Woo.two.P3.xCoord, Woo.two.P3.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, Woo.two.P3.xCoord, Woo.two.P3.yCoord);\n\t\t }\n\t\t if(canMove(Woo.two.P4.xCoord, Woo.two.P4.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, Woo.two.P4.xCoord, Woo.two.P4.yCoord);\n\t\t }\n\t\t if(canMove(Woo.two.P5.xCoord, Woo.two.P5.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, Woo.two.P5.xCoord, Woo.two.P5.yCoord);\n\t\t }\n\t\t if(canMove(Woo.two.P6.xCoord, Woo.two.P6.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, Woo.two.P6.xCoord, Woo.two.P6.yCoord);\n\t\t }\n\t\t if(canMove(Woo.two.P7.xCoord, Woo.two.P7.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, Woo.two.P7.xCoord, Woo.two.P7.yCoord);\n\t\t }\n\t\t if(canMove(Woo.two.P8.xCoord, Woo.two.P8.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tcanEated = canEated && dangerCheck(Woo.two.color, Woo.two.P8.xCoord, Woo.two.P8.yCoord);\n\t\t }\n\t\t}\n\t }\n\t if (piece.equals(\"B\")){\n\t\tif(!Woo.one.color.equals(Louis.color)){\n\t\t if(canMove(Woo.one.B1.xCoord, Woo.one.B1.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tif (Louis.xCoord + Louis.yCoord > Woo.one.B1.xCoord + Woo.one.B1.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int b1X = Woo.one.B1.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int b1Y = Woo.one.B1.yCoord;\n\t\t\t while(kingX>b1X && kingY>b1Y){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, b1X, b1Y); \n\t\t\t\tb1X++;\n\t\t\t\tb1Y++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord + Louis.yCoord < Woo.one.B1.xCoord + Woo.one.B1.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int b1X = Woo.one.B1.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int b1Y = Woo.one.B1.yCoord;\n\t\t\t while(kingX<b1X && kingY<b1Y){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, kingX, kingY); \n\t\t\t\tkingX++;\n\t\t\t\tkingY++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord < Woo.one.B1.xCoord && Louis.yCoord > Woo.one.B1.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int b1X = Woo.one.B1.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int b1Y = Woo.one.B1.yCoord;\n\t\t\t while(kingX<b1X && kingY>b1Y){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, kingX, b1Y); \n\t\t\t\tkingX++;\n\t\t\t\tb1Y++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord > Woo.one.B1.xCoord && Louis.yCoord < Woo.one.B1.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int b1X = Woo.one.B1.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int b1Y = Woo.one.B1.yCoord;\n\t\t\t while(kingX>b1X && kingY<b1Y){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, b1X, kingY); \n\t\t\t\tb1X++;\n\t\t\t\tkingY++;\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\t if(canMove(Woo.one.B2.xCoord, Woo.one.B2.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t\tif (Louis.xCoord + Louis.yCoord > Woo.one.B2.xCoord + Woo.one.B2.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int b2X = Woo.one.B2.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int b2Y = Woo.one.B2.yCoord;\n\t\t\t while(kingX>b2X && kingY>b2Y){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, b2X, b2Y); \n\t\t\t\tb2X++;\n\t\t\t\tb2Y++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord + Louis.yCoord < Woo.one.B2.xCoord + Woo.one.B2.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int b2X = Woo.one.B2.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int b2Y = Woo.one.B2.yCoord;\n\t\t\t while(kingX<b2X && kingY<b2Y){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, kingX, kingY); \n\t\t\t\tkingX++;\n\t\t\t\tkingY++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord < Woo.one.B2.xCoord && Louis.yCoord > Woo.one.B2.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int b2X = Woo.one.B2.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int b2Y = Woo.one.B2.yCoord;\n\t\t\t while(kingX<b2X && kingY>b2Y){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, kingX, b2Y); \n\t\t\t\tkingX++;\n\t\t\t\tb2Y++;\n\t\t\t }\n\t\t\t}\n\t\t\tif (Louis.xCoord > Woo.one.B2.xCoord && Louis.yCoord < Woo.one.B2.yCoord){\n\t\t\t int kingX = Louis.xCoord;\n\t\t\t int b2X = Woo.one.B2.xCoord;\n\t\t\t int kingY = Louis.yCoord;\n\t\t\t int b2Y = Woo.one.B2.yCoord;\n\t\t\t while(kingX>b2X && kingY<b2Y){\n\t\t\t\tcanEated = canEated && dangerCheck(Woo.one.color, b2X, kingY); \n\t\t\t\tb2X++;\n\t\t\t\tkingY++;\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\t}\n\t }\n\t if(!Woo.two.color.equals(Louis.color)){\n\t\tif(canMove(Woo.two.B1.xCoord, Woo.two.B1.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t if (Louis.xCoord + Louis.yCoord > Woo.two.B1.xCoord + Woo.two.B1.yCoord){\n\t\t\tint kingX = Louis.xCoord;\n\t\t\tint b1X = Woo.two.B1.xCoord;\n\t\t\tint kingY = Louis.yCoord;\n\t\t\tint b1Y = Woo.two.B1.yCoord;\n\t\t\twhile(kingX>b1X && kingY>b1Y){\n\t\t\t canEated = canEated && dangerCheck(Woo.two.color, b1X, b1Y); \n\t\t\t b1X++;\n\t\t\t b1Y++;\n\t\t\t}\n\t\t }\n\t\t if (Louis.xCoord + Louis.yCoord < Woo.two.B1.xCoord + Woo.two.B1.yCoord){\n\t\t\tint kingX = Louis.xCoord;\n\t\t\tint b1X = Woo.two.B1.xCoord;\n\t\t\tint kingY = Louis.yCoord;\n\t\t\tint b1Y = Woo.two.B1.yCoord;\n\t\t\twhile(kingX<b1X && kingY<b1Y){\n\t\t\t canEated = canEated && dangerCheck(Woo.two.color, kingX, kingY); \n\t\t\t kingX++;\n\t\t\t kingY++;\n\t\t\t}\n\t\t }\n\t\t if (Louis.xCoord < Woo.two.B1.xCoord && Louis.yCoord > Woo.two.B1.yCoord){\n\t\t\tint kingX = Louis.xCoord;\n\t\t\tint b1X = Woo.two.B1.xCoord;\n\t\t\tint kingY = Louis.yCoord;\n\t\t\tint b1Y = Woo.two.B1.yCoord;\n\t\t\twhile(kingX<b1X && kingY>b1Y){\n\t\t\t canEated = canEated && dangerCheck(Woo.two.color, kingX, b1Y); \n\t\t\t kingX++;\n\t\t\t b1Y++;\n\t\t\t}\n\t\t }\n\t\t if (Louis.xCoord > Woo.two.B1.xCoord && Louis.yCoord < Woo.two.B1.yCoord){\n\t\t\tint kingX = Louis.xCoord;\n\t\t\tint b1X = Woo.two.B1.xCoord;\n\t\t\tint kingY = Louis.yCoord;\n\t\t\tint b1Y = Woo.two.B1.yCoord;\n\t\t\twhile(kingX>b1X && kingY<b1Y){\n\t\t\t canEated = canEated && dangerCheck(Woo.two.color, b1X, kingY); \n\t\t\t b1X++;\n\t\t\t kingY++;\n\t\t\t}\n\t\t }\n\t\t}\n\t\tif(canMove(Woo.two.B2.xCoord, Woo.two.B2.yCoord, Louis.xCoord, Louis.yCoord)){\n\t\t if (Louis.xCoord + Louis.yCoord > Woo.two.B2.xCoord + Woo.two.B2.yCoord){\n\t\t\tint kingX = Louis.xCoord;\n\t\t\tint b2X = Woo.two.B2.xCoord;\n\t\t\tint kingY = Louis.yCoord;\n\t\t\tint b2Y = Woo.two.B2.yCoord;\n\t\t\twhile(kingX>b2X && kingY>b2Y){\n\t\t\t canEated = canEated && dangerCheck(Woo.two.color, b2X, b2Y); \n\t\t\t b2X++;\n\t\t\t b2Y++;\n\t\t\t}\n\t\t }\n\t\t if (Louis.xCoord + Louis.yCoord < Woo.two.B2.xCoord + Woo.two.B2.yCoord){\n\t\t\tint kingX = Louis.xCoord;\n\t\t\tint b2X = Woo.two.B2.xCoord;\n\t\t\tint kingY = Louis.yCoord;\n\t\t\tint b2Y = Woo.two.B2.yCoord;\n\t\t\twhile(kingX<b2X && kingY<b2Y){\n\t\t\t canEated = canEated && dangerCheck(Woo.two.color, kingX, kingY); \n\t\t\t kingX++;\n\t\t\t kingY++;\n\t\t\t}\n\t\t }\n\t\t if (Louis.xCoord < Woo.two.B2.xCoord && Louis.yCoord > Woo.two.B2.yCoord){\n\t\t\tint kingX = Louis.xCoord;\n\t\t\tint b2X = Woo.two.B2.xCoord;\n\t\t\tint kingY = Louis.yCoord;\n\t\t\tint b2Y = Woo.two.B2.yCoord;\n\t\t\twhile(kingX<b2X && kingY>b2Y){\n\t\t\t canEated = canEated && dangerCheck(Woo.two.color, kingX, b2Y); \n\t\t\t kingX++;\n\t\t\t b2Y++;\n\t\t\t}\n\t\t }\n\t\t if (Louis.xCoord > Woo.two.B2.xCoord && Louis.yCoord < Woo.two.B2.yCoord){\n\t\t\tint kingX = Louis.xCoord;\n\t\t\tint b2X = Woo.two.B2.xCoord;\n\t\t\tint kingY = Louis.yCoord;\n\t\t\tint b2Y = Woo.two.B2.yCoord;\n\t\t\twhile(kingX>b2X && kingY<b2Y){\n\t\t\t canEated = canEated && dangerCheck(Woo.two.color, b2X, kingY); \n\t\t\t b2X++;\n\t\t\t kingY++;\n\t\t\t}\n\t\t }\n\t\t}\n\t }\n\t}\n return inCheck || !canEated || !kingMove;\n }", "title": "" }, { "docid": "129e1a455655ef36476fbbb32ab79b74", "score": "0.6229015", "text": "public int Check_Move(int from, int to){\n if(chk[from]<=0 || from ==to) return -1;\n if(chk[to]>0 && CurTop[to][chk[to]-1]<CurTop[from][chk[from]-1]) return -1;\n ans[anstop++]= new MoveInfo(CurTop[from][chk[from]-1],from,chk[from]-1,to,chk[to]);\n CurTop[to][chk[to]++]=CurTop[from][--chk[from]];\n return 0;\n }", "title": "" }, { "docid": "b34260b4c4a6c349ad133752a363183a", "score": "0.620626", "text": "public Location getMove(Board board)\n {\n boolean[] checkSpot = new boolean[26];\n Arrays.fill(checkSpot, true);\n boolean done = false;\n Location l = null;\n Random rand = new Random();\n do\n {\n for(int r = 0 ; r < board.numRows() ; r++) {\n for(int c = 0 ; c < board.numCols() ; c++) {\n for(int d = 0 ; d < board.numSheets() ; d++) {\n if(board.getLocation(new Location(c, r, d)) != getLetter() && !board.isEmpty(new Location(c, r, d))) {\n checkSpot = checkSpot(c, r, d);\n for (int x = 0 ; x < checkSpot.length ; x++) {\n if(checkSpot[x]) {\n if(board.getLocation(checkSpotAnalyzer(x,new Location(c, r, d))) != getLetter() && !board.isEmpty(checkSpotAnalyzer(x,new Location(c, r, d)))) {\n Location origin = checkSpotAnalyzer(x,new Location(c, r, d));\n boolean[] checkSpot1 = checkSpot(origin.getCol(), origin.getRow(), origin.getSheet());\n\n if(checkSpot1[x] && board.isEmpty(checkSpotAnalyzer(x, new Location(origin.getCol(), origin.getRow(), origin.getSheet())))) {\n if(worthBlocking(new Location(c, r, d), checkSpotAnalyzer(x, new Location(origin.getCol(), origin.getRow(), origin.getSheet())), board, x)) {\n l = checkSpotAnalyzer(x, new Location(origin.getCol(), origin.getRow(), origin.getSheet()));\n done = true;\n break;\n }\n }\n else if(checkSpot1[25-x] && board.isEmpty(checkSpotAnalyzer(25-x, new Location(origin.getCol(), origin.getRow(), origin.getSheet())))) {\n if(worthBlocking(new Location(c, r, d), checkSpotAnalyzer(25-x, new Location(origin.getCol(), origin.getRow(), origin.getSheet())), board, 25-x)) {\n l = checkSpotAnalyzer(25 - x, new Location(origin.getCol(), origin.getRow(), origin.getSheet()));\n done = true;\n break;\n }\n }\n }\n }\n }\n }\n if(done) {\n break;\n }\n }\n if(done) {\n break;\n }\n }\n if(done) {\n break;\n }\n }\n if(l == null || !board.isEmpty(l) || losable(board) != null || dualWin(board) != null || dualLose(board) != null) {\n if(winnable(board) != null) {\n l = winnable(board);\n }\n else if(losable(board) != null) {\n l = losable(board);\n }\n else if(dualWin(board) != null) {\n l = dualWin(board);\n }\n else if(dualLose(board) != null) {\n l = dualLose(board);\n }\n else {\n l = gradeBoardHighest(board);\n }\n }\n done=false;\n } while (!board.isEmpty(l));\n return l;\n }", "title": "" }, { "docid": "7fa8e3da2a47e065749afe52df7829c4", "score": "0.6188928", "text": "private void checkForCheck() {\n if (myLogicBoard.blackKing.isInCheck()) {\n if (!checkForCheckmate(\"BLACK KING HAS BEEN CHECKMATED\"))\n statusText.setText(\"BLACK KING IS IN CHECK\");\n }\n else if (myLogicBoard.whiteKing.isInCheck()) {\n if (!checkForCheckmate(\"WHITE KING HAS BEEN CHECKMATED\"))\n statusText.setText(\"WHITE KING IS IN CHECK\");\n }\n else {\n statusText.setText(\"\");\n }\n }", "title": "" }, { "docid": "0657e19da8aced41d30257de683a55ce", "score": "0.61848074", "text": "@Override\r\n public boolean checkValidMove(Player player) {\n return false;\r\n }", "title": "" }, { "docid": "ee8ae71bac17dcdd00224ffea8a652ff", "score": "0.6178051", "text": "public void checkMove(int playerID, int[] cardIdx) {\r\n CardList cardList = new CardList(); //creating a cardList object to hold cards played by the player\r\n boolean isValidMove = true; //to check if the move is valid or not\r\n String prevPlayer;\r\n\r\n //logic\r\n\r\n if(handsOnTable.isEmpty()){\r\n prevPlayer = \"\";\r\n }\r\n else{\r\n Hand lastHandPlayed = handsOnTable.get(handsOnTable.size() - 1);\r\n prevPlayer = lastHandPlayed.getPlayer().getName();\r\n }\r\n\r\n if(cardIdx == null) {\r\n if(handsOnTable.get(handsOnTable.size()-1).getPlayer() != playerList.get(playerID) && handsOnTable.isEmpty() == false){\r\n //legal pass\r\n changeActivePlayer(); //changing active player\r\n table.printMsg(\"{Pass}\");\r\n table.printMsg(playerList.get(playerID).getName() + \"'s turn\");\r\n }\r\n else{\r\n //illegal move\r\n table.printMsg(\"Not a legal move!!!\");\r\n isValidMove = false;\r\n }\r\n }\r\n\r\n else if(cardIdx != null) {\r\n cardList = playerList.get(playerID).play(cardIdx);\r\n Hand handPlayed = composeHand(playerList.get(playerID), cardList);\r\n\r\n if (handsOnTable.isEmpty()) {\r\n if (handPlayed.contains(new Card(0, 2)) && handPlayed.isValid()) {\r\n isValidMove = true;\r\n } else {\r\n isValidMove = false;\r\n }\r\n } else {\r\n if (playerList.get(playerID).getName() != handsOnTable.get(handsOnTable.size() -1).getPlayer().getName()){\r\n if (handPlayed != null) {\r\n Hand prevHand = handsOnTable.get(handsOnTable.size() - 1);\r\n isValidMove = handPlayed.beats(prevHand);\r\n } else {\r\n isValidMove = false;\r\n }\r\n } else if (handPlayed != null) {\r\n isValidMove = true;\r\n } else {\r\n isValidMove = false;\r\n }\r\n }\r\n\r\n if (isValidMove && handPlayed.isValid()) {\r\n for (int i = 0; i < cardList.size(); i++) {\r\n playerList.get(playerID).getCardsInHand().removeCard(cardList.getCard(i)); // removing the played cards\r\n }\r\n table.printMsg(\"{\" + handPlayed.getType() + \"}\" + handPlayed); //printing message\r\n handsOnTable.add(handPlayed); //adding the hand played to the table\r\n changeActivePlayer(); //calling another function to change the activePlayer\r\n table.printMsg(playerList.get(currentIdx).getName() + \"'s turn\");\r\n }\r\n else {\r\n table.printMsg(cardList.toString() + \" <= Not a legal move!!!\");\r\n }\r\n }\r\n\r\n if(endOfGame()){\r\n table.repaint();\r\n table.printMsg(\"Game ends\");\r\n for(int i = 0; i < playerList.size();i++)\r\n {\r\n if(playerList.get(i).getCardsInHand().size() == 0) {\r\n table.printMsg(playerList.get(i).getName() + \" wins the game\");\r\n }\r\n else {\r\n table.printMsg(playerList.get(i).getName() + \" has \" + playerList.get(i).getCardsInHand().size() + \" cards in hand\"); // cards left with other players\r\n }\r\n }\r\n table.disable();\r\n sendMessage(new CardGameMessage(CardGameMessage.READY,-1,null));\r\n }\r\n }", "title": "" }, { "docid": "f1a42b3f203886e9f8123004bc8f2d11", "score": "0.61664176", "text": "public void statusCheckMove() {\r\n int score = getScore(who, false);\r\n if (score > 0) {\r\n score += 50;\r\n for (int i = 0; i < Rack.NUM_TILES; i++)\r\n if (!who.tiles[i].onBoard) {\r\n score -= 50;\r\n break;\r\n }\r\n status.setText(\"Move will score \" + score\r\n + \". Press Sumbit to end your turn.\");\r\n submit.setEnabled(true);\r\n if (!noTesting)\r\n challenge.setEnabled(true);\r\n } else {\r\n status.setText(\"Illegal move.\");\r\n submit.setEnabled(false);\r\n challenge.setEnabled(false);\r\n }\r\n }", "title": "" }, { "docid": "1d1910226a8e41f11c64619fb603cc20", "score": "0.61637425", "text": "public ArrayList<Position> posToMove(Piece[][] board) {\n\t\tArrayList<Position> posToMove = new ArrayList<Position>();\n\t\tint x = this.getCurPos().getX();\n\t\tint y = this.getCurPos().getY();\n\t\tboolean king = this.getCurPos().getKing();\n\t\t\n\t\t//down, king or player B\n\t\tif(x+1 >= 0 && x+1 <= 7 && y+1 >= 0 && y+1 <= 7 && board[x+1][y+1] == null) {\n\t\t\tif(king || (this.getPlayer() == 1 && x+1 == 7 && !king)) {\n\t\t\t\tposToMove.add(new Position(x+1, y+1, true));\n\t\t\t} else if(this.getPlayer() == 1) {\n\t\t\t\tposToMove.add(new Position(x+1, y+1, false));\n\t\t\t}\t\t\t\n\t\t}\n\t\t//down, king or player B\n\t\tif(x+1 >= 0 && x+1 <= 7 && y-1 >= 0 && y-1 <= 7 && board[x+1][y-1] == null) {\n\t\t\tif(king || (this.getPlayer() == 1 && x+1 == 7 && !king)) {\n\t\t\t\tposToMove.add(new Position(x+1, y-1, true));\n\t\t\t} else if(this.getPlayer() == 1) {\n\t\t\t\tposToMove.add(new Position(x+1, y-1, false));\n\t\t\t}\t\t\n\t\t}\n\t\t//up, king or player A\n\t\tif(x-1 >= 0 && x-1 <= 7 && y+1 >= 0 && y+1 <= 7 && board[x-1][y+1] == null) {\n\t\t\tif(king || (this.getPlayer() == 0 && x-1 == 0 && !king)) {\n\t\t\t\tposToMove.add(new Position(x-1, y+1, true));\n\t\t\t} else if(this.getPlayer() == 0) {\n\t\t\t\tposToMove.add(new Position(x-1, y+1, false));\n\t\t\t}\t\t\n\t\t}\n\t\t//up, king or player A\n\t\tif(x-1 >= 0 && x-1 <= 7 && y-1 >= 0 && y-1 <= 7 && board[x-1][y-1] == null) {\n\t\t\tif(king || (this.getPlayer() == 0 && x-1 == 0 && !king)) {\n\t\t\t\tposToMove.add(new Position(x-1, y-1, true));\n\t\t\t} else if(this.getPlayer() == 0) {\n\t\t\t\tposToMove.add(new Position(x-1, y-1, false));\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\treturn posToMove;\n\t}", "title": "" }, { "docid": "654fc1a367f59451f617488039fcdc1d", "score": "0.6157286", "text": "private void checkEnemyMoves() {\n\n myHandler.postDelayed(new Runnable() {\n public void run() {\n if (enemyMoves <= 0 || enemyCorruptedPenalty != 0 || objectsRemaining == 1) {\n enemyTurnEnd();\n } else {\n if (objectsRemaining == 0) {\n checkIfNoObjRemains();\n } else {\n enemyTurn();\n }\n }\n }\n }, 1000);\n }", "title": "" }, { "docid": "fa679206cd628fe5404a2645ee7dec7a", "score": "0.6155418", "text": "public boolean isInStalemate()\n\t{\n\t\t\n\t\tboolean hasAMove = false;\n\t\tif (this.turn == 0)\n\t\t{\n\t\t\tfor(int i = 0; i < board.wPieces.size(); i++)\n\t\t\t{\n\t\t\t\tint oldX = board.wPieces.get(i).getX();\n\t\t\t\tint oldY = board.wPieces.get(i).getY();\n\t\t\t\tArrayList<String> moves = board.showMoves(oldX, oldY);\n\t\t\t\tif(moves == null)\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tfor(int j = 0; j < moves.size(); j++)\n\t\t\t\t{\n\t\t\t\t\tif(moves.get(j) == \"\" || doesPutKingInCheck(board.getMoveX(moves, j),board.getMoveY(moves, j),oldX,oldY))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"found a spot for team to move\");\n\t\t\t\t\t\thasAMove = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\t//System.out.println(\"size of black pieces: \"+board.bPieces.size());\n\t\t\tfor(int i = 0; i < board.bPieces.size(); i++)\n\t\t\t{\n\t\t\t\tint oldX = board.bPieces.get(i).getX();\n\t\t\t\tint oldY = board.bPieces.get(i).getY();\n\t\t\t\tArrayList<String> moves = board.showMoves(oldX, oldY);\n\t\t\t\tif(moves == null)\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tfor(int j = 0; j < moves.size(); j++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tif(moves.get(j) == \"\" || doesPutKingInCheck(board.getMoveX(moves, j),board.getMoveY(moves, j),oldX,oldY))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"found a spot for team to move\");\n\t\t\t\t\t\thasAMove = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn !hasAMove;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "ca0875dcc6f520f616debc04e9653bc1", "score": "0.61412257", "text": "@Override\n\tpublic void doPreMoveChecks(HantoPieceType piece, \n\t\t\tHexCoordinate from, HexCoordinate to) throws HantoException \n\t{\n\t\tverifyGameIsNotOver();\n\t\tverifySourceAndDestinationCoords(from, to);\n\t\tverifyMoveIsLegal(piece, from, to);\n\t\tverifyPlacementIsNotNextToAnotherColor(from, to);\n\t}", "title": "" }, { "docid": "cdd6871886459a8951d9021ae6aabd2b", "score": "0.6118468", "text": "public Location[] getLegalMoves(boolean check)\n {\n Location nPosF = null;\n Location n2PosF = null;\n if(getLocation().getAdjacentLocation(0) != null)\n nPosF = getLocation().getAdjacentLocation(0);\n if(nPosF.getAdjacentLocation(0) != null)\n n2PosF = nPosF.getAdjacentLocation(0);\n \n Location[] legalMoves = new Location[6];\n \n if(!ChessBoard.isTurn(getColorType()) && check)\n \t\treturn legalMoves;\n\n if(nPosF.isOnBoard() && getGrid().get(nPosF) == null && isLegal(check, nPosF))\n \tlegalMoves[0] = nPosF;\n if(n2PosF.isOnBoard() && getGrid().get(n2PosF) == null && canPass && isLegal(check, n2PosF))\n \tlegalMoves[1] = n2PosF;\n //Enpassant Pawn\n if(getPassedPawn() != null && isLegal(check, getPassedPawn().getLocation()))\n \tlegalMoves[1] = getPassedPawn().getLocation().getAdjacentLocation(0);\n //Taking other peices\n for(int i = -45; i < 135; i+=90)\n {\n Location cPos = getLocation();\n if(cPos.getAdjacentLocation(i).isOnBoard())\n {\n ChessPiece C = (ChessPiece)(getGrid().get(cPos.getAdjacentLocation(i)));\n if(C != null && isLegal(check, C.getLocation()))\n legalMoves[2+(i+45)/90] = C.getLocation(); //This is to make it such that it would put it on position 2 in the first iteration and position 3 on the second iteration\n }\n }\n \treturn legalMoves;\n }", "title": "" }, { "docid": "00aa7d9eea4ddf62ff5ca5849c8cd3af", "score": "0.6104923", "text": "@Override\n\tpublic boolean isMoveValid(Board board,char player, int[] currentpos, int[] destination){\n\t\tboolean isValid = false;\n\t\t\n\t\tint curX = currentpos[0];\n\t\tint curY = currentpos[1];\n\t\tint desX = destination[0];\n\t\tint desY = destination[1];\n\t\t\n\t\tif (this.isPlayerProperty(player)){\t\t // Testing, whether the piece is player property or not\n\t\t\t\n\t\t\tif (desY < 8 && desY >= 0 && desX < 8 && desX >= 0){ \t// The destination mustn't exceed the boards borders \n\t\t\t\t\n\t\t\t\tint fieldDistanceX = Math.abs(desX - curX);\t\t// Here we get the absolute value of the distance in x-direction\n\t\t\t\tint fieldDistanceY = Math.abs(curY - desY);\t\t// Here we get the absolute value of the distance in y-direction\n\t\t\t\t\n\t\t\t\t// Normal movement\n\t\t\t\tif(fieldDistanceX == 1 && fieldDistanceY == 1 || fieldDistanceX == 1 && fieldDistanceY == 0 || fieldDistanceX == 0 && fieldDistanceY == 1){ \t// As long as the kings destination is a field next to his current position, the move should be valid \n\t\t\t\t\t\n\t\t\t\t\tif(board.getBoardPos(desX,desY) == null ||board.getBoardPos(desX,desY).getColor() != player){ \t// the destination field must be either empty or occupied by an enemy piece \n\t\t\t\t\t\t\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//BIG PROBLEM: We can't use .isKingInCheck in here without causing a stackoverflow-error, since\n\t\t\t\t// .isKingInCheck calls .isMoveValid, they just call each other over and over again...\n\t\t\t\t// I guess I'll have to split up this part and test in our BoardSquaresMouseListener, if the\n\t\t\t\t// king runs through an attacked field the BoardSquaresListener checks for invalidity due to pieces\n\t\t\t\t// attacking the king (we already do that for \"normal\" movement patterns anyway, so I don't don't think\n\t\t\t\t// it's too unfitting)\n\t\t\t\t\n\t\t\t\t//Castling\n\t\t\t\t//Castling kingside (white)\n\t\t\t\tif(player == 'w'){\n\t\t\t\t\tif(curX == 4 && curY == 7 && desX == 6 && desY == 7){\n\t\t\t\t\t\t//Castling requires that rook and king haven't been moved yet...\n\t\t\t\t\t\tif(!this.hasMoved() && board.getBoardPos(7, 7) != null && board.getBoardPos(7, 7).getColor() == player && !board.getBoardPos(7,7).hasMoved()){\n\t\t\t\t\t\t\t//..and that the space between rook and king is empty\n\t\t\t\t\t\t\tif(board.getBoardPos(5, 7) == null && board.getBoardPos(6, 7) == null){\n\t\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Castling kingside (black) \n\t\t\t\tif(player == 'b'){\n\t\t\t\t\tif(curX == 4 && curY == 0 && desX == 6 && desY == 0){\n\t\t\t\t\t\t//Castling requires that rook and king haven't been moved yet...\n\t\t\t\t\t\tif(!this.hasMoved() && board.getBoardPos(7, 0) != null && board.getBoardPos(7, 0).getColor() == player && !board.getBoardPos(7,0).hasMoved()){\n\t\t\t\t\t\t\t//..and that the space between rook and king is empty\n\t\t\t\t\t\t\tif(board.getBoardPos(5, 0) == null && board.getBoardPos(6, 0) == null){\n\t\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Castling queenside (white)\n\t\t\t\tif(player == 'w'){\n\t\t\t\t\tif(curX == 4 && curY == 7 && desX == 2 && desY == 7){\n\t\t\t\t\t\t//Castling requires that rook and king haven't been moved yet...\n\t\t\t\t\t\tif(!this.hasMoved() && board.getBoardPos(0, 7) != null && board.getBoardPos(0, 7).getColor() == player && !board.getBoardPos(0,7).hasMoved()){\n\t\t\t\t\t\t\t//..and that the space between rook and king is empty\n\t\t\t\t\t\t\tif(board.getBoardPos(2, 7) == null && board.getBoardPos(3, 7) == null){\n\t\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Castling queenside (black)\n\t\t\t\tif(player == 'b'){\n\t\t\t\t\tif(curX == 4 && curY == 0 && desX == 2 && desY == 0){\n\t\t\t\t\t\t//Castling requires that rook and king haven't been moved yet...\n\t\t\t\t\t\tif(!this.hasMoved() && board.getBoardPos(0, 0) != null && board.getBoardPos(0, 0).getColor() == player && !board.getBoardPos(0,0).hasMoved()){\n\t\t\t\t\t\t\t//..and that the space between rook and king is empty\n\t\t\t\t\t\t\tif(board.getBoardPos(2, 0) == null && board.getBoardPos(3, 0) == null){\n\t\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t};\n\t\t};\n\t\t\n\t\t\n\t\treturn isValid; // The boolean value will eventually be returned\n\t\t\n\t}", "title": "" }, { "docid": "2d9ac8acc71efef1598467709e419cea", "score": "0.60924834", "text": "protected boolean moveComputing(MoveData feedInData) {\n if (validatingMoves(feedInData)) {\n Square preMoves = square[feedInData.getPreX()][feedInData.getPreY()];\n Square curMoves = square[feedInData.getNewX()][feedInData.getNewY()];\n // check king and rook\n if (preMoves.getPiece().getPieceName().equals(\"king\") && curMoves.getPiece().getPieceName().equals(\"rook\")) {\n // check same color\n if (curMoves.getPiece().getPieceColor().equals(\"white\") && preMoves.getPiece().getPieceColor().equals(\"white\")) {\n if (feedInData.getNewX() == 7) {\n curMoves = square[6][0];\n curMoves.setPiece(preMoves.pieceRemove());\n preMoves = square[7][0];\n curMoves = square[5][0];\n curMoves.setPiece(preMoves.pieceRemove());\n } else {\n curMoves = square[2][0];\n curMoves.setPiece(preMoves.pieceRemove());\n preMoves = square[0][0];\n curMoves = square[3][0];\n curMoves.setPiece(preMoves.pieceRemove());\n }\n }\n // same for black\n // check for same color\n else if (curMoves.getPiece().getPieceColor().equals(\"black\") && preMoves.getPiece().getPieceColor().equals(\"black\")) {\n if (feedInData.getNewX() == 7) {\n curMoves = square[6][7];\n curMoves.setPiece(preMoves.pieceRemove());\n preMoves = square[7][7];\n curMoves = square[5][7];\n curMoves.setPiece(preMoves.pieceRemove());\n } else {\n curMoves = square[2][7];\n curMoves.setPiece(preMoves.pieceRemove());\n preMoves = square[0][7];\n curMoves = square[3][7];\n curMoves.setPiece(preMoves.pieceRemove());\n }\n }\n } else {\n curMoves.setPiece(preMoves.pieceRemove());\n\n if (curMoves.getPiece().getPieceName().equals(\"pawn\")) {\n if (curMoves.getPiece().getPieceColor().equals(\"white\") && feedInData.getNewY() == 7) {\n curMoves.setPiece(new QueenPiece(true));\n } else if (curMoves.getPiece().getPieceColor().equals(\"black\") && feedInData.getNewY() == 0) {\n curMoves.setPiece(new QueenPiece(false));\n }\n }\n }\n whiteTurn = !whiteTurn;\n return true;\n } else // invalid move\n {\n return false;\n }\n }", "title": "" }, { "docid": "35ce8c579c3de12ea3fdcc032e31a780", "score": "0.6088828", "text": "@Override\n\tpublic void doPostMoveChecks(HexCoordinate to) throws HantoException {\n\t\tif(to != null) {\n\t\t\tverifyBoardIsContiguous();\n\t\t}\n\t}", "title": "" }, { "docid": "81fc3d87beb35982f1d1f2c6d77a19de", "score": "0.6078545", "text": "protected void moveCheck(int x, int y, int movePoints)\n\t{\n\t\tTile currentTile = Main.map[y][x];\n\t\tEntity currentEntity = currentTile.getEntity();\n\t\t\n\t\t//Subtracts by the amount of move points required to cross\n\t\tmovePoints -= currentTile.getMovePoints(); \n\t\t\n\t\t//If you cannot move anymore due to running out of move points, encountering the\n\t\t//enemy or encountering an impassable tile, then the method stops checking\n\t\tif (movePoints >= -1 && currentTile.isPassable() && \n\t\t (currentEntity == null || currentEntity.getTeam() == this.team))\n\t\t{\n\t\t\t//If the tile is empty or if the tile contains an entity of the same type with less than full health\n\t\t\tif (currentEntity == null ||\n\t\t\t (currentEntity.toString() == this.type &&\n\t\t\t currentEntity.getTeam() == this.team &&\n\t\t\t currentEntity.getHealth() < 10))\n\t\t\t{\n\t\t\t\tcurrentTile.setListening(true);\n\t\t\t\tcurrentTile.setCanMove(true);\t\n\t\t\t\trangedList.add(currentTile);\t\n\t\t\t}\n\t\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmoveCheck(x, y + 1, movePoints); //Up\n\t\t\t}\n\t\t\tcatch (IndexOutOfBoundsException e){}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmoveCheck(x, y - 1, movePoints); //Down\n\t\t\t}\n\t\t\tcatch (IndexOutOfBoundsException e){}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmoveCheck(x - 1, y, movePoints); //Left\n\t\t\t}\n\t\t\tcatch (IndexOutOfBoundsException e){}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmoveCheck(x + 1, y, movePoints); //Right\n\t\t\t}\n\t\t\tcatch (IndexOutOfBoundsException e){}\t\n\t\t}\n\t}", "title": "" }, { "docid": "41962de0a2ac230919bf9bc39e648dc4", "score": "0.6070704", "text": "private void checkRepeated() {\n if (positionHistory.contains(this)) {\n this._repeated = true;\n this._winner = _turn;\n }\n }", "title": "" }, { "docid": "090b8100049c8134195f7f294cae5b41", "score": "0.60662735", "text": "protected abstract boolean validMove(int x, int y);", "title": "" }, { "docid": "02688fbb6ea737a945adcfddd669d289", "score": "0.60578763", "text": "public int legalMove (int currX, int currY, int newX, int newY){\n\t\t\n\t\tboolean legal = true;\n\t\tint check = 0;\n\t\t\n\t\tint dx;\n\t\tint dy;\n\t\tdx = newX-currX;\n\t\tdy = newY-currY;\n\t\t\n\t\t\n\t\t/*\n\t\t * Makes sure King only moves 1 space in any direction\n\t\t */\n\t\tif(Math.abs(dx) <= 1 && Math.abs(dy) <= 1){\n\t\t\t/*\n\t\t\tif(scanCheck(newX,newY)){\n\t\t\t\treturn 3;\n\t\t\t}\n\t\t\t*/\n\t\t\t\n\t\t\t/* Checks is space is empty or not */\n\t\t\tif(board.isSpotEmpty(newX, newY)){\n\t\t\t\t/*\n\t\t\t\tif(scanCheck(newX,newY)){\n\t\t\t\t\treturn 3;\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tmoveCount++;\n\t\t\t\treturn 1;\n\t\t\t}else if(!(board.getSquare(newX, newY).getPiece().pColor==pColor)){\n\t\t\t\t/* If not make sure piece is opposite color */\n\t\t\t\t/*\n\t\t\t\tif(scanCheck(newX,newY)){\n\t\t\t\t\treturn 3;\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tmoveCount++;\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse if(Math.abs(dx) == 0 && Math.abs(dy) == 2 && moveCount == 0){\n\t\t\t\n\t\t\tPiece p;\n\t\t\t\n\t\t\tif(dy > 0){\n\t\t\t\tif(board.isSpotEmpty(newX, newY -1) && board.isSpotEmpty(newX,newY)){\n\t\t\t\t\tp = board.getSquare(newX, newY+1).getPiece();\n\t\t\t\t\t\n\t\t\t\t\tif(p == null)\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\n\t\t\t\t\tif(p instanceof Rook && p.getColor() == this.pColor){\n\t\t\t\t\t\tif(p.getMoveCount() == 0){\n\t\t\t\t\t\t\treturn 11;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tif(board.isSpotEmpty(newX, newY + 1) && board.isSpotEmpty(newX,newY) && board.isSpotEmpty(newX, newY - 1)){\n\t\t\t\t\tp = board.getSquare(newX, newY-2).getPiece();\n\t\t\t\t\t\n\t\t\t\t\tif(p == null)\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\n\t\t\t\t\tif(p instanceof Rook && p.getColor() == this.pColor){\n\t\t\t\t\t\tif(p.getMoveCount() == 0){\n\t\t\t\t\t\t\treturn 12;\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\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ed8713da8d6d58c6c620ebee08833ab1", "score": "0.60556424", "text": "@Override\n public boolean isValidMove(int vertical, int horizontal) {\n\n if (super.b.isWhiteTurn) /*if it is white turn*/ {\n\n if (super.hasBeenMoved) /*if it has been moved already*/ {\n\n if (b.pieces[vertical][horizontal] == null) /*if there is no\n piece at the coordinates*/ {\n\n /*return true if the coordinate is one square ahead, \n false if not */\n return vertical == super.vertical - 1\n && horizontal == super.horizontal;\n\n } else if ((super.vertical - vertical == 1)\n && Math.abs(super.horizontal - horizontal) == 1)/*if the \n piece is one diagonal ahead*/ {\n\n //return true if there is a piece\n return b.pieces[vertical][horizontal] != null;\n\n } else {\n return false;\n }\n\n } else /*if it hasn't been moved*/ {\n\n //if the coordinates are one square ahead\n if (vertical == super.vertical - 1\n && horizontal == super.horizontal) {\n\n /*if there is no piece return true*/\n return b.pieces[vertical][horizontal] == null;\n\n } else if ((super.vertical - vertical == 1)\n && Math.abs(super.horizontal - horizontal) == 1) /*\n if the coordinates are one diagonal ahead*/ {\n\n //return true if there is a piece\n return b.pieces[vertical][horizontal] != null;\n\n } else /* if the coordianates aren't one square ahead*/ {\n\n if (b.pieces[vertical][horizontal] == null) /*if there \n is nopiece at the coordinates*/ {\n\n /*return true if coordinates are 2 square ahead and \n there is no piece ahead of this piece, return false if \n not*/\n return (vertical == super.vertical - 2\n && horizontal == super.horizontal)\n && (b.pieces[vertical + 1][horizontal] == null);\n\n } else {\n return false;\n }\n\n }\n }\n } else { //if it is black turn\n\n if (super.hasBeenMoved)/*if it hasnt been moved*/ {\n\n if (b.pieces[vertical][horizontal] == null) /*if there is no\n piece at the coordinates*/ {\n\n /*return true if the coordinate is one square ahead, \n false if not */\n return vertical == super.vertical + 1\n && horizontal == super.horizontal;\n\n } else if ((vertical - super.vertical == 1)\n && Math.abs(super.horizontal - horizontal) == 1)/*if the \n piece is one diagonal ahead*/ {\n\n //return true if there is a piece\n return b.pieces[vertical][horizontal] != null;\n } else {\n return false;\n }\n\n } else { //if it hasn't been moved \n\n //if the coordinates are one square ahead\n if (vertical == super.vertical + 1\n && horizontal == super.horizontal) {\n\n /*if there is no piece return true*/\n return b.pieces[vertical][horizontal] == null;\n\n } else if ((vertical - super.vertical == 1)\n && Math.abs(super.horizontal - horizontal) == 1) /*\n if the coordinates are one diagonal ahead*/ {\n\n //return true if there is a piece\n return b.pieces[vertical][horizontal] != null;\n\n } else /* if the coordianates aren't one square ahead*/ {\n\n if (b.pieces[vertical][horizontal] == null) /*if there \n is nopiece at the coordinates*/ {\n\n /*return true if coordinates are 2 square ahead and \n there is no piece ahead of this piece, return false if \n not*/\n return (vertical == super.vertical + 2\n && horizontal == super.horizontal)\n && (b.pieces[vertical - 1][horizontal] == null);\n\n } else {\n return false;\n }\n\n }\n }\n }\n }", "title": "" }, { "docid": "7384eb679c1fe01b97bbd12f82a3b055", "score": "0.6055066", "text": "private boolean canMove() {\r\n // NOTE: this is to keep the compiler happy until you get to this part\r\n boolean check = false;\r\n for(int i = 0; i<8; i++){\r\n for(int j = 0; j<8; j++){\r\n \r\n if(getPiece(i, j) == 0){\r\n determineSurrounding(j, i);\r\n if(current_player == 1 && determineReverse(j, i) && !check )\r\n check = true;\r\n else if(current_player == 2 && determineReverse(j, i) && !check)\r\n check = true;\r\n } \r\n }\r\n }\r\n return check;\r\n\t}", "title": "" }, { "docid": "0d4cc282e87fe906efc3fb881821322a", "score": "0.6054303", "text": "@Test\r\n\tpublic void testCannotMoveCheckerIfMovesExhausted() {\r\n\t\tgame.nextTurn();\r\n\t\tgame.move(Location.R1, Location.R2);\r\n\t\tgame.move(Location.R1, Location.R2);\r\n\t\t\r\n\t\tassertFalse(\"Player should not be able to move after exhausting moves\",\r\n\t\t\t\tgame.move(Location.R12, Location.R2));\r\n\t}", "title": "" }, { "docid": "16f92e47a84c34ba9eb5fb00e93e0d77", "score": "0.60493505", "text": "public void verifyMovement(int init_row, int init_col, int fin_row, int fin_col, Table table){\n\n\n\n super.verifyMovement(init_row, init_col,fin_row,fin_col,table);\n\n\n\n if((team == 1 && y_movement < 0) || (team == -1 && y_movement > 0)){\n return;\n }\n\n else if((Math.abs(y_movement) != 1 && Math.abs(x_movement) != 0) || (moved == 0 && Math.abs(y_movement) == 2) ) { return;}\n\n else if((Math.abs(x_movement) == Math.abs(y_movement)) && (table.vTable[fin_row][fin_col] == null ||table.vTable[fin_row][fin_col].team == team)){\n return;}\n\n else if((Math.abs(x_movement) == 0 && y_movement != 0) && (table.vTable[fin_row][fin_col] != null)){\n return;\n }\n\n\n else if(table.vTable[fin_row][fin_col] == null){\n table.movePiece(init_row,init_col, fin_row,fin_col);\n moved = 0;\n }\n\n else if(table.vTable[fin_row][fin_col].team != team){\n table.movePiece(init_row,init_col, fin_row,fin_col);\n moved = 0;\n \n }\n\n \n }", "title": "" }, { "docid": "48b56b2ada88a1fd3dbd860aae5c40bd", "score": "0.601813", "text": "private boolean checkMove(int x, int y, int player) {\n if(board.getCellState(y,x) == 0) {\n int[] result = checkValidMove(x, y, player);\n\n return result[0] != -1;\n }\n return false;\n }", "title": "" }, { "docid": "d73d7009f161487494784913846600aa", "score": "0.60132796", "text": "public void normalCheck()\n\t{\n\t\tif(player.getY() == y_o)\n\t\t{\n\t\t\tair = false;\n\t\t\tairTime = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tair = true;\n\t\t\tairTime++;\n\t\t}\n\t\ty_o = player.getY();\n\t}", "title": "" }, { "docid": "27dbde7ef8c565b390e781481fc2114a", "score": "0.59984684", "text": "public boolean Validate(PlayerMove theMove, ChessBoard board) {\r\n boolean valid = false;\r\n int sX = theMove.sourceX;\r\n int sY = theMove.sourceY;\r\n int tX = theMove.targetX;\r\n int tY = theMove.targetY;\r\n this.board = board;\r\n if (isEmpty(sX, sY)) {\r\n System.out.println(\"There's no piece there!\");\r\n return false;\r\n }\r\n //Check if piece is black or white\r\n ChessPiece piece = null;\r\n piece = board.board[sX][sY];\r\n\r\n if (sX > 7 || sX < 0 || sY > 7 || sY < 0 || tX > 7 || tX < 0 || tY > 7 || tY < 0) { //Is it out of bounds?\r\n System.out.println(\"Out of bounds\");\r\n return false;\r\n }\r\n if (!board.gamestate.equals(theMove.playerColor)) { //Is it the correct color?\r\n System.out.println(\"Not your turn\");\r\n return false;\r\n }\r\n if (piece.color != theMove.playerColor) { //make sure player color matches peice color\r\n System.out.println(\"Wrong color\");\r\n return false;\r\n }\r\n if (!isEmpty(tX, tY)) { //if target space is occupied\r\n if (board.board[tX][tY].color == theMove.playerColor) { //make sure it isn't same color\r\n System.out.println(\"You have a piece there already\");\r\n return false;\r\n }\r\n\r\n }\r\n switch (piece.type) {\r\n case PAWN:\r\n if (piece.color == COLOR.WHITE) {\r\n if (sY == 1 && tY == (sY + 2) && sX == tX && isEmpty(tX, tY) && isEmpty(tX, tY - 1)) //if first move and up 2 and empty on 1 and 2\r\n {\r\n valid = true;\r\n } else if (tY == (sY + 1) && sX == tX && isEmpty(tX, tY)) //if up 1 and empty on 1\r\n {\r\n valid = true;\r\n } else if (tY == (sY + 1) && tX == (sX - 1) && !isEmpty(tX, tY))// if 1 up and to the left to capture\r\n {\r\n valid = true;\r\n } else if (tY == (sY + 1) && tX == (sX + 1) && !isEmpty(tX, tY))//if 1 up and to the right to capture\r\n {\r\n valid = true;\r\n } else {\r\n System.out.println(\"invalid move\");\r\n valid = false;\r\n }\r\n }\r\n if (piece.color == COLOR.BLACK) {\r\n if (sY == 6 && tY == (sY - 2) && sX == tX && isEmpty(tX, tY) && isEmpty(tX, tY + 1)) //if first move and down 2 and empty on 1 and 2\r\n {\r\n valid = true;\r\n } else if (tY == (sY - 1) && sX == tX && isEmpty(tX, tY)) //if up 1 and empty on 1\r\n {\r\n valid = true;\r\n } else if (tY == (sY - 1) && tX == (sX + 1) && !isEmpty(tX, tY))// if 1 up and to the left to capture\r\n {\r\n valid = true;\r\n } //RUN CAPTURE ROUTINE\r\n else if (tY == (sY - 1) && tX == (sX - 1) && !isEmpty(tX, tY))//if 1 up and to the right to capture\r\n {\r\n valid = true;\r\n } //RUN CAPTURE ROUTINE\r\n else {\r\n System.out.println(\"invalid move\");\r\n valid = false;\r\n }\r\n\r\n }\r\n break;\r\n case ROOK:\r\n int rowCheck = tX;\r\n int colCheck = tY;\r\n if (tY != sY && tX != sX) {\r\n System.out.println(\"not on same row or column\");\r\n return false;\r\n }\r\n\r\n if (tY == sY) { //if target is on the same row\r\n if (tX > sX) { //if target is to the right\r\n rowCheck--;\r\n while (rowCheck > sX) {\r\n if (!isEmpty(rowCheck, tY)) {\r\n System.out.println(\"1.Found a piece at \" + rowCheck + \" \" + tY);\r\n return false;\r\n }\r\n rowCheck--;\r\n }\r\n } else if (tX < sX) { //if target is to the left\r\n rowCheck++;\r\n while (rowCheck < sX) {\r\n if (!isEmpty(rowCheck, tY)) {\r\n System.out.println(\"2.Found a piece at \" + rowCheck + \" \" + tY);\r\n return false;\r\n }\r\n rowCheck++;\r\n }\r\n }\r\n } else if (tX == sX) { //if target is on the same column\r\n if (tY > sY) {//if target is above\r\n colCheck--;\r\n while (colCheck > sY) {\r\n if (!isEmpty(tX, colCheck)) {\r\n System.out.println(\"3.Found a piece at \" + tX + \" \" + colCheck);\r\n return false;\r\n }\r\n colCheck--;\r\n }\r\n } else if (tY < sY) { //if target is below\r\n colCheck++;\r\n while (colCheck < sY) {\r\n if (!isEmpty(tX, colCheck)) {\r\n System.out.println(\"4.Found a piece at \" + tX + \" \" + colCheck);\r\n return false;\r\n }\r\n colCheck++;\r\n }\r\n }\r\n }\r\n valid = true;\r\n break;\r\n case KNIGHT:\r\n if (tX == (sX - 1) && tY == (sY + 2)) //if up 2 and left 1\r\n {\r\n valid = true;\r\n } else if (tX == (sX + 1) && tY == (sY + 2)) //up 2 right 1\r\n {\r\n valid = true;\r\n } else if (tX == (sX - 1) && tY == (sY - 2)) //down 2 left 1\r\n {\r\n valid = true;\r\n } else if (tX == (sX + 1) && tY == (sY - 2)) //down 2 right 1\r\n {\r\n valid = true;\r\n } else if (tX == (sX - 2) && tY == (sY + 1)) //left 2 up 1\r\n {\r\n valid = true;\r\n } else if (tX == (sX - 2) && tY == (sY - 1)) //left 2 down 1\r\n {\r\n valid = true;\r\n } else if (tX == (sX + 2) && tY == (sY + 1)) //right 2 up 1\r\n {\r\n valid = true;\r\n } else if (tX == (sX + 2) && tY == (sY - 1)) //right 2 down 1\r\n {\r\n valid = true;\r\n }\r\n break;\r\n case BISHOP:\r\n\r\n double slope = (tY - sY) / (tX - sX);\r\n if (slope != 1.0 && slope != -1.0) {\r\n\r\n System.out.println(\"slope: \" + slope);\r\n System.out.println(\"Bishop must move along daigonal (slope = |1|)\");\r\n return false;\r\n }\r\n\r\n if (tX > sX && tY > sY) {//upRight\r\n while (tX != sX && tY != sY) {\r\n tX--;\r\n tY--;\r\n if (!isEmpty(tX, tY) && tX != sX) {\r\n System.out.println(\"Tried to move Bishop but found a piece at \" + tX + \" \" + tY);\r\n return false;\r\n }\r\n }\r\n } else if (tX < sX && tY > sX) {//upLeft\r\n while (tX != sX && tY != sY) {\r\n tX++;\r\n tY--;\r\n if (!isEmpty(tX, tY) && tX != sX) {\r\n System.out.println(\"Tried to move Bishop but found a piece at \" + tX + \" \" + tY);\r\n return false;\r\n }\r\n }\r\n } else if (tX < sX && tY < sY) {//downLeft\r\n while (tX != sX && tY != sY) {\r\n tX++;\r\n tY++;\r\n if (!isEmpty(tX, tY) && tX != sX) {\r\n System.out.println(\"Tried to move Bishop but found a piece at \" + tX + \" \" + tY);\r\n return false;\r\n }\r\n }\r\n } else if (tX > sX && tY < sY) {//downRight\r\n while (tX != sX && tY != sY) {\r\n tX--;\r\n tY++;\r\n if (!isEmpty(tX, tY) && tX != sX) {\r\n System.out.println(\"Tried to move Bishop but found a piece at \" + tX + \" \" + tY);\r\n return false;\r\n }\r\n }\r\n }\r\n valid = true;\r\n break;\r\n case QUEEN:\r\n int rowCheck2 = tX;\r\n int colCheck2 = tY;\r\n if (tY != sY && tX != sX) {\r\n double slope2 = (tY - sY) / (tX - sX);\r\n if (slope2 != 1.0 && slope2 != -1.0) {\r\n\r\n System.out.println(\"slope: \" + slope2);\r\n System.out.println(\"Queen must move along daigonal (slope = |1|)\");\r\n return false;\r\n }\r\n\r\n if (tX > sX && tY > sY) {//upRight\r\n while (tX != sX && tY != sY) {\r\n tX--;\r\n tY--;\r\n if (!isEmpty(tX, tY) && tX != sX) {\r\n System.out.println(\"Tried to move Queen but found a piece at \" + tX + \" \" + tY);\r\n return false;\r\n }\r\n }\r\n } else if (tX < sX && tY > sX) {//upLeft\r\n while (tX != sX && tY != sY) {\r\n tX++;\r\n tY--;\r\n if (!isEmpty(tX, tY) && tX != sX) {\r\n System.out.println(\"Tried to move Queen but found a piece at \" + tX + \" \" + tY);\r\n return false;\r\n }\r\n }\r\n } else if (tX < sX && tY < sY) {//downLeft\r\n while (tX != sX && tY != sY) {\r\n tX++;\r\n tY++;\r\n if (!isEmpty(tX, tY) && tX != sX) {\r\n System.out.println(\"Tried to move Queen but found a piece at \" + tX + \" \" + tY);\r\n return false;\r\n }\r\n }\r\n } else if (tX > sX && tY < sY) {//downRight\r\n while (tX != sX && tY != sY) {\r\n tX--;\r\n tY++;\r\n if (!isEmpty(tX, tY) && tX != sX) {\r\n System.out.println(\"Tried to move Queen but found a piece at \" + tX + \" \" + tY);\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (tY == sY) { //if target is on the same row\r\n if (tX > sX) { //if target is to the right\r\n rowCheck2--;\r\n while (rowCheck2 > sX) {\r\n if (!isEmpty(rowCheck2, tY)) {\r\n System.out.println(\"1.Found a piece at \" + rowCheck2 + \" \" + tY);\r\n return false;\r\n }\r\n rowCheck2--;\r\n }\r\n } else if (tX < sX) { //if target is to the left\r\n rowCheck2++;\r\n while (rowCheck2 < sX) {\r\n if (!isEmpty(rowCheck2, tY)) {\r\n System.out.println(\"2.Found a piece at \" + rowCheck2 + \" \" + tY);\r\n return false;\r\n }\r\n rowCheck2++;\r\n }\r\n }\r\n } else if (tX == sX) { //if target is on the same column\r\n if (tY > sY) {//if target is above\r\n colCheck2--;\r\n while (colCheck2 > sY) {\r\n if (!isEmpty(tX, colCheck2)) {\r\n System.out.println(\"3.Found a piece at \" + tX + \" \" + colCheck2);\r\n return false;\r\n }\r\n colCheck2--;\r\n }\r\n } else if (tY < sY) { //if target is below\r\n colCheck2++;\r\n while (colCheck2 < sY) {\r\n if (!isEmpty(tX, colCheck2)) {\r\n System.out.println(\"4.Found a piece at \" + tX + \" \" + colCheck2);\r\n return false;\r\n }\r\n colCheck2++;\r\n }\r\n }\r\n }\r\n valid = true;\r\n break;\r\n case KING:\r\n if (tX == sX && tY == sY + 1) //up\r\n {\r\n valid = true;\r\n } else if (tX == sX && tY == sY - 1) //down\r\n {\r\n valid = true;\r\n } else if (tY == sY && tX == sX + 1) //right\r\n {\r\n valid = true;\r\n } else if (tY == sY && tX == sX - 1) //left\r\n {\r\n valid = true;\r\n } else if (tX == (sX - 1) && tY == (sY + 1))//if up 1 and left 1\r\n {\r\n valid = true;\r\n } else if (tX == (sX + 1) && tY == (sY + 1)) //up 1 right 1\r\n {\r\n valid = true;\r\n } else if (tX == (sX - 1) && tY == (sY - 1)) //down 1 left 1\r\n {\r\n valid = true;\r\n } else if (tX == (sX + 1) && tY == (sY - 1)) //down 1 right 1\r\n {\r\n valid = true;\r\n }\r\n break;\r\n }\r\n if (valid) {\r\n return true;\r\n } else {\r\n\r\n System.out.println(\"Piece trying to move: \" + piece.type);\r\n System.out.println(\"Color trying to move: \" + piece.color);\r\n\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "79d01afbfe05dfcaefc2d9ffae719921", "score": "0.5996601", "text": "private void ItemUfoMoveAndCollisionCheck()\n {\n if( mItemUfo.MoveItemUfoImage(mItemUfo.moving_pattern) == false )\n {\n mItemUfo = null;\n return;\n }\n else\n {\n // DM.i(\"draw ufo / in ItemUfoMoveAndCollisionCheck()\");\n }\n \n // DM.e( \"in ItemUfoMoveAndCollisionCheck\");\n }", "title": "" }, { "docid": "cbe5d90aed80e11a187dfbd2b040520c", "score": "0.5977645", "text": "private boolean canMove(int player, int x1, int y1, int x2, int y2, ArrayList<Pawn> pawns, Square[][] board) {\n \n if (!isValid(x2, y2)) // If the final pos is not valid return false\n return false; \n \n if (board[x2][y2].isBusy()) // If the final pos is not free return false\n \t return false;\n \n if (player == PLAYER1) { // Player one turn\n \t /*\n \t * the method return false only if the player one is trying to move downward\n \t * and the pawn is not a king\n \t */\n if (getPawn(x1, y1, pawns).getPlayer() == PLAYER1 && y2 > y1 && !(getPawn(x1,y1, pawns) instanceof King))\n return false; \n return true; \n }\n else { // Player two turn\n \t /*\n \t * the method return false only if the player two is trying to move upward\n \t * and the pawn is not a king\n \t */\n if (getPawn(x1, y1, pawns).getPlayer() == PLAYER2 && y2 < y1 && !(getPawn(x1,y1, pawns) instanceof King))\n return false; \n return true; \n }\n\t}", "title": "" }, { "docid": "4ccf706c3400d858f7ad6402ece0032f", "score": "0.5977119", "text": "public static void CheckBoardStatus()\n {\n if ((Board.getBoardPosValue(1)==1 && Board.getBoardPosValue(2)==1 && Board.getBoardPosValue(3)==1) ||\n (Board.getBoardPosValue(1)==2 && Board.getBoardPosValue(2)==2 && Board.getBoardPosValue(3)==2))\n {\n GameManager.setGameFinish(true);\n }else if ((Board.getBoardPosValue(1)==1 && Board.getBoardPosValue(5)==1 && Board.getBoardPosValue(9)==1) ||\n (Board.getBoardPosValue(1)==2 && Board.getBoardPosValue(5)==2 && Board.getBoardPosValue(9)==2))\n {\n GameManager.setGameFinish(true);\n }else if ((Board.getBoardPosValue(1)==1 && Board.getBoardPosValue(4)==1 && Board.getBoardPosValue(7)==1) ||\n (Board.getBoardPosValue(1)==2 && Board.getBoardPosValue(4)==2 && Board.getBoardPosValue(7)==2))\n {\n GameManager.setGameFinish(true);\n }else if ((Board.getBoardPosValue(2)==1 && Board.getBoardPosValue(5)==1 && Board.getBoardPosValue(8)==1) ||\n (Board.getBoardPosValue(2)==2 && Board.getBoardPosValue(5)==2 && Board.getBoardPosValue(8)==2))\n {\n GameManager.setGameFinish(true);\n }else if ((Board.getBoardPosValue(3)==1 && Board.getBoardPosValue(5)==1 && Board.getBoardPosValue(7)==1) ||\n (Board.getBoardPosValue(3)==2 && Board.getBoardPosValue(5)==2 && Board.getBoardPosValue(7)==2))\n {\n GameManager.setGameFinish(true);\n }else if ((Board.getBoardPosValue(3)==1 && Board.getBoardPosValue(6)==1 && Board.getBoardPosValue(9)==1) ||\n (Board.getBoardPosValue(3)==2 && Board.getBoardPosValue(6)==2 && Board.getBoardPosValue(9)==2))\n {\n GameManager.setGameFinish(true);\n }else if ((Board.getBoardPosValue(4)==1 && Board.getBoardPosValue(5)==1 && Board.getBoardPosValue(6)==1) ||\n (Board.getBoardPosValue(4)==2 && Board.getBoardPosValue(5)==2 && Board.getBoardPosValue(6)==2))\n {\n GameManager.setGameFinish(true);\n }else if ((Board.getBoardPosValue(7)==1 && Board.getBoardPosValue(8)==1 && Board.getBoardPosValue(9)==1) ||\n (Board.getBoardPosValue(7)==2 && Board.getBoardPosValue(8)==2 && Board.getBoardPosValue(9)==2))\n {\n GameManager.setGameFinish(true);\n }\n else if (getGameFinish()==false) //Si no ha terminado el juego.\n {\n boolean isEmptyPos = false;\n \n for (int i = 1; i < Board.getBoardLength() && isEmptyPos==false;i++)\n {\n if (Board.getIsFull()==false) //Si el tablero no está lleno.\n {\n if (Board.getBoardPosValue(i)==0) //Si la posición de la casilla actual está vacía.\n {\n isEmptyPos=true;\n }\n \n if (i==(Board.getBoardLength()-1) && isEmptyPos==false)\n {\n Board.setIsFull(true);\n setIsTie(true);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "34f1d29fa1e9f7c003a73698c63edc9a", "score": "0.5973667", "text": "public void nextMoveIfPlayerFacingUp(int cX, int cY)\n { \n if(w.hasBreeze(cX, cY))\n {\n if(w.hasBreeze(cX, cY-1) && w.isVisited(cX, cY-2))\n {\n if(w.hasBreeze(cX, cY-2))\n {\n w.doAction(World.A_TURN_RIGHT);\n w.doAction(World.A_MOVE);\n return;\n }\n if(!w.hasBreeze(cX, cY-2))\n {\n w.doAction(World.A_TURN_LEFT);\n w.doAction(World.A_TURN_LEFT);\n w.doAction(World.A_MOVE);\n return;\n }\n }\n }\n if(w.hasBreeze(cX, cY-1) && !w.isValidPosition(cX, cY-2))\n {\n w.doAction(World.A_MOVE);\n }\n if (w.getDirection() == World.DIR_UP)\n {\n if(!w.isValidPosition(cX-1, cY))\n {\n if(w.isVisited(cX+1, cY))\n {\n w.doAction(World.A_MOVE);\n w.doAction(World.A_TURN_RIGHT);\n }\n else\n {\n w.doAction(World.A_TURN_RIGHT);\n w.doAction(World.A_MOVE);\n }\n }\n else if(!w.isValidPosition(cX+1, cY))\n {\n if(w.isVisited(cX-1, cY))\n {\n if(w.isValidPosition(cX-2, cY) && w.hasBreeze(cX-1, cY))\n {\n w.doAction(World.A_TURN_RIGHT);\n w.doAction(World.A_TURN_RIGHT);\n w.doAction(World.A_MOVE);\n w.doAction(World.A_MOVE);\n }\n else\n {\n w.doAction(World.A_MOVE);\n w.doAction(World.A_TURN_LEFT);\n }\n }\n else\n {\n w.doAction(World.A_TURN_LEFT);\n w.doAction(World.A_MOVE);\n }\n }\n else if(!w.isValidPosition(cX, cY+1) && !w.isVisited(cX, cY+1))\n {\n w.doAction(World.A_TURN_RIGHT);\n w.doAction(World.A_MOVE);\n }\n else\n {\n w.doAction(World.A_TURN_RIGHT);\n } \n }\n }", "title": "" }, { "docid": "871e910ce44672ff1a3a990fdafba929", "score": "0.5961593", "text": "private void determineValidMoves() {\n canMoveRight = determineCanMoveRight();\n canMoveLeft = determineCanMoveLeft();\n canMoveUp = determineCanMoveUp();\n canMoveDown = determineCanMoveDown();\n }", "title": "" }, { "docid": "6a2be5ef69b06bb5cdaef078dd201ccf", "score": "0.5956041", "text": "public void checkInside() {\n GameMapProcessor2.checkInside();\n }", "title": "" }, { "docid": "e2785fee79367e9e04963deecc5ef7b5", "score": "0.59494096", "text": "public boolean check(int currentX, int currentY, Place field[][]) {\n Piece queen = field[currentY][currentX].getPiece();\n if (queen.getColor().equals(\"white\")) {\n if (blackKingChecker(currentX, currentY + 1, field) && betweenChecker11(currentX, currentY, currentX, currentY + 1, field))\n return true;\n if (blackKingChecker(currentX, currentY + 2, field) && betweenChecker11(currentX, currentY, currentX, currentY + 2, field))\n return true;\n if (blackKingChecker(currentX, currentY + 3, field) && betweenChecker11(currentX, currentY, currentX, currentY + 3, field))\n return true;\n if (blackKingChecker(currentX, currentY + 4, field) && betweenChecker11(currentX, currentY, currentX, currentY + 4, field))\n return true;\n if (blackKingChecker(currentX, currentY + 5, field) && betweenChecker11(currentX, currentY, currentX, currentY + 5, field))\n return true;\n if (blackKingChecker(currentX, currentY + 6, field) && betweenChecker11(currentX, currentY, currentX, currentY + 6, field))\n return true;\n if (blackKingChecker(currentX, currentY + 7, field) && betweenChecker11(currentX, currentY, currentX, currentY + 7, field))\n return true;\n\n if (blackKingChecker(currentX + 1, currentY + 1, field) && betweenChecker21(currentX, currentY, currentX + 1, currentY + 1, field))\n return true;\n if (blackKingChecker(currentX + 2, currentY + 2, field) && betweenChecker21(currentX, currentY, currentX + 2, currentY + 2, field))\n return true;\n if (blackKingChecker(currentX + 3, currentY + 3, field) && betweenChecker21(currentX, currentY, currentX + 3, currentY + 3, field))\n return true;\n if (blackKingChecker(currentX + 4, currentY + 4, field) && betweenChecker21(currentX, currentY, currentX + 4, currentY + 4, field))\n return true;\n if (blackKingChecker(currentX + 5, currentY + 5, field) && betweenChecker21(currentX, currentY, currentX + 5, currentY + 5, field))\n return true;\n if (blackKingChecker(currentX + 6, currentY + 6, field) && betweenChecker21(currentX, currentY, currentX + 6, currentY + 6, field))\n return true;\n if (blackKingChecker(currentX + 7, currentY + 7, field) && betweenChecker21(currentX, currentY, currentX + 7, currentY + 7, field))\n return true;\n//====\n if (blackKingChecker(currentX, currentY - 1, field) && betweenChecker12(currentX, currentY, currentX, currentY - 1, field))\n return true;\n if (blackKingChecker(currentX, currentY - 2, field) && betweenChecker12(currentX, currentY, currentX, currentY - 2, field))\n return true;\n if (blackKingChecker(currentX, currentY - 3, field) && betweenChecker12(currentX, currentY, currentX, currentY - 3, field))\n return true;\n if (blackKingChecker(currentX, currentY - 4, field) && betweenChecker12(currentX, currentY, currentX, currentY - 4, field))\n return true;\n if (blackKingChecker(currentX, currentY - 5, field) && betweenChecker12(currentX, currentY, currentX, currentY - 5, field))\n return true;\n if (blackKingChecker(currentX, currentY - 6, field) && betweenChecker12(currentX, currentY, currentX, currentY - 6, field))\n return true;\n if (blackKingChecker(currentX, currentY - 7, field) && betweenChecker12(currentX, currentY, currentX, currentY - 7, field))\n return true;\n\n if (blackKingChecker(currentX - 1, currentY - 1, field) && betweenChecker22(currentX, currentY, currentX - 1, currentY - 1, field))\n return true;\n if (blackKingChecker(currentX - 2, currentY - 2, field) && betweenChecker22(currentX, currentY, currentX - 2, currentY - 2, field))\n return true;\n if (blackKingChecker(currentX - 3, currentY - 3, field) && betweenChecker22(currentX, currentY, currentX - 3, currentY - 3, field))\n return true;\n if (blackKingChecker(currentX - 4, currentY - 4, field) && betweenChecker22(currentX, currentY, currentX - 4, currentY - 4, field))\n return true;\n if (blackKingChecker(currentX - 5, currentY - 5, field) && betweenChecker22(currentX, currentY, currentX - 5, currentY - 5, field))\n return true;\n if (blackKingChecker(currentX - 6, currentY - 6, field) && betweenChecker22(currentX, currentY, currentX - 6, currentY - 6, field))\n return true;\n if (blackKingChecker(currentX - 7, currentY - 7, field) && betweenChecker22(currentX, currentY, currentX - 7, currentY - 7, field))\n return true;\n//====\n if (blackKingChecker(currentX + 1, currentY, field) && betweenChecker13(currentX, currentY, currentX + 1, currentY, field))\n return true;\n if (blackKingChecker(currentX + 2, currentY, field) && betweenChecker13(currentX, currentY, currentX + 2, currentY, field))\n return true;\n if (blackKingChecker(currentX + 3, currentY, field) && betweenChecker13(currentX, currentY, currentX + 3, currentY, field))\n return true;\n if (blackKingChecker(currentX + 4, currentY, field) && betweenChecker13(currentX, currentY, currentX + 4, currentY, field))\n return true;\n if (blackKingChecker(currentX + 5, currentY, field) && betweenChecker13(currentX, currentY, currentX + 5, currentY, field))\n return true;\n if (blackKingChecker(currentX + 6, currentY, field) && betweenChecker13(currentX, currentY, currentX + 6, currentY, field))\n return true;\n if (blackKingChecker(currentX + 7, currentY, field) && betweenChecker13(currentX, currentY, currentX + 7, currentY, field))\n return true;\n\n\n if (blackKingChecker(currentX + 1, currentY - 1, field) && betweenChecker23(currentX, currentY, currentX + 1, currentY - 1, field))\n return true;\n if (blackKingChecker(currentX + 2, currentY - 2, field) && betweenChecker23(currentX, currentY, currentX + 2, currentY - 2, field))\n return true;\n if (blackKingChecker(currentX + 3, currentY - 3, field) && betweenChecker23(currentX, currentY, currentX + 3, currentY - 3, field))\n return true;\n if (blackKingChecker(currentX + 4, currentY - 4, field) && betweenChecker23(currentX, currentY, currentX + 4, currentY - 4, field))\n return true;\n if (blackKingChecker(currentX + 5, currentY - 5, field) && betweenChecker23(currentX, currentY, currentX + 5, currentY - 5, field))\n return true;\n if (blackKingChecker(currentX + 6, currentY - 6, field) && betweenChecker23(currentX, currentY, currentX + 6, currentY - 6, field))\n return true;\n if (blackKingChecker(currentX + 7, currentY - 7, field) && betweenChecker23(currentX, currentY, currentX + 7, currentY - 7, field))\n return true;\n\n//====\n if (blackKingChecker(currentX - 1, currentY, field) && betweenChecker14(currentX, currentY, currentX - 1, currentY, field))\n return true;\n if (blackKingChecker(currentX - 2, currentY, field) && betweenChecker14(currentX, currentY, currentX - 2, currentY, field))\n return true;\n if (blackKingChecker(currentX - 3, currentY, field) && betweenChecker14(currentX, currentY, currentX - 3, currentY, field))\n return true;\n if (blackKingChecker(currentX - 4, currentY, field) && betweenChecker14(currentX, currentY, currentX - 4, currentY, field))\n return true;\n if (blackKingChecker(currentX - 5, currentY, field) && betweenChecker14(currentX, currentY, currentX - 5, currentY, field))\n return true;\n if (blackKingChecker(currentX - 6, currentY, field) && betweenChecker14(currentX, currentY, currentX - 6, currentY, field))\n return true;\n if (blackKingChecker(currentX - 7, currentY, field) && betweenChecker14(currentX, currentY, currentX - 7, currentY, field))\n return true;\n\n\n if (blackKingChecker(currentX - 1, currentY + 1, field) && betweenChecker24(currentX, currentY, currentX - 1, currentY + 1, field))\n return true;\n if (blackKingChecker(currentX - 2, currentY + 2, field) && betweenChecker24(currentX, currentY, currentX - 2, currentY + 2, field))\n return true;\n if (blackKingChecker(currentX - 3, currentY + 3, field) && betweenChecker24(currentX, currentY, currentX - 3, currentY + 3, field))\n return true;\n if (blackKingChecker(currentX - 4, currentY + 4, field) && betweenChecker24(currentX, currentY, currentX - 4, currentY + 4, field))\n return true;\n if (blackKingChecker(currentX - 5, currentY + 5, field) && betweenChecker24(currentX, currentY, currentX - 5, currentY + 5, field))\n return true;\n if (blackKingChecker(currentX - 6, currentY + 6, field) && betweenChecker24(currentX, currentY, currentX - 6, currentY + 6, field))\n return true;\n if (blackKingChecker(currentX - 7, currentY + 7, field) && betweenChecker24(currentX, currentY, currentX - 7, currentY + 7, field))\n return true;\n }\n if (queen.getColor().equals(\"black\")) {\n if (whiteKingChecker(currentX, currentY + 1, field) && betweenChecker11(currentX, currentY, currentX, currentY + 1, field))\n return true;\n if (whiteKingChecker(currentX, currentY + 2, field) && betweenChecker11(currentX, currentY, currentX, currentY + 2, field))\n return true;\n if (whiteKingChecker(currentX, currentY + 3, field) && betweenChecker11(currentX, currentY, currentX, currentY + 3, field))\n return true;\n if (whiteKingChecker(currentX, currentY + 4, field) && betweenChecker11(currentX, currentY, currentX, currentY + 4, field))\n return true;\n if (whiteKingChecker(currentX, currentY + 5, field) && betweenChecker11(currentX, currentY, currentX, currentY + 5, field))\n return true;\n if (whiteKingChecker(currentX, currentY + 6, field) && betweenChecker11(currentX, currentY, currentX, currentY + 6, field))\n return true;\n if (whiteKingChecker(currentX, currentY + 7, field) && betweenChecker11(currentX, currentY, currentX, currentY + 7, field))\n return true;\n\n if (whiteKingChecker(currentX + 1, currentY + 1, field) && betweenChecker21(currentX, currentY, currentX + 1, currentY + 1, field))\n return true;\n if (whiteKingChecker(currentX + 2, currentY + 2, field) && betweenChecker21(currentX, currentY, currentX + 2, currentY + 2, field))\n return true;\n if (whiteKingChecker(currentX + 3, currentY + 3, field) && betweenChecker21(currentX, currentY, currentX + 3, currentY + 3, field))\n return true;\n if (whiteKingChecker(currentX + 4, currentY + 4, field) && betweenChecker21(currentX, currentY, currentX + 4, currentY + 4, field))\n return true;\n if (whiteKingChecker(currentX + 5, currentY + 5, field) && betweenChecker21(currentX, currentY, currentX + 5, currentY + 5, field))\n return true;\n if (whiteKingChecker(currentX + 6, currentY + 6, field) && betweenChecker21(currentX, currentY, currentX + 6, currentY + 6, field))\n return true;\n if (whiteKingChecker(currentX + 7, currentY + 7, field) && betweenChecker21(currentX, currentY, currentX + 7, currentY + 7, field))\n return true;\n//====\n if (whiteKingChecker(currentX, currentY - 1, field) && betweenChecker12(currentX, currentY, currentX, currentY - 1, field))\n return true;\n if (whiteKingChecker(currentX, currentY - 2, field) && betweenChecker12(currentX, currentY, currentX, currentY - 2, field))\n return true;\n if (whiteKingChecker(currentX, currentY - 3, field) && betweenChecker12(currentX, currentY, currentX, currentY - 3, field))\n return true;\n if (whiteKingChecker(currentX, currentY - 4, field) && betweenChecker12(currentX, currentY, currentX, currentY - 4, field))\n return true;\n if (whiteKingChecker(currentX, currentY - 5, field) && betweenChecker12(currentX, currentY, currentX, currentY - 5, field))\n return true;\n if (whiteKingChecker(currentX, currentY - 6, field) && betweenChecker12(currentX, currentY, currentX, currentY - 6, field))\n return true;\n if (whiteKingChecker(currentX, currentY - 7, field) && betweenChecker12(currentX, currentY, currentX, currentY - 7, field))\n return true;\n\n if (whiteKingChecker(currentX - 1, currentY - 1, field) && betweenChecker22(currentX, currentY, currentX - 1, currentY - 1, field))\n return true;\n if (whiteKingChecker(currentX - 2, currentY - 2, field) && betweenChecker22(currentX, currentY, currentX - 2, currentY - 2, field))\n return true;\n if (whiteKingChecker(currentX - 3, currentY - 3, field) && betweenChecker22(currentX, currentY, currentX - 3, currentY - 3, field))\n return true;\n if (whiteKingChecker(currentX - 4, currentY - 4, field) && betweenChecker22(currentX, currentY, currentX - 4, currentY - 4, field))\n return true;\n if (whiteKingChecker(currentX - 5, currentY - 5, field) && betweenChecker22(currentX, currentY, currentX - 5, currentY - 5, field))\n return true;\n if (whiteKingChecker(currentX - 6, currentY - 6, field) && betweenChecker22(currentX, currentY, currentX - 6, currentY - 6, field))\n return true;\n if (whiteKingChecker(currentX - 7, currentY - 7, field) && betweenChecker22(currentX, currentY, currentX - 7, currentY - 7, field))\n return true;\n//====\n if (whiteKingChecker(currentX + 1, currentY, field) && betweenChecker13(currentX, currentY, currentX + 1, currentY, field))\n return true;\n if (whiteKingChecker(currentX + 2, currentY, field) && betweenChecker13(currentX, currentY, currentX + 2, currentY, field))\n return true;\n if (whiteKingChecker(currentX + 3, currentY, field) && betweenChecker13(currentX, currentY, currentX + 3, currentY, field))\n return true;\n if (whiteKingChecker(currentX + 4, currentY, field) && betweenChecker13(currentX, currentY, currentX + 4, currentY, field))\n return true;\n if (whiteKingChecker(currentX + 5, currentY, field) && betweenChecker13(currentX, currentY, currentX + 5, currentY, field))\n return true;\n if (whiteKingChecker(currentX + 6, currentY, field) && betweenChecker13(currentX, currentY, currentX + 6, currentY, field))\n return true;\n if (whiteKingChecker(currentX + 7, currentY, field) && betweenChecker13(currentX, currentY, currentX + 7, currentY, field))\n return true;\n\n\n if (whiteKingChecker(currentX + 1, currentY - 1, field) && betweenChecker23(currentX, currentY, currentX + 1, currentY - 1, field))\n return true;\n if (whiteKingChecker(currentX + 2, currentY - 2, field) && betweenChecker23(currentX, currentY, currentX + 2, currentY - 2, field))\n return true;\n if (whiteKingChecker(currentX + 3, currentY - 3, field) && betweenChecker23(currentX, currentY, currentX + 3, currentY - 3, field))\n return true;\n if (whiteKingChecker(currentX + 4, currentY - 4, field) && betweenChecker23(currentX, currentY, currentX + 4, currentY - 4, field))\n return true;\n if (whiteKingChecker(currentX + 5, currentY - 5, field) && betweenChecker23(currentX, currentY, currentX + 5, currentY - 5, field))\n return true;\n if (whiteKingChecker(currentX + 6, currentY - 6, field) && betweenChecker23(currentX, currentY, currentX + 6, currentY - 6, field))\n return true;\n if (whiteKingChecker(currentX + 7, currentY - 7, field) && betweenChecker23(currentX, currentY, currentX + 7, currentY - 7, field))\n return true;\n\n//====\n if (whiteKingChecker(currentX - 1, currentY, field) && betweenChecker14(currentX, currentY, currentX - 1, currentY, field))\n return true;\n if (whiteKingChecker(currentX - 2, currentY, field) && betweenChecker14(currentX, currentY, currentX - 2, currentY, field))\n return true;\n if (whiteKingChecker(currentX - 3, currentY, field) && betweenChecker14(currentX, currentY, currentX - 3, currentY, field))\n return true;\n if (whiteKingChecker(currentX - 4, currentY, field) && betweenChecker14(currentX, currentY, currentX - 4, currentY, field))\n return true;\n if (whiteKingChecker(currentX - 5, currentY, field) && betweenChecker14(currentX, currentY, currentX - 5, currentY, field))\n return true;\n if (whiteKingChecker(currentX - 6, currentY, field) && betweenChecker14(currentX, currentY, currentX - 6, currentY, field))\n return true;\n if (whiteKingChecker(currentX - 7, currentY, field) && betweenChecker14(currentX, currentY, currentX - 7, currentY, field))\n return true;\n\n\n if (whiteKingChecker(currentX - 1, currentY + 1, field) && betweenChecker24(currentX, currentY, currentX - 1, currentY + 1, field))\n return true;\n if (whiteKingChecker(currentX - 2, currentY + 2, field) && betweenChecker24(currentX, currentY, currentX - 2, currentY + 2, field))\n return true;\n if (whiteKingChecker(currentX - 3, currentY + 3, field) && betweenChecker24(currentX, currentY, currentX - 3, currentY + 3, field))\n return true;\n if (whiteKingChecker(currentX - 4, currentY + 4, field) && betweenChecker24(currentX, currentY, currentX - 4, currentY + 4, field))\n return true;\n if (whiteKingChecker(currentX - 5, currentY + 5, field) && betweenChecker24(currentX, currentY, currentX - 5, currentY + 5, field))\n return true;\n if (whiteKingChecker(currentX - 6, currentY + 6, field) && betweenChecker24(currentX, currentY, currentX - 6, currentY + 6, field))\n return true;\n if (whiteKingChecker(currentX - 7, currentY + 7, field) && betweenChecker24(currentX, currentY, currentX - 7, currentY + 7, field))\n return true;\n }\n\n\n return false;\n }", "title": "" }, { "docid": "3d9e6b3084de98215c523bea1d0427a5", "score": "0.5948191", "text": "private void kingsafety(){\r\n\t\tlong w_storm_Sc = 0,b_storm_Sc = 0,w_tropism_Sc = 0,b_tropism_Sc = 0,w_shield_Sc = 0,b_shield_Sc = 0;\r\n\t\tint w_k_r = white_king >> 4, b_k_r = black_king >> 4, w_k_c = white_king & 7,b_k_c = black_king & 7,\r\n\t\t\t\tp_r,p_c;\r\n\t\tbyte[] diff_weight_2 = Position.RADIALS, diff_weight_1 = Position.KNIGHT_MOVES;\r\n\t\tboolean w_flag = (white_king >> 4) < 2, b_flag = (black_king >> 4) > 5;\r\n\t\tbyte pos, type;\r\n\t\t// pawn storm\r\n\t\tif ((white_king & 7) < 4){\r\n\t\t\tfor (Piece q: black_pawns){\r\n\t\t\t\tpos = q.getPosition();\r\n\t\t\t\tif ((pos & 7) < 4 && (pos >> 4) < 5) b_storm_Sc += PAWN_STORM_VALUES[pos];\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tfor (Piece q: black_pawns){\r\n\t\t\t\tpos = q.getPosition();\r\n\t\t\t\tif ((pos & 7) > 3 && (pos >> 4) < 5) b_storm_Sc += PAWN_STORM_VALUES[pos];\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ((black_king & 0x7) < 4){\r\n\t\t\tfor (Piece q: white_pawns){\r\n\t\t\t\tpos = q.getPosition();\r\n\t\t\t\tif ((pos & 7) < 4 && (pos >> 4) > 2) \r\n\t\t\t\t\tw_storm_Sc += PAWN_STORM_VALUES[0x70 - (pos & 0x70) + (pos & 7)];\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tfor (Piece q: white_pawns){\r\n\t\t\t\tpos = q.getPosition();\r\n\t\t\t\tif ((pos & 7) > 3 && (pos >> 4) > 2) \r\n\t\t\t\t\tw_storm_Sc += PAWN_STORM_VALUES[0x70 - (pos & 0x70) + (pos & 7)];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// king tropism\r\n\t\tfor (Piece q: white_pieces){\r\n\t\t\tif ((type = q.getType()) != Piece.NULL && type != Piece.PAWN){\r\n\t\t\t\tpos = q.getPosition();\r\n\t\t\t\tp_r = pos >> 4;\r\n\t\t\t\tp_c = pos & 7;\r\n\t\t\t\tw_tropism_Sc += (b_k_r - p_r)*(b_k_r - p_r) + (b_k_c - p_c)*(b_k_c - p_c);\r\n\t\t\t} else if (type == Piece.NULL) break; \r\n\t\t}\r\n\t\tfor (Piece q: black_pieces){\r\n\t\t\tif ((type = q.getType()) != Piece.NULL && type != Piece.PAWN){\r\n\t\t\t\tpos = q.getPosition();\r\n\t\t\t\tp_r = pos >> 4;\r\n\t\t\t\tp_c = pos & 7;\r\n\t\t\t\tb_tropism_Sc += (w_k_r - p_r)*(w_k_r - p_r) + (w_k_c - p_c)*(w_k_c - p_c);\r\n\t\t\t} else if (type == Piece.NULL) break; \r\n\t\t}\r\n\t\t// king shield\r\n\t\tfor (byte diff : diff_weight_2) {\r\n\t\t\tif (w_flag && (diff >> 4) >= 0 && search(white_pawns, (byte) (white_king + diff)).exists())\r\n\t\t\t\tw_shield_Sc += 2;\r\n\t\t\tif (b_flag && (diff >> 4) <= 0 && search(black_pawns, (byte) (black_king + diff)).exists())\r\n\t\t\t\tb_shield_Sc += 2;\r\n\t\t}\r\n\t\tfor (byte diff : diff_weight_1) {\r\n\t\t\tif (w_flag && (diff >> 4) >= 0 && search(white_pawns, (byte) (white_king + diff)).exists())\r\n\t\t\t\tw_shield_Sc += 1;\r\n\t\t\tif (b_flag && (diff >> 4) <= 0 && search(black_pawns, (byte) (black_king + diff)).exists())\r\n\t\t\t\tb_shield_Sc += 1;\r\n\t\t}\r\n\t\tif (w_flag && search(white_pawns, (byte) (white_king + 2 * Position.UP_MOVE)).exists())\r\n\t\t\tw_shield_Sc += 1;\r\n\t\tif (b_flag && search(black_pawns, (byte) (white_king + 2 * Position.DOWN_MOVE)).exists())\r\n\t\t\tb_shield_Sc += 1;\r\n\t\tfeatures[KING_SAFETY] = (((w_shield_Sc << 6) + b_shield_Sc) << 44) + \r\n\t\t\t\t(((w_storm_Sc << 6) + b_storm_Sc) << 32) + ((w_tropism_Sc << 16) + b_tropism_Sc);\r\n\t}", "title": "" }, { "docid": "37e9cda63b34dbd5ea83f67bf277d8b1", "score": "0.59452254", "text": "public void checkAndTakeQueen() {\n for (int i = 0; i < board.getCheckers().size(); i++)\n if (checkOnQueen(i) && !board.getCheckers().get(i).isQueen())\n board.getCheckers().get(i).setQueen();\n }", "title": "" }, { "docid": "a48ef3121dc66ff95280eef24b1b34cc", "score": "0.5939944", "text": "private boolean checkMoves(final Position position) {\n\t\tfinal int x = position.getXPosition();\n\t\tfinal int y = position.getYPosition();\n\n\t\t// Check all 4 directions. Returns true if at least one position is open.\n\t\treturn (y < size - 1 && !finalState[x][y + 1].getIsVisited()) || (y > 0 && !finalState[x][y - 1].getIsVisited())\n\t\t\t\t|| (x < size - 1 && !finalState[x + 1][y].getIsVisited())\n\t\t\t\t|| (x > 0 && !finalState[x - 1][y].getIsVisited());\n\t}", "title": "" }, { "docid": "a383e9a03496bbb62df61b41d60d4346", "score": "0.5939217", "text": "@Override\n public List<Move> getValidMoves(King king, int x, int y) {\n Set<Square> possiblePositions = new HashSet<>(Arrays.asList(\n new Square(x + 1, y - 1), new Square(x + 1, y), new Square(x + 1, y + 1),\n new Square(x, y - 1), new Square(x, y + 1),\n new Square(x - 1, y - 1), new Square(x - 1, y), new Square(x - 1, y + 1)\n ));\n\n removeStandardInvalidPositions(possiblePositions, king.colour);\n\n var resultMoves = Move.createMovesFromSource(new Square(x, y), possiblePositions.toArray(Square[]::new));\n resultMoves.removeIf(this::isKingAttackedAfterMove);\n\n return resultMoves;\n }", "title": "" }, { "docid": "9f73d642a37acb81b5da17cdd4c3678c", "score": "0.5928154", "text": "@Override\n\tpublic boolean isValidMove(Piece[][] pieces, int new_x, int new_y) {\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "50b7c0100e6035923d7dedf14bc39245", "score": "0.5926995", "text": "@Test\n\tpublic void proveNeedToUpdatePositionAfterOurMove() {\n\t\tLegalPlayer player = getLegalPlayer();\n\t\tplayer.setOpponent( opponent );\n\n\t\tPosition position = new Position( Side.WHITE );\n\n\t\t//white King surrounded\n\t\tposition.add( Side.WHITE, \"h8\", PieceType.KING );\n\t\tposition.add( Side.BLACK, \"g8\", PieceType.KNIGHT ); //protects h6\n\t\tposition.add( Side.BLACK, \"f8\", PieceType.ROOK ); //protects g8\n\n\t\tposition.add( Side.BLACK, \"a6\", PieceType.ROOK ); //protects g6\n\n\t\tposition.add( Side.BLACK, \"h6\", PieceType.BISHOP ); //protects g7\n\n\t\tposition.add( Side.BLACK, \"a1\", PieceType.KING );\n\n\t\tplayer.setPosition( position, Side.WHITE );\n\n\t\tplayer.executeOurMove();\n\t\tverify( opponent ).opponentMoved( new Move( \"h8\", \"h7\" ) );\n\n\t\treset( opponent ); //NOT recommended by Mockito\n\t\tplayer.opponentMoved( new Move( \"a1\", \"a2\" ) );\n\n\t\tverify( opponent ).opponentMoved( new Move( \"h7\", \"h8\" ) );\n\t}", "title": "" }, { "docid": "6c03688be6a61b8c7c6fd0d93b284349", "score": "0.5925989", "text": "public synchronized void checkMove(int playerID, int[] cardIdx) {\n\t\t\tBigTwoCard threeOfDiamonds = new BigTwoCard(0,2);\n\t\t\tboolean legalMove = true;\n\t\t\tCardList listOfCards = new CardList();\n \t\t\tif(cardIdx!=null)\t\t\t\t//Case when a hand is played\n\t\t\t{\n\t\t\t\tlistOfCards = playerList.get(playerID).play(cardIdx);\n\t\t\t\tHand handPlayedCompose = composeHand(playerList.get(playerID), listOfCards);\n\t\t\t\t\tif(handPlayedCompose != null)\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\tif(handsOnTable.isEmpty())\t\t\t\t\t\t\t\t\t\t\t//handles case when the hand played is the first hand on the table\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(handPlayedCompose.contains(threeOfDiamonds))\n\t\t\t\t\t\t\t\t\tif(handPlayedCompose.isValid())\n\t\t\t\t\t\t\t\t\t\tlegalMove = true; \n\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\tlegalMove = false;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tlegalMove = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//case when hands have already been played on the table\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(handsOnTable.get(handsOnTable.size() - 1).getPlayer() != playerList.get(playerID))\n\t\t\t\t\t\t\t\t\tlegalMove = handPlayedCompose.beats(handsOnTable.get(handsOnTable.size() - 1));\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tif(handPlayedCompose.isEmpty())\n\t\t\t\t\t\t\t\t\t\tlegalMove = false;\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\tlegalMove = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif(handPlayedCompose.isValid() && legalMove)\t\t\t\t\t\t//removing the cards from the players card list if a valid hand is played\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfor(int i=0;i<listOfCards.size();i++)\n\t\t\t\t\t\t\t\t\tplayerList.get(playerID).getCardsInHand().removeCard(listOfCards.getCard(i)); \n\t\t\t\t\t\t\t\ttable.printMsg(\"{\" + handPlayedCompose.getType() + \"}\" + \" \" + handPlayedCompose);\n\t\t\t\t\t\t\t\thandsOnTable.add(handPlayedCompose);\n\t\t\t\t\t\t\t\tif(currentIdx == 3)\n\t\t\t\t\t\t\t\t\tcurrentIdx = 0;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tcurrentIdx ++;\n\t\t\t\t\t\t\t\ttable.printMsg(playerList.get(currentIdx).getName()+ \"'s turn\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//handles invalid hand being played\n\t\t\t\t\t\t\t\ttable.printMsg(listOfCards + \" <== Not a legal move!!!\"); \n\t\t\t\t\t\t\t}\n\t\t\t\t\telse {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//handles invalid hand \n\t\t\t\t\t\ttable.printMsg(listOfCards + \" <== Not a legal move!!!\");\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\n\t\t\t\telse\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//case when player passes his turn \n\t\t\t\t{\t\n\t\t\t\t\tif(handsOnTable.isEmpty() == false && handsOnTable.get(handsOnTable.size() - 1).getPlayer()!=playerList.get(playerID)) \t\t//when player who passed was not the last player to play\n\t\t\t\t\t{\n\t\t\t\t\t\ttable.printMsg(\"{Pass}\"); \n\t\t\t\t\t\tif(currentIdx == 3)\n\t\t\t\t\t\t\tcurrentIdx = 0;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcurrentIdx++;\n\t\t\t\t\t\ttable.printMsg(playerList.get(currentIdx).getName()+ \"'s turn\");\n\t\t\t\t\t\tlegalMove = true;\n\t\t\t\t\t}\n\t\t\t\t\telse\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//when player who passed was the last player who played\n\t\t\t\t\t{\n\t\t\t\t\t\ttable.printMsg(\"{Pass} <== Not a legal move!!!\");\n\t\t\t\t\t\tlegalMove = false;\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\ttable.repaint();\n\t\t\t\t\n\t\t\tif(endOfGame()) \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//handles the end of game case\n\t\t\t{\n\t\t\t\tint winner=0;\n\t\t\t\tString endMessage =\"\";\n\t\t\t\ttable.printMsg(\"\");\n\t\t\t\ttable.printMsg(\"Game ends\");\n\t\t\t\tfor(int i=0;i<4;i++)\n\t\t\t\t{\n\t\t\t\t\tif(playerList.get(i).getNumOfCards() == 0) {\n\t\t\t\t\t\tendMessage += playerList.get(i).getName() + \" wins the game.\\n\";\n\t\t\t\t\t\twinner=i;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendMessage += playerList.get(i).getName() + \" has \" + playerList.get(i).getNumOfCards() + \" cards in hand.\\n\"; \n\t\t\t\t}\n\t\t\t\tif(winner==this.getPlayerID()) \n\t\t\t\t\tJOptionPane.showMessageDialog(null, endMessage, \"You win\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\telse \n\t\t\t\t\tJOptionPane.showMessageDialog(null, endMessage, \"You lose\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tCardGameMessage msg = new CardGameMessage(CardGameMessage.READY , -1 ,null);\n\t\t\t\tsendMessage(msg);\n\t\t\t\ttable.disable();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "26cc8aa3a93b7949e3cb678ce1350cb6", "score": "0.59169453", "text": "public boolean checkIfValidMoves() {\n if (getValidMoves().isEmpty()) {\n setSide(StrictMath.abs(getSide() - 1));\n addToValidMoves();\n if(validMoves.isEmpty())\n gameOver(true);\n if (getSide() == 0)\n setText(\"White has no moves, Black's turn!\");\n else\n setText(\"Black has no moves, White's turn!\");\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "d6a00a81ee74d8570f3683c28379620c", "score": "0.5913867", "text": "@Test\n\tpublic void proveNeedToUpdatePositionAfterOurMoveInRecursiveCase() {\n\t\tfinal LegalPlayer player = getLegalPlayer();\n\t\tplayer.setOpponent( opponent );\n\n\t\tfinal Position position = new Position( Side.WHITE );\n\n\t\t//white King surrounded\n\t\tposition.add( Side.WHITE, \"h8\", PieceType.KING );\n\t\tposition.add( Side.BLACK, \"g8\", PieceType.KNIGHT ); //protects h6\n\t\tposition.add( Side.BLACK, \"f8\", PieceType.ROOK ); //protects g8\n\n\t\tposition.add( Side.BLACK, \"a6\", PieceType.ROOK ); //protects g6\n\n\t\tposition.add( Side.BLACK, \"h6\", PieceType.BISHOP ); //protects g7\n\n\t\tposition.add( Side.BLACK, \"a1\", PieceType.KING );\n\n\t\tplayer.setPosition( position, Side.WHITE );\n\n\t\tdoAnswer( getAnswerToH8H7( player ) ).when( opponent ).opponentMoved( new Move( \"h8\", \"h7\" ) );\n\n\t\tplayer.executeOurMove(); //results in LegalPlayer h8h7\n\n\t\tverify( opponent ).opponentMoved( new Move( \"h8\", \"h7\" ) );\n\t}", "title": "" }, { "docid": "a98f3afda3e5b47220483d4f6330b811", "score": "0.5905598", "text": "public void checkRound() {\n if (this.player.getDone() && this.bot.getDone()) {\n this.player.setDone(false);\n this.bot.setDone(false);\n this.player_lead = this.player.getScore() >= this.bot.getScore();\n }\n }", "title": "" }, { "docid": "413dfa86106810df29c1b0a118a7de1c", "score": "0.5904301", "text": "private static void AttemptMove(int column, int row) {\t\t\n\t\tboolean validMove = false;\n\n\t\t//Go through all the current valid moves for the current piece\n\t\tfor (Position pos : currentMoves) {\t\t\n\t\t\t//We have the correct move clicked\n\t\t\tif (pos.row == row && pos.column == column) {\n\t\t\t\tvalidMove = true;\n\t\t\t}\n\t\t}\n\n\t\t//If we clicked a valid move then move the piece to that place\n\t\tif (validMove) {\n\t\t\tif (currentlySelectedPiece instanceof Pawn) {\n\t\t\t\t((Pawn) currentlySelectedPiece).hasMoved = true;\n\n\t\t\t}\n\n\t\t\tChessGame.currentPlayer.makeMove(currentlySelectedPiece, new Position(column, row));\n\t\t\tif (currentlySelectedPiece instanceof Pawn) {\n\t\t\t\tif ((currentlySelectedPiece.isOnWhiteTeam && row == 7) || (!currentlySelectedPiece.isOnWhiteTeam && row == 0)) {\n\t\t\t\t\tSystem.out.println(\"CHANGE\");\n\t\t\t\t\t//ChessBoard.removeChessPiece(column, row);\n\t\t\t\t\tQueen queen = new Queen(column, row, currentlySelectedPiece.isOnWhiteTeam);\n\t\t\t\t\tqueen.player = ChessGame.currentPlayer;\n\t\t\t\t\tqueen.LoadImage();\n\t\t\t\t\tChessBoard.setChessPiece(column, row, queen);\n\t\t\t\t\tSystem.out.println(\"test city \" + tiles[column][row].getOccupant());\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tChessGame.UpdateGame();\n\t\t}\n\n\t\t//Reset all of the UI for selection\n\t\tResetSelection();\n\t}", "title": "" }, { "docid": "651278e2e9585455b46fc8b1669bbd80", "score": "0.59016514", "text": "private void checkCollision() \r\n {\r\n // when the snake hits his own joints\r\n for(int i = snake.getJoint(); i > 0; i--)\r\n {\r\n // Snake cannot intersect itself\r\n if((i > 5) && (snake.getSnakeX(0) == snake.getSnakeX(i) && snake.getSnakeY(0) == snake.getSnakeY(i)))\r\n {\r\n // Game ends\r\n inGame = false;\r\n }\r\n }\r\n // if the snake intersects the edges\r\n if(snake.getSnakeY(0) >= boardHeight)\r\n {\r\n inGame = false;\r\n }\r\n if(snake.getSnakeY(0) < 0)\r\n {\r\n inGame = false;\r\n }\r\n if(snake.getSnakeX(0) >= boardWidth)\r\n {\r\n inGame = false;\r\n }\r\n if(snake.getSnakeX(0) < 0)\r\n {\r\n inGame = false;\r\n }\r\n if(!inGame)\r\n {\r\n timer.stop();\r\n }\r\n }", "title": "" }, { "docid": "3ba1db0c83d361aab0bd6d761aa87db9", "score": "0.59006554", "text": "public void checkForWinner(){\n\t\tboolean passTrue = true;\n\t\tfor(int i = 0; i < PUZZLESIZE; i++){\n\t\t\tfor(int j = 0; j < PUZZLESIZE; j++){\n\t\t\t\tif(WINNINGBOARD[i][j] != state[i][j])\t//If ever a position is different, tell the program not to go to win-state.\n\t\t\t\t\tpassTrue = false;\n\t\t\t\telse{\t\t\t\t\t\t\t\t\t//Adds a circle on to the puzzle pieces that are in the correct spot.\n\t\t\t\t\tGOval confirmation = new GOval(XCORNER + j * (TILESIZE+1) + 1, YCORNER + i * (TILESIZE+1)+1, TILESIZE/(PUZZLESIZE*PUZZLESIZE), TILESIZE/(PUZZLESIZE*PUZZLESIZE));\n\t\t\t\t\tconfirmation.setColor(colorSwitch(i + j));\n\t\t\t\t\tconfirmation.setFilled(true);\n\t\t\t\t\tadd(confirmation);\n\t\t\t\t}}}\n\t\tif (passTrue)\n\t\t isSolved = true;\t\t\t\t\t\t\t//If it makes it through the loop, then it must be a winning board.\n\t}", "title": "" }, { "docid": "393f6420ffe1b6030ca9ef5716c5d341", "score": "0.5895387", "text": "public boolean moveChecker (boolean showHint)\n {\n\t// To check two cards\n\tfor (int i = 0 ; i < 52 && (i + 1 <= CardsOut) ; i++) // Check all possible moves and stop if you go out of bounds\n\t{\n\t tmpCard1 = (CardClass) (((DeckClass) SpreadDecks.elementAt (i)).getCard (0));\n\t tmpCard2 = (CardClass) (((DeckClass) SpreadDecks.elementAt (i + 1)).getCard (0));\n\n\t // In case the compared card doesn't exist\n\t if (tmpCard2 != null)\n\t {\n\t\tif ((tmpCard1.getValue () == tmpCard2.getValue ()) || (tmpCard1.getSuit () == tmpCard2.getSuit ())) // If a move is possible\n\t\t{\n\t\t // If you wanted a hint signal it\n\t\t if (showHint == true)\n\t\t {\n\t\t\ttColor1 = tmpCard1.getColor ();\n\t\t\ttColor2 = tmpCard2.getColor ();\n\t\t\ttmpCard1.setColor (Color.blue);\n\t\t\ttmpCard2.setColor (Color.blue);\n\t\t\trepaint ();\n\t\t }\n\t\t return true;\n\t\t}\n\t }\n\n\t if (i + 3 <= CardsOut) // If a third card from the index exists\n\t {\n\t\ttmpCard1 = (CardClass) (((DeckClass) SpreadDecks.elementAt (i)).getCard (0));\n\t\ttmpCard2 = (CardClass) (((DeckClass) SpreadDecks.elementAt (i + 3)).getCard (0));\n\n\t\t// In case the compared card doesn't exist\n\t\tif (tmpCard2 != null)\n\t\t{\n\t\t if ((tmpCard1.getValue () == tmpCard2.getValue ()) || (tmpCard1.getSuit () == tmpCard2.getSuit ())) // If a move is possible\n\t\t {\n\t\t\t// If you wanted a hint signal it\n\t\t\tif (showHint == true)\n\t\t\t{\n\t\t\t tColor1 = tmpCard1.getColor ();\n\t\t\t tColor2 = tmpCard2.getColor ();\n\t\t\t tmpCard1.setColor (Color.blue);\n\t\t\t tmpCard2.setColor (Color.blue);\n\t\t\t repaint ();\n\t\t\t}\n\t\t\treturn true;\n\t\t }\n\t\t}\n\t }\n\t}\n\t// No possible moves left\n\treturn false;\n }", "title": "" }, { "docid": "ea3ab91ea56b31332cfe91167d0151f4", "score": "0.5895203", "text": "public boolean checkWinning(){\n\t\tboolean state = false;\n\n\t\tfor(int i=0;i<3;i++){\n\t\t\tif(positions[i]==positions[i+3] && positions[i+3]==positions[i+6] && positions[i]!=empty ){\n\t\t\t\tstate= true;\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\telse if(positions[3*i]==positions[3*i+1] && positions[3*i+1]==positions[3*i+2] && positions[3*i]!=empty){\n\t\t\t\tstate= true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(positions[0]==positions[4] && positions[4]==positions[8]&& positions[0]!=empty){\n\t\t\t\tstate= true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(positions[2]==positions[4] && positions[4]==positions[6]&& positions[2]!=empty){\n\t\t\t\tstate = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n \n\t\treturn state;\n \n\t}", "title": "" }, { "docid": "ced5c7cf6d3388b5350cad4c6828b78a", "score": "0.5878926", "text": "public void checkKey(){\n\t\tif(!PressingKey.isEmpty()){\n\t\t\tif(PressingKey.contains(KeyCode.A) && PressingKey.contains(KeyCode.D)){\n\t\t\t\tif(PressingKey.indexOf(KeyCode.A) > PressingKey.indexOf(KeyCode.D)){\n\t\t\t\t\tgenji.setMoving(true);\n\t\t\t\t\tgenji.setDirectX(-1);\n\t\t\t\t}else{\n\t\t\t\t\tgenji.setMoving(true);\n\t\t\t\t\tgenji.setDirectX(1);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(PressingKey.contains(KeyCode.A)){\n\t\t\t\t\tgenji.setMoving(true);\n\t\t\t\t\tgenji.setDirectX(-1);\n\t\t\t\t}\n\t\t\t\telse if(PressingKey.contains(KeyCode.D)){\n\t\t\t\t\tgenji.setMoving(true);\n\t\t\t\t\tgenji.setDirectX(1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(PressingKey.contains(KeyCode.LEFT) && PressingKey.contains(KeyCode.RIGHT)){\n\t\t\t\tif(PressingKey.indexOf(KeyCode.LEFT) > PressingKey.indexOf(KeyCode.RIGHT)){\n\t\t\t\t\thanzo.setMoving(true);\n\t\t\t\t\thanzo.setDirectX(-1);\n\t\t\t\t}else{\n\t\t\t\t\thanzo.setMoving(true);\n\t\t\t\t\thanzo.setDirectX(1);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(PressingKey.contains(KeyCode.LEFT)){\n\t\t\t\t\thanzo.setMoving(true);\n\t\t\t\t\thanzo.setDirectX(-1);\n\t\t\t\t}\n\t\t\t\telse if(PressingKey.contains(KeyCode.RIGHT)){\n\t\t\t\t\thanzo.setMoving(true);\n\t\t\t\t\thanzo.setDirectX(1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(PressingKey.contains(KeyCode.W) && genji.Jumpable){\n\t\t\t\tgenji.Jump();\n\t\t\t\tgenji.Jumpable = false;\n\t\t\t}\n\t\t\tif(PressingKey.contains(KeyCode.UP) && hanzo.Jumpable){\n\t\t\t\thanzo.Jump();\n\t\t\t\thanzo.Jumpable = false;\n\t\t\t}\n\t\t\tif(!(PressingKey.contains(KeyCode.LEFT) || PressingKey.contains(KeyCode.RIGHT))){\n\t\t\t\thanzo.setMoving(false);\n\t\t\t\thanzo.setDirectX(0);\n\t\t\t}\n\t\t\tif(!(PressingKey.contains(KeyCode.A) || PressingKey.contains(KeyCode.D))){\n\t\t\t\tgenji.setMoving(false);\n\t\t\t\tgenji.setDirectX(0);\n\t\t\t}\n\t\t\tif(PressingKey.contains(KeyCode.S)){\n\t\t\t\tgenji.setDown(true);\n\t\t\t}else{\n\t\t\t\tgenji.setDown(false);\n\t\t\t}\n\t\t\tif(PressingKey.contains(KeyCode.DOWN)){\n\t\t\t\thanzo.setDown(true);\n\t\t\t}else{\n\t\t\t\thanzo.setDown(false);\n\t\t\t}\n\t\t\t\n\t\t\tif(PressingKey.contains(KeyCode.J) && genji.attackable){\n\t\t\t\tgenji.attack();\n\t\t\t\tgenji.attackable = false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\t//if not pressing any set genji and hanzo not moving\n\t\t\tgenji.setMoving(false);\n\t\t\tgenji.setDirectX(0);\n\t\t\thanzo.setMoving(false);\n\t\t\thanzo.setDirectX(0);\n\t\t}\n\t}", "title": "" }, { "docid": "3a94b51be59d0c1f20de7b9e44c23c4f", "score": "0.5876127", "text": "public void checkCollisions(){\n\t for(int j=defense.size()-1 ;j>=0;j--){\n\t \tPlant plan = defense.get(j);\n\t \tplan.setAt(0);//Setting the attack of the plant to be 0 if there are no zombies in their lane on the field\n\t }\n\t for(int i=enemys.size()-1 ;i>=0;i--){\n \t\tZombie zomb = enemys.get(i);\n \t\tif(zomb.getX()<=100){//If a zombie reaches the house, gameState will change to signal loss\n \t\t\tgameState = 0;\n \t\t}\n \t\t\tif(zomb.getHP() <= 0){//If a zombie is dead, he is removed from the enemy caucus\n \t\t\t\tenemys.remove(zomb);\n \t\t\t\tcontinue;\n \t\t\t}\n\t \tfor(int a=lawns.size()-1;a>=0;a--){\n\t\t\t\t\tMower mow = lawns.get(a);\n\t\t\t\t\tif(mow.hits(zomb)){//If a zombie reaches a lawnmower or vice versa, that zombie is dead\n\t\t \t\tzomb.setHP(0);\n\t\t \t\tmow.setFlag();//Lawnmover gets ready to move\n\t\t \t}\n\t\t \tif(mow.getFlag()==1){\n\t\t \t\tmow.cut();//Lawnmover moves in their respective lane and hits all of the zombies in that lane\n\t\t \t}\n\t\t \tif(mow.getX()>1100){//If it reaches the end of the lane, the lawnmover is removed from comission and use\n\t\t \t\tlawns.remove(mow);\n\t\t \t}\n \t\t}\n\t\t for(int j=defense.size()-1 ;j>=0;j--){\n\t\t \tPlant plan = defense.get(j);\n\t\t \tif(zomb.getX()<860){//If a zombie appears on the field\n\t\t \t\tif(zomb.getY()+50 == plan.getY()){//If a zombie is in the same lane as a plant\n\t\t \t\t\tplan.setAt(1);//The plant is to attack\n\t\t \t\t}\n\t\t \t}\n\t\t \tzomb.hits(plan);//Zombie is right by the plant and starting to eat plant\n\t\t \tif(plan.getHP() <= 0){//If the zombie has eaten the plant, the plant is dead and removed\n\t\t \t\tdefense.remove(plan);\n\t\t \t}\n\t\t }\n\t }\n\n\t}", "title": "" }, { "docid": "6a212f1e55d80cf24cc165754dca61cf", "score": "0.5870346", "text": "abstract boolean checkMove(int targetX, int targetY);", "title": "" }, { "docid": "a08b38d6b8ce70cf5c765280ad91d221", "score": "0.58679324", "text": "private boolean validateWhiteCastle(ChessPiece fromPiece, ChessPiece toPiece, String toPosition) throws IllegalMoveException, IllegalPositionException {\n\t\tif(toPosition.equals(\"c1\") && this.board[0][3] != null && this.board[0][1] != null) {\n\t\t\tthrow new IllegalMoveException(\"Cannot castle - space is occupied\");\n\t\t}\n\t\tif(toPosition.equals(\"g1\") && this.board[0][5] != null) {\n\t\t\tthrow new IllegalMoveException(\"Cannot castle - space is occupied\");\n\t\t}\n\t\t// check if King and chosen rook have moved\n\t\tif((toPosition.equals(\"c1\") && (this.castlingMoves & 6) != 0)) {\n\t\t\tthrow new IllegalMoveException(\"Cannot castle - King and/or rook has moved before\");\n\t\t}\n\t\tif((toPosition.equals(\"g1\") && (this.castlingMoves & 3) != 0)) {\n\t\t\tthrow new IllegalMoveException(\"Cannot castle - King and/or rook has moved before\");\n\t\t}\n\t\t// check that king does not move through check\n\t\tArrayList<String> attacked = attackedSpaces(fromPiece.getColor());\n\t\tif(toPosition.equals(\"c1\") && (attacked.contains(\"d1\"))) {\n\t\t\tthrow new IllegalMoveException(\"Cannot castle - king cannot move through check\");\n\t\t}\n\t\tif(toPosition.equals(\"g1\") && (attacked.contains(\"f1\"))) {\n\t\t\tthrow new IllegalMoveException(\"Cannot castle - king cannot move through check\");\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "dba39c9ae0d21c7f11dbd717d2fe50c3", "score": "0.58670205", "text": "public void takeMove(int x1, int y1, int x2, int y2, ArrayList<Pawn> pawns, Square[][] board) {\n\t\t\n\t\t/*\n\t\t * If the makeMove method has created a King, to take the move we have to\n\t\t * remove the king and add a pawn where the king was\n\t\t */\n\t\t\n\t\tPawn movingPawn = getPawn(x1, y1, pawns);\n\t\tif(kingCreated){\n\t\t\tif (y1 == 0 && getPawn(x1, y1, pawns).getPlayer() == PLAYER1){\n\t\t \tpawns.remove(movingPawn);\n\t\t \tmovingPawn = new Pawn(x1, y1, PLAYER1);\n\t\t \tpawns.add(movingPawn);\n\t\t }\n\t\t if (y1 == 7 && getPawn(x1, y1, pawns).getPlayer() == PLAYER2){\n\t\t \tpawns.remove(movingPawn);\n\t\t \tmovingPawn = new Pawn(x1, y1, PLAYER2);\n\t\t \tpawns.add(movingPawn);\n\t\t }\n\t\t}\n\t\t\n\t\t/*\n\t\t * Move the pawn and set the board squares busy where the pawn has been moved.\n\t\t */\n\t \n\t\tmovingPawn.setX(x2);\n\t\tmovingPawn.setY(y2);\n\t\t\n\t board[x1][y1].setBusy(false);\n\t board[x2][y2].setBusy(true);\n\t \n\t /*\n\t * If the move was a jump, we have to place the pawn eaten where it was before.\n\t * If the pawn eaten was a king we must know, in order to add it instead of adding\n\t * a simple pawn.\n\t */\n\t \n\t if (y1 - y2 == 2 || y1 - y2 == -2) {\n\t \tint jumpy = (y1 + y2) / 2; \n\t int jumpx = (x1 + x2) / 2; \n\t if(!kingEaten)\n\t \tpawns.add(new Pawn(jumpx, jumpy, movingPawn.getPlayer() == 1 ? 2 : 1));\n\t else\n\t \tpawns.add(new King(new Pawn(jumpx, jumpy, movingPawn.getPlayer() == 1 ? 2 : 1)));\n\t board[jumpx][jumpy].setBusy(true); \n\t } \n\t}", "title": "" }, { "docid": "8ed83e43d14421b530df3eb9590c5f95", "score": "0.5860905", "text": "private void checkRep() {\n assert (this.upperLeftCornerOfBoundingBox.x() >= 0 && this.upperLeftCornerOfBoundingBox.x() <= Board.SIDELENGTH);\n assert (this.upperLeftCornerOfBoundingBox.y() >= 0 && this.upperLeftCornerOfBoundingBox.y() <= Board.SIDELENGTH);\n }", "title": "" }, { "docid": "b4884cb16db6bc1f658f6300fd1e6650", "score": "0.5857028", "text": "private static void newTurnCheck() {\r\n System.out.println(\"\\n\" + currentPlayer.getPlayerName() + \" moves non Waiting\");\r\n\r\n System.out.println(currentPlayer.getPlayerName() + \" waits \" + currentPlayer.isPlayerWait());\r\n\r\n switchPlayerTurn();\r\n checkIsPlayerWait();\r\n Player tempPlayer = currentPlayer;\r\n if (isPlayerWon) {\r\n if (GameWindow.hBoxTakeDefendButtons.isVisible()) {\r\n GameWindow.hBoxTakeDefendButtons.setVisible(false);\r\n }\r\n resetHighlightCards();\r\n } else {\r\n if (isPlayerDefending) {\r\n GameWindow.label.setText(currentPlayer.getPlayerName() + \" can defend with \"\r\n + numSameDefendCards + \" card(s)\");\r\n } else {\r\n GameWindow.label.setText(currentPlayer.getPlayerName() + \" turn\");\r\n }\r\n\r\n if (currentPlayer.isPlayerWait()) {\r\n\r\n currentPlayer.setWaitTurns(currentPlayer.getWaitTurns() - 1);\r\n if (currentPlayer.getWaitTurns() <= 0) currentPlayer.setPlayerWait(false);\r\n\r\n if (currentPlayer.isPlayerWait()) {\r\n for (int i = 0; i < players.size(); ++i) {\r\n if (players.get(i) == currentPlayer) {\r\n System.out.println(\"Current player \" + players.get(i).getPlayerName());\r\n System.out.println(\"\\nSwitching players during wait\");\r\n checkIsPlayerTake(numSameAttackCards, numSameKingCards);\r\n players.get(i).setPlayerTurn(false);\r\n if (i == players.size() - 1) {\r\n players.get(0).setPlayerTurn(true);\r\n currentPlayer = players.get(0);\r\n } else {\r\n players.get(i + 1).setPlayerTurn(true);\r\n currentPlayer = players.get(i + 1);\r\n }\r\n break;\r\n }\r\n }\r\n GameWindow.label.setText(tempPlayer.getPlayerName() + \" waits \" + tempPlayer.getWaitTurns() + \" turn(s) 1, \"\r\n + currentPlayer.getPlayerName() + \" moves\");\r\n System.out.println(\"\\n\" + currentPlayer.getPlayerName() + \" moves at waiting\");\r\n }\r\n\r\n if (isPlayerWon) {\r\n GameWindow.label.setText(currentPlayer.getPlayerName() + \" Won!\");\r\n resetHighlightCards();\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "7de5d6d213c70fcdcd4777c7b0229015", "score": "0.58480865", "text": "public void CompGame() {\r\n\t\t// player = 1;\r\n\t\t// count++;\r\n\t\tanalysis_array();\r\n\t\tif (easy_move_win() == true)\r\n\t\t\treturn;\r\n\t\telse if (easy_move_block() == true)\r\n\t\t\treturn;\r\n\t\telse {\r\n\t\t\tf_e_map();\r\n\t\t\tbest_move();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "0c993e20a0e3b8ba7b83e94e6c461114", "score": "0.58474696", "text": "public void move(){\r\n\t\t\t/* Get the position of Lorann */\r\n\t\tint lorannX=this.world.get_lorann().getX();\r\n\t\tint lorannY=this.world.get_lorann().getY();\r\n\t\t\t/* Calculate a new position */\r\n\t\tint newX=this.AI.getNextX(this.x, this.y, lorannX, lorannY);\r\n\t\tint newY=this.AI.getNextY(this.x, this.y, lorannX, lorannY);\r\n\t\t\t/* Check if there is anything at that position */\r\n\t\tthis.checkCollisions(newX, newY);\r\n\t \t}", "title": "" }, { "docid": "f0d6814ef7add12b2425c6ed7c483fa8", "score": "0.5847438", "text": "public void calcAttackMoves(){\r\n resetWhite();\r\n resetBlack();\r\n checkAllWhiteMoves();\r\n checkAllBlackMoves();\r\n\r\n // first calculates all valid white and black moves\r\n for(int i = 0; i < numRows(); i++){\r\n for(int j = 0; j<numColumns(); j++){\r\n if(pieceAt(i,j) != null && pieceAt(i,j).player() == Player.BLACK){\r\n for(int r = 0; r < numRows(); r++){\r\n for(int c = 0; c < numColumns(); c++){\r\n Move check = new Move(i,j,r,c);\r\n if(pieceAt(check.fromRow,check.fromColumn).type().equals(\"Pawn\")){\r\n\r\n if(check.toRow == check.fromRow +1 && check.toColumn == check.fromColumn +1){\r\n\r\n blackAttackMoves.add(check);\r\n }//watch for index out of bounds\r\n\r\n if(check.toRow == check.fromRow +1 && check.toColumn == check.fromColumn -1){\r\n\r\n blackAttackMoves.add(check);\r\n }//watch for index out of bounds\r\n\r\n }//is it a pawn?\r\n else\r\n\r\n if(isValidMove(check)){\r\n blackAttackMoves.add(check);\r\n }//end if\r\n }//end inner inner for\r\n }//end outer for\r\n }//end black if\r\n }//end inner for\r\n }//end outer for\r\n for(int i = 0; i < numRows(); i++){\r\n for(int j = 0; j<numColumns(); j++){\r\n if(pieceAt(i,j) != null && pieceAt(i,j).player() == Player.WHITE){\r\n for(int r=0; r<numRows();r++){\r\n for(int c=0; c<numColumns(); c++){\r\n Move check = new Move(i,j,r,c);\r\n if(pieceAt(i,j).type().equals(\"Pawn\")){\r\n\r\n if(check.toRow == check.fromRow -1 && check.toColumn == check.fromColumn +1){\r\n\r\n whiteAttackMoves.add(check);\r\n }//watch for index out of bounds\r\n\r\n if(check.toRow == check.fromRow -1 && check.toColumn == check.fromColumn -1){\r\n\r\n whiteAttackMoves.add(check);\r\n }//watch for index out of bounds\r\n\r\n }//is it a pawn?\r\n\r\n else\r\n\r\n if(isValidMove(check)){\r\n whiteAttackMoves.add(check);\r\n\r\n }//end if\r\n }//end inner inner for\r\n }//end outer for\r\n }//end white if\r\n }\r\n }\r\n }", "title": "" }, { "docid": "70caf8bb3a7a134e8a461712f45c90ac", "score": "0.58323455", "text": "public synchronized void checkCorrectState() {\n int ballCount = 0;\n for (Player player : players.values()) {\n if (player.hasBall) {\n ballCount++;\n }\n }\n if (ballCount != 1) {\n System.out.println(\"Ball Exploded!\");\n for (Player player : players.values()) {\n giveBall(player.getId());\n break;\n }\n }\n }", "title": "" }, { "docid": "53917b1726cff8610fc2d3d9fdd5e396", "score": "0.5824962", "text": "public boolean checkMove(Spot from, Spot to, Character promoRequest) {\n //System.out.println(\"Checking if designated coordinate has a piece\");\n //System.out.println(\"Getting Path from piece\");\n if(from.getPiece() == null) return false;\n ArrayList<Spot> path = from.getPiece().getPath(from, to);\n //System.out.println(path);\n //Check if any pieces in the way except for final spot in path\n if(path.isEmpty() || piecesInWay(path, from.getPiece().getTeam())) return false;\n\n //Check if its a valid promotion request\n if(promoRequest != null && ((to.getY()!= 8 && to.getY()!= 1) || !(from.getPiece() instanceof Pawn))){\n //System.out.println(\"Invalid promotion request detected\");\n return false;\n }\n \n //Check if the move is enpassant\n if(from.getPiece() instanceof Pawn && (Math.abs(to.getY() - from.getY()) == 1 && Math.abs(to.getX() - from.getX()) == 1) && to.getPiece() == null){\n Spot enPassantSpot = spotMat[to.getX() - 1][from.getY() - 1];\n Piece capturedEnpassant = enPassantSpot.getPiece();\n if(!(capturedEnpassant instanceof Pawn) || !capturedEnpassant.hasMovedOnce() || !enPassantSpot.equals(this.lastMove)\n || (enPassantSpot.getY()!= 5 && enPassantSpot.getY()!=4))\n return false;\n \n }\n \n //Check if the move in question is an attempt for castling\n if(from.getPiece().getPieceType().charAt(1) == 'K' && path.size() == 2 && !isTeamInCheck(makeCopy(), from.getPiece().getTeam())) {\n //Check which rook is affected\n //System.out.println(\"Castling attempt detected\");\n Spot rookSpot;\n Piece rook;\n if(to.getX()-from.getX() > 0){\n rookSpot = spotMat[7][from.getY()-1];\n } else {\n rookSpot = spotMat[0][from.getY()-1];\n }\n //System.out.println(rookSpot);\n rook = rookSpot.getPiece();\n \n if(rook == null || rookSpot.getPiece().getPieceType().charAt(1) != 'R' || rook.hasMoved()) return false;\n else{\n //System.out.println(\"Checking rook path\");\n if(!checkMove(rookSpot, path.get(0), null))\n return false;\n }\n }\n\n \n Board boardCopy = makeCopy();\n Spot boardCopyTo = boardCopy.spotMat[to.getX()-1][to.getY()-1];\n Spot boardCopyFrom = boardCopy.spotMat[from.getX()-1][from.getY()-1];\n boardCopyTo.setPiece(boardCopyFrom.getPiece());\n boardCopyFrom.setPiece(null);\n boardCopyTo.getPiece().incrementMoveCount();\n return !isTeamInCheck(boardCopy, from.getPiece().getTeam());\n }", "title": "" }, { "docid": "c7a09aa54ea2249159b8c102c5ced4d2", "score": "0.582156", "text": "protected boolean isValidMove(int fromRow, int fromCol, int toRow, int toCol) {\n int jumpedRow = (fromRow + toRow) / 2;\n int jumpedCol = (fromCol + toCol) / 2;\n int size = this.board.size();\n return ((fromRow >= 0 && fromCol >= 0) && (toRow >= 0 && toCol >= 0))\n && ((fromRow < size && fromCol < size) && (toRow < size && toCol < size))\n && (board.get(fromRow).get(fromCol) == SquareState.Marble)\n && ((Math.abs(fromRow - toRow) == 2 && fromCol - toCol == 0)\n || (Math.abs(fromCol - toCol) == 2 && fromRow - toRow == 0))\n && (board.get(jumpedRow).get(jumpedCol) == SquareState.Marble)\n && (board.get(toRow).get(toCol) == SquareState.Empty);\n }", "title": "" }, { "docid": "063a967c8a0264fc04956030905a5af8", "score": "0.5819141", "text": "public static void play(Player player1, Player player2, int size) {\n boolean gameover = false;\n Board board = setup(size);\n Player plyr = player1;\n Side current = Side.BLACK;\n \n coordToString(board, board.convertCoord(3, 2));\n \n long startTime = System.currentTimeMillis(); //Keeps track of when this game began\n int movesTaken = 0; //Keeps track of the total number of moves taken;\n\n while (!gameover) {\n \tboard.show();\n \tif(board.stalemateCount > STALEMATE_THRESHOLD){\n \t\tSystem.out.print(\"Stalemate. You both suck. \");\n \t\tgameover = true;\n \t}\n if (!canMove(board, current)) { // not working\n gameover = true;\n System.out.printf(\"%s wins! \", current.opponent());\n \n break;\n }\n\n Move m = plyr.queryMove(board, getLegalMoves(board, current));\n \n\n while (getLegalMoves(board, current).contains(m) == false) {\n \t//System.out.printf(\"Move: O:(%d, %d), D:(%d, %d)(\\n\", (m.o % board.size), (m.o / board.size), (m.d & board.size), (m.d /board.size)); ///rito delivers\n \t//System.out.printf(\"Move: (%d, %d)\\n\", m.o, m.d);\n \tSystem.out.printf(\"Invalid move! Try again.\\n\");\n \tm = plyr.queryMove(board, getLegalMoves(board, current));\n }\n\n board = applyMove(board, m, current);\n movesTaken++; //Increment moves taken\n\n\n\n if (anotherTurn != 1) { //If a piece was not taken or if the piece that took it became a king\n\t current = current.opponent();\n\n\t if (plyr == player1) {\n\t plyr = player2;\n\t } else {\n\t plyr = player1;\n\t }\n\t }\n\t anotherTurn = 0;\n }\n long endTime = System.currentTimeMillis(); //Keeps track of when a game ended\n long totalTime = endTime - startTime; //Keeps track of the amount of time a game took\n //NumberFormat formatter = new DecimalFormat(\"#0.00000\");\n System.out.print(\"This game took: \" + totalTime/1000.0 + \" seconds, in \" + movesTaken + \" moves. \"); //Prints out the time a game took \n\n }", "title": "" }, { "docid": "d4f13c9d2abf2cd62afb32c1d96d2ba4", "score": "0.5815728", "text": "void checkPlayerTurn() {\n\n if (playerOneTurn) {\n movement(gameField.getPlayer(Player.PLAYER_ONE_ID), Main.getDice());\n Main.setDiceAnimationTrue();\n playerOneTurn = false;\n\n if (coughtEnemyCheating) {\n playerOneTurn = true;\n coughtEnemyCheating = false;\n }\n\n if (NetworkManager.isMultiplayer()) {\n NetworkManager.send(OTHER_PLAYER_ROLLED_DICE_MESSAGE);\n }\n\n } else if (NetworkManager.isSinglePlayer()) {\n\n movement(gameField.getPlayer(Player.PLAYER_TWO_ID), Main.getDice());\n Main.setDiceAnimationTrue();\n if (!turnBlocked) {\n playerOneTurn = true;\n } else {\n turnBlocked = false;\n }\n }\n camera.update();\n }", "title": "" }, { "docid": "22d609b06cd4dd4901989ced7cc1a974", "score": "0.58146036", "text": "public Location losable(Board board) {\n for(int c = 0 ; c < 4 ; c++) {\n for(int r = 0 ; r < 4 ; r++) {\n for(int d = 0 ; d < 4 ; d++) {\n if(board.getLocation(new Location(c, r, d)) != getLetter() && !board.isEmpty(new Location(c, r, d))) {\n for(int a = 0 ; a < 26 ; a++) {\n boolean[] checkSpot1 = checkSpot(c, r, d);\n if(checkSpot1[a]) {\n if(board.getLocation(checkSpotAnalyzer(a, new Location(c, r, d))) != getLetter() && !board.isEmpty(checkSpotAnalyzer(a, new Location(c, r, d)))) {\n Location next = checkSpotAnalyzer(a, new Location(c, r, d));\n checkSpot1 = checkSpot(next.getCol(), next.getRow(), next.getSheet());\n if(checkSpot1[a]) {\n if(board.getLocation(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()))) != getLetter() && !board.isEmpty(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet())))) {\n next = checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()));\n checkSpot1 = checkSpot(next.getCol(), next.getRow(), next.getSheet());\n boolean[] checkSpot2 = checkSpot(c, r, d);\n if(checkSpot1[a] && board.isEmpty(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet())))) {\n return checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()));\n }\n else if(checkSpot2[25-a] && board.isEmpty(checkSpotAnalyzer(25-a, new Location(c, r, d)))) {\n return checkSpotAnalyzer(25-a, new Location(c, r, d));\n }\n }\n else if(board.isEmpty(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet())))) {\n next = checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()));\n checkSpot1 = checkSpot(next.getCol(), next.getRow(), next.getSheet());\n if(checkSpot1[a] && board.getLocation(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()))) != getLetter() && !board.isEmpty(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet())))) {\n return next;\n }\n }\n }\n }\n else if(board.isEmpty(checkSpotAnalyzer(a, new Location(c, r, d)))) {\n Location next = checkSpotAnalyzer(a, new Location(c, r, d));\n checkSpot1 = checkSpot(next.getCol(), next.getRow(), next.getSheet());\n if(checkSpot1[a]) {\n if (board.getLocation(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()))) != getLetter() && !board.isEmpty(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet())))) {\n next = checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()));\n checkSpot1 = checkSpot(next.getCol(), next.getRow(), next.getSheet());\n if(checkSpot1[a] && board.getLocation(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()))) != getLetter() && !board.isEmpty(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet())))) {\n return checkSpotAnalyzer(a, new Location(c, r, d));\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "b757a1e18d9baa09ca1d1f418a701ab0", "score": "0.5812837", "text": "public static boolean kingSafe(String possibleMoves, String regex)\r\n {\r\n /**\r\n * 0120 0122 0625 0627 1030 1020 1131\r\n *\r\n * If move 01 has two digits and char 'A' after then kingC is in check\r\n */\r\n\t\tPattern pattern = Pattern.compile(regexLookForKing4);\r\n\t\tMatcher matcher = pattern.matcher(possibleMoves);\r\n\t\tif (!checkC && matcher.find()) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"King C is in check : \" + matcher.group(0)); //prints /{item}/\r\n\t\t\tcheckC = true;\r\n\t\t\treturn false; //not valid move\r\n\t\t}\r\n\t\telse if(checkC && !matcher.find())\r\n\t\t{\r\n\t\t\tcheckC = false;\r\n\t\t\treturn true; //valid move\r\n\t\t}\r\n\r\n //bishop/queen\r\n int temp = 1;\r\n int row, column;\r\n for (int i = -1; i <= 1; i += 2)\r\n {\r\n for (int j = -1; j <= 1; j += 2)\r\n {\r\n try\r\n {\r\n row = kingPosC / 8 + temp * i;\r\n column = kingPosC % 8 + temp * j;\r\n// System.out.println(\"Checking : \" + chessBoard[row][column] + \" on row: \" + row + \" Column: \" + column);\r\n while (\" \".equals(chessBoard[row][column]))\r\n {\r\n temp++;\r\n row = kingPosC / 8 + temp * i;\r\n column = kingPosC % 8 + temp * j;\r\n }\r\n if (\"b\".equals(chessBoard[row][column]) ||\r\n \"q\".equals(chessBoard[row][column]))\r\n {\r\n return false;\r\n }\r\n }\r\n catch (Exception e) {}\r\n temp = 1;\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "886f208d6fc173cd0094fbd18f2289be", "score": "0.5811441", "text": "public void startPos() { // put all white pieces in to correct order.\n // they will be at the bottom\n this.square[0][0].setPiece(new RookPiece(true));\n this.square[1][0].setPiece(new KnightPiece(true));\n this.square[2][0].setPiece(new BishopPiece(true));\n this.square[3][0].setPiece(new QueenPiece(true));\n this.square[4][0].setPiece(new KingPiece(true));\n this.square[5][0].setPiece(new BishopPiece(true));\n this.square[6][0].setPiece(new KnightPiece(true));\n this.square[7][0].setPiece(new RookPiece(true));\n\n // then set the white pawn positions\n for (int i = 0; i < this.square[0].length; i++)\n this.square[i][1].setPiece(new PawnPiece(true));\n\n // put all black pieces in to correct order.\n // the will be at the top\n this.square[0][7].setPiece(new RookPiece(false));\n this.square[1][7].setPiece(new KnightPiece(false));\n this.square[2][7].setPiece(new BishopPiece(false));\n this.square[3][7].setPiece(new QueenPiece(false));\n this.square[4][7].setPiece(new KingPiece(false));\n this.square[5][7].setPiece(new BishopPiece(false));\n this.square[6][7].setPiece(new KnightPiece(false));\n this.square[7][7].setPiece(new RookPiece(false));\n\n // then set the white pawn positions\n for (int i = 0; i < this.square[0].length; i++)\n this.square[i][6].setPiece(new PawnPiece(false));\n }", "title": "" }, { "docid": "b4d23dc77028e7ffeaf87ad9452547ff", "score": "0.5808", "text": "public Location winnable(Board board) {\n for(int c = 0 ; c < 4 ; c++) {\n for(int r = 0 ; r < 4 ; r++) {\n for(int d = 0 ; d < 4 ; d++) {\n if(board.getLocation(new Location(c, r, d)) == getLetter()) {\n for(int a = 0 ; a < 26 ; a++) {\n boolean[] checkSpot1 = checkSpot(c, r, d);\n if(checkSpot1[a]) {\n\n if(board.getLocation(checkSpotAnalyzer(a, new Location(c, r, d))) == getLetter()) {\n Location next = checkSpotAnalyzer(a, new Location(c, r, d));\n checkSpot1 = checkSpot(next.getCol(), next.getRow(), next.getSheet());\n if(checkSpot1[a]) {\n if(board.getLocation(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()))) == getLetter()) {\n next = checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()));\n checkSpot1 = checkSpot(next.getCol(), next.getRow(), next.getSheet());\n boolean[] checkSpot2 = checkSpot(c, r, d);\n if(checkSpot1[a] && board.isEmpty(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet())))) {\n return checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()));\n }\n else if(checkSpot2[25-a] && board.isEmpty(checkSpotAnalyzer(25-a, new Location(c, r, d)))) {\n return checkSpotAnalyzer(25-a, new Location(c, r, d));\n }\n }\n else if(board.isEmpty(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet())))) {\n next = checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()));\n checkSpot1 = checkSpot(next.getCol(), next.getRow(), next.getSheet());\n if(checkSpot1[a] && board.getLocation(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()))) == getLetter()) {\n return next;\n }\n }\n }\n }\n else if(board.isEmpty(checkSpotAnalyzer(a, new Location(c, r, d)))) {\n Location next = checkSpotAnalyzer(a, new Location(c, r, d));\n checkSpot1 = checkSpot(next.getCol(), next.getRow(), next.getSheet());\n if(checkSpot1[a]) {\n if (board.getLocation(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()))) == getLetter()) {\n next = checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()));\n checkSpot1 = checkSpot(next.getCol(), next.getRow(), next.getSheet());\n if(checkSpot1[a] && board.getLocation(checkSpotAnalyzer(a, new Location(next.getCol(), next.getRow(), next.getSheet()))) == getLetter()) {\n return checkSpotAnalyzer(a, new Location(c, r, d));\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "87a610bafaf0881de6746e1b77af060e", "score": "0.5805266", "text": "private boolean validMoveCheck(int stoneCount)\n {\n if(stoneCount - this.getStoneCount() == 0)\n return false; \n \n return true;\n }", "title": "" }, { "docid": "e76d223fc64056fe5a2e5ef2089910c0", "score": "0.5801113", "text": "public abstract boolean moveValidation(int posx, int posy, int x, int y, Board board);", "title": "" }, { "docid": "03b620b7dd9edaab400d051266182c75", "score": "0.5796753", "text": "@Override\n\t/**\n\t * The hopper can only move vertically and it needs to jump over another piece in order to move. After it jumped over one piece, it will be landed on the next tile in front of the last piece it jumped over. The Hopper cannot jump over more than one piece. If the next tile is taken by the opposite, hopper will eat the opposite\n\t */\n\tprotected boolean isValid(int end_x, int end_y, Board board) {\n\t\tint start_x = this.getPosition()[0];\n\t\tint start_y = this.getPosition()[1];\n\t\tif(!super.isValid(end_x, end_y, board)){\n\t\t\treturn false;\n\t\t}\n\t\tif(!super.ifTakenByOpposite(end_x, end_y, board)){\n\t\t\treturn false;\n\t\t}\n\t\tint unit_x = start_x<end_x? 1:-1;\n\t\tint jumped_index = -1;\n\t\tif(end_y-start_y == 0){\n\t\t\tint check_x = start_x+unit_x;\n\t\t\tboolean findPiece = false;\n\t\t\twhile(check_x != end_x){\n\t\t\t\tif(board.occupied(check_x, start_y)){\n\t\t\t\t\tif(!findPiece){\n\t\t\t\t\t\tfindPiece = true;\n\t\t\t\t\t\tjumped_index = check_x;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcheck_x = check_x+unit_x;\n\t\t\t}\n\t\t\tif(findPiece && jumped_index+unit_x == end_x){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f39113fd99caffa81275fedc20b44861", "score": "0.57958364", "text": "private void move(){\n\t\tString firstLocation = (String) location[0].getTag();\n\t\tString secondLocation = (String) location[1].getTag();\n\t\t\n\t\tif (b.getPieceAtPosition(firstLocation).canMoveTo(secondLocation)){\n\t\t\tint firstID = location[0].getId();\n\t\t\tint secondID = location[1].getId();\n\t\t\t\n\t\t\tButton originalLocation = (Button)findViewById(firstID);\n\t\t\tButton desiredLocation = (Button)findViewById(secondID);\n\t\t\t\n\t\t\ttextHolder = (String)desiredLocation.getText();\n\t\t\tdesiredLocation.setText(originalLocation.getText());\n\t\t\toriginalLocation.setText(null);\n\t\t\tmadeMove = true;\n\t\t\t\n\t\t\t//Checks for castling\n\t\t\tcheckCastling(firstLocation, secondLocation);\n\t\t\t\n\t\t\t//Checks for en Passant\n\t\t\tcheckEnPassant(firstLocation, secondLocation);\n\t\t}\n\t\telse{\n\t\t\tList<String> availableMoves = b.getPieceAtPosition(firstLocation).hasAvailableMoves();\n\t\t\tString moves = \"\";\n\t\t\t\n\t\t\tfor (int i = 0; i < availableMoves.size(); i++){\n\t\t\t\tmoves = moves + availableMoves.get(i) + \" \";\n\t\t\t}\n\t\t\t\n\t\t\tmoves = moves.trim();\n\t\t\t\n\t\t\tif (availableMoves.size() == 0){\n\t\t\t\tif (b.check(player)){\n\t\t\t\t\tToast.makeText(PlayActivity.this, \"Your king is currently checked!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\telse{\t\t\t\t\n\t\t\t\t\tToast.makeText(PlayActivity.this, \"There are no available moves for the piece at \" + firstLocation + \".\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif (player.equalsIgnoreCase(\"white\")){\n\t\t\t\t\tstatus.setText(\"Turn: Player 1 Piece Selected: \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstatus.setText(\"Turn: Player 2 Piece Selected: \");\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tToast.makeText(PlayActivity.this, \"Invalid move for piece at \" + firstLocation + \". Available moves: \" + moves + \".\", Toast.LENGTH_SHORT).show();\n\t\t\t\tif (player.equalsIgnoreCase(\"white\")){\n\t\t\t\t\tstatus.setText(\"Turn: Player 1 Piece Selected: \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstatus.setText(\"Turn: Player 2 Piece Selected: \");\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fd9c43346fb844363c64b7e3a448637d", "score": "0.5793885", "text": "private void kingMove(int row, int column, Piece[][] boardArray) {\n if(boardArray[row][column] == null ||\n (boardArray[row][column].getTeamColor() != teamColor))\n {\n possibleMoves.add(new RedDot(row, column, board));\n }\n }", "title": "" }, { "docid": "e119ef028dae6612e3652f3af4845167", "score": "0.57889104", "text": "public boolean isCheckmate() {\n\n moveCount++;\n updateInfo();\n boolean ret = true;\n\n // make a list of all coordinates\n ArrayList<XiangqiCoordinate> allC = new ArrayList<>();\n for (int i = 1; i < rank; i++) {\n for (int j = 1; j < file; j++) {\n allC.add(makeCoordinate(i, j));\n }\n }\n\n /*\n * First find all this side color pieces. For each piece, check whether there is a valid move and\n * after the move general will not be under attack. If yes, then the move just made is not checkmate.\n */\n for (XiangqiCoordinate source : allC) {\n if (board[source.getRank()][source.getFile()].getColor() == thisSideColor) {\n for (XiangqiCoordinate destination : allC) {\n if (isValidMove(source, destination, false) && !isGeneralUnderAttackAfterMove(source, destination)) {\n ret = false;\n break;\n }\n }\n }\n }\n\n moveCount--;\n updateInfo();\n return ret;\n }", "title": "" }, { "docid": "e992167aacfec2ad6d74e0bad4795901", "score": "0.57880247", "text": "void tick() {\r\n if (playing) {\r\n // advance the square and snitch in their current direction.\r\n// square.move();\r\n// snitch.move();\r\n p1.move();\r\n Iterator<bike> itr = ai.iterator(); \r\n while (itr.hasNext()) {\r\n \tbossAI2 l = (bossAI2) itr.next();\r\n \tif (l.alive==true){\r\n \t\t\tint i = l.nextStep(grid,p1.getX(),p1.getY());\r\n \t\t\tl.setDirection(i);\r\n \t\t\tl.move();\r\n \t\t}\r\n \t}\r\n\r\n\r\n \r\n \t\t// checking the red bike death scenario\r\n \t\t//----------------------------------------------------------------------------------------------------------\r\n\r\n\r\n \t\t//this also checks the position of the bike, divides it by 7 and then looks into the boolean grid to see if that position has already been set to true\r\n \t\t//basically this checks if the bike has ran into the trail thing of another bike (or itself)\r\n \r\n Iterator<bike> itr2 = ai.iterator(); \r\n while (itr2.hasNext()) {\r\n \t\tbossAI2 l = (bossAI2) itr2.next();\r\n \t\tif (grid [p1.getX()][p1.getY()]==true || (p1.getX()==l.getX() && p1.getY()==l.getY())){\r\n \t\t\tplaying = false;\r\n \t\t\tlives--;\r\n \t\t\tif (lives==0){\r\n \t\t\t\tlevel=1;\r\n \t\t\t\tstatus.setText(\"GAME OVER\");\r\n \t\t\t\tlives=3;\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t status.setText(\"Level: \"+level + \" lives: \"+lives);\r\n \t\t}\r\n \t\tif (grid [l.getX()][l.getY()]==true){\r\n \t\t\tl.alive=false;\r\n \t\t}\r\n }\r\n \r\n boolean alldead=true;\r\n Iterator<bike> itr3 = ai.iterator(); \r\n while (itr3.hasNext()) {\r\n \tbossAI2 l = (bossAI2) itr3.next();\r\n \tif (l.alive==true)\r\n \t\talldead=false;\r\n }\r\n if (alldead==true){\r\n \tlevel++;\r\n \tlives=3;\r\n \tplaying = false;\r\n \tif (level==10){\r\n \t\tstatus.setText(\"Congradulations! You beaten the final level\");\r\n \t} else{\r\n \t\tstatus.setText(\"Victory! Hit the spacebar for next stage\");\r\n \t\t\t}\r\n }\r\n\r\n \t\t//-----------------------------------------------------------------------------------------------------------------------\r\n \t\t//if it has not ran into the trail of another bike, then it will set that position equal to true to mark that it has already been there\r\n \t\tif (grid[p1.getX()][p1.getY()]==false){\r\n \t\t\t\tgrid[p1.getX()][p1.getY()]=true;\r\n \t\t}\r\n \t\tIterator<bike> itr4 = ai.iterator();\r\n \t\twhile (itr4.hasNext()) {\r\n \t\t\tbossAI2 l = (bossAI2) itr4.next();\r\n \t\t\tif (grid[l.getX()][l.getY()]==false){\r\n \t\t\t\tgrid[l.getX()][l.getY()]=true;\r\n \t\t}\r\n \t\t}\r\n\r\n\r\n// // make the snitch bounce off walls...\r\n// snitch.bounce(snitch.hitWall());\r\n// // ...and the mushroom\r\n// snitch.bounce(snitch.hitObj(poison));\r\n\r\n// // check for the game end conditions\r\n// if (square.intersects(poison)) {\r\n// playing = false;\r\n// status.setText(\"You lose!\");\r\n// } else if (square.intersects(snitch)) {\r\n// playing = false;\r\n// status.setText(\"You win!\");\r\n// }\r\n\r\n // update the display\r\n repaint();\r\n }\r\n if (instructions==true)\r\n \trepaint();\r\n }", "title": "" }, { "docid": "cd885436eb213ad7403a53eb7760605a", "score": "0.57873553", "text": "@Override\n\tpublic boolean movedOutOfGrid() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "67c2c68cf8c3dff04f6ab3f6dc215a16", "score": "0.5780862", "text": "public boolean theDuckmanFunctionality() throws IOException\r\n\t{\r\n\t\t//Read the scroll\r\n\t\tboolean success = false;\r\n\t\t//Get a comma separated list of Players having Minions on Board\r\n\t\tString strPlayerIDs = Game.GetPlayerIDsHavingMinionsOnBoard();\r\n\t\t//Remove current Player's ID from the List\r\n\t\tstrPlayerIDs = strPlayerIDs.replace(\",\"+this.getPlayer_id()+\",\", \",\");\r\n\t\t//Display players having Minions on Board\r\n\t\tSystem.out.println(\"Choose a Player from following whose Minion you wish to move:\");\r\n\t\tGame.DisplayPlayers(strPlayerIDs);\r\n\t\tString PlayerID = PresentationUtility.GetValidAnswerFromUser(strPlayerIDs);\t\r\n\t\tPlayer objChosenPlayer = Game.GetPlayer(Integer.parseInt(PlayerID));\r\n\t\tArrayList<Minion> objMinionList = Game.GetMinionsByPlayerID(Integer.parseInt(PlayerID));\r\n\t\tString strAreaList = \",\";\r\n\t\tfor(Minion objMinion : objMinionList)\r\n\t\t{\r\n\t\t\tif(objMinion.getArea_id()!=0)\r\n\t\t\t{\r\n\t\t\t\tif(!strAreaList.contains(\",\"+objMinion.getArea_id()+\",\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tstrAreaList+=objMinion.getArea_id()+\",\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Display Areas\r\n\t\tSystem.out.println(objChosenPlayer.getPlayer_name()+\" has Minions in following Areas. Enter an Area ID from where you wish to move a Minion.\");\r\n\t\tGame.DisplayAreas(strAreaList);\r\n\t\tString strAreaID = PresentationUtility.GetValidAnswerFromUser(strAreaList);\r\n\t\tString strAdjacentAreas = PresentationUtility.GetAdjacentAreas(Integer.parseInt(strAreaID));\r\n\t\tSystem.out.println(\"Following are the Areas Adjacent to \"+ PresentationUtility.getCityAreaCardNameById(Integer.parseInt(strAreaID)));\r\n\t\tGame.DisplayAreas(strAdjacentAreas);\r\n\t\tSystem.out.println(\"Enter an Area ID where you wish to move the Minion\");\r\n\t\tString strMoveToArea = PresentationUtility.GetValidAnswerFromUser(strAdjacentAreas);\r\n\r\n\t\tfor(Minion objMinion : Game.lstMinions)\r\n\t\t{\r\n\t\t\tif(objMinion.getArea_id()==Integer.parseInt(strAreaID) && objMinion.getPlayer_id()==objChosenPlayer.getPlayer_id())\r\n\t\t\t{\r\n\t\t\t\tPlayer playerObjOfMinion = Game.GetPlayer(objMinion.getPlayer_id()); //Put playerId here to get the player Object\r\n\t\t\t\tArrayList<GreenCard> greenCardPlayerObj = Game.GetGreenCardByPlayerID(playerObjOfMinion.getPlayer_id());\r\n\t\t\t\tif(greenCardPlayerObj != null && greenCardPlayerObj.size() > 0){\r\n\t\t\t\t\tfor(GreenCard greenCard : greenCardPlayerObj){\r\n\t\t\t\t\t\tif(greenCard.GetCardID().equals(\"g17\")){\r\n\t\t\t\t\t\t\tSystem.out.println(playerObjOfMinion.getPlayer_name() + \", Player \"+ playerObjOfMinion.getPlayer_id()+\"'s minion is to be assassinated. You have the Interrupt Card 'Gaspode'. Do you wish to Play it. Y/N ?\");\r\n\t\t\t\t\t\t\tString ans = PresentationUtility.GetValidAnswerFromUser(\",Y,N,\");\r\n\t\t\t\t\t\t\tif(ans.equals(\"Y\")){\r\n\t\t\t\t\t\t\t\tSystem.out.println(playerObjOfMinion.getPlayer_name() + \" Minion saved.\");\r\n\t\t\t\t\t\t\t\tgreenCard.SetIsPlayed(true);\r\n\t\t\t\t\t\t\t\tgreenCard.setPlayerID(0);\r\n\t\t\t\t\t\t\t\tsuccess = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif(!success){\r\n\t\t\t\t\tobjMinion.setArea_id(Integer.parseInt(strMoveToArea));\r\n\t\t\t\t\t//Handle Trouble Markers\r\n\t\t\t\t\t//Place or Remove Trouble Marker from Previous Area\r\n\t\t\t\t\tif(!Game.AreaHasTroubleMarker(Integer.parseInt(strAreaID)))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tGame.removeTroubleMarkerByAreaId(Integer.parseInt(strAreaID));\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"Trouble Marker was removed from : \"+PresentationUtility.getCityAreaCardNameById(Integer.parseInt(strAreaID)));\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n//\t\t\t\t\telse\r\n//\t\t\t\t\t{\r\n//\t\t\t\t\t\tPlaceATroubleMarkerInArea(Integer.parseInt(strAreaID));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n//\t\t\t\t\t\tSystem.out.println(\"Trouble Marker was placed in : \"+PresentationUtility.getCityAreaCardNameById(Integer.parseInt(strAreaID)));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n//\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//Place or Remove Trouble Marker from New Area\r\n\t\t\t\t\tif(Game.AreaHasMinion(Integer.parseInt(strMoveToArea)))\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!Game.AreaHasTroubleMarker(Integer.parseInt(strMoveToArea)))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tPlaceATroubleMarkerInArea(Integer.parseInt(strMoveToArea));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"Trouble Marker was placed in : \"+PresentationUtility.getCityAreaCardNameById(Integer.parseInt(strMoveToArea)));\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.out.println(\"Minion moved successfully!\");\r\n\t\t\t\t\tsuccess = true;\r\n\t\t\t\t\tbreak;//Important to break as this should happen for 1 Minion Only\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\treturn success;\r\n\t}", "title": "" }, { "docid": "8fab24103e5dce4e26acd33e5b4fde69", "score": "0.57754153", "text": "public void movePiece(View view) {\n // Toast below shows the clicked button's id for debugging / me figuring this out\n // Toast.makeText(this, newCell, Toast.LENGTH_SHORT).show();\n String newCell = view.getTag().toString().substring(7); //holds the id of the potential cell to be moved to\n String prevCell = recent.getTag().toString().substring(7); // id of current cell\n int newY = Integer.parseInt(newCell.substring(0,1));\n int newX = Integer.parseInt(newCell.substring(1));\n int oldY = Integer.parseInt(prevCell.substring(0,1));\n int oldX = Integer.parseInt(prevCell.substring(1));\n if (((newY % 2 == 0 && newX % 2 == 1) || (newY % 2 == 1 && newX % 2 == 0)) && followsRules(prevCell, newCell)) { // only allow moves to brown squares\n if ((newY == oldY - 1) && (newX == oldX - 1 || newX == oldX + 1) ||\n (newY == oldY + 1) && (newX == oldX - 1 || newX == oldX + 1)) {// only allow moves to directly diagonal squares\n if (pieceLocations.get(newCell) == null) { // makes sure potential cell is not occupied\n int prevCellId = playerLocations.get(prevCell);\n if (prevCellId == 3 || prevCellId == 4) {\n endTurn = true;\n }\n moveHelper(view, prevCell, newCell);\n togglePlayers();\n }\n // Toast.makeText(this, Integer.toString(view.getId()), Toast.LENGTH_SHORT).show();\n } else if (Math.abs(newY - oldY) == 2 && Math.abs(newX - oldX) == 2) {\n String middle = \"\" + (oldY + ((newY - oldY) / 2)) + (oldX + ((newX - oldX) / 2));\n if (pieceLocations.containsKey(middle)) {\n findViewById(pieceLocations.get(middle)).setForeground(null);\n pieceLocations.remove(middle);\n playerLocations.remove(middle);\n moveHelper(view, prevCell, newCell);\n togglePlayers();\n }\n }\n toKing(view, newY, newCell);\n }\n }", "title": "" } ]
7b179fe0bf40625060144c1940eb2af8
park in the car spot
[ { "docid": "0593845336790d60616ae36481b25ae8", "score": "0.75798875", "text": "boolean tryToPark(Vehicle v) {\n boolean parked = false;\n if (numSpots > 0) { // parking in car spot\n numSpots--; // must have taken a car slot\n if (v.isCar()) { numCars++; }\n if (v.isMotorCycle()) { numMotorCycles++; }\n parked = true;\n }\n //System.out.println(\" try to park in car spot returning \" + parked);\n return parked;\n }", "title": "" } ]
[ { "docid": "70c4f73ee484148919ae28fb172ac0c4", "score": "0.73040795", "text": "public ParkingTicket park(Car car) {\n ParkingResult parkResult = parkingLot.park(car);\n lastErrorMessage = parkResult.getMessage();\n return parkResult.getTicket();\n // ---end->\n }", "title": "" }, { "docid": "605678eb77debdc7e73989c75266f1b9", "score": "0.7160973", "text": "public static void park(Vehicle v) {\n System.out.print(v.getClass().getName() + \" park() : \");\n v.park();\n }", "title": "" }, { "docid": "13daff1d32c978051657a71f8f2845c8", "score": "0.70758045", "text": "boolean tryToPark(Vehicle v) {\n boolean parked = false;\n if (v.isCar() && isSpaceForCar()) {\n numBlocked += 2; // blocks 2 additional spaces for cars\n numCars++;\n numSpots -= 3;\n parked = true;\n } else if ( v.isMotorCycle() && isSpaceForMotorCycle()) {\n numBlocked +=2;\n numMotorCycles++;\n numSpots--;\n parked = true;\n }\n //System.out.println(\" try to park in MC Spot returning \" + parked);\n return parked;\n }", "title": "" }, { "docid": "6c658e421b0fb618152f2e2f754824cb", "score": "0.6925253", "text": "public boolean parkVehicle(Vehicle vehicle) {\n // Write your code here\n for (int i = 0; i < level.length; ++i) {\n if (level[i].park(vehicle)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "8e374f8f81c7ef636dc2fca3e4d688e7", "score": "0.6851221", "text": "public void park() {\n\t\t\n System.out.println(\"Please enter the car name\");\n\t\tString carname = scanner.nextLine();\n\t\t// OUTER is label here we used it to implement keyword continue\n\t\tOUTER: while (true) {\n\t System.out.println(\"Please enter the car number between 8 to 11 charaters\");\n\t\tString carnumber = scanner.nextLine();\n\t\tif (carnumber.length() >= 8 && carnumber.length() <= 11 && !carnumber.contains(\" \")) {\n\t\t\t CarDetails car = new CarDetails(carname, carnumber);\n\t\t\t\tfor (int row = 0; row < cardetails.length; row++) {\n\t\t\t\t\tfor (int coloum = 0; coloum < cardetails[0].length; coloum++) {\n\t\t\t\t\t\tif (cardetails[row][coloum] == null) {\n\t\t\t\t\t\t\tcardetails[row][coloum] = car;\n\t\t\t\t\t\t\tSystem.out.println(\"Parking ID = \" + ((row * cardetails.length) + (coloum + 1)));\n\t\t\t\t\t\t\tsetCount(getCount() + 1);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse if (car.getCarnumber().equals(cardetails[row][coloum].getCarnumber())) {\n\t\t\t\t\t\t\tSystem.out.println(\"With this number Car is already parked\");\n\t\t\t\t\t\t\tcontinue OUTER;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\telse {\n\t\t\t\tSystem.out.println(\"Invalid carnumber\");\n\t\t\t\tcontinue OUTER;\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "377b85005f9771101910e0a5000a78f7", "score": "0.67301524", "text": "public boolean parkVehicle(Vehicle vehicle) {\n // Write your code here\n boolean res;\n for (int i = 0; i < levels.size(); i++) {\n if (levels.get(i).park(vehicle)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "ab25bcc7010b2637767990e2b665f1b6", "score": "0.65875113", "text": "public int park(Car car){\n\t\tfor (int i = 0; i < this.spots.length; i++) {\n\t\t\tif (this.spots[i] == null) {\n\t\t\t\tthis.spots[i] = car;\n\t\t\t\treturn i+1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Sorry. Garage is full.\");\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "39b7b433c491152252a746f70266d360", "score": "0.6562737", "text": "public void park(ParkingSlot parkingSlot) {\n this.park(parkingSlot, LocalDateTime.now());\n }", "title": "" }, { "docid": "53952ebc77743aaf59e986093aeb3d41", "score": "0.6538707", "text": "public boolean park(Vehicle v){\n for (Level level : levels) {\n if (level.park(v)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "86e0ac677c53970702b479c96a5c67f9", "score": "0.6510537", "text": "@Test\n //TODO Perform park operation\n public void testPark() {\n parkingInstance.setNoOfSlots(2);\n ParkingSlot psInstance = parkingInstance.park(\"TS2E123\");\n assertEquals(\"Parked Successfully\", \"TS2E123\", psInstance.getVehicleObject().getRegistrationNumber());\n }", "title": "" }, { "docid": "319282c06fc46e828ca1e3198a19ff51", "score": "0.645376", "text": "boolean park(Vehicle result);", "title": "" }, { "docid": "3713aae4288b51aa9f22b8cd4ff10c67", "score": "0.64116627", "text": "boolean canPark() {\n if (isCar()) { // cars park in motorcycle first or car slot 2nd\n return( tryToParkInMotorCycleSlot(this) || tryToParkInCarSlot(this));\n } else { // motorcycles park in car spots first then motorcycles if avauilable\n return( tryToParkInCarSlot(this) || tryToParkInMotorCycleSlot(this));\n }\n }", "title": "" }, { "docid": "525460b1b881418884e289352f83f2e1", "score": "0.63450146", "text": "public abstract void Parking();", "title": "" }, { "docid": "7820b9e0f4155e0477ed735e7a3803cf", "score": "0.626063", "text": "void EnterPark() {\n }", "title": "" }, { "docid": "631bcd10d28897cdd31016f703d19934", "score": "0.6242348", "text": "@Override\n\tpublic void gearPark() {\n\t\tif (VehicleContext.instance().getSpeed() == 0) {\n\t\t\tUserInterface.gearText.setText(\"Vehicle is Parked\");\n\t\t} else {\n\t\t\t// Vehicle is still moving, even though in the BRAKE state. The act\n\t\t\t// of slowing down is still in progress.\n\t\t}\n\t}", "title": "" }, { "docid": "cc8bf293df3c58395bbf180a941baee0", "score": "0.62112504", "text": "void driveIn(Car car) {\n constructionRoad.put(currentTime+tB, new Pair<States, Car>(currentState, car));\n }", "title": "" }, { "docid": "886e4087665307b0852d84a9f60c0941", "score": "0.6208434", "text": "public void park(ParkingSlot parkingSlot, LocalDateTime returnDateTime){\n if (this.rentedBicycle == null){\n System.out.println(\"Error: this user has no bicycle to park.\");\n }\n else {\n if (parkingSlot.getParkingSlotStatus() == ParkingSlotStatus.Free){\n parkingSlot.setParkingSlotStatus(ParkingSlotStatus.Occupied);\n parkingSlot.setBicycle(rentedBicycle);\n double computeCost = computeCost(rentedBicycle.getType(), this.rentDateTime, returnDateTime);\n System.out.println(\"Bicycle successfully parked.\");\n // update user statistics\n // time credit and charges are updated when computing cost\n this.numberOfRides ++;\n this.totalRentTimeInMinutes += this.rentDateTime.until(returnDateTime, ChronoUnit.MINUTES);\n\n // reset rent attributes\n this.rentedBicycle = null;\n this.rentDateTime = null;\n }\n else {\n System.out.println(\"Error: you can only park bicycle on free parking slot.\");\n }\n\n }\n }", "title": "" }, { "docid": "4daed6f3c0aff1f1fd8dff543d1541bb", "score": "0.61683965", "text": "public Optional<Ticket> park(Vehicle vehicle) throws ParkinglotException;", "title": "" }, { "docid": "fb631b9dca7c7dd622317a9b27f08b7c", "score": "0.61647266", "text": "public boolean isParked() {\n\t\tif (getLocationStateType() == LocationStateType.WITHIN_SETTLEMENT_VICINITY\n\t\t\t\t|| getLocationStateType() == LocationStateType.INSIDE_SETTLEMENT)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "10657b5bbcfd1859b328822c62aaf1f1", "score": "0.6095791", "text": "public CarPark(int id, String name, Road inRoad, int carparkCapacity, Clock clock) {\n\n this.id = id;\n this.name = name;\n this.clock = clock;\n this.inRoad = inRoad;\n\n cars = new Vehicle[carparkCapacity];\n noOfCars = 0;\n }", "title": "" }, { "docid": "1939182f365897d5747f7b1267b4741a", "score": "0.6075356", "text": "private String parkCar(Car c) {\n\n\t\t// clear description\n\t\tString ret = null;\n\n\t\t// First look in Car Spaces\n\t\tfor (int idx = 0; idx < floors; idx++) {\n\t\t\tfor (int jdx = 0; jdx < carSpacesPerFloor; jdx++) {\n\t\t\t\t// if car space is empty\n\t\t\t\tif (carSpaces[idx][jdx] == null) {\n\t\t\t\t\tspacesUsed++;\n\t\t\t\t\tcarSpaces[idx][jdx] = c;\n\t\t\t\t\t// change description\n\t\t\t\t\tret = \"Car \" + c.license + \" parked on floor \" + (idx + 1) + \" in space C #\" + (jdx + 1);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// break out of loop if car is parked\n\t\t\tif (ret != null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// Last look in Large Spaces\n\t\tif (ret == null) {\n\t\t\tfor (int idx = 0; idx < floors; idx++) {\n\t\t\t\tfor (int jdx = 0; jdx < largeSpacesPerFloor; jdx++) {\n\t\t\t\t\t// if large space is empty\n\t\t\t\t\tif (largeSpaces[idx][jdx] == null) {\n\t\t\t\t\t\tspacesUsed++;\n\t\t\t\t\t\tlargeSpaces[idx][jdx] = c;\n\t\t\t\t\t\t// change description\n\t\t\t\t\t\tret = \"Car \" + c.license + \" parked on floor \" + (idx + 1) + \" in space LG #\" + (jdx + 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// break out of loop if car is parked\n\t\t\t\tif (ret != null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// if car is not parked\n\t\tif (ret == null) {\n\t\t\tret = \"No Car/Large spaces are available for \" + c.license + \", current parking garage\";\n\t\t}\n\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "5ab9c178141c50e1e381d73e8a555d1e", "score": "0.6068552", "text": "public void parkInSpot(ParkingSpot s) {\n\t\t parkingSpots.add(s); \n\t\t }", "title": "" }, { "docid": "36447fe94f62f1cf21f924e27ade6ab7", "score": "0.6016793", "text": "private String park(Vehicle v) {\n\t\tString ret = null;\n\n\t\t// if there are open spaces in the parking garage\n\t\tif (spacesUsed < totalSpaces) {\n\t\t\t// depending on class type of the Vehicle object, park either a bus,\n\t\t\t// car, or motorcycle.\n\t\t\tif (v.getClass() == Bus.class) {\n\t\t\t\tret = parkBus((Bus) v);\n\t\t\t} else if (v.getClass() == Car.class) {\n\t\t\t\tret = parkCar((Car) v);\n\t\t\t} else if (v.getClass() == Motorcycle.class) {\n\t\t\t\tret = parkMotorcycle((Motorcycle) v);\n\t\t\t\t// if the object isn't of type vehicle\n\t\t\t} else {\n\t\t\t\tret = \"Unknown vehicle, cannot park.\";\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "44a0c55600d4039eec20d1dc0f76a9d7", "score": "0.60114425", "text": "public Parking(int carNumber, int truckNumber) {\n this.carNumber = carNumber;\n this.truckNumber = truckNumber;\n }", "title": "" }, { "docid": "328666d5067b379f25e61f050a68530c", "score": "0.6009608", "text": "public abstract void determinedSettlementParkedLocationAndFacing();", "title": "" }, { "docid": "a0245e5e68b838e49db08d8abc902421", "score": "0.5973544", "text": "public void setParking(String parking) {\n\t\tthis.parking = parking;\n\t}", "title": "" }, { "docid": "4fd9e12a6257b12c52199953d4853fa3", "score": "0.5882761", "text": "private void carLeavesSpot(Car car){\n \tsimulatorView.removeCarAt(car.getLocation());\n exitCarQueue.addCar(car);\n }", "title": "" }, { "docid": "f79436f997adf71fc5084633e8d327ed", "score": "0.5880368", "text": "@Test\n\t@Order(1)\n\tpublic void testParkVehicle() {\n\t\tassertTrue(this.vehicleParkingService.parkVehicle(new Vehicle(\"BMW\")));\n\t\tassertTrue(this.vehicleParkingService.parkVehicle(new Vehicle(\"Ferrari\")));\n\t}", "title": "" }, { "docid": "5edcb8b47e1334a2103af9ab8e7f6ded", "score": "0.5822153", "text": "public void enterPitStop(RaceCar car) {\n if(this.psPointer == this.carsInPitStop.length){\n this.carsInPitStop = expand(this.carsInPitStop);\n }\n carsInPitStop[psPointer++] = car;\n }", "title": "" }, { "docid": "19a6fcca53adc843b4c3ddaa9ec2e1f8", "score": "0.5793113", "text": "public void setTelescopeParkPosition(LocationElement loc) {\n\t\tparkPos = loc;\n\t}", "title": "" }, { "docid": "84ee75fd3b642e8d4622f8632f8e1d87", "score": "0.5783485", "text": "private void callPark(){\r\n new Thread(() -> {\r\n try {\r\n //request to get park ID\r\n OkHttpClient client = new OkHttpClient();\r\n Request request = new Request.Builder()\r\n .url(url + \"/nationalPark/\" + parkName)\r\n .build();\r\n Response response = client.newCall(request).execute();\r\n JSONArray parks = new JSONArray(response.body().string());\r\n JSONObject deathValley = parks.getJSONObject(0);\r\n\r\n // create parsable uri string\r\n // tel:<phonenumber>\r\n // List of uri schemes can be found at:\r\n // https://en.wikipedia.org/wiki/List_of_URI_schemes#Generic_syntax\r\n String sitePhone = \"tel:\" + deathValley.getString(\"phone\");\r\n\r\n /* From the docs https://developer.android.com/reference/android/content/Intent:\r\n * Intent object is abstract description of an operation to be performed.\r\n * It can be used with startActivity to launch an activity\r\n * It is used in the launching of activities, where it can be thought of as the\r\n * glue between activities.\r\n */\r\n Intent callPark = new Intent(Intent.ACTION_DIAL, Uri.parse(sitePhone));\r\n startActivity(callPark); // ask android os to go to site\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"unable to fetch request\");\r\n } catch (JSONException e) {\r\n System.out.println(\"unable to parse request\");\r\n }\r\n }).start();\r\n\r\n }", "title": "" }, { "docid": "a775c2e5e210c43856c7ff3420d2e3ec", "score": "0.5717399", "text": "@Test\n public void testMoveInCarParkCondition1() throws RunOrientationException {\n Car car = new CarImpl(1, 1, OrientationEnum.NORTH);\n car.move(MoveTypeEnum.CLOCKWISE, carPark);\n assertEquals(1, car.getPositionX());\n assertEquals(1, car.getPositionY());\n assertSame(OrientationEnum.EAST, car.getOrientation());\n }", "title": "" }, { "docid": "6bd367b951c96703572cecde8cf25674", "score": "0.56953454", "text": "public void parkAtTransferGate() {\n ((Pilot) Thread.currentThread()).setPilotState(Pilot.States.AT_TRANSFER_GATE);\n generalRep.setPilotState(Pilot.States.AT_TRANSFER_GATE);\n// System.out.println(\"PILOT: Park transfer gate\");\n\n }", "title": "" }, { "docid": "c89b031e38898788570c097bc5612608", "score": "0.56847554", "text": "public int ParkCar(String plateNumber, int spotNumber, int level, String lotName) throws Exception{\n\n\n String query = String.format(\"UPDATE ParkingSpot SET ParkingSpot.LicensePlate = \\\"%1$s\\\" WHERE ParkingSpot.LicensePlate IS NULL AND ParkingSpot.SpotNumber = \\\"%2$d\\\" AND ParkingSpot.Level = \\\"%3$d\\\" AND ParkingSpot.ParkingLotID IN (SELECT ParkingLot.ID FROM ParkingLot WHERE ParkingLot.name = \\\"%4$s\\\"); \", plateNumber, spotNumber, level, lotName);\n\t\tString query2 = String.format(\"INSERT INTO Payment (LicensePlate, Duration, StartTime, Status) VALUES (\\\"%s\\\", 0, NOW(), False);\", plateNumber);\n\n\t\tSystem.out.println(query);\n\t\tSystem.out.println(query2);\n\n\t\ttry\n\t\t{\n\t\t\tStatement statement = this.connection.createStatement();\n\t\t\tint result_1 = statement.executeUpdate(query);\n\t\t\t// System.out.println(\"result_1 \" + result_1);\n\t\t\t// System.out.println(\"passed first query\");\n\t\t\tif (result_1 == 1) {\n\t\t\t\tstatement.executeUpdate(query2);\n\n\t\t\t} \n\t\t\treturn result_1;\n\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tthrow new SQLException(\"Encountered an error when executing given sql statement\", e);\n\t\t}\t\t\n\n\t}", "title": "" }, { "docid": "e542e0662081f7510e12b6ecfc3fbcb2", "score": "0.5676928", "text": "public LocationElement getTelescopeParkPosition() { return parkPos; }", "title": "" }, { "docid": "8219b75bccfa32c74b27956685503850", "score": "0.5661191", "text": "@Test\n public void shouldDriveToIndoorStadium() {\n Location location = new Location(12.9688, 77.5913, 0.0);\n\n homeScreen.setLocation(location)\n .park();\n Assert.assertEquals(location.toString(), driver.location().toString());\n }", "title": "" }, { "docid": "88e476270c26c2042c86a745f74b0f07", "score": "0.56537884", "text": "public void setParkId(Integer parkId) {\n this.parkId = parkId;\n }", "title": "" }, { "docid": "88e476270c26c2042c86a745f74b0f07", "score": "0.56537884", "text": "public void setParkId(Integer parkId) {\n this.parkId = parkId;\n }", "title": "" }, { "docid": "4d1ba7612b036f2d51c86536c443f07f", "score": "0.5646582", "text": "public synchronized int placeCar(RacingCar car){\n\t\tint place=0;\n\t\tfor(int i=0;i<RaceMediator.cars.length;i++){\n\t \t if(RaceMediator.cars[i]==null){//find highest empty place (At this point you can also check if car already exists)\n\t \t\t RaceMediator.cars[i]=car;//and assign given car to it\n\t \t\t place=i+1;//calculate it's place\n\t \t\t System.out.println(car.getName()+\"placed on\");\n\t \t\t break;//don't proceed\n\t \t }\n\t }\n\t\treturn place;\n\t}", "title": "" }, { "docid": "69fbd4245e49ee056d8b0ad97831aa16", "score": "0.5611262", "text": "@Override\n\tpublic void start() {\n\t\tgearPark();\n\t}", "title": "" }, { "docid": "6bdb5520966ebadf250fcf0ee49ada82", "score": "0.5602566", "text": "@Override\n\tpublic synchronized void parkAtTransfer() {\n\t\tpilotInpark = true;\n\t\tnumberF++;\n\t\t//setPilotStateUpdate(numberF, PilotState.AT_TRANSFER_GATE);\n\t\tnotifyAll();\n\t}", "title": "" }, { "docid": "405d2d278b6168d3f9c0932a625399dc", "score": "0.5585622", "text": "@Override\n public void parkVehicle(T t) {\n\n }", "title": "" }, { "docid": "38f618548ab3c0cb3a72e544c6caa640", "score": "0.5579481", "text": "public void requestVehicle(Vehicle v, ParkingLot p, Steward s) {\r\n if(v.getSpotsTaken() == 1){\r\n int currentVehicle = vehicles.indexOf(v);\r\n p.setSpot((int) v.getSpot().getLocation().getX(), (int) v.getSpot().getLocation().getY(), null);\r\n s.setAssignedLot(p);\r\n v.setLot(null); // sets lot to null since they are getting there vehicle back\r\n v.setSpot(null); // sets spot to null since they are getting there vehicle back\r\n vehicles.set(currentVehicle, v);\r\n }else{\r\n int currentVehicle = vehicles.indexOf(v);\r\n p.setSpot((int)v.getTwoSpot().getAllLocation()[0].getX(),new int[]{(int)v.getTwoSpot().getAllLocation()[0].getY(),(int)v.getTwoSpot().getAllLocation()[1].getY()},null);\r\n s.setAssignedLot(p);\r\n v.setLot(null); // sets lot to null since they are getting there vehicle back\r\n v.setSpot(null); // sets spot to null since they are getting there vehicle back\r\n vehicles.set(currentVehicle, v);\r\n }\r\n }", "title": "" }, { "docid": "47d7d7cc70ff94e79c3259ff6d0b2291", "score": "0.55681443", "text": "public CarPark(double lat, double lng, String name,\n String buildingCode, String address, String desc, String phone) {\n super(lat, lng, name, false, false, 0);\n this.desc = desc;\n this.buildingCode = buildingCode;\n this.address = address;\n this.phone = phone;\n }", "title": "" }, { "docid": "4d19834d6650ba0550b5b9e061b491a2", "score": "0.55680513", "text": "public void respond(Customer obj){\n boolean DNR = this.checkDNR(obj);\n // System.out.println(super.getSpots());\n // System.out.println(super.getName());\n if (!DNR && super.getSpots() > 0 && super.getTakenSpots().size() < super.getSpots()){\n this.takeVehicle(obj);\n System.out.println(\"Vehicle parked\");\n }\n else{\n System.out.println(\"Unable to park\");\n }\n }", "title": "" }, { "docid": "c1a5560f252e186787238bb1fce881ea", "score": "0.55662304", "text": "public int getNumberOfCarsParked() {\n return numberOfCarsParked;\n }", "title": "" }, { "docid": "d16d89d4e6f83b7e4c90cc4d9f090399", "score": "0.55617005", "text": "@Test\n // TODO check for the vehicle which available in the parking area.\n public void testForAvailableVehicle() {\n Parking.setParkedVehicle(parkedVehicle);\n assertTrue(\"Vehicle is Available\", parkingInstance.checkIfVehicleAvailable(\"TS2E123\"));\n }", "title": "" }, { "docid": "290c2e0b555f095bdd26ce36e1bbfe70", "score": "0.5545885", "text": "public Park() {\n }", "title": "" }, { "docid": "32eaa95982b6e9cc45a71caeee22bed4", "score": "0.55440974", "text": "public void park() {\n\t\tSystem.out.println(\"The Moped has been parked on the sidewalk. Bye!\");\n\t\tSystem.exit(0);\n\t}", "title": "" }, { "docid": "e608c9e248e3053a3f6f7ae431df9572", "score": "0.55218995", "text": "@Test\n public void testMoveInCarParkCondition5() throws RunOrientationException {\n Car car = new CarImpl(1, 1, OrientationEnum.EAST);\n car.move(MoveTypeEnum.FORWARD, 2, carPark);\n assertEquals(3, car.getPositionX());\n assertEquals(1, car.getPositionY());\n assertSame(OrientationEnum.EAST, car.getOrientation());\n }", "title": "" }, { "docid": "171842a06516ee16e1273aac80d42814", "score": "0.5474736", "text": "boolean hasParkingBrake();", "title": "" }, { "docid": "4aede5d4adb35f387a8d17e9f2d44429", "score": "0.54705834", "text": "@Test\n void should_get_a_ticket_when_park_a_car() {\n //Given\n ParkingBoy parkingBoy = new ParkingBoy();\n Car car = new Car();\n //When&Then\n Assertions.assertNotNull(parkingBoy.parkACar(car));\n }", "title": "" }, { "docid": "fde21ec57c18145620b8f3fd60999b1d", "score": "0.54686564", "text": "private void carsEntering(CarQueue queue){\n int i=0;\n // Remove car from the front of the queue and assign to a parking space.\n // Houdt rekening met bepaalde plekken die alleen voor abbonomentshouders bedoeld zijn, aan de hand van een boolean in Location.\n\n while (queue.carsInQueue()>0 &&\n \t\t\tsimulatorView.getNumberOfOpenSpots()>0 && \n \t\t\ti<enterSpeed) {\n Location freeLocation = simulatorView.getFirstFreeLocation();\n Location freeReservedLocation = simulatorView.getFirstReservedLocation();\n Car car = queue.nextCar();\n\n if (car.getColor() == Color.blue && freeReservedLocation != null && freeLocation != null) {\n Location closestSpot = simulatorView.calculateClosestLocation(freeLocation, freeReservedLocation);\n simulatorView.setCarAt(closestSpot, car);\n queue.removeCar();\n i++;\n }\n else if (car.getColor() == Color.blue && freeLocation == null && freeReservedLocation != null) {\n simulatorView.setCarAt(freeReservedLocation, car);\n i++;\n queue.removeCar();\n }\n else if (car.getColor() == Color.blue && freeLocation != null){\n simulatorView.setCarAt(freeLocation, car);\n i++;\n queue.removeCar();\n }\n else if (car.getColor() == Color.red && freeLocation != null) {\n simulatorView.setCarAt(freeLocation, car);\n i++;\n queue.removeCar();\n }\n else {\n break;\n }\n\n }\n }", "title": "" }, { "docid": "341337fbbca52437e708671ebaf31b45", "score": "0.546117", "text": "public void startcar();", "title": "" }, { "docid": "c90d654a07b49d975a15da96c92ac560", "score": "0.5451021", "text": "public void setParkID(int parkID) {\n\t\tthis.parkID = parkID;\n\t}", "title": "" }, { "docid": "1e76821d71577dfdac85a92c28c5c487", "score": "0.54365194", "text": "public void setCarParkDatum(CarParkDatum carParkDatum) {\n this.carParkDatum = carParkDatum;\n this.availability = carParkDatum.getCarParkInfo().get(0).getLotsAvailable();\n }", "title": "" }, { "docid": "ca7b3dc2d37972993deda5a4b21e0ce4", "score": "0.54247004", "text": "public void printParkingLot() {\r\n\t\tfor(int i = 0; i < 10; i++) {\r\n\t\t\tfor(int j = 0; j < 10; j++) {\r\n\t\t\t\tSystem.out.print(boolToInt(parkingLot[10*i+j]));\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t}\r\n\t\tSystem.out.print(\"\\n\");\r\n\t}", "title": "" }, { "docid": "65fb76b72ebccc97774c7c5ad8cfcdff", "score": "0.54156667", "text": "void runStartDetection(Car car, Detection detector) {\n car.Steer(0);\n // Gather data.\n RectangleInterface oldPos = detector.getCar();\n car.Drive(Parameters.DIRECTION_DETECTION_SPEED);\n try {\n Thread.sleep(Parameters.DIRECTION_DETECTION_FORWARD_TIME);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n RectangleInterface newPos = detector.getCar();\n // Set car back to approximate old position.\n car.Drive(-Parameters.DIRECTION_DETECTION_SPEED);\n try {\n Thread.sleep(Parameters.DIRECTION_DETECTION_FORWARD_TIME);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n car.Drive(0);\n\n double angle = oldPos.getReadableRotation();\n double sectionSize = 360 / 8;\n\n // Evaluate gathered data.\n int x = (int) (newPos.getCenterX() - oldPos.getCenterX());\n int y = (int) (newPos.getCenterY() - oldPos.getCenterY());\n\n if ((0 < angle && angle < 0 + (sectionSize / 2)) ||\n 180 - (sectionSize / 2) <= angle && angle <= 180) {\n if (0 < y) {\n direction = Direction.S;\n } else {\n direction = Direction.N;\n }\n } else if (0 + (sectionSize / 2) <= angle && angle < 0 + (sectionSize / 2) + sectionSize) {\n if (y < 0 && 0 < x) {\n direction = Direction.NE;\n } else {\n direction = Direction.SW;\n }\n } else if (0 + (sectionSize / 2) + sectionSize <= angle && angle < 0 + (sectionSize / 2) + 2 * sectionSize) {\n if (0 < x) {\n direction = Direction.E;\n } else {\n direction = Direction.W;\n }\n } else if (0 + (sectionSize / 2) + 2 * sectionSize <= angle && angle < 0 + (sectionSize / 2) + 3 * sectionSize) {\n if (0 < y && 0 < x) {\n direction = Direction.SE;\n } else {\n direction = Direction.NW;\n }\n }\n Log.d(TAG, \"Detected car direction \" + direction);\n }", "title": "" }, { "docid": "09231ba18ecd651ae7298c82f1f020e1", "score": "0.5412922", "text": "@Test\n //TODO Perform unpark operation\n public void testUnpark() {\n parkingInstance.setNoOfSlots(2);\n ParkingSlot psInstance = parkingInstance.park(\"TS2E123\");\n psInstance = parkingInstance.unpark(\"TS2E123\");\n assertEquals(\"Unparked Successfully\", \"TS2E123\", psInstance.getVehicleObject().getRegistrationNumber());\n }", "title": "" }, { "docid": "3ccd3c0403a6b1118ee6bebd6ee1f05f", "score": "0.5412846", "text": "@Override\n\tpublic void drive() {\n\t\tSystem.out.println(\"Car is driven\");\n\t\t\n\t}", "title": "" }, { "docid": "9ba9ab53782583cf86d90d8ce98e7468", "score": "0.54125416", "text": "@Test\n public void testMoveInCarParkCondition3() throws RunOrientationException {\n Car car = new CarImpl(1, 1, OrientationEnum.EAST);\n car.move(MoveTypeEnum.FORWARD, carPark);\n assertEquals(2, car.getPositionX());\n assertEquals(1, car.getPositionY());\n assertSame(OrientationEnum.EAST, car.getOrientation());\n }", "title": "" }, { "docid": "bed58aa3f61f09a3ba186ad361071b84", "score": "0.5398979", "text": "public void parkVehicle(Vehicle v, int time, int intendedDuration)\n\t\t\tthrows SimulationException, VehicleException {\n\n\t\tif (v instanceof Car && ((Car) v).isSmall() == false\n\t\t\t\t&& spacesAvailable(v) == true) {\n\t\t\tv.enterParkedState(time, intendedDuration);\n\t\t\tspaces.add(v);\n\t\t\tincomingVehicleMonitor(v);\n\t\t} else if (v instanceof Car && ((Car) v).isSmall() == true\n\t\t\t\t&& spacesAvailable(v) == true) {\n\t\t\tv.enterParkedState(time, intendedDuration);\n\t\t\tspaces.add(v);\n\t\t\tincomingVehicleMonitor(v);\n\t\t} else if (v instanceof MotorCycle && spacesAvailable(v) == true) {\n\t\t\tv.enterParkedState(time, intendedDuration);\n\t\t\tspaces.add(v);\n\t\t\tincomingVehicleMonitor(v);\n\t\t} else\n\t\t\tthrow new SimulationException(\n\t\t\t\t\t\"Vehicle cannot park, as there are no available\"\n\t\t\t\t\t\t\t+ \" spaces for that particular vehicle!\\n\");\n\t}", "title": "" }, { "docid": "a8efb8fa886100105bcd9fe8537958ef", "score": "0.53795123", "text": "@Test\n public void testPark_givenNoAvailableParkingLot_thenCreateNoSpaceReceipt() {\n String carName = \"car1\";\n Car car = createMockCar(carName);\n ParkingLot parkingLot = createMockParkingLot(\"parkingLot1\", 10);\n when(parkingLot.isFull()).thenReturn(true);\n List<ParkingLot> parkingLotList = new ArrayList<>();\n parkingLotList.add(parkingLot);\n Receipt receipt = new Receipt();\n receipt.setParkingLotName(\"No Parking Lot\");\n receipt.setCarName(carName);\n\n InOrderParkingStrategy inOrderParkingStrategy = spy(new InOrderParkingStrategy());\n\n //when\n Receipt result = inOrderParkingStrategy.park(parkingLotList, car);\n\n //then\n assertEquals(receipt.getCarName(), result.getCarName());\n assertEquals(receipt.getParkingLotName(), result.getParkingLotName());\n verify(inOrderParkingStrategy, times(1)).park(anyList(), any());\n verify(parkingLot, times(1)).isFull();\n }", "title": "" }, { "docid": "c4b6507893eb25b3e16f4655603280b7", "score": "0.5376873", "text": "public void makeReservationByCampground(Park chosenPark) {\n\t\tArrayList<Campground> campgrounds = campgroundDAO.getCampgroundsByParkId(chosenPark.getParkID());\n\n\t\t// Display campgrounds and menu\n\t\tSystem.out.println(\"\\nSearch For Campground Reservation\");\n\t\tMap<String, Campground> campMap = printAndMapCampgrounds(campgrounds);\n\n\t\tReservation reservation = new Reservation();\n\n\t\t// Get and validate campground\n\t\tCampground chosenCampground = getCampgroundFromUser(campMap);\n\t\tif (chosenCampground == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Get dates and print available sites\n\t\tMap<String, Site> siteMap = getDatesAndDisplayOptions(reservation, chosenCampground);\n\t\tif (siteMap == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Get and validate site from user\n\t\tSite chosenSite = getSiteChoiceFromUser(siteMap);\n\t\tif (chosenSite == null) {\n\t\t\treturn;\n\t\t}\n\n\t\treservation.setSiteId(chosenSite.getSiteId());\n\n\t\t// Get name and make reservation\n\t\tSystem.out.print(\"What name should the reservation be made under? >>> \");\n\t\treservation.setName(userInput.nextLine());\n\t\treservationDAO.saveReservation(reservation);\n\t\tSystem.out.println(\"\\nThe reservation has been made, and the confirmation number is \"\n\t\t\t\t+ reservation.getReservationId() + \".\\n\");\n\n\t}", "title": "" }, { "docid": "558922e94595edca86b9b0f47d0f91a0", "score": "0.5372051", "text": "@Test\n public void testMoveInCarParkCondition2() throws RunOrientationException {\n Car car = new CarImpl(1, 1, OrientationEnum.NORTH);\n car.move(MoveTypeEnum.FORWARD, carPark);\n assertEquals(1, car.getPositionX());\n assertEquals(2, car.getPositionY());\n assertSame(OrientationEnum.NORTH, car.getOrientation());\n }", "title": "" }, { "docid": "0ab2a16557f37373d483125d96c5a0f2", "score": "0.5368088", "text": "public void setParkedLocation(double xLocation, double yLocation, double facing) {\n\n\t\t// Get current human crew positions relative to the vehicle.\n\t\tMap<Person, Point2D> currentCrewPositions = getCurrentCrewPositions();\n\n\t\t// Get current robot crew positions relative to the vehicle.\n\t\tMap<Robot, Point2D> currentRobotCrewPositions = getCurrentRobotCrewPositions();\n\n\t\t// Set new parked location for the vehicle.\n\t\tthis.xLocParked = xLocation;\n\t\tthis.yLocParked = yLocation;\n\t\tthis.facingParked = facing;\n\n\t\t// Set the human crew locations to the vehicle's new parked location.\n\t\tsetCrewPositions(currentCrewPositions);\n\n\t\t// Set the robot crew locations to the vehicle's new parked location.\n\t\tsetRobotCrewPositions(currentRobotCrewPositions);\n\t}", "title": "" }, { "docid": "44fa7c68a9aa8395b0d733871d7bad62", "score": "0.53519964", "text": "public void checkAvailability() {\n\t\tint row = cardetails.length;\n\t\tint coloum = cardetails[0].length;\n\t\tif (getCount() == (row * coloum)) {\n\t\t\tSystem.out.println(\"parking is full\");\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"parking available\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "58126e863ab625f71dd6973a0f4a6c14", "score": "0.53448313", "text": "@Test\n public void testScenario1() {\n CarImpl car = new CarImpl();\n\n int[] whereIs = car.whereIs();\n Assertions.assertEquals(0, whereIs[0]);\n Assertions.assertEquals(0, whereIs[1]);\n\n int emptyPlaces = 0;\n for (int i = 0; i < Actuator.STREET_SIZE; i++) {\n emptyPlaces = car.moveForward()[1];\n }\n\n Assertions.assertEquals(2, emptyPlaces);\n\n whereIs = car.whereIs();\n Assertions.assertEquals(Actuator.STREET_SIZE - 1, whereIs[0]);\n Assertions.assertEquals(0, whereIs[1]);\n\n for (int i = 0; i < Actuator.STREET_SIZE; i++) {\n car.moveBackward();\n }\n\n whereIs = car.whereIs();\n Assertions.assertEquals(0, whereIs[0]);\n Assertions.assertEquals(0, whereIs[1]);\n\n // First space\n car.park();\n whereIs = car.whereIs();\n Assertions.assertEquals(100, whereIs[0]);\n Assertions.assertEquals(1, whereIs[1]);\n\n car.unPark();\n whereIs = car.whereIs();\n Assertions.assertEquals(100 + car.getSize(), whereIs[0]);\n Assertions.assertEquals(0, whereIs[1]);\n\n // Make sensor 1 fail\n SensorImpl sensor_1 = Mockito.mock(SensorImpl.class);\n Mockito.when(sensor_1.measureDistance(Mockito.anyInt())).thenReturn(-1);\n car.setSensor_1(sensor_1);\n\n // Second space\n car.park();\n whereIs = car.whereIs();\n Assertions.assertEquals(200, whereIs[0]);\n Assertions.assertEquals(1, whereIs[1]);\n\n car.unPark();\n whereIs = car.whereIs();\n Assertions.assertEquals(200 + car.getSize(), whereIs[0]);\n Assertions.assertEquals(0, whereIs[1]);\n\n // Keep moving, try to park and fail\n while (car.isAtEmptyPlace()) {\n car.moveForward();\n }\n car.park();\n Assertions.assertEquals(0, car.whereIs()[1]);\n }", "title": "" }, { "docid": "70f00b98ed794473118415f82b9ada57", "score": "0.53394055", "text": "public void brake() {\n\t\tSmartDashboard.putBoolean(\"driveTrain.brakes\", true);\n\t\tSmartDashboard.putNumber(\"driveTrain.speed\", 0);\n\t\tSmartDashboard.putNumber(\"driveTrain.turn\", 0);\n\n\t\tthis.drive.drive(0, 0);\n\t}", "title": "" }, { "docid": "9941ad49a0b676530a03a9537e711809", "score": "0.5329135", "text": "public double vaciarParking() {\n double res = 0;\n Hora h = new Hora(23, 59);\n for(int i = 0; i < plantas.length; i++) {\n res += plantas[i].vaciarPlanta(h);\n }\n return res * coste;\n }", "title": "" }, { "docid": "00e1493d6b5d757d5f361e61746fe903", "score": "0.53235126", "text": "public Park(Parcel in) {\n\n this.name = in.readString();\n this.description = in.readString();\n\n double lat = in.readDouble();\n double lng = in.readDouble();\n this.location = new LatLng(lat, lng);\n\n int imageCount = in.readInt();\n for (int i = 0; i < imageCount; i++) {\n int imageId = in.readInt();\n this.addImageResource(imageId);\n }\n\n int infoCount = in.readInt();\n for (int i = 0; i < infoCount; i++) {\n InfoTypes infoType = InfoTypes.values()[in.readInt()];\n String description = in.readString();\n InfoItem infoItem = new InfoItem(infoType, description);\n this.addInfoItem(infoItem);\n }\n }", "title": "" }, { "docid": "333a1cedd7a372a0a7936af13ac18c2d", "score": "0.5320945", "text": "public Carpark(\n String name, int capacity, IAdhocTicketDAO adhocTicketDAO, ISeasonTicketDAO seasonTicketDAO) {\n\n this.carparkId = name;\n this.capacity = capacity;\n this.adhocTicketDAO = adhocTicketDAO;\n this.seasonTicketDAO = seasonTicketDAO;\n\n if (this.carparkId == null) {\n throw new IllegalArgumentException(\n \"Invalid argument passed to Carpark constructor: carparkId is null\");\n }\n\n if (this.carparkId == \"\") {\n throw new IllegalArgumentException(\n \"Invalid argument passed to Carpark constructor: carparkId is empty\");\n }\n\n if (this.capacity <= 0) {\n throw new IllegalArgumentException(\n \"Invalid argument passed to Carpark constructor: capacity is zero or negative\");\n }\n\n observers = new ArrayList<>();\n }", "title": "" }, { "docid": "c52b89c64edf14120017476f7b18ec1d", "score": "0.5320308", "text": "public void availableCars() {\n }", "title": "" }, { "docid": "5f19c99a5687ee55d686a7720b57a85b", "score": "0.5317902", "text": "public void makeReservationByPark(Park chosenPark) {\n\t\tReservation reservation = new Reservation();\n\n\t\t// Get dates and print available sites\n\t\tMap<String, Site> siteMap = getDatesAndDisplayOptions(reservation, chosenPark);\n\t\tif (siteMap == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Get and validate site from user\n\t\tSite chosenSite = getSiteChoiceFromUser(siteMap);\n\t\tif (chosenSite == null) {\n\t\t\treturn;\n\t\t}\n\n\t\treservation.setSiteId(chosenSite.getSiteId());\n\n\t\t// Get name and make reservation\n\t\tSystem.out.print(\"What name should the reservation be made under? >>> \");\n\t\treservation.setName(userInput.nextLine());\n\t\treservationDAO.saveReservation(reservation);\n\t\tSystem.out.println(\"\\nThe reservation has been made, and the confirmation number is \"\n\t\t\t\t+ reservation.getReservationId() + \".\\n\");\n\t}", "title": "" }, { "docid": "9478dce97dcd10d226a607bf4d8cfeb4", "score": "0.5317485", "text": "private void nearByLocations() {\n }", "title": "" }, { "docid": "bfe0ae4fc4705507066a15823a792f4a", "score": "0.53144795", "text": "public boolean hasBikeParked(Customer customer) {\n for (Bike bike : parkedBikeList) {\n if (bike.getCustomer() == customer) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "bbcf846cf070613ca05ffa17ffa4bb5b", "score": "0.5314449", "text": "private String parkBus(Bus b) {\n\t\t// clear description\n\t\tString ret = null;\n\n\t\t// nested for-loop to cycle through each of the large spaces on each\n\t\t// level\n\n\t\t// outer for-loop to cycle levels\n\t\tfor (int idx = 0; idx < floors; idx++) {\n\t\t\t// a bus can park only if either the first or second space is vacant\n\t\t\tif (largeSpaces[idx][0] == null || largeSpaces[idx][1] == null) {\n\t\t\t\t// where the bus begins to park if the 1st space is empty\n\t\t\t\tint startAt = 0;\n\t\t\t\t// where the bus begins to park if the 2nd space is empty\n\t\t\t\tif (largeSpaces[idx][0] != null) {\n\t\t\t\t\tstartAt = 1;\n\t\t\t\t}\n\t\t\t\t// fill in 4 following spaces dependent on if bus is initially\n\t\t\t\t// parked in 1st or 2nd space\n\t\t\t\tfor (int jdx = startAt; jdx < 5; jdx++) {\n\t\t\t\t\tlargeSpaces[idx][jdx] = b;\n\t\t\t\t}\n\n\t\t\t\t// 5 spaces were used to park a bus\n\t\t\t\tspacesUsed += 5;\n\n\t\t\t\t// new description is added to object containing position of\n\t\t\t\t// parking place\n\t\t\t\tret = \"Bus \" + b.license + \" parked on floor \" + (idx + 1) + \" in spaces LG #\" + (startAt + 1)\n\t\t\t\t\t\t+ \" through LG #\" + (startAt + 5);\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// if a bus wasn't able to be parked\n\t\tif (ret == null) {\n\t\t\t// change description\n\t\t\tret = \"No Bus spaces are available for \" + b.license + \", current parking garage\";\n\t\t}\n\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "18452ed116ef7b55a1b3708f8e4ca256", "score": "0.5314297", "text": "private void checkParachute() {\n if ((rocketMass.vel.y < 0 && fuelKg < 1)\n && (parachuteCd > 0)\n && (rocketMass.getHeight() < parachuteHeight)) {\n rocketMass.Cd = parachuteCd;\n rocketMass.dragArea = parachuteArea;\n }\n }", "title": "" }, { "docid": "864341a043987abcbd01ed80c29ef67a", "score": "0.53037393", "text": "public boolean carParkFull() {\n\n\t\tif (this.getNumCars() + this.getNumMotorCycles() >= this.maxCarSpaces\n\t\t\t\t+ this.maxMotorCycleSpaces) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "84b8289d5e30e65df2c65398b70f7c72", "score": "0.5299791", "text": "public void setParks(List<Park> parks) {\n this.parks = parks;\n }", "title": "" }, { "docid": "2ab7bdbd074492c2da73ce7e195e6214", "score": "0.5287316", "text": "public Parking() {\n }", "title": "" }, { "docid": "9d915e994eb4f95de6337662bc504615", "score": "0.52861106", "text": "public void move() {\r\n\t\tif (gas <= 0) {\r\n\t\t\tacceleration = acceleration - 5;\r\n\t\t\tSystem.out.print(\"Out of gas! \");\r\n\t\t} else {\r\n\t\t\tgas = gas - 2 * acceleration;\r\n\t\t}\r\n\t\tvelocity = velocity + acceleration;\r\n\t\tposition = position + velocity;\r\n\t\tSystem.out.println(\"Vroom! \" + name + \" is at position \" + position + \" and travelling at \" + velocity + \" m/s! \");\r\n\t}", "title": "" }, { "docid": "326b9e1a1179063b4f4cecc9283a9a2a", "score": "0.527672", "text": "public Integer getParkId() {\n return parkId;\n }", "title": "" }, { "docid": "326b9e1a1179063b4f4cecc9283a9a2a", "score": "0.527672", "text": "public Integer getParkId() {\n return parkId;\n }", "title": "" }, { "docid": "73fe041e4263988291e66ca67ee691cc", "score": "0.5274344", "text": "public interface ParkingService {\n\n /**\n * Save a parking.\n *\n * @param parking the entity to save\n * @return the persisted entity\n */\n Parking save(Parking parking);\n\n /**\n * Get all the parkings.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<Parking> findAll(Pageable pageable);\n \n \n Page<Parking> findByParkingId(Integer parkingId, Pageable pageable);\n\n /**\n * Get the \"id\" parking.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Parking findOne(Long id);\n\n /**\n * Delete the \"id\" parking.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n \n /**\n * Parks the vehicle according to pre-defined criteria \n * @param result\n */\n\tboolean park(Vehicle result);\n}", "title": "" }, { "docid": "343df4010a1fd5f87fc402f662761994", "score": "0.52732724", "text": "@Override\n public void turnOn() {\n print(\"turnOn()\");\n car.turnOn();;\n }", "title": "" }, { "docid": "3ffd8cf98d31c45e2c0a935797382345", "score": "0.5270412", "text": "@Override\n\tpublic void onLocationChanged(Location l) {\n\n\t\tif (counter == 0) {\n\t\t\tbikeMarker = new MarkerOptions().title(\"spotted\").position(\n\t\t\t\t\tnew LatLng(bikeLocation.getLatitude(), bikeLocation\n\t\t\t\t\t\t\t.getLongitude()));\n\t\t\tbikemarkers.add(bikeMarker);\n\t\t\tmap.addMarker(bikeMarker);\n\t\t\tcounter--;\n\t\t}\n\n\t\tpreviousLocation = bikeLocation;\n\n\t\tbikeLocation = l;\n\n\t\trideDistance += bikeLocation.distanceTo(previousLocation);\n\n\t\tpolyOptions.add(new LatLng(l.getLatitude(), l.getLongitude()));\n\t\tif (map != null)\n\t\t\tmap.addPolyline(polyOptions);\n\n\t\troute.add(new LatLng(l.getLatitude(), l.getLongitude()));\n\n\t\tbikeCamPosition = new CameraPosition.Builder()\n\t\t\t\t.target(new LatLng(l.getLatitude(), l.getLongitude()))\n\t\t\t\t.zoom(map.getCameraPosition().zoom)\n\t\t\t\t.tilt(map.getCameraPosition().tilt).bearing(0).build();\n\n\t\tmap.animateCamera(CameraUpdateFactory\n\t\t\t\t.newCameraPosition(bikeCamPosition));\n\t}", "title": "" }, { "docid": "b79d56ab668845c287d204fc513daec0", "score": "0.5265567", "text": "@Override protected void doPark(long throttleParkTimeNs) {\n super.doPark(TimeUnit.SECONDS.toNanos(1));\n }", "title": "" }, { "docid": "5058fde1bcdec4d487d27e18107e2140", "score": "0.52616125", "text": "@Test\n public void testPark_givenThereIsOneParkingLotWithSpace_thenCreateReceipt() {\n String carName = \"car1\";\n String parkingLotName = \"parkingLot1\";\n Car car = createMockCar(carName);\n ParkingLot parkingLot = createMockParkingLot(parkingLotName, 10);\n when(parkingLot.isFull()).thenReturn(false);\n List<ParkingLot> parkingLotList = new ArrayList<>();\n parkingLotList.add(parkingLot);\n Receipt receipt = new Receipt();\n receipt.setCarName(carName);\n receipt.setParkingLotName(parkingLotName);\n\n InOrderParkingStrategy inOrderParkingStrategy = spy(new InOrderParkingStrategy());\n\n //when\n Receipt result = inOrderParkingStrategy.park(parkingLotList, car);\n\n //then\n assertEquals(receipt.getCarName(), result.getCarName());\n assertEquals(receipt.getParkingLotName(), result.getParkingLotName());\n verify(inOrderParkingStrategy, times(1)).park(anyList(), any());\n verify(parkingLot, times(1)).isFull();\n }", "title": "" }, { "docid": "ca5d421cf4430735e19482b1beaff88c", "score": "0.526006", "text": "@Test\r\n\tpublic void givenVehicleExistInParkinLotReturnsOpCodeVehicleAlreadyInCell() {\r\n\t\t// Arrange\r\n\t\tParkinglotCellInfo parkinglotCellInfoCarTest = new ParkinglotCellInfoDataBuilder().withPlate(PLATE)\r\n\t\t\t\t.withVehicleType(VEHICLE_TYPE_CAR).build();\r\n\t\tVehicle vehicleTest = new VehicleDataBuilder().withId(ID).withPlate(PLATE).withType(VEHICLE_TYPE)\r\n\t\t\t\t.withCylinder(CYLINDER).build();\r\n\t\twhen(parkingCellInfoService.find(vehicleTest.getPlate(), vehicleTest.getType()))\r\n\t\t\t\t.thenReturn(parkinglotCellInfoCarTest);\r\n\r\n\t\t// Act\r\n\t\tint value = parkinglotRegistrarService.register(vehicleTest);\r\n\r\n\t\t// Assert\r\n\t\tassertThat(value).isEqualTo(PARKING_LOT_REGISTRAR_VEHICLE_ALREADY_IN_CELL);\r\n\t\tverify(parkingCellInfoService, times(1)).find(vehicleTest.getPlate(), vehicleTest.getType());\r\n\t\tverifyNoMoreInteractions(parkingCellInfoService);\r\n\t}", "title": "" }, { "docid": "9a9d3e5e75138eb06d2e002490fedf56", "score": "0.52514774", "text": "private void search(List<Parking> parkings)\n {\n EditText searchET=findViewById(R.id.search_et);\n searchAddress=searchET.getText().toString();\n for(Parking parking: parkings){\n if(parking.name.toLowerCase().equals(searchAddress.toLowerCase())||(parking.name.toLowerCase().contains(searchAddress.toLowerCase())))\n {\n Log.d(\"Location found\",parking.name);\n LatLng positionForCamera=new LatLng(Double.parseDouble(parking.getLatitude()),Double.parseDouble(parking.getLongitude()));\n CameraPosition camPos = new CameraPosition(positionForCamera, 15, TILT_LEVEL, BEARING_LEVEL);\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(camPos));\n break;\n }\n else\n {\n Toast toast = Toast.makeText(getApplicationContext(), \"Could not able to locate\", Toast.LENGTH_LONG);\n toast.show();\n }\n }\n\n }", "title": "" }, { "docid": "e77ea8e94dbd11838a388549cbba941d", "score": "0.52493405", "text": "public Park selectAPark() {\n\t\tPark choice = null;\n\n\t\tSystem.out.println(\"\\nWelcome!\\nSelect a Park for Further Details\");\n\n\t\tMap<String, Park> parksMap = printAndMapParks(parkDAO.getAllParks());\n\t\t\n\t\tboolean badInput = true;\n\t\twhile (badInput) {\n\t\t\tSystem.out.print(\">>> \");\n\t\t\tPark chosenPark = parksMap.get(userInput.nextLine());\n\t\t\tif (chosenPark != null) {\n\t\t\t\tif (chosenPark.getParkID() != null) {\n\t\t\t\t\tchoice = chosenPark;\n\t\t\t\t}\n\t\t\t\tbadInput = false;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Not valid input. Please enter a number to choose a park or 'Q' to quit.\");\n\t\t\t}\n\n\t\t}\n\n\t\treturn choice;\n\t}", "title": "" }, { "docid": "397891ae3927c24efdf21d1db6f41ff2", "score": "0.52460456", "text": "public void rentedCarAvailability() {\n }", "title": "" }, { "docid": "fc275ccebb23a4815a92b36e40d223ef", "score": "0.5239482", "text": "public void drive() {\r\n\t\tdriveTrain.drive(joy.getRawAxis(ControllerMap.LEFT_STICK), joy.getRawAxis(ControllerMap.RIGHT_STICK));\r\n\t\t\r\n\t\tif (joy.getRawButton(ControllerMap.SHIFT_GEAR)) {\r\n\t\t\tdriveTrain.shiftGear();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b93866c25301857adc5972c6dd44b671", "score": "0.5230224", "text": "public ParkingTicket(Car car, ParkingLot parkingLot, String ticketStatus) {\n this.car = car;\n this.parkingLot = parkingLot;\n this.ticketStatus = ticketStatus;\n }", "title": "" }, { "docid": "d9c3e2ba7423cee049905dedaf2248a1", "score": "0.52289504", "text": "private void sendCar() {\n cableCar.travel();\n }", "title": "" }, { "docid": "71a70a66ae449bbe12df2377e9b6ee56", "score": "0.52283573", "text": "public void river() {\r\n\t\t//No boat yet\r\n\t\tif (boat==false) {\r\n\t\tui.mainTextArea.setText(\"You come to a river.\\n\\nIt is too big to cross, and something is bubbling in the water.\");\r\n\t\tui.choice1.setText(\"< Go back\");\r\n\t\tui.choice2.setText(\"\");\r\n\t\tui.choice3.setText(\"\");\r\n\t\tui.choice4.setText(\"\");\r\n\t\t\r\n\t\tgame.nextPosition1 = \"field\";\r\n\t\tgame.nextPosition2 = \"\";\r\n\t\tgame.nextPosition3 = \"\";\r\n\t\tgame.nextPosition4 = \"\";\r\n\t\t}\r\n\t\t//If you have a boat, you can cross it\r\n\t\telse {\r\n\t\t\triver2();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d056415673f1d17e6115a691e3cac518", "score": "0.52122355", "text": "public void setCar(TrainCar car){\n this.car = car;\n\t}", "title": "" }, { "docid": "f72bf68173f2e8bddd764b289791e0af", "score": "0.52026796", "text": "@Test\n public void testPark_givenThereIsOneFullParkingLot_thenCreateReceipt() {\n String carName = \"car1\";\n String parkingLotName = \"No Parking Lot\";\n Car car = createMockCar(carName);\n ParkingLot parkingLot = createMockParkingLot(\"parkingLot1\", 10);\n when(parkingLot.isFull()).thenReturn(true);\n List<ParkingLot> parkingLotList = new ArrayList<>();\n parkingLotList.add(parkingLot);\n Receipt receipt = new Receipt();\n receipt.setCarName(carName);\n receipt.setParkingLotName(parkingLotName);\n\n InOrderParkingStrategy inOrderParkingStrategy = spy(new InOrderParkingStrategy());\n\n //when\n Receipt result = inOrderParkingStrategy.park(parkingLotList, car);\n\n //then\n assertEquals(receipt.getCarName(), result.getCarName());\n assertEquals(receipt.getParkingLotName(), result.getParkingLotName());\n verify(inOrderParkingStrategy, times(1)).park(anyList(), any());\n verify(parkingLot, times(1)).isFull();\n }", "title": "" }, { "docid": "ae016e6450e58933f3ded46faf56cfc8", "score": "0.5202553", "text": "private void startTraking(){\n\t\t\n\t\t\tpC.setTrackingService(true);\n\t\t\n\t\t\ttrackId=tracksService.startTraking();\t\n\t\t\t\n\t\t\tif(trackId<0){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUtilities.showToast(getString(R.string.myTracksThirdPartyAccessDisabled), this);\n\n\t\t\t\tmapState.myTrackLoaded=false;\n\t\t\t\tmapState.myTracksOn=false;\n \t \t\tmyTracksButton.setBackgroundResource(drawable.appwidget_button_disabled);\n\t\t\t\thandleInfoDialog();\n\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\t//adding myTracksOverlay with the track\n\t\t\t\t\n\t\t\t\tif(myTracks!=null) listOfOverlays.remove(myTracks);\n\t\t\t\t\n\t\t\t\tmyTracks=new MyTracksOverlay(getBaseContext(),mapView,trackId,false,myTracksResultHandler);\t\n\t\t\t\tmapState.myTrackLoaded=true;\n\t\t\t\t\t\n\t\t\t\ttvCenteredLocation.setText(getString(R.string.waitingGPS));\n\t\t\t\tmyTracks.setInfoUTM(tvCenteredLocation);\n\t\t\t\tmyTracks.setInfoPrec(utmPrec);\n\t\t\t\t\n\t\t\t\tlistOfOverlays.add(myTracks);\n\t\t\t\t\n\t\t\t\thandleInfoDialog();\n\t\t\t\t\n\t\t\t}\n\n\n\n\n\t}", "title": "" } ]
d18362be7404f99cc1b211073fb223f0
The monetary account that this card is currently linked to and the label user viewing it.
[ { "docid": "831d34a6b7cca256c6bce4a46711bb39", "score": "0.62596506", "text": "public LabelMonetaryAccount getLabelMonetaryAccountCurrent() {\n return this.labelMonetaryAccountCurrent;\n }", "title": "" } ]
[ { "docid": "93b9b557e10e9f8720e560ed2c8cf0b3", "score": "0.6744336", "text": "public String getUserAccount() {\n return userAccount;\n }", "title": "" }, { "docid": "93b9b557e10e9f8720e560ed2c8cf0b3", "score": "0.6744336", "text": "public String getUserAccount() {\n return userAccount;\n }", "title": "" }, { "docid": "76dbbd43bfebcbfec70f326e9fbd304d", "score": "0.66624653", "text": "public String getAccount() {\n return account;\n }", "title": "" }, { "docid": "76dbbd43bfebcbfec70f326e9fbd304d", "score": "0.66624653", "text": "public String getAccount() {\n return account;\n }", "title": "" }, { "docid": "76dbbd43bfebcbfec70f326e9fbd304d", "score": "0.66624653", "text": "public String getAccount() {\n return account;\n }", "title": "" }, { "docid": "76dbbd43bfebcbfec70f326e9fbd304d", "score": "0.66624653", "text": "public String getAccount() {\n return account;\n }", "title": "" }, { "docid": "76dbbd43bfebcbfec70f326e9fbd304d", "score": "0.66624653", "text": "public String getAccount() {\n return account;\n }", "title": "" }, { "docid": "ede36caeaafbf11283868f70b02e5aaa", "score": "0.6613598", "text": "java.lang.String getAccountFrom();", "title": "" }, { "docid": "83c038cbe03c7a8869722501feb3e3c1", "score": "0.6550857", "text": "public String getAccount() {\r\n\t\t\r\n\t\treturn getStringProperty(\"Account\");\r\n\t}", "title": "" }, { "docid": "f1a5f3657d76aae476c12a6289f40a49", "score": "0.6491337", "text": "public UUID getAccount() {\n\t\treturn account;\n\t}", "title": "" }, { "docid": "15e93b534ba90af65d6affb09c68b4a2", "score": "0.64831537", "text": "@Override\n\tpublic String getAccount() {\n\t\treturn account;\n\t}", "title": "" }, { "docid": "5a18f2f0e3dfa55d8b57098cf49c182f", "score": "0.6449195", "text": "public String viewAccount() {\n ConversationContext<Account> ctx = AccountController.newEditContext(getDocument().getAccount());\n ctx.setLabelWithKey(\"document_account\");\n getCurrentConversation().setNextContextSubReadOnly(ctx);\n return ctx.view();\n }", "title": "" }, { "docid": "ec718c5f61381a37fb01940c5aa503a7", "score": "0.63969374", "text": "public String getUserAccount() {\n return userAccount; \n }", "title": "" }, { "docid": "3524064b258e6a79849a5357261052ae", "score": "0.6377696", "text": "public String getCurrentAccountInformation() {\n String accountInfo = \"\\nEnd of Period Balances:\\n\";\n if(customer.getChecking() == null) {\n accountInfo += \"Checking Account: none\";\n }\n else {\n accountInfo += customer.getChecking().getAccDetails() + \":\\t\" + toCurrency(customer.getChecking().getBalance());\n }\n accountInfo += \"\\n\";\n if(customer.getSavings() == null) {\n accountInfo += \"Saving Account: none\";\n }\n else {\n accountInfo += customer.getSavings().getAccDetails() + \":\\t\" + toCurrency(customer.getSavings().getBalance());\n }\n accountInfo += \"\\n\";\n if(customer.getCredit() == null) {\n accountInfo += \"Credit Account: none\";\n }\n else {\n accountInfo += customer.getCredit().getAccDetails() + \":\\t\" + toCurrency(customer.getCredit().getBalance());\n }\n accountInfo += \"\\n\\n\";\n return accountInfo;\n }", "title": "" }, { "docid": "205acbac983afc48ae6ac9148fa8033b", "score": "0.6294757", "text": "public String accountId() {\n return this.accountId;\n }", "title": "" }, { "docid": "f3c10027dd744a12af10ceda58e0d78e", "score": "0.6234933", "text": "public String toString() {\r\n\t\treturn \"Account Number: \" + this.accountNumber + \" and balance in your account is: \"+ this.amount;\r\n\t}", "title": "" }, { "docid": "738f9605158415756cb7c03cdebd0906", "score": "0.6201472", "text": "public String getFromAccount() {\n return fromAccount;\n }", "title": "" }, { "docid": "efbc9c23191f672dcc1558164455a493", "score": "0.6194897", "text": "public String getToAccount() {\n return toAccount;\n }", "title": "" }, { "docid": "850533af90084a606c0c7e2d8f264ab3", "score": "0.61692476", "text": "public java.lang.String getAccount_number(){\n return localAccount_number;\n }", "title": "" }, { "docid": "850533af90084a606c0c7e2d8f264ab3", "score": "0.61692476", "text": "public java.lang.String getAccount_number(){\n return localAccount_number;\n }", "title": "" }, { "docid": "5b6d951fa4c7e9c0d32408f82cfcece1", "score": "0.6148776", "text": "java.lang.String getAccountNumber();", "title": "" }, { "docid": "dea0b2e346d7f44cea6ec182974d3714", "score": "0.61475575", "text": "public String accountDetails() {\n return String.format(\"Customer Name: %s%nAccount Number: %s%nThe current balance is: £%.2f\", this.accountName,\n this.accountNumber, this.balance, this.getStringBalance());\n }", "title": "" }, { "docid": "157fed7659542225af459b6c7470f400", "score": "0.61475235", "text": "public int currentAccount() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "67d1a5b56cdc60866643ba97a05816a2", "score": "0.61435217", "text": "public LabelMonetaryAccount getPayingUserAlias() {\n return this.payingUserAlias;\n }", "title": "" }, { "docid": "f9738ba6de63abb2f5dd60eff173d1e4", "score": "0.6130193", "text": "java.lang.String getAccountTo();", "title": "" }, { "docid": "f9dab2cf10dd5931587ddd96f6eb40f0", "score": "0.6112908", "text": "public LabelMonetaryAccount getReceivingUserAlias() {\n return this.receivingUserAlias;\n }", "title": "" }, { "docid": "a7f279747c3bec3a869f51702bdca9c5", "score": "0.61035836", "text": "public Account getAccount() {\r\n\t \treturn account;\r\n\t }", "title": "" }, { "docid": "38e0b9ed0f231b10a57b44fdbce26839", "score": "0.6100239", "text": "public String getAcct() {\n return acct;\n }", "title": "" }, { "docid": "3db34286cfd71e025a47f4c913ba37bf", "score": "0.60906976", "text": "public Account getAccount(){\r\n\t\treturn account;\r\n\t}", "title": "" }, { "docid": "c61b64d34028255bbd413b1d684199cf", "score": "0.6089147", "text": "public AuthHuaweiId getCurrentUserAccount() {\n return currentUserAccount;\n }", "title": "" }, { "docid": "57f965d00335d71aa4253ae7bda29e3c", "score": "0.60825455", "text": "public String getNameOnAccount() {\n return this.nameOnAccount;\n }", "title": "" }, { "docid": "45d6f30ccea8a9b54e02e8d1f69414f4", "score": "0.6082213", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn pin + \" \" + accHolder + \" \" + balance;\r\n\t}", "title": "" }, { "docid": "cac79f2cee6ffbffaa773d382414837d", "score": "0.60804427", "text": "public String accountDetails() {\r\n return String.format(\"Customer Name: %s\\nAccount Number: %s\\nCurrent balance: %s\", this.accountName,\r\n this.accountNumber, this.balance, this.getStringBalance());\r\n }", "title": "" }, { "docid": "b0845f9725363cdbe819a1e4b3d859dc", "score": "0.60771066", "text": "public java.lang.String getAccount_name(){\n return localAccount_name;\n }", "title": "" }, { "docid": "e61e960b10831128856a491ae37dc95a", "score": "0.60387546", "text": "public String accountName() {\n return this.accountName;\n }", "title": "" }, { "docid": "e490e276fabdc14c04bb2d5bd5478eb5", "score": "0.6024523", "text": "public String toString()\r\n {\r\n return \"UserID:\\t\" + this.getUserID() + \r\n \"\\nName On Account:\\t\" + this.getNameOnAccount() +\r\n \"\\nBalance:\\t\" + this.getAccountBalance();\r\n }", "title": "" }, { "docid": "6feccf68a3c2867f21a6e9c262a26802", "score": "0.59993917", "text": "public String getAccountNo() {\r\n return accountNo;\r\n }", "title": "" }, { "docid": "d6f8c542650a1c5b8184ac19f2884c48", "score": "0.5997454", "text": "public long getIdAccount() {\n return account.getIdAccount();\n }", "title": "" }, { "docid": "4b53708bd520de7a4c36dca0014faf81", "score": "0.5993795", "text": "public String getAccountName() {\n return Accountname;\n }", "title": "" }, { "docid": "e706e5232a29f34c7f0f99f6f7ed6eb5", "score": "0.5988381", "text": "public String getAccountId() {\n return issuer + \"-\" + accountName;\n }", "title": "" }, { "docid": "f10f87b3c3d227c008677012c32ed29f", "score": "0.5970369", "text": "@DISPID(4)\r\n\t// = 0x4. The runtime will prefer the VTID if present\r\n\t@VTID(13)\r\n\tasci.activebatch.IAbatObjectID userAccountObjectID();", "title": "" }, { "docid": "3e0f8d0800fc0b7f4f0e36f04710df3a", "score": "0.5968834", "text": "@Override\n public String toString() {\n return \"Username: \" + getUsername() + \", Balance: \" + getBalance();\n }", "title": "" }, { "docid": "3e2a8bb05449d37c54e9da3b311ead5e", "score": "0.59575427", "text": "String getAccountHolderName();", "title": "" }, { "docid": "44f69f1fb3b8a874cc2ccac854861183", "score": "0.59427166", "text": "public String getAccountphone() {\n return accountphone;\n }", "title": "" }, { "docid": "f04e4b64d362181d69517c76d5441d1d", "score": "0.5931647", "text": "public String getPayerbankacct() {\r\n return payerbankacct;\r\n }", "title": "" }, { "docid": "ed734acb2da7b25c1bc0de64a8f22463", "score": "0.59303755", "text": "java.lang.String getAccountName();", "title": "" }, { "docid": "af9e26f706ea84844a6fe3458a19c817", "score": "0.5918091", "text": "public String getAccountNumber() {\r\n return accountNumber;\r\n }", "title": "" }, { "docid": "d2c7e0aefcbeca0d9d46e292fcba2993", "score": "0.5915794", "text": "public long getAccountNumber()\n {\n return acctNumber;\n }", "title": "" }, { "docid": "0dc833006d30c1bae70d3b17fa65275b", "score": "0.59108084", "text": "public Account getUser() {\n return user;\n }", "title": "" }, { "docid": "a67282b3b20ba0752be02c7ac45888b5", "score": "0.59068877", "text": "public java.lang.CharSequence getAccountNumber() {\n return account_number;\n }", "title": "" }, { "docid": "10d3725e21e44459682866ed5e258d01", "score": "0.5893616", "text": "public String getAccountDescription() {\n\t\treturn accountDescription;\n\t}", "title": "" }, { "docid": "f7457a0f4f2724e5968cf599af36810c", "score": "0.5888688", "text": "public UsernameAndPassword getAccount() {\n return account;\n }", "title": "" }, { "docid": "885a55736af5ae511840c37b518bf60e", "score": "0.58860546", "text": "public java.lang.CharSequence getAccountNumber() {\n return account_number;\n }", "title": "" }, { "docid": "ca89528cecbbacf85912c7da4855a258", "score": "0.58847964", "text": "public String getAccountName() {\r\n return accountName;\r\n }", "title": "" }, { "docid": "e2b27385e8dc53ec5ceb3b9d8e6ce042", "score": "0.5882703", "text": "public int getAccountNumber (){\r\n\t\treturn accountNum;\r\n\t}", "title": "" }, { "docid": "5f12593cc0fe5a439e481681f4ae4cbb", "score": "0.58801997", "text": "public String getAccountName() {\n return this.accountName;\n }", "title": "" }, { "docid": "19346af56f5b1f5b1c2c71fd2ed0b399", "score": "0.5879386", "text": "public String getAccountNum() {\r\n\t\treturn this.acc_num;\r\n\t}", "title": "" }, { "docid": "ca08e1da48b6905bb5fdc89dd7d62fdc", "score": "0.58769673", "text": "public String myAccount() {\n\t\treturn \"myAccount\";\n\t}", "title": "" }, { "docid": "919b38d9bc6ee0b98185c3ce543caa96", "score": "0.58731556", "text": "public java.lang.String getAccount2() {\n return account2;\n }", "title": "" }, { "docid": "0fc7194099aa9dd9d70d3cd39df36514", "score": "0.5855145", "text": "public String getAccountName() {\n return accountName;\n }", "title": "" }, { "docid": "0fc7194099aa9dd9d70d3cd39df36514", "score": "0.5855145", "text": "public String getAccountName() {\n return accountName;\n }", "title": "" }, { "docid": "d7cdd957ee3b6967d326d6cc6ddb0562", "score": "0.58544797", "text": "public Account getAccount() {\n return account;\n }", "title": "" }, { "docid": "84cb5b826dd864ab2eda573a6d25857f", "score": "0.58526504", "text": "public String getSlAccount() {\n return slAccount;\n }", "title": "" }, { "docid": "7b3a2da280eab9b9edda4814ed6f8135", "score": "0.58511746", "text": "public String getBankAccount() {\n return bankAccount;\n }", "title": "" }, { "docid": "8c038dfef49de92035bc5b42ac316503", "score": "0.5835974", "text": "public int getAccountNumber() \n\t{ \n\t\treturn accountNumber; \n\t}", "title": "" }, { "docid": "5a097d398115c732b33fda984d040fdc", "score": "0.5820288", "text": "public String getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "5a097d398115c732b33fda984d040fdc", "score": "0.5820288", "text": "public String getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "5a097d398115c732b33fda984d040fdc", "score": "0.5820288", "text": "public String getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "5b66bbb177b0b55169abb1e6716e7095", "score": "0.5814394", "text": "public String getAccountId() {\n return this.accountId;\n }", "title": "" }, { "docid": "5b66bbb177b0b55169abb1e6716e7095", "score": "0.5814394", "text": "public String getAccountId() {\n return this.accountId;\n }", "title": "" }, { "docid": "5b66bbb177b0b55169abb1e6716e7095", "score": "0.5814394", "text": "public String getAccountId() {\n return this.accountId;\n }", "title": "" }, { "docid": "a7fad4fb2e7ea73616fee76f365f3162", "score": "0.5811057", "text": "public int getAccountNumber() {\n return accountNumber;\n }", "title": "" }, { "docid": "a7fad4fb2e7ea73616fee76f365f3162", "score": "0.5811057", "text": "public int getAccountNumber() {\n return accountNumber;\n }", "title": "" }, { "docid": "3305b41f7381ba4c2f86ada026c4a920", "score": "0.5807194", "text": "public String getAccount(){\r\n\t\t\r\n\t\treturn this.account_list_path;\r\n\t}", "title": "" }, { "docid": "8d918c498deb695591ed46bec51a9c24", "score": "0.580531", "text": "public String getTextAccountNameIcon()\n\t{\n\t\treturn elementUtils.getElementText(wbAccountNameIcon); //return wbAccountNameIcon.getText()\n\t}", "title": "" }, { "docid": "b492f6ee364f5c41f6aee6bc9c1341b7", "score": "0.5803245", "text": "public String getCustomerBankAccount() {\n return customerBankAccount;\n }", "title": "" }, { "docid": "b17907ac4cdd95b7b22246dc4020f515", "score": "0.58013916", "text": "public long getAccountNumber() {\n\t\t\treturn accountNumber;\n\t\t\t\t\n\t\t}", "title": "" }, { "docid": "15b0c02251ee7e9afe584f3f7257dadd", "score": "0.579626", "text": "@Override\n\tpublic Integer getAccountNumber() {\n\t\t\n\t\treturn ;\n\t}", "title": "" }, { "docid": "f2a2894fa90ef5ec12d94b7d3e037c97", "score": "0.5787368", "text": "public String toString(){\r\n\t return \"Owner: \" + this.name + \"\\nBlance: \" + this.balance;\r\n\t}", "title": "" }, { "docid": "00e14232135884ba385e9c273bbb417e", "score": "0.5776467", "text": "public String toString(){\n\t\n\t\treturn (\"Account number: \"+this.getAcctNo()+\"\\nCurrent Balance: \"+this.getBalance()+\"\\nReward Balance: \"+this.reward);\n\t\n\t}", "title": "" }, { "docid": "33fa4e7213b46bb667a0e3d5803bbcb4", "score": "0.57649094", "text": "public Acct getAcct() {\n\t\treturn subscriber.getKundeId();\n\t}", "title": "" }, { "docid": "be9d3a40402bfb9077cecc78f826e841", "score": "0.5763701", "text": "public String getUserAccId() {\n return userAccId;\n }", "title": "" }, { "docid": "21c8adab8b706ef727d0d0a5cebb65c6", "score": "0.5761892", "text": "public java.lang.String getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "21c8adab8b706ef727d0d0a5cebb65c6", "score": "0.5761892", "text": "public java.lang.String getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "dcc1eeabdeedbbc2e2e464873bdd5ef6", "score": "0.575657", "text": "public Account getAccount()\r\n {\r\n return account;\r\n }", "title": "" }, { "docid": "3aac4e4ed3e6b404d9e98aff1e04a787", "score": "0.57491654", "text": "public Account getAssociatedAccount(){\n\t\treturn associatedAccount;\n\t}", "title": "" }, { "docid": "8b5402c49153c8d3a8f3c65837b46be7", "score": "0.5741549", "text": "public int getAccountNumber() {\n return this.accountNumber;\n }", "title": "" }, { "docid": "819fab60a2e74e6c7163fad91d027269", "score": "0.5735279", "text": "long getOlmAccountId(){\n return mNativeId;\n }", "title": "" }, { "docid": "f78a8bc04037e157fe83966e88c4305e", "score": "0.57305974", "text": "public AccountDescription getAccountDescription() {\r\n return accountDescription;\r\n }", "title": "" }, { "docid": "9aaa65fbaef44371a4f231373f62f124", "score": "0.5722262", "text": "@Override\r\n public String getAccountNumber() \r\n {\r\n return this.accountNumber;\r\n }", "title": "" }, { "docid": "de579b30e5b990a6610e47b5f4b7ecf4", "score": "0.5702581", "text": "public String getAccountName() {\n\t\treturn mAccountName;\n\t}", "title": "" }, { "docid": "60a6e19d7cbec6264a69cbda9f441e0a", "score": "0.5696762", "text": "@Override\n public String toString() {\n return (\"\\nAccount Number:\" + Account_Number +\n \"\\nBalance:\" + balance);\n }", "title": "" }, { "docid": "aaed50a3cf516372e506b8934e2d4715", "score": "0.5690654", "text": "@NonNull\n @Override\n public String toString()\n {\n return provider.getAccountID().getAccountJid();\n }", "title": "" }, { "docid": "c050039ccafac7ad2abb424f97706a76", "score": "0.56900984", "text": "@Override\n public String toString() {\n return \"AccountInfo=[accountNo=\" + this.accountNo + \",accountDescr=\" + this.accountDescr + \"]\";\n }", "title": "" }, { "docid": "50797f804a979b9dd00350e1aaed57f4", "score": "0.56845176", "text": "public String getAccountNumber()\n\t{\n\t\treturn m_accountNumber;\n\t}", "title": "" }, { "docid": "d0fa72c93222d0d2bedea692fe35ed3f", "score": "0.56834894", "text": "public String getAccountId() {\n\t\treturn accountId;\n\t}", "title": "" }, { "docid": "acbc1aefc7ca82d34de28219b2a436f4", "score": "0.56711394", "text": "@Override\n public String getAccountNumber() {\n return this.accountNumber;\n }", "title": "" }, { "docid": "0ee611b5cf5dfc74ad758cb3160767af", "score": "0.5666827", "text": "public String getUserID() {\n\t\treturn mbrvo.getMbr_id();\n\t}", "title": "" }, { "docid": "f7719147eae67bd09ffeb227725997d7", "score": "0.5666677", "text": "public Long getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "5e66477c221bae19e7cd841cb1fecc60", "score": "0.56611973", "text": "@Override\r\n public String getAccountNum(){\r\n return accountNum;\r\n }", "title": "" } ]
a03b4202e5a500648f399e32813b0a8d
Pour sacrifier la carte devin
[ { "docid": "55ffafbc9cc35d7cb2e6faf40dbfdd79", "score": "0.5449038", "text": "public void devinSacrifier(Joueur j, Partie partie) throws IOException {\r\n\t\tJoueur j2 = j.ChoisirUnJoueur(partie);\r\n\t\tSystem.out.println(j + \"a sacrifie GuideSprituel Devin a\" + j2);\r\n\t\tViewJouer.LabelSystem.setTexte(j + \"a sacrifie GuideSprituel Devin a\" + j2);\r\n\t\tif(j2.champGuide().size()==0){\r\n\t\t\tSystem.out.println(j2 + \"N'a pas de guide sur son champ !\");\r\n\t\t\tViewJouer.LabelSystem.setTexte(j2 + \"N'a pas de guide sur son champ !\" );\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tGuideSpirituel g = j2.choisirUneGuideSpirituelAssocie();\r\n\t\tboolean containM = j2.getCarteDevinite().getDogmes().contains(\"Nature\");\r\n\t\tboolean containN = j2.getCarteDevinite().getDogmes().contains(\"Mystique\");\r\n\t\tif (containM || containN) {\r\n\t\t\tSystem.out.println(j.toString() + \"oblige\" + j2.toString() + \"a sacrifie sa carte GuideSpirituel\" + g.toString());\r\n\t\t\tViewJouer.LabelSystem.setTexte(j.toString() + \"oblige\" + j2.toString() + \"a sacrifie sa carte GuideSpirituel\" + g.getName());\r\n\t\t\tj2.sacrifierGuideSpirituel(g, partie);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Vous ne pouvez pas demander un joueur qui ne croit pas Nature ou Mystique\");\r\n\t\t\tViewJouer.LabelSystem.setTexte(\"Vous ne pouvez pas demander un joueur qui ne croit pas Nature ou Mystique\");\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "316276ba4dfc453ccdb2c848359c272c", "score": "0.6286855", "text": "private void saniyedeBir() {\n\t\t\n\t\t\t\n\n\t }", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.5976187", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "d991f298bf8b0f0452c4659bed684bcd", "score": "0.5834769", "text": "public void fressen() {\n\t\t\n\t}", "title": "" }, { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.57630354", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ad4d9339a0e3b347b6df9466d063badd", "score": "0.5667699", "text": "public void piocher(){\n\t\t\n\t}", "title": "" }, { "docid": "c83607374d33d2973ee88fd9dee4c4f8", "score": "0.56667876", "text": "private Processador() {\n\t\tlivre = true;\n\t}", "title": "" }, { "docid": "65a6193d2d2e6aebd46fabad5f4def46", "score": "0.5648827", "text": "@Override\r\n\tvoid corri() {\n\t\tthis.velocita=500;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "85dd9bf05cea301beb8dde22d9746150", "score": "0.56350726", "text": "public synchronized void deplacer() {\n float tirage, prob1, prob2, prob3, total;\n int[] dir = new int[3];\n int i, j;\n Color lCouleur;\n\n mNbDeplacements++;\n\n dir[0] = 0;\n dir[1] = 0;\n dir[2] = 0;\n\n // le tableau dir contient 0 si la direction concernée ne contient pas la\n // couleur\n // à suivre, et 1 sinon (dir[0]=gauche, dir[1]=tt_droit, dir[2]=droite)\n i = modulo(x + CFourmi.mIncDirection[modulo(mDirection - mDecalDir, 8)][0], mPainting.getLargeur());\n j = modulo(y + CFourmi.mIncDirection[modulo(mDirection - mDecalDir, 8)][1], mPainting.getHauteur());\n if (mApplis.mBaseImage != null) {\n lCouleur = new Color(mApplis.mBaseImage.getRGB(i, j));\n } else {\n lCouleur = new Color(mPainting.getCouleur(i, j).getRGB());\n }\n if (testCouleur(lCouleur)) {\n dir[0] = 1;\n }\n\n i = modulo(x + CFourmi.mIncDirection[mDirection][0], mPainting.getLargeur());\n j = modulo(y + CFourmi.mIncDirection[mDirection][1], mPainting.getHauteur());\n if (mApplis.mBaseImage != null) {\n lCouleur = new Color(mApplis.mBaseImage.getRGB(i, j));\n } else {\n lCouleur = new Color(mPainting.getCouleur(i, j).getRGB());\n }\n if (testCouleur(lCouleur)) {\n dir[1] = 1;\n }\n i = modulo(x + CFourmi.mIncDirection[modulo(mDirection + mDecalDir, 8)][0], mPainting.getLargeur());\n j = modulo(y + CFourmi.mIncDirection[modulo(mDirection + mDecalDir, 8)][1], mPainting.getHauteur());\n if (mApplis.mBaseImage != null) {\n lCouleur = new Color(mApplis.mBaseImage.getRGB(i, j));\n } else {\n lCouleur = new Color(mPainting.getCouleur(i, j).getRGB());\n }\n if (testCouleur(lCouleur)) {\n dir[2] = 1;\n }\n\n // tirage d'un nombre aléatoire permettant de savoir si la fourmi va suivre\n // ou non la couleur\n tirage = GenerateurAleatoire.nextFloat();// Math.random();\n\n // la fourmi suit la couleur\n if (((tirage <= mProba[3]) && ((dir[0] + dir[1] + dir[2]) > 0)) || ((dir[0] + dir[1] + dir[2]) == 3)) {\n prob1 = (dir[0]) * mProba[0];\n prob2 = (dir[1]) * mProba[1];\n prob3 = (dir[2]) * mProba[2];\n }\n // la fourmi ne suit pas la couleur\n else {\n prob1 = (1 - dir[0]) * mProba[0];\n prob2 = (1 - dir[1]) * mProba[1];\n prob3 = (1 - dir[2]) * mProba[2];\n }\n total = prob1 + prob2 + prob3;\n prob1 = prob1 / total;\n prob2 = prob2 / total + prob1;\n prob3 = prob3 / total + prob2;\n\n // incrémentation de la direction de la fourmi selon la direction choisie\n tirage = GenerateurAleatoire.nextFloat();// Math.random();\n if (tirage < prob1) {\n mDirection = modulo(mDirection - mDecalDir, 8);\n } else {\n if (tirage < prob2) {\n /* rien, on va tout droit */\n } else {\n mDirection = modulo(mDirection + mDecalDir, 8);\n }\n }\n\n x += CFourmi.mIncDirection[mDirection][0];\n y += CFourmi.mIncDirection[mDirection][1];\n\n x = modulo(x, mPainting.getLargeur());\n y = modulo(y, mPainting.getHauteur());\n\n // coloration de la nouvelle position de la fourmi\n mPainting.setCouleur(x, y, mCouleurDeposee, mTaille);\n\n mApplis.IncrementFpsCounter();\n }", "title": "" }, { "docid": "a7998f80ff10142923d6914a455d5129", "score": "0.5583048", "text": "public void colisionBala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d303be5e5544b45417dce06869cdd480", "score": "0.5576817", "text": "private void proceseazaRezultate() {\n }", "title": "" }, { "docid": "408c943a1e709ecc31c924c09b2315eb", "score": "0.55748886", "text": "protected void bhyp0200RotinaDatas() {\n }", "title": "" }, { "docid": "1c4063058b784c69f3e491b8fe1c5d87", "score": "0.5567714", "text": "@Override\r\n\tpublic void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "65dceb90946e79a089c2b81465b41a59", "score": "0.5566452", "text": "void despuesDeTurno();", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.55573857", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0501d5db2117dcf2bf655bcebc5e8858", "score": "0.55434865", "text": "static void adios() {\n\t\t}", "title": "" }, { "docid": "063ae6a38469d06ddf88fd9af6522171", "score": "0.5542591", "text": "@Override\r\n\tpublic void guru() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b3d721b1eea281aeed549a0c2e07286", "score": "0.55160725", "text": "private void StartotraL() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9b9ad51cdd34c2a9f321e0269cd89237", "score": "0.5510495", "text": "@Override\r\n\tvoid se_deplacer() {\n\t\t\r\n\t Case c = this.pos._neuneu(this);\r\n\t \tif (c==null){\r\n\t c = this.pos._nourriture(this);\r\n\t }\r\n\t //si on a trouvé une case a laquelle le neuneu peut se deplacer , on change ses positions\r\n\t int X=0;\r\n\t int Y=0; \r\n\t \r\n\t if(c!=null){\r\n\t X = c.abs-this.pos.abs;\r\n\t Y = c.ord-this.pos.ord;\r\n\t }\r\n\t \r\n\t if(this.pos!=c){\r\n\t //deplacement vers la case adjacente\r\n\t Case randomDir = this.deplacement(c, X, Y);\r\n\t if(randomDir==null){\r\n\t randomDir=this.pos;\r\n\t }\r\n\t //*//supprimer le neuneu de la case actuelle\r\n\t this.pos.habitant.remove(this);\r\n\t //modifier sa position\r\n\t this.pos = randomDir;\r\n\t //deplacer le neuneu\r\n\t randomDir.habitant.add(this);\r\n\t System.out.println(this.nom+\" s'est déplacé\");\r\n\t }\r\n\t \r\n\t //le neuneu se reproduit si son energie le permet et il trouve un partenaire sur la case \r\n\t if(this.energie >=min_en_prod && this.pos.habitant.size()>1){\r\n\t pos.loft.ajout_neuneu(this.reproduction(this.pos.autre_neuneu(this)));\r\n\t }\r\n\t //si non il mange ce qui se trouve\r\n\t else{\r\n\t \t\tif(this.pos.autre_neuneu(this)!=null || this.pos.test_aliment(this)){\r\n\t \t\t\tthis.manger();\r\n\t \t\t}\r\n\t \t}\r\n\t }", "title": "" }, { "docid": "fbde0694d8c36a25878e31cf3a179f98", "score": "0.54883116", "text": "public void chargerDemandeLivraison(Controleur c, MainControlleur f);", "title": "" }, { "docid": "c0c568aae7984ee2b07decdc07c9d7fe", "score": "0.54649323", "text": "public void appelerBiff(){\n }", "title": "" }, { "docid": "f36814249b8708586a2c3c05056ee16d", "score": "0.5463195", "text": "@Test\n\tpublic void genererCaractere_inclusionsEtExclusions() {\n\t\tArrayList<Character> poolInit = new Caractere().getSpeciaux();\n\t\t// inclusions\n\t\tArrayList<Character> inclusions = new ArrayList<>() ;\n\t\tinclusions.add('z');\n\t\tinclusions.add('v');\n\t\t// exclusions\n\t\tArrayList<Character> exclusions = new ArrayList<>() ;\n\t\texclusions.add('#');\n\t\texclusions.add('$');\n\t\tboolean special = true ;\n\t\tchar enCours;\n\t\t// test 'statistique'\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tenCours = Caractere.genererCaractere(poolInit, exclusions, inclusions) ;\n\t\t\tif( (!poolInit.contains(enCours) && enCours != 'z' && enCours != 'v') || enCours == '#' || enCours == '$') {\n\t\t\t\tspecial = false ;\n\t\t\t\tSystem.out.println(enCours);\n\t\t\t}\n\t\t}\n\t\tassertTrue(special) ;\n\t}", "title": "" }, { "docid": "5aae73ff49a429d0b724a32cfcc02dbb", "score": "0.54589903", "text": "private void dibujar() {\r\n\r\n sd.dibujar(ge);\r\n }", "title": "" }, { "docid": "6efefb93ce4ef9309fd7f168abf17e8e", "score": "0.54577655", "text": "public abstract void aufToiletteGehen(boolean istFrau);", "title": "" }, { "docid": "de64dafef0de79619fd0287622ff1c35", "score": "0.5455742", "text": "private void cayendo() {\r\n\t\tif(pato == 1) {\r\n\t\t\truta = \"ImagenesPatoNormal/Cayendo/\";\r\n\t\t}\r\n\t\tif(pato == 2) {\r\n\t\t\truta = \"ImagenesPatoVeloz/Cayendo/\";\r\n\t\t}\r\n\t\tif(pato == 3) {\r\n\t\t\truta = \"ImagenesPatoBlindado/Cayendo/\";\r\n\t\t}\r\n\t\tif(pato == 4) {\r\n\t\t\truta = \"ImagenesPatoDoble/Cayendo/\";\r\n\t\t}\r\n\t\tif(pato == 5) {\r\n\t\t\truta = \"ImagenesPatoBoss/Cayendo/\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "103785b3d6aae7cb1c232051d11a776b", "score": "0.5440898", "text": "public void colorear() {\n\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.5431473", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "bd613f0c4531a988fd0a20648aa97f92", "score": "0.54292554", "text": "private void derechaArriba() {\r\n\t\tif(pato == 1) {\r\n\t\t\truta = \"ImagenesPatoNormal/DerechaArriba/\";\r\n\t\t}\r\n\t\tif(pato == 2) {\r\n\t\t\truta = \"ImagenesPatoVeloz/DerechaArriba/\";\r\n\t\t}\r\n\t\tif(pato == 3) {\r\n\t\t\truta = \"ImagenesPatoBlindado/DerechaArriba/\";\r\n\t\t}\r\n\t\tif(pato == 4) {\r\n\t\t\truta = \"ImagenesPatoDoble/DerechaArriba/\";\r\n\t\t}\r\n\t\tif(pato == 5) {\r\n\t\t\truta = \"ImagenesPatoBoss/DerechaArriba/\";\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "692938db2394da60e1d675821e434230", "score": "0.54236233", "text": "protected Plateau voisin(){\n\t\tPlateau tmp=new Plateau(plat);\n\t\tlisteTmp=new ArrayList<Polyominos>();\n\t\tfor(Polyominos p : listePolyo){\n\t\t\tlisteTmp.add(new Polyominos(p));\n\t\t}\n\t\t/** on enleve un certain pourcentage de piece qui sont deja placer sur le plateau **/\n\n\t\t//melange de la liste des polyominos\n\t\tCollections.shuffle(listeTmp);\n\t\t\n\t\t//index de parcour\n\t\tint k=0;\n\t\tint l=0;\n\t\t\n\t\t//polyominos qui va etre selection et peut etre supprimé\n\t\tPolyominos pol;\n\t\t\n\t\t//Nombre de polyo a remove du plateau\n\t\tint nbSupp=(int)(Math.ceil(listeTmp.size()*0.3));\n\t\t\n\t\t//on enleve les pieces\n\t\twhile(k<nbSupp && l<listeTmp.size()){\n\t\t\t\n\t\t\t//recuperation du polyominos a supprimmé\n\t\t\tpol=listeTmp.get(l);\n\t\t\t\n\t\t\t//on regarde si le polyominos est pose \n\t\t\tif(pol.pose){\n\t\t\t\t\n\t\t\t\t//suppression du polyominos\n\t\t\t\ttmp.removeBlock(pol);\n\t\t\t\t\n\t\t\t\t//on replace sont nombre de variante a sa valeur initial\n\t\t\t\tpol.resetNbVarianteRestante();\n\t\t\t\tk++;\n\t\t\t}\n\t\t\tl++;\n\t\t}\n\n\t\t/** On transforme un certain pourcentage de piece **/\n\t\t\n\t\t//nombre de pieces a transformer\n\t\tint nbPolyoTransf=(int)Math.ceil(listeTmp.size()*0.2);\n\t\t\n\t\t//on mute le nombre de piece voulu\n\t\tfor(int i=0;i<nbPolyoTransf;i++){\n\t\t\t\n\t\t\t\n\t\t\t// index de la pieces a transformer\n\t\t\tint indexTransf;\n\t\t\t\n\t\t\t// polyominos qui va etre transformer\n\t\t\tPolyominos p;\n\t\t\t\n\t\t\t//tant que nous n'avons pas trouver de piece non poser\n\t\t\tdo{\n\t\t\t\tindexTransf=(int)(Math.random()*listeTmp.size());\n\t\t\t\tp=listeTmp.get(indexTransf);\n\t\t\t}while(p.pose);\n\t\t\t\n\t\t\t//on effectue une transformation aleatoire sur le polyominos\n\t\t\tp.getVarianteAleat();\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t/** On repose des polyominos **/\n\t\t\n\t\tfor(Polyominos p1 : listeTmp){\n\t\t\t//on essaie de poser le polyominos si celui-ci n'est pas deja poser\n\t\t\tif(!p1.pose){\n\t\t\t\ttmp.simpleAddBlock(p1);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn tmp;\n\t}", "title": "" }, { "docid": "f2fb30d80800863f9e1bf79704c6666f", "score": "0.5409123", "text": "public void afficherPlateauDeJeu() {\n\t\tSystem.out.println(\"---------------------------------------------------------------------\");\n\t\tafficherNombres();\n\t\tafficherDouzaines();\n\t\tafficherChancesSimples();\n\t\tSystem.out.println(\"---------------------------------------------------------------------\");\n\t}", "title": "" }, { "docid": "860ddc052a01dc756c0c46a07db340c2", "score": "0.54052496", "text": "public void inizializza() {\n /* variabili e costanti locali di lavoro */\n\n // se il portale lo prevede, aggiunge i bottoni standard\n Portale portale;\n portale = this.getPortale();\n if (portale!=null) {\n boolean usa;\n usa = portale.isUsaPulsantiStandard();\n if (usa) {\n this.addBottoniStandard();\n }// fine del blocco if\n\n }// fine del blocco if\n \n\n }", "title": "" }, { "docid": "b151bb2a9aed15d3bc10eaa2b10a02da", "score": "0.54019755", "text": "public void useSpecial(){\r\n\r\n\t}", "title": "" }, { "docid": "d4e15b200c2022658af267c700b34269", "score": "0.5384487", "text": "@Override\n\tpublic void anlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "b28a6bba203633cc1b71e802b691f592", "score": "0.5373686", "text": "@Override\n\tpublic void shuthdown() {\n\n\t}", "title": "" }, { "docid": "7a8d91c627f881072e8655eab5d7efa8", "score": "0.53732485", "text": "void cadatrarOportunidade(){\r\n\t\t}", "title": "" }, { "docid": "536bebbf8ffde10d9cd0c4f1996b9b81", "score": "0.5367993", "text": "Miesto umiestnenie();", "title": "" }, { "docid": "d37af491cb0b85bc9cb0f7f155a135c6", "score": "0.53650033", "text": "public void lancerAlgoCovoiturage()\n\t{\n\t\tif(verifierSaisie()){\n\t\t\t\n\t \tlong debut = System.nanoTime();\n\t\t\t// lancer l'algorithme Dijkstra \"un vers tous\" pour le piéton\n\t\t\tPccReg algoParcoursPieton = new PccReg(Algo.graphe, numPieton, 1, 1, limitePieton);\n\t\t\talgoParcoursPieton.run();\n\t\t\t\n\t\t\t// lancer l'algorithme Dijkstra \"un vers tous\" pour l'automobiliste\n\t\t\tPccReg algoParcoursAutomobiliste = new PccReg(Algo.graphe, numAutomobiliste, 0, proportionVitesse);\n\t\t\talgoParcoursAutomobiliste.run();\n\t\t\t\n\t\t\t// on cherche tous les noeuds à la fois parcourus par le piéton et l'automobiliste\n\t\t\tfor(int i =0;i < Algo.graphe.getListeNoeuds().size();i++){\n\t\t\t\tif(algoParcoursPieton.mapCorrespondanceNoeudLabel.get(i).isParcouru_pieton() && \n\t\t\t\t\t\talgoParcoursAutomobiliste.mapCorrespondanceNoeudLabel.get(i).isParcouru_automobiliste())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t// on obtient leur coût\n\t\t\t\t\t\tdouble coutAutomobiliste = algoParcoursAutomobiliste.mapCorrespondanceNoeudLabel.get(i).getCoutCourant() ;\n\t\t\t\t\t\tdouble coutPieton = algoParcoursPieton.mapCorrespondanceNoeudLabel.get(i).getCoutCourant() ;\n\t\t\t\t\t\t// on crée un label pour chaque sommet parcouru en commun, et le met dans le hashmap\n\t\t\t\t\t\tLabelCovoiturage s = new LabelCovoiturage(i, coutPieton, coutAutomobiliste);\n\t\t\t\t\t\tmapListeNoeudCommun.put(i,s);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t// on lance la recherche inverse à partir de destination, seuls les sommets dans le hashmap seront marqués\n\t\t\tPccInverse algoParcoursDest = new PccInverse(Algo.graphe, numDestination, mapListeNoeudCommun, proportionVitesse);\n\t\t\talgoParcoursDest.run();\n\t\t\t\n\t\t\t// on parcourt le hashmap et insère tous les points de rencontres possibles dans le tas, et les ordonner\t\n\t\t\tfor (Integer key : mapListeNoeudCommun.keySet()) {\n\t\t\t\tif(algoParcoursDest.mapCorrespondanceNoeudLabel.get(key).isParcouru_destination())\n\t\t\t\t{\n\t\t\t\t\tdouble coutDest = algoParcoursDest.mapCorrespondanceNoeudLabel.get(key).getCoutCourant();\n\t\t\t\t\tmapListeNoeudCommun.get(key).setCoutDestination(coutDest);\n\t\t\t\t\ttas.insert(mapListeNoeudCommun.get(key));\n\t\t\t\t\ttas.update(mapListeNoeudCommun.get(key));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// on obtient le meilleur point de rencontre, le pire des cas est le sommet de destination\n\t\t\tif(!tas.isEmpty()){\n\t\t\t\tlabelPointRencontre = tas.findMin() ;\n\t\t\t\tpointRencontre = labelPointRencontre.getId_sommet() ;\n\t\t\t\tfaisabiliteCovoiturage = true ;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Le piéton et l'automobiliste sont impossibles de se rencontrer.\");\n\t\t\t}\n\t\t\t\n\t\t\t// la recherche du point de rencontre est terminé, on arrête le temps d'exécution\n\t\t\ttempsExecutionTotal = System.nanoTime() - debut;\n\t\t\t\n\t\t\t// si le covoiturage est faisable\n\t\t\tif(faisabiliteCovoiturage){\n\t\t\t\t// on récupère les informations à afficher\n\t\t\t\tcoutTotalCovoiturage = Math.max(labelPointRencontre.getCoutAutomobiliste(),labelPointRencontre.getCoutPieton())+labelPointRencontre.getCoutDestination() ;\n\t\t\t\tnbParcouruTotal = algoParcoursAutomobiliste.getNbParcouru() + algoParcoursPieton.getNbParcouru() + algoParcoursDest.getNbParcouru() ;\n\t\t\t\tnbTasMax = Math.max(Math.max(algoParcoursAutomobiliste.getNbMaxTas(), algoParcoursPieton.getNbMaxTas()),algoParcoursDest.getNbMaxTas());\n\n\t\t\t\t// on construit les trois plus court chemin et les affiche\n\t\t\t\tPccPieton cheminPieton = new PccPieton(Algo.graphe,numPieton,pointRencontre);\n\t\t\t\tcheminPieton.run() ;\n\t\t\t\tcheminPieton.construirePlusCourtChemin();\n\t\t\t\tcheminPieton.afficherPlusCourtChemin() ;\n\t\t\t\t\n\t\t\t\tPcc cheminAutomobiliste = new Pcc(Algo.graphe,numAutomobiliste,pointRencontre);\n\t\t\t\tcheminAutomobiliste.run() ;\n\t\t\t\tcheminAutomobiliste.construirePlusCourtChemin();\n\t\t\t\tcheminAutomobiliste.afficherPlusCourtChemin();\n\t\t\t\t\n\t\t\t\tPcc cheminCovoiturage = new Pcc(Algo.graphe,pointRencontre,numDestination);\n\t\t\t\tcheminCovoiturage.run() ;\n\t\t\t\tcheminCovoiturage.construirePlusCourtChemin();\n\t\t\t\tcheminCovoiturage.afficherPlusCourtChemin();\n\t\t\t\t\n\t\t \tSystem.out.println();\n\t\t\t\tSystem.out.println(\"****** INFORMATION DU COVOITURAGE ******\");\n\t\t \tSystem.out.println();\n\t\t\t\tSystem.out.println(\"Le meilleur point de rencontre est : \"+pointRencontre);\n\t\t\t\tSystem.out.println(\"La durée totale minimale est : \"+ Utils.tempsEnMinToString(coutTotalCovoiturage));\n\t\t \tSystem.out.println();\n\t\t\t\t/* \n\t\t\t\t * Le temps utilisé par le piéton et l'automobiliste peut être différent,\n\t\t\t\t * dans certains cas, on économise le temps, si le piéton attend un peu l'arrivée de l'automobiliste,\n\t\t\t\t * que le piéton marche vers les autres points par lui-même.\n\t\t\t\t */\n\t\t\t\tSystem.out.println(\"En prenant ce point de rencontre : \");\n\t\t\t\tSystem.out.println(\" - Le piéton doit marcher : \"+ Utils.tempsEnMinToString(labelPointRencontre.getCoutPieton()));\n\t\t\t\tSystem.out.println(\" - L'automobiliste doit conduire : \"+ Utils.tempsEnMinToString(labelPointRencontre.getCoutAutomobiliste()));\n\t\t\t\tSystem.out.println(\" - Le trajet en commun en voiture est : \"+ Utils.tempsEnMinToString(labelPointRencontre.getCoutDestination()));\n\t\t \tSystem.out.println();\n\t\t\t\tSystem.out.println(nbParcouruTotal + \" sommets ont été parcourus pendant toute la résolution du point de rencontre.\");\n\t\t\t\tSystem.out.println(nbTasMax + \" est le nombre de sommets maximals dans le tas pendante toute la recherche.\");\n\t\t\t\tSystem.out.println(\"Le temps d'exécution total est : \"+tempsExecutionTotal);\n\t\t\t\tSystem.out.println(\"dont : \");\n\t\t\t\tSystem.out.println(\" - algorithme piéton : \"+algoParcoursPieton.getTempsExecution());\n\t\t\t\tSystem.out.println(\" - algorithme automobiliste : \"+algoParcoursAutomobiliste.getTempsExecution());\n\t\t\t\tSystem.out.println(\" - algorithme recherche inverse : \"+algoParcoursDest.getTempsExecution());\n\t\t\t\tSystem.out.println(\" - partie traitement : \" + (tempsExecutionTotal - algoParcoursDest.getTempsExecution()- algoParcoursAutomobiliste.getTempsExecution() - algoParcoursPieton.getTempsExecution()));\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"Le nombre de tous les points de rencontres possibles est \"+mapListeNoeudCommun.size());\n\t\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"La saisie n'est pas correcte, veuillez saisir les numéros de noeuds à nouveau.\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "189db4a1ffa2719c59a169ab57a318a4", "score": "0.53556854", "text": "@Override\n\tpublic void effectueDeplacement() {\n\t\t\n\t}", "title": "" }, { "docid": "f09b06bb707ed4096c0ea09f32a74824", "score": "0.53555506", "text": "private Estructura_BBDD() {}", "title": "" }, { "docid": "fcaf77b6f021a702cb2ac62e6c374cbd", "score": "0.53542733", "text": "@Override\r\n\tpublic void afficher() {\n\r\n\t}", "title": "" }, { "docid": "bf0b9b7f3c92668c4d45c03b42d65387", "score": "0.5342451", "text": "public static void main(String[] args) {\n\t\tFleur f1 = new Fleur(\"Violette\", \"bleu\");\r\n\t\tFleur f2 = new Fleur(f1); \r\n\t\tSystem.out.println(\"dans un cristal \");\r\n\t\tf2.eclore();\r\n\t\tSystem.out.print(\"ne laissant plus \");\r\n\t\tSystem.out.println(f1);\r\n\t\tSystem.out.println(f2);\r\n\t\t\r\n\t\t\r\n \r\n\t}", "title": "" }, { "docid": "76f321bc3bad39272a2e748a278e0210", "score": "0.5340492", "text": "public void afficher();", "title": "" }, { "docid": "ccd0c898dac9bb9fd50123d4d41bdcdf", "score": "0.53271276", "text": "@Override\n\tpublic void ausdrucken() {\n\t\t\n\t}", "title": "" }, { "docid": "a92e6d0e2673cb9d8e90cf46430243de", "score": "0.53239286", "text": "@Override\r\n\tpublic void occupaCamere() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.53231514", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "3866edb9ec4f15068f29e88b69530e81", "score": "0.5323112", "text": "public void Reproducir(){\n \n }", "title": "" }, { "docid": "f5b8d266820e0951910dd4ba2030ac37", "score": "0.5322532", "text": "@Override\n public void travaille() {\n System.out.println(\"J'effectue la comptabilité de l'entreprise.\");\n }", "title": "" }, { "docid": "9864bfb73e39d65c53d4c3891cf5370e", "score": "0.531601", "text": "public void chargerPlan(Controleur c, MainControlleur f);", "title": "" }, { "docid": "43ace8d3e24c72d8cf7996940edbca80", "score": "0.53059566", "text": "@Override\r\n\tpublic void buscarPa() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f3cf3302ff1e546c459a740f76538e5", "score": "0.53032416", "text": "public void exorcisteSacrifier(Joueur j, Partie partie) {\r\n\t\tJoueur j2 = j.ChoisirUnJoueur(partie);\r\n\t\tSystem.out.println(j + \"a sacrifie GuideSprituel Exorciste a\" + j2);\r\n\t\tViewJouer.LabelSystem.setTexte(j + \"a sacrifie GuideSprituel Exorciste a\" + j2);\r\n\t\tGuideSpirituel g = j.choisirGuideSpirituelDautreJoueur(j2);\r\n\t\tif (g == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tArrayList<CarteCroyant> cc = g.getCroyantRattache();\r\n\t\tIterator<CarteCroyant> it = cc.iterator();\r\n\t\tboolean containM = j2.getCarteDevinite().getOrigine().equals(\"Nuit\");\r\n\t\tboolean containN = j2.getCarteDevinite().getDogmes().contains(\"Mystique\");\r\n\t\tboolean containP = j2.getCarteDevinite().getDogmes().contains(\"Chaos\");\r\n\t\tif (containM || (containN & containP)) {\r\n\t\t\twhile (it.hasNext()) {\r\n\t\t\t\tCarteCroyant c = it.next();\r\n\t\t\t\tSystem.out.println(\"La carte Croyant\" + c.toString() + \"a ete defausse\");\r\n\t\t\t\tViewJouer.LabelSystem.setTexte(\"La carte Croyant\" + c.toString() + \"a ete defausse\");\r\n\t\t\t\tg.getCroyantRattache().remove(c);\r\n\t\t\t\tpartie.getPiocheCarteDefausse().getContenue().add(c);\r\n\t\t\t}\r\n\t\t\tj2.getCarte().add(g);\r\n\t\t\tSystem.out.println(j2.toString() + \"reprend la carte GuideSpirituel\" + g.toString());\r\n\t\t\tViewJouer.LabelSystem.setTexte(j2.toString() + \"reprend la carte GuideSpirituel\" + g.toString());\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Vous ne pouvez pas choisir ce joueur\");\r\n\t\t\tViewJouer.LabelSystem.setTexte(\"Vous ne pouvez pas choisir ce joueur\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "3b6e004accd1fbdaef9d50a4f3f702f7", "score": "0.5301763", "text": "private void impactadoP() {\r\n\t\tif(pato == 1) {\r\n\t\t\truta = \"ImagenesPatoNormal/Impactado/\";\r\n\t\t}\r\n\t\tif(pato == 2) {\r\n\t\t\truta = \"ImagenesPatoVeloz/Impactado/\";\r\n\t\t}\r\n\t\tif(pato == 3) {\r\n\t\t\truta = \"ImagenesPatoBlindado/Impactado/\";\r\n\t\t}\r\n\t\tif(pato == 4) {\r\n\t\t\truta = \"ImagenesPatoDoble/Impactado/\";\r\n\t\t}\r\n\t\tif(pato == 5) {\r\n\t\t\truta = \"ImagenesPatoBoss/Impactado/\";\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "7863778f3c47a6a3eebc9440ea61cadd", "score": "0.52986526", "text": "@Test\n\tpublic void genererCaractere_inclusions() {\n\t\t// inclusions\n\t\tArrayList<Character> inclusions = new ArrayList<>() ;\n\t\tinclusions.add('3');\n\t\tinclusions.add('4');\n\t\tboolean special = true ;\n\t\tchar enCours;\n\t\t// test 'statistique'\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tenCours = Caractere.genererCaractere(echantillon, null, inclusions) ;\n\t\t\tif( (!echantillon.contains(enCours) && enCours != '3' && enCours != '4'))\n\t\t\t\tspecial = false ;\n\t\t}\n\t\tassertTrue(special) ;\n\t}", "title": "" }, { "docid": "9dbc31c4c8bf0c06500fb4cd9aa904e0", "score": "0.52931947", "text": "@Override\r\n\tpublic void clubmahendra() {\n\t\t\r\n\t}", "title": "" }, { "docid": "59fb102d03cb5719ebf3f842601fe763", "score": "0.5268195", "text": "@Override\r\n\tpublic void reproducir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3082ef05aec8dc343ca108ab345f43a", "score": "0.5259387", "text": "@Override\r\n\tpublic void morir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5256629", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.5253605", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a630b18dc214c8d5af8369a266758e78", "score": "0.5250368", "text": "public void enVie(Vivant cible,int rayon) {\n if(!cible.getVie()) {return;}\n boolean chien,chat,personne,danger;\n chien = (cible instanceof Chien && getAuTour(cible,\"Chat\",(rayon * 10)) > 2);\n chat = (cible instanceof Chat && getAuTour(cible,\"Chien\",rayon) > 0);\n if(chien || chat) {\n cible.setVie(false);\n System.out.println(cible.getNom() +\" est mort !!!\");\n }\n }", "title": "" }, { "docid": "ed602eb4aed5579222205227d45ffe7d", "score": "0.52497643", "text": "@Override\n\tpublic boolean livre() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0761429ff235ee5f91f34eb3c0f70a37", "score": "0.5249715", "text": "public void cargarFlechas() {\n\t\tflechas += 6;\n\t}", "title": "" }, { "docid": "2314e54d8b7c6f252b62ce74644b3778", "score": "0.5248467", "text": "@Override\n\tpublic void SeDesplaza() {\n\t\t\n\t}", "title": "" }, { "docid": "d29d35f0eac657747490342fa530858b", "score": "0.5246497", "text": "public void chargerDemandeLivraison() {\r\n\t}", "title": "" }, { "docid": "62ad1c130fc3e2073a625ba75ce97115", "score": "0.52305156", "text": "private void izquierdaArriba() {\r\n\t\tif(pato == 1) {\r\n\t\t\truta = \"ImagenesPatoNormal/IzquierdaArriba/\";\r\n\t\t}\r\n\t\tif(pato == 2) {\r\n\t\t\truta = \"ImagenesPatoVeloz/IzquierdaArriba/\";\r\n\t\t}\r\n\t\tif(pato == 3) {\r\n\t\t\truta = \"ImagenesPatoBlindado/IzquierdaArriba/\";\r\n\t\t}\r\n\t\tif(pato == 4) {\r\n\t\t\truta = \"ImagenesPatoDoble/IzquierdaArriba/\";\r\n\t\t}\r\n\t\tif(pato == 5) {\r\n\t\t\truta = \"ImagenesPatoBoss/IzquierdaArriba/\";\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "95e7e447c93d52cc19d595bb6840cf72", "score": "0.52289385", "text": "private static void combate(Personaje a, Personaje d) {//a es de atacante, d es de defensor\r\n\t\tfloat reduccionArmadura=1;\r\n\t\tint reduccionPotenciaOfensiva=0;\r\n\t\tint aumentoPotenciaOfensiva=0;\r\n\t\tif(a instanceof Orco) {\r\n\t\t\tCampoBatalla.addLinea(\"\\t!!!!El poder de \"+a.getNombre()+\" hace que \"+d.getNombre()+\" reduzca su armadura un 10 %¡¡¡¡¡\");\r\n\t\t\treduccionArmadura=1-((Orco) a).getPorcentajeReduccionArmadura();\r\n\t\t}\r\n\t\tif(d instanceof Trasgo && a instanceof Hobbit) {\r\n\t\t\tCampoBatalla.addLinea(\"\\t!!!!\"+d.getNombre()+\" asusta a \"+ a.getNombre() +\", se reduce en 5 puntos de potencia ofensiva¡¡¡¡¡\");\r\n\t\t\treduccionPotenciaOfensiva=((Hobbit) a).getPotenciaOfensivaTrasgos();\r\n\t\t}\r\n\t\tif(d instanceof Orco && a instanceof Elfo) {\r\n\t\t\tCampoBatalla.addLinea(\"\\t!!!!!\"+a.getNombre()+\" se llena de rabia, aumenta en 10 puntos de potencia ofensiva¡¡¡¡¡\");\r\n\t\t\taumentoPotenciaOfensiva=((Elfo) a).getPotenciaOfensivaOrcos();\r\n\t\t}\r\n\t\tint dano=a.atacar()+reduccionPotenciaOfensiva+aumentoPotenciaOfensiva;\r\n\t\tfloat armadura=d.getArmadura()*reduccionArmadura;\r\n\t\tif(dano>armadura) {\r\n\t\t\tdano=(int)(dano-armadura);\r\n\t\t\tCampoBatalla.addLinea(\"\\t\"+a.getNombre()+ \" dañó a \"+d.getNombre()+\" con un daño de \"+dano );\r\n\t\t\td.recibeDano(dano);\r\n\t\t}else {\r\n\t\t\tCampoBatalla.addLinea(\"\\t\"+d.getNombre()+ \" esquivó el ataque de \"+ a.getNombre());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.522579", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "b6fafdfe59a7c1ef15255636f5c8c47c", "score": "0.52189255", "text": "private Banca() {\n\t}", "title": "" }, { "docid": "849aa2c93480aae87d55a97e84fd5fd0", "score": "0.5218474", "text": "void frecuencia();", "title": "" }, { "docid": "df970d9257b3282612e3b7ad881bca60", "score": "0.5212824", "text": "protected void bhjp5027AcedeMhjj027a() {\n }", "title": "" }, { "docid": "ea558c79d0604a906315fef046b55044", "score": "0.5207471", "text": "public void jouerCoup(){\n\t\tPiece pieceAJouer = plateau.getCase(coupCourant.departMemoire.x, coupCourant.departMemoire.y);\n\t\t\n\t\tif(coupCourant.isPetitRoque){\n\t\t\tString couleurJoueurCourant = joueurCourant.getCouleur();\n\t\t\tcoupCourant.arrivee.x = plateau.getRoi(couleurJoueurCourant).getX() +2;\n\t\t\tcoupCourant.arrivee.y = plateau.getRoi(couleurJoueurCourant).getY();\n\t\t}else if(coupCourant.isGrandRoque){\n\t\t\tString couleurJoueurCourant = joueurCourant.getCouleur();\n\t\t\tcoupCourant.arrivee.x = plateau.getRoi(couleurJoueurCourant).getX() -2;\n\t\t\tcoupCourant.arrivee.y = plateau.getRoi(couleurJoueurCourant).getY();\n\t\t}\n\t\t\n\t\tif(pieceAJouer.deplacer(coupCourant.arrivee.x, coupCourant.arrivee.y)){\n\t\t\tif(coupCourant.isTransformation && coupCourant.nomPieceTransformation != CoupPGN.REINE){\n\t\t\t\tPiece p = plateau.getCase(coupCourant.arrivee.x, coupCourant.arrivee.y);\n\t\t\t\tif(coupCourant.nomPieceTransformation == CoupPGN.CAVALIER){\n\t\t\t\t\tCavalier c = new Cavalier(p.getX(), p.getY(), p.getCouleur(), plateau);\n\t\t\t\t\tplateau.setCase(c.getX(), c.getY(), c);\n\t\t\t\t}else if(coupCourant.nomPieceTransformation == CoupPGN.FOU){\n\t\t\t\t\tFou f = new Fou(p.getX(), p.getY(), p.getCouleur(), plateau);\n\t\t\t\t\tplateau.setCase(f.getX(), f.getY(), f);\n\t\t\t\t}else if(coupCourant.nomPieceTransformation == CoupPGN.TOUR){\n\t\t\t\t\tTour t = new Tour(p.getX(), p.getY(), p.getCouleur(), plateau);\n\t\t\t\t\tplateau.setCase(t.getX(), t.getY(), t);\n\t\t\t\t}\n\t\t\t}\n\t\t\tswitchJoueur();\n\t\t}else{\n\t\t\tEchecs.addLog(\"Impossible de jouer le coupCourant malgre l'accord du serveur : \"+coupCourant.toString(), Echecs.TypeLog.ERREUR);\n\t\t}\n\t\t\n\t\tpieceSelectionee= null;\n\t\tfenetre.getGrille().updateGrille();\n\t\tfenetre.getGrille().resetEtatCases();\n\t\tfenetre.getGrille().setCaseDernierCoup(coupCourant.departMemoire.x, coupCourant.departMemoire.y);\n\t\tfenetre.getGrille().setCaseDernierCoup(coupCourant.arrivee.x, coupCourant.arrivee.y);\n\t\t\n\t\tif(tourDeJouer){\n\t\t\tfenetre.miseEnAttenteReseau(false);\n\t\t}\n\t\t\n\t\tcoupCourant = null;\n\t\tfenetre.repaint();\n\t}", "title": "" }, { "docid": "b58a98b15c653f4d25289f7972c318f6", "score": "0.52051556", "text": "private static void modoSobre ( )\r\n\t{\r\n\t\tSystem.out.println ( \"\\nCompilador L06 v0.8 2006 \\n\" +\r\n\t\t\t\t\t\t\t \"Paulo Vitor matricula: 200405600517\\n\" +\r\n\t\t\t\t\t\t\t \"Tiago Kohagura matricula: 200405600528\\n\" ); \r\n\t}", "title": "" }, { "docid": "c2a4dbe9ebb2d8cd7ab3ecf0d9438951", "score": "0.5201534", "text": "private void derechaAbajo() {\r\n\t\tif(pato == 1) {\r\n\t\t\truta = \"ImagenesPatoNormal/DerechaAbajo/\";\r\n\t\t}\r\n\t\tif(pato == 2) {\r\n\t\t\truta = \"ImagenesPatoVeloz/DerechaAbajo/\";\r\n\t\t}\r\n\t\tif(pato == 3) {\r\n\t\t\truta = \"ImagenesPatoBlindado/DerechaAbajo/\";\r\n\t\t}\r\n\t\tif(pato == 4) {\r\n\t\t\truta = \"ImagenesPatoDoble/DerechaAbajo/\";\r\n\t\t}\r\n\t\tif(pato == 5) {\r\n\t\t\truta = \"ImagenesPatoBoss/DerechaAbajo/\";\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "655664f5c84a93e9b4a7328ef8efbc10", "score": "0.5200592", "text": "public void deplacerSinge()\n\t{\n\t\tfinal Random rand = new Random();\n\t\tboolean deplacement = false;\n\t\tint nbEssai = 0;\n\t\tfinal int nbEssaiMax = 20;\n\t\tfinal int nbPossibilites = 4;\n\t\tfinal int south = 1;\n\t\tfinal int north = 2;\n\t\tfinal int west = 3;\n\t\tfinal int east = 4;\n\t\tint direction = 0;\n\t\t\n\t\twhile (!deplacement) {\t// Tant qu'un déplacement possible n'est pas trouvé\n\t\t\tnbEssai++;\t\t\t\n\t\t\tif (nbEssai <= nbEssaiMax) { // Si l'on a effectué moins de 20 essais\n\t\t\t\tdirection = rand.nextInt(nbPossibilites) + 1;\t// retry\n\t\t\t} else {\t\t\t\n\t\t\t\tdirection = 0;\t\t\t// déplacement impossible\n\t\t\t}\n\t\t\t\n\t\t\tswitch (direction) { // Gère les déplacements\n\t\t\t\tcase 0 :\t// Déplacement considéré impossible au bout de nbEssai\n\t\t\t\t\tdeplacement = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase south :\t// Déplacement vers le bas\n\t\t\t\t\tdeplacement = this.deplacementFait(this.getX(), this.getY() - 1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase north :\t// Déplacement vers le haut\n\t\t\t\t\tdeplacement = this.deplacementFait(this.getX(), this.getY() + 1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase west :\t// Déplacement vers la gauche\n\t\t\t\t\tdeplacement = this.deplacementFait(this.getX() - 1, this.getY());\n\t\t\t\t\tbreak;\n\t\t\t\tcase east :\t// Déplacement vers la droite\n\t\t\t\t\tdeplacement = this.deplacementFait(this.getX() + 1, this.getY());\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// Si le singe atteint le pirate il le tue\n\t\tthis.gereDeplacementSingePirate();\n\t}", "title": "" }, { "docid": "1cd3365ee5842a52a33ed7a4f7e5e18b", "score": "0.52005", "text": "public void verschwinde() {\n\t\tloesche();\n\t\tistSichtbar = false;\n\t}", "title": "" }, { "docid": "9cef8170e9e2a678cabb5ca716a9d429", "score": "0.519424", "text": "public void servirChocolate() {\n\n //resta la cantidad de chocolate, y de leche, al deposito\n restarChocolate(12);\n servirLeche();\n\n }", "title": "" }, { "docid": "1fdd39f681be5560961acc70ecc40bd4", "score": "0.51898134", "text": "void pleurer();", "title": "" }, { "docid": "bac909c00f134263eb2d9ec509af7efc", "score": "0.5189378", "text": "public void DragaoMorre()\n\t{\n\t\tthis.vida = false;\n\t}", "title": "" }, { "docid": "09b53bbc2897b6fb755b2ff16e449f2c", "score": "0.5185401", "text": "@Test\n\tpublic void genererCaractere_inclusionsPresentes() {\n\t\tArrayList<Character> inclusions = new ArrayList<>() ;\n\t\tinclusions.add('3');\n\t\tinclusions.add('4');\n\t\tboolean special = false ;\n\t\tchar enCours;\n\t\t// test 'statistique'\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tenCours = Caractere.genererCaractere(echantillon, null, inclusions) ;\n\t\t\tif(enCours == '3' || enCours == '4')\n\t\t\t\tspecial = true ;\n\t\t}\n\t\tassertTrue(special) ;\n\t}", "title": "" }, { "docid": "21e2f61bc55dd52372ec5fa88b00f209", "score": "0.51793003", "text": "void superVolar();", "title": "" }, { "docid": "3070a81ac4f3363533a887313980e6bf", "score": "0.51778066", "text": "@Override\r\n\tpublic boolean vivante() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "80a54da1f68f391fce0bc0a40fc1be46", "score": "0.5176521", "text": "public void raffle() {\n\t\tRandom r = new Random();\n\t\tthis.turno = r.nextInt(JUGADOR)+CPU;\n\t}", "title": "" }, { "docid": "dfa76466475eb5bb91c4ce45df45b7da", "score": "0.5176339", "text": "@Override // com.zhihu.android.sugaradapter.SugarHolder, com.zhihu.android.app.feed.p1083ui.holder.BaseFeedHolder, com.zhihu.android.app.feed.p1083ui.holder.BaseHolder\n /* renamed from: G_ */\n public void mo67118G_() {\n BlurCoverPlugin aVar;\n super.mo67118G_();\n VideoInlineVideoView videoInlineVideoView = this.f77783p;\n if (videoInlineVideoView != null) {\n videoInlineVideoView.mo113155g();\n }\n if (!f77780o && TemplateFeedNew4Holder.m62163C() && (aVar = this.f77789v) != null) {\n aVar.mo66274a();\n }\n }", "title": "" }, { "docid": "71af9c17179b5173c666d120a00ecced", "score": "0.5168751", "text": "public void despertar();", "title": "" }, { "docid": "7cdb20468bba4deba23fb39ed9dac7c8", "score": "0.5168601", "text": "public void frena() {\n\t\tthis.cambiaVelocidadActual(0);\n\t}", "title": "" }, { "docid": "8a4e7efa5f8648ddb906e49a2bc88785", "score": "0.5163939", "text": "public void anarcbisteSacrifier(Joueur j1, Partie partie) throws IOException {\r\n\t\tJoueur j2 = j1.ChoisirUnJoueur(partie);\r\n\t\tSystem.out.println(j1 + \"a sacrifie GuideSprituel Anarcbiste a\" + j2);\r\n\t\tViewJouer.LabelSystem.setTexte(j1 + \"a sacrifie GuideSprituel Anarcbiste a\" + j2);\r\n\t\tboolean containM = j2.getCarteDevinite().getDogmes().contains(\"Chaos\");\r\n\t\tGuideSpirituel g = j1.choisirGuideSpirituelDautreJoueur(j2);\r\n\t\tif (g == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tboolean containG = g.getDogmes().contains(\"Chaos\");\r\n\t\tif (containM || containG) {\r\n\t\t\tSystem.out.println(\"vous ne pouvez pas sacrifier catte carte.\");\r\n\t\t\tViewJouer.LabelSystem.setTexte(\"vous ne pouvez pas sacrifier catte carte.\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(j1.toString() + \"oblige\" + j2.toString() + \"a sacrifie sa carte GuideSpirituel\" + g.toString());\r\n\t\t\tViewJouer.LabelSystem.setTexte(j1.toString() + \"oblige\" + j2.toString() + \"a sacrifie sa carte GuideSpirituel\" + g.toString());\r\n\t\t\tj2.sacrifierGuideSpirituel(g, partie);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5e819f002de695b03c5c9c545fcc26f6", "score": "0.51607776", "text": "Conta() {}", "title": "" }, { "docid": "6e6512370dbb6f9cb6dcc13bd5aa3b2d", "score": "0.51605314", "text": "@Override\n\tvoid absone() {\n\t\t\n\t}", "title": "" }, { "docid": "48e2b3178b01a921154aa533c3675831", "score": "0.5156488", "text": "@Override\r\n\tpublic void dibuja( VentanaGrafica v ) {\r\n\t\tv.dibujaImagen( \"/tema3/img/asteroid.png\", x, y, 2*radio/500, rot, 1.0f ); // el gráfico tiene 500 píxels\r\n\t\tif (DIBUJA_ENVOLVENTE) v.dibujaCirculo( x, y, radio, 2f, Color.magenta ); // Pintado a título de referencia de prueba\r\n\t}", "title": "" }, { "docid": "64a8bba65060f726914bda625ec4f422", "score": "0.5155294", "text": "public void tavsiyeTedaviYontemi() {}", "title": "" }, { "docid": "05eb235ec611d4d9dc63529e8f894073", "score": "0.51500916", "text": "public void agit(){\n\t\tint x=getObjectif().getLargeur();\n\t\tint y=getObjectif().getHauteur();\n\t\t\n\t\tif(r.peutTirer()){ // Si le robot a assez de vie\n\t\t\tCellule objectif=r.getVue().p.getCellule(x, y);\n\t\t\tRobot thisR=r.getVue().p.getCellule(x, y).getContenu(); // robot (à \"null\" ou pas) de la future case\n\t\t\t\n\t\t\tif(r.getType().substring(0, 1).equalsIgnoreCase(\"T\") || r.getType().substring(0, 1).equalsIgnoreCase(\"C\")){ // Si le robot courant est un Tireur ou un char\n\t\t\t\tif(thisR!=null && objectif.estBase()==0 && thisR.getEquipe()==r.getEquipe()) // Si un robot tire sur un robot de son equipe\n\t\t\t\t\tSystem.out.println(\"Hey man, no friendly fire! ;)\");\n\t\t\t\t\n\t\t\t\telse if(thisR!=null && objectif.estBase()==0){ // Si on ne tire pas sur une base\n\t\t\t\t\tthisR.subitTir(); // le robot attaque perd des pvs\n\t\t\t\t\tSystem.out.println(\"Attaque effectuee!\");\n\t\t\t\t}\n\t\t\t\telse // Si on ne tire sur rien\n\t\t\t\t\tSystem.out.println(\"Impossible, vous ne tirez pas sur un robot!\");\n\t\t\t}\n\t\t\telse if(r.getType().substring(0, 1).equalsIgnoreCase(\"P\")){ // Si le robot courant est un Piegeur\n\t\t\t\tif(thisR==null && objectif.estBase()==0){ // Si la case est vide et que ce n'est pas une base\n\t\t\t\t\tobjectif.ajoute(r.getEquipe()); // Ajoute une mine\n\t\t\t\t\tSystem.out.println(\"Attaque effectuee!\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"Impossible de poser une mine, case non vide!\");\n\t\t\t}\n\t\t\tr.setEnergie(r.getEnergie()-r.getCoutAction()); // mise a jour de l'energie\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Impossible, vous n'avez pas assez de vie pour attaquer!\");\n\t}", "title": "" }, { "docid": "3dc4ac638f8192430158738f1ec19831", "score": "0.5149707", "text": "@Override\n public void lec() { //prawdziwa kaczka\n System.out.println(\"latam sobie\");\n }", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.5149494", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b56b7f9c0adce416973e2d3a6bd2b8c", "score": "0.51464194", "text": "void heissen() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8ec5d2e9717fd0767029acad77ea3e6b", "score": "0.5146169", "text": "@Test\n public void testAttaqueBasique_Dommages_Egal_Force() \n {\n System.out.println(\"AttaqueBasique\");\n Guerrier joueurAtk = new Guerrier(10, 50, 10, 0, 0, \"joueur1\");\n Guerrier joueurDef = new Guerrier(10, 50, 10, 0, 0, \"joueur1\");\n joueurAtk.AttaqueBasique(joueurDef);\n assertTrue(joueurDef.getVie() == 40);\n \n }", "title": "" }, { "docid": "91bd67fab28a493021bd6f1f7b3e5e0a", "score": "0.5145832", "text": "@Override\n public void dirve() {\n\n }", "title": "" }, { "docid": "7370c669ee7c60b823fd214c25a1ddb3", "score": "0.51372385", "text": "public int subitFrappe(int coup){\n\t\taddVie(-coup);\n\t\tint blessure=(int)(getVie() * getPouvoir());\n\t\t\treturn blessure;\n }", "title": "" }, { "docid": "1f125c10e0162bfcba0df3f4a9e7c50a", "score": "0.51359177", "text": "public void pour(int bevID, float) {\n }", "title": "" }, { "docid": "84e689da281c4e439372ad200feeb98b", "score": "0.5131951", "text": "private void quoifaire() {\n\t\n\t\t\n\t}", "title": "" }, { "docid": "7e760ad826d6843bbb8614fb8fe4b2fe", "score": "0.51271796", "text": "public void llena() {contenido = capacidad;}", "title": "" }, { "docid": "762aafcbc28585272ea77c51756ea7d3", "score": "0.51253307", "text": "@Override\n\tpublic void Metabolismo() {\n\t\tSystem.out.println(\"Este Vertebrado puede digerir su comida\");\n\t\t\n\t}", "title": "" }, { "docid": "aece45c59e9726fdaba2748c64b36d43", "score": "0.5123829", "text": "@Test\n\tpublic void genererCaractere_nominal() {\n\t\tboolean special = true;\n\t\t// test 'statistique'\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tif (!echantillon.contains(Caractere.genererCaractere(echantillon)))\n\t\t\t\tspecial = false;\n\t\t}\n\t\tassertTrue(special);\n\t}", "title": "" }, { "docid": "0df8b1dd520b4928dc3726acd7dfbb9a", "score": "0.5121181", "text": "public void despedida(){\n\t\tSystem.out.println(\"Gracias por usar este programa, adios\");\n\t}", "title": "" } ]
9df72fef6196316b08cd813ea8b1074b
Integer oldValue = updated.get(name);
[ { "docid": "b974bb410ed0a4d02bc6211b0b26ca7c", "score": "0.0", "text": "@Override\n public void updateFile(String name, Date modificationDate, int offset, byte[] contents, int size) {\n if(!updated.containsKey(name)){\n created.add(name);\n updated.put(name, size);\n monitoredFiles.add(new FileRecord(name, modificationDate));\n }\n else\n updated.put(name, updated.get(name).intValue() + contents.length);\n System.out.printf(\"file %s was updated\\n\", name);\n }", "title": "" } ]
[ { "docid": "aa0073448c02868a1573e3fa663c61bd", "score": "0.7075027", "text": "long getUpdated(int index);", "title": "" }, { "docid": "65b6da8c634427f53c5fe821beb577ad", "score": "0.6270668", "text": "long getUpdated();", "title": "" }, { "docid": "77d976300df894036b684fe8b808d146", "score": "0.6252715", "text": "public long getUpdated(int index) {\n return updated_.get(index);\n }", "title": "" }, { "docid": "fae3d403811d1139075da00a6ebf740a", "score": "0.6123338", "text": "public int stored() {\n return changed;\n }", "title": "" }, { "docid": "20f0b91437179e0c8962d289a648bb35", "score": "0.6004929", "text": "public long getUpdated(int index) {\n return updated_.get(index);\n }", "title": "" }, { "docid": "4886e770f8af2096c30e74e5038357aa", "score": "0.5906354", "text": "public int getUpdated() {\n return updated;\n }", "title": "" }, { "docid": "2ef36821e4aacdb04e285f705b1e0350", "score": "0.57935536", "text": "public int getUpdateIndex( );", "title": "" }, { "docid": "83aec39d8dcb2aac78cc773f79fc40f1", "score": "0.57709974", "text": "public int getWhatChanged() {\n return whatChanged;\n }", "title": "" }, { "docid": "fa5a953167341d469cae4fa3ef832ca6", "score": "0.5751825", "text": "@Override\n\tpublic int updateLent(Map<String, Object> lent) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "26faf97540157acdd312774742a8ea8f", "score": "0.5721965", "text": "void updated();", "title": "" }, { "docid": "ded0c076072f107e529d4b1f14e90bb4", "score": "0.56977427", "text": "void valueChanged(IntegerStorageChange istorage);", "title": "" }, { "docid": "8cd11fa5465f411a8fdbc6c38224d01a", "score": "0.569125", "text": "public int update() {\n\t\treturn update((Object[]) null);\n\t}", "title": "" }, { "docid": "9aa31fd3c346cd4ecc712f7649b6ae39", "score": "0.56832695", "text": "E update(E e);", "title": "" }, { "docid": "9356ceb266d48e4edbe7a5a009db855b", "score": "0.56747395", "text": "@Override\r\n\tprotected List<KeyValuePair<Integer, Integer>> changedNum() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "fbf6ec6c52eea5cbab21580a04e9666e", "score": "0.56218433", "text": "@Override\n\tpublic void update(String k, Value v)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "fbf6ec6c52eea5cbab21580a04e9666e", "score": "0.56218433", "text": "@Override\n\tpublic void update(String k, Value v)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "96867a0861ee7d0f1656e1658f931ecf", "score": "0.5575312", "text": "@Override\n\tpublic void update(int val) {\n\t}", "title": "" }, { "docid": "c6454d5d49c8e0ca646c311216bc744f", "score": "0.5571233", "text": "public int giveChange()\r\n\t { \r\n\t int change = counter - saved;\r\n\t return change;\r\n\t }", "title": "" }, { "docid": "346b165add96f281440c96ec02115dda", "score": "0.5561738", "text": "int get(int idx);", "title": "" }, { "docid": "8df7492fe92e1d7ff5983870e8bf0182", "score": "0.5509503", "text": "public int getValue(String name) {\r\n\t\treturn this.cvMap.containsKey(name) ? this.cvMap.get(name) : -1;\r\n\t}", "title": "" }, { "docid": "224a24d999032cc0e1f968144fd31289", "score": "0.55040574", "text": "void updateKey(int position, int value) {\n }", "title": "" }, { "docid": "8fc2756d948c8cc005a1b228279e31d0", "score": "0.54991317", "text": "public void update(Object newValue, Object oldValue);", "title": "" }, { "docid": "6331c6377d2b7aa51f958e373b0df65f", "score": "0.5492351", "text": "public Object getUpdates();", "title": "" }, { "docid": "46539c53d41b00c66bc90085c4cb423d", "score": "0.54921174", "text": "@Override\n boolean putIfEqual(long index, long oldValue, long newValue);", "title": "" }, { "docid": "a4247e5f7134962fd73e4242f2fa0092", "score": "0.5486906", "text": "public java.lang.String getUpdated();", "title": "" }, { "docid": "6bf9df756a2005d104d11828663a48aa", "score": "0.5478527", "text": "int getUpdatedCount();", "title": "" }, { "docid": "203eff017a720b998de176fd881d3646", "score": "0.54766023", "text": "private static int get(String name) {\n\t\treturn 0;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2a0b083081864da8840320afa50c9145", "score": "0.54733276", "text": "int getValue(Key key);", "title": "" }, { "docid": "3607956f3c41158b8526ae11ccbd9062", "score": "0.54683256", "text": "@Override\n\tpublic int update(Items t) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "14d7158e5a5cb661c4d2ba6b94b3ba7a", "score": "0.54272246", "text": "void update(T newValue);", "title": "" }, { "docid": "c1b04bf330e59a36c3513a12558ac373", "score": "0.5426142", "text": "public String getUpdatedInfo(){\n return localUpdatedInfo;\n }", "title": "" }, { "docid": "c1b04bf330e59a36c3513a12558ac373", "score": "0.5426142", "text": "public String getUpdatedInfo(){\n return localUpdatedInfo;\n }", "title": "" }, { "docid": "66b3d0dd00cbc3faae87a285136ef991", "score": "0.5415013", "text": "public int getModified() {\n return modified;\n }", "title": "" }, { "docid": "72cfe77a721f6538b64d5b1fd1d47e27", "score": "0.5399715", "text": "public TimestampedItem<Class<?>> getReloadable(String name){\n\t\tTimestampedItem<Class<?>> ti = updatedMap.get(name);\n\t\tif (ti != null){\n\t\t\tti.setUpdated(true);\n\t\t\treturn ti;\n\t\t}else{\n\t\t\tti = itemMap.get(name);\n\t\t\tif (ti!=null){\n\t\t\t\tti.setUpdated(false);\n\t\t\t\treturn ti;\n\t\t\t}else{\n\t\t\t\tlogger.error(\"class not found in reloading resources:\" + name);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f93c3025e61f737a4424c6cf8310c3c6", "score": "0.53991544", "text": "public void storeUpdate();", "title": "" }, { "docid": "9e253e225b48bac75c704e57e45679c3", "score": "0.53926545", "text": "@Override\n\tpublic Object getOldValue() {\n\t\treturn oldvalue;\n\t}", "title": "" }, { "docid": "ac6a33645e8b88823707f8aa87648f18", "score": "0.5391188", "text": "int getOldState();", "title": "" }, { "docid": "d2ad482be5bcdcab2f7c43fc5342d5ff", "score": "0.5387397", "text": "@Override\n public int getValue() {\n int ret = lightValues.remove();\n lightValues.insert(getActualValue());\n return ret;\n// return getActualValue();\n }", "title": "" }, { "docid": "e428c260f3201591470c9c1da71c12c5", "score": "0.53482664", "text": "@Override\r\n\tpublic void updateState(String key, Object value) {\n\r\n\t}", "title": "" }, { "docid": "d392aed14206d43372ef4a3ac1492243", "score": "0.53439504", "text": "@Override\r\n\tpublic int update(Special special) {\n\t\treturn specialMapper.update(special);\r\n\t}", "title": "" }, { "docid": "dc049d8fd57a7e23a02d1e51f70cdf8f", "score": "0.5342488", "text": "@Override\n\tpublic int update(DictInfo dictInfo) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "4f3ffcc30bef1c436b0605eb0943744a", "score": "0.5342279", "text": "public int itemsUpdated() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "c8b02f60e0b3e842e069cb7ff304bfe3", "score": "0.5341562", "text": "@Override\n\tpublic int update(Compte compte) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d440705890472be0f785eb712fc23af9", "score": "0.53404975", "text": "private static void put(String name, int addOne) {\n\t\t\r\n\t}", "title": "" }, { "docid": "4613d2d0e45891c5b7cbd32b63d2c143", "score": "0.53065467", "text": "int get(int index);", "title": "" }, { "docid": "4613d2d0e45891c5b7cbd32b63d2c143", "score": "0.53065467", "text": "int get(int index);", "title": "" }, { "docid": "4613d2d0e45891c5b7cbd32b63d2c143", "score": "0.53065467", "text": "int get(int index);", "title": "" }, { "docid": "e4c3cff7b970e6e341088410061315d8", "score": "0.5300245", "text": "int getPutOrCallValue();", "title": "" }, { "docid": "3014963faeae754fe288f6bd999475ca", "score": "0.5293708", "text": "abstract Integer get(Integer key);", "title": "" }, { "docid": "17d26156e42cf5670a5aaf78c9493ff9", "score": "0.527234", "text": "@Override\r\n\tpublic int update(Map record) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "b4addfbda3935d3a8561653f0a065e3a", "score": "0.52660024", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return oldName;\n case 1: return newName;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "d060ef6c1161129e1a35cb930c1a7fb0", "score": "0.5260579", "text": "public interface Observer {\n \n public void update(HashMap<String, Integer> values);\n \n}", "title": "" }, { "docid": "a6decbd00227f0a0785084c9fa497dc2", "score": "0.5259584", "text": "public int replace( Object oldValue, Object newValue )\n {\n return replace( 0, size() - 1, oldValue, newValue );\n }", "title": "" }, { "docid": "7f4bc757cf8021380b52d25c5eff9e0a", "score": "0.52432936", "text": "public Timestamp getUpdated();", "title": "" }, { "docid": "7f4bc757cf8021380b52d25c5eff9e0a", "score": "0.52432936", "text": "public Timestamp getUpdated();", "title": "" }, { "docid": "7f4bc757cf8021380b52d25c5eff9e0a", "score": "0.52432936", "text": "public Timestamp getUpdated();", "title": "" }, { "docid": "7f4bc757cf8021380b52d25c5eff9e0a", "score": "0.52432936", "text": "public Timestamp getUpdated();", "title": "" }, { "docid": "487ea3274763a389e429f48fa12be1a9", "score": "0.5235544", "text": "public void updateState (String key, Object value)\n {\n\n\n }", "title": "" }, { "docid": "14049b7fc080649eb8077f48924e3a51", "score": "0.52350694", "text": "public int updateData() {\n\t\tint ret = 0;\n\t\treturn ret;\t\t\n\t}", "title": "" }, { "docid": "d6d1ad5f94e35dcf0f88bc83a15ba96b", "score": "0.5228733", "text": "int incrementEntry(int position, int delta);", "title": "" }, { "docid": "360682483e71d992589b719c4cf07041", "score": "0.5226622", "text": "int get(int i);", "title": "" }, { "docid": "c8d9b3e111b2dd6723fdf9e189eda0f6", "score": "0.5223656", "text": "@Override\n\tpublic void update(YORUM varlik) {\n\n\t}", "title": "" }, { "docid": "075dac7f5811eb2a566c2dbdb833978b", "score": "0.5221865", "text": "abstract long computeNewValue(long oldValue, State state);", "title": "" }, { "docid": "6437a81f63cc11142154ffff02a1b251", "score": "0.52164215", "text": "@Override\n\tpublic int get(int key) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "f6966aef1fecaabffb1c1bc965d9fbcc", "score": "0.5206409", "text": "public T update(T t);", "title": "" }, { "docid": "65713559670103c6836288c85e1880cd", "score": "0.52037776", "text": "Object update();", "title": "" }, { "docid": "90cd18d03ae3837970c93b4369df43a8", "score": "0.5191927", "text": "private void updateValues()\n {\n }", "title": "" }, { "docid": "4da0b59b33d475986458e05bb42a422f", "score": "0.5183659", "text": "public boolean getOld() {\n return old;\n }", "title": "" }, { "docid": "438e049f4c11073070bd1973e45f3da9", "score": "0.5180801", "text": "@Override\n public int getInteger(String name) {\n if (get(name) == null) {\n return -1;\n }\n\n return super.getInteger(name);\n }", "title": "" }, { "docid": "ee54e74a07d10f15080f8fff01a2b464", "score": "0.51615614", "text": "int getOldPrim()\n {\n return oldPrim;\n }", "title": "" }, { "docid": "e69e3e0650004161469a87ccdd1829d5", "score": "0.51442367", "text": "java.util.List<java.lang.Long> getUpdatedList();", "title": "" }, { "docid": "f840e8429395b6b77cd5865e1050c9a4", "score": "0.5139111", "text": "public int getItemValue(String name) {\n return itemRepository.getValue(name);\n }", "title": "" }, { "docid": "f4b8ae22189dd6589812ff01a765d9cd", "score": "0.5137095", "text": "@Override\n\tpublic void update(String no) {\n\t\t\n\t}", "title": "" }, { "docid": "f6720e47cc6c86037a196eaa4881d3a6", "score": "0.5127099", "text": "public void parameterUpdate(String paramname, Object value) {\n // Code to update local variables \n }", "title": "" }, { "docid": "125b9db5d7abad9005e3a6812cf0aa81", "score": "0.5120834", "text": "@Override\n public void update(Value value) {\n\n }", "title": "" }, { "docid": "7934fcceeb3cb4b429ea86a90c0bf213", "score": "0.5101568", "text": "public int update(Emp p) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "3b07336e544fdecbcf1e7293330be2cc", "score": "0.51005644", "text": "Object get(Object key);", "title": "" }, { "docid": "3b07336e544fdecbcf1e7293330be2cc", "score": "0.51005644", "text": "Object get(Object key);", "title": "" }, { "docid": "6a8e5e1cdea5700cd28e8fe8b291fe7a", "score": "0.5100455", "text": "@Override\n\tpublic void update(Map<?, ?> param) {\n\t\t\n\t}", "title": "" }, { "docid": "0e7a4aa6f74d86bcbdc40cd6da506ba1", "score": "0.5097258", "text": "public int getInteger(String name);", "title": "" }, { "docid": "d075c5857d789f510777f46b6d1daafa", "score": "0.509066", "text": "public long getUpdated() {\n return updated;\n }", "title": "" }, { "docid": "27bda0ef9960d786c96db5c992bf0a1c", "score": "0.50819415", "text": "int getKeyingValue();", "title": "" }, { "docid": "8aa40b1b36d6c2b8d888be5e0d663848", "score": "0.50767213", "text": "public void testUpdate() {\n\t\tSwagItem orig = Fixture.createSwagItem();\n\t\titemCacheManager.insert(orig);\n\n\t\torig.setName(\"new name\");\n\t\titemCacheManager.update(orig);\n\n\t\tSwagItem retrieved = itemCacheManager.get(orig.getKey());\n\t\tassertEquals(orig.getName(), retrieved.getName());\n\t}", "title": "" }, { "docid": "aa5cfc8cc0ba505de6516db0a40a6fea", "score": "0.5064756", "text": "public boolean setValue(String name, int newValue) {\r\n\t\tif (this.cvMap.containsKey(name)) {\r\n\t\t\tthis.cvMap.remove(name);\r\n\t\t\tthis.cvMap.put(name, newValue);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "title": "" }, { "docid": "02ccbc5703700590531d7c0d158d035f", "score": "0.50627357", "text": "public boolean getIsUpdated(){\n return localIsUpdated;\n }", "title": "" }, { "docid": "5ce91216be3f65eb000f31f1d5fc2852", "score": "0.50623536", "text": "@Override\n\tpublic int update(Prescription parameter) {\n\t\treturn mapper.update(parameter);\n\t}", "title": "" }, { "docid": "c87dbc1669a0cf43c7ee10577ae76e75", "score": "0.5055846", "text": "public Integer isKeyModified(String key)\n\t{\n\t\tif((( this.keyModified.containsKey(key))))\n\t\t{\n\t\t\treturn this.keyModified.get(key);\n\n\t\t}\n\t\treturn null;\n\n\t}", "title": "" }, { "docid": "7698c84bc6f60da08c6c661905a35c9b", "score": "0.50524384", "text": "Object getOriginalValue();", "title": "" }, { "docid": "5b4358aa7dcf1604aae9065e64f7b652", "score": "0.50509924", "text": "@Override\n\tInteger get(Integer key) {\n\t\tInteger idx = this.search(key);\n if (key.equals(keys[idx])) {\n\t\t\treturn values[idx];\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1c238ee9aab5243bc0db6531c8859291", "score": "0.50491863", "text": "void changed();", "title": "" }, { "docid": "651a8a6cec9286a9f0db0fb27c1b55e3", "score": "0.5047838", "text": "void update(Employee employee);", "title": "" }, { "docid": "cbcc6e4ae7958777efcddc04b37e6ac4", "score": "0.5045618", "text": "public interface Updatable {\n void update(long delta);\n}", "title": "" }, { "docid": "053a39bbace0c5005594d16cba92f5dc", "score": "0.50405985", "text": "@Override\n\tpublic void put(int key, int value) {\n\t\t\n\t}", "title": "" }, { "docid": "c6abb783fdc782085a276b2e17b27c9d", "score": "0.50392437", "text": "public int update(int p1) {\n\t\treturn update(new Object[] { new Integer(p1)});\n\t}", "title": "" }, { "docid": "f380bfc4f7e7979b054c9c5695057c10", "score": "0.50387573", "text": "private void doSearchForModified() {\n\t\t\t\t\n\t}", "title": "" }, { "docid": "3f8b7c7e39c36dc303fc40c785d01536", "score": "0.50374055", "text": "void valueChanged(T newValue);", "title": "" }, { "docid": "19d1e98f90d96466f4f32af903b366bb", "score": "0.50306845", "text": "int getUpdateTypeValue();", "title": "" }, { "docid": "19d1e98f90d96466f4f32af903b366bb", "score": "0.50306845", "text": "int getUpdateTypeValue();", "title": "" }, { "docid": "19d1e98f90d96466f4f32af903b366bb", "score": "0.50306845", "text": "int getUpdateTypeValue();", "title": "" }, { "docid": "2eefeb2b7d65920328ea6aeb46ad6afe", "score": "0.5029461", "text": "long lastModification();", "title": "" }, { "docid": "8cbb9598b3a399feefbf5bce4d4cb702", "score": "0.5026367", "text": "private VersionedValue mockCompareAndPut (String key, VersionedValue v) {\n\t\tVersionedValue vv = map.get (key);\n\n\t\t// If no existing value or incoming value version >= existing version\n\t\t// then store (success)\n\t\t\n\t\tif (vv == null ||\n\t\t\tv.getVersion ().compare (vv.getVersion ()) != VersionedValue.Version.Occurred.BEFORE)\n\t\t{\n\t\t\t// update version and store\n\t\t\tVersionedValue vv2 = new MockVersionedValue (v.getValue (), versionCounter++);\n\t\t\tmap.put (key, vv2);\n\t\t\treturn vv2;\n\t\t}\n\t\t\n\t\t// else fail\n\t\t\n\t\treturn null;\n\t}", "title": "" } ]
ec126c3999e289194c7b067f12993ac8
Find the _Fields constant that matches fieldId, or null if its not found.
[ { "docid": "a68b46cd32f2b272f10f3a6cc522ba8a", "score": "0.0", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CODE\n return CODE;\n default:\n return null;\n }\n }", "title": "" } ]
[ { "docid": "a8a287b96be85cc145e10695c9ed44ab", "score": "0.8014302", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_LOOKUP_VAL\n return FILE_LOOKUP_VAL;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cf8eec83d3b8ac58e5d3157ccaed0307", "score": "0.7857924", "text": "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "cf8eec83d3b8ac58e5d3157ccaed0307", "score": "0.7857924", "text": "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "5f27b61ca30ce306317efecdd597feda", "score": "0.77882034", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_TYPE\n return FILE_TYPE;\n case 2: // PATH\n return PATH;\n case 3: // FILE_SIZE\n return FILE_SIZE;\n case 4: // MASK\n return MASK;\n case 5: // INDEX\n return INDEX;\n case 6: // SPEC_ID\n return SPEC_ID;\n case 7: // PARTITION\n return PARTITION;\n case 8: // RECORD_COUNT\n return RECORD_COUNT;\n case 9: // UPPER_BOUNDS\n return UPPER_BOUNDS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "f2170db66a54f55f1885eef1f36c7cff", "score": "0.77759206", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CHANNEL_INFOS\n return CHANNEL_INFOS;\n case 2: // REVISION\n return REVISION;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "f3f68a0261f4f80cef301cecaa8e6f4f", "score": "0.77406484", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ROOT_ID\n return ROOT_ID;\n case 2: // ITEM_KEY\n return ITEM_KEY;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "f3f68a0261f4f80cef301cecaa8e6f4f", "score": "0.77406484", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ROOT_ID\n return ROOT_ID;\n case 2: // ITEM_KEY\n return ITEM_KEY;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "e1e0506e93a7704165d0b3b43c8af21f", "score": "0.77053106", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ROOT_ID\n return ROOT_ID;\n case 2: // SET_DATA\n return SET_DATA;\n case 3: // GET_ADDED_ITEMS\n return GET_ADDED_ITEMS;\n case 4: // GET_REPLACED_ITEMS\n return GET_REPLACED_ITEMS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "3e76499991df677dbbf4bf9e9d53640f", "score": "0.7702754", "text": "public static _Fields findByThriftId(int fieldId) {\n switch (fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ebc5428f3f8ed44ed7ebce695644408", "score": "0.76874244", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // SLED_COMMODITY_ID_LIST\n return SLED_COMMODITY_ID_LIST;\n case 2: // EXCHANGE\n return EXCHANGE;\n case 3: // COMMODITY_TYPE\n return COMMODITY_TYPE;\n case 4: // COMMODITY_CODE\n return COMMODITY_CODE;\n case 5: // BROKER_ENTRY_ID\n return BROKER_ENTRY_ID;\n case 6: // MAP_IDS\n return MAP_IDS;\n case 7: // TECH_PLATFORM\n return TECH_PLATFORM;\n case 8: // NEED_TOTAL_COUNT\n return NEED_TOTAL_COUNT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "e2a7f0e326c00b12e24a543a5f131c3a", "score": "0.7686386", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "e2a7f0e326c00b12e24a543a5f131c3a", "score": "0.7686386", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7e835e5c67aac3a7052309c50df3d5d9", "score": "0.76771873", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "42b1b959fc34f994d12d50b0748e3597", "score": "0.76759136", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ROOT_ID\n return ROOT_ID;\n case 2: // ITEM\n return ITEM;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7343073c171b8c50619dd53e275ff39f", "score": "0.7673438", "text": "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "7343073c171b8c50619dd53e275ff39f", "score": "0.7673438", "text": "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "7343073c171b8c50619dd53e275ff39f", "score": "0.7673438", "text": "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "7343073c171b8c50619dd53e275ff39f", "score": "0.7673438", "text": "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "f2cf315b1b497a6c83e5f2e34f5bb862", "score": "0.76713353", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // KEY\n return KEY;\n case 2: // ITEM_KEY\n return ITEM_KEY;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "97ac00e510f98f57b937448bb8ce8011", "score": "0.7667075", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // INVITEE_MIDS\n return INVITEE_MIDS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "75e448a82da2c95f06b208c8ed48c174", "score": "0.76603454", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // SUBSCRIPTION\n return SUBSCRIPTION;\n case 2: // EVENTS\n return EVENTS;\n case 3: // SYNC_TOKEN\n return SYNC_TOKEN;\n case 4: // CONTINUATION_TOKEN\n return CONTINUATION_TOKEN;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "9ef675cd98cd895dfec0f95fe1abf896", "score": "0.7649929", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PLAY_IDS\n return PLAY_IDS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "c6ab823ec3d66187f194fd3c72bd3c27", "score": "0.7635789", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CACHED_PATH\n return CACHED_PATH;\n case 2: // TYPE\n return TYPE;\n case 3: // DATA\n return DATA;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5734e9e0acd94afa1ca7fe406eb9d207", "score": "0.7631704", "text": "@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByThriftId(int fieldId) {\n\t\t\tswitch (fieldId) {\n\t\t\tcase 1: // ACCESSION\n\t\t\t\treturn ACCESSION;\n\t\t\tcase 2: // CATEGORY\n\t\t\t\treturn CATEGORY;\n\t\t\tcase 3: // CURRENCY\n\t\t\t\treturn CURRENCY;\n\t\t\tcase 4: // IS_ACTIVE\n\t\t\t\treturn IS_ACTIVE;\n\t\t\tcase 5: // CREATE_TIME\n\t\t\t\treturn CREATE_TIME;\n\t\t\tcase 6: // UPDATE_TIME\n\t\t\t\treturn UPDATE_TIME;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "fc79804f86be45ad06699f4200a14fbd", "score": "0.7627069", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 2: // LOCAL_REV\n return LOCAL_REV;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "fc79804f86be45ad06699f4200a14fbd", "score": "0.7627069", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 2: // LOCAL_REV\n return LOCAL_REV;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "de1165308463d177965b2eba3a195da1", "score": "0.76124144", "text": "@org.apache.storm.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_NAME\n return USER_NAME;\n case 2: // TOPOLOGY_ID\n return TOPOLOGY_ID;\n case 3: // SECRET_VERSION\n return SECRET_VERSION;\n case 4: // EXPIRATION_TIME_MILLIS\n return EXPIRATION_TIME_MILLIS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "adf3ced3eef8e54120e8f5d4a3beb964", "score": "0.7604978", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // POI_ARRAY_LIST\n return POI_ARRAY_LIST;\n case 2: // TOTAL_NUM_OF_POI\n return TOTAL_NUM_OF_POI;\n case 3: // STRATEGY\n return STRATEGY;\n case 4: // STATUS\n return STATUS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "70c06655ef12cf85f5ffdfde77bd7ec2", "score": "0.7598238", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LINK_IDS\n return LINK_IDS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "726193f16a3a3bc3bdfe16a3de3e9855", "score": "0.75956017", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // SITE_NAME\n return SITE_NAME;\n case 3: // PID_NAME\n return PID_NAME;\n case 4: // PID_SIZE\n return PID_SIZE;\n case 5: // DOMAIN\n return DOMAIN;\n case 6: // SITE_CATEGORY\n return SITE_CATEGORY;\n case 7: // URL\n return URL;\n case 8: // PID_TYPE\n return PID_TYPE;\n case 9: // PID_LOCATION\n return PID_LOCATION;\n case 10: // REFERENCE_PV\n return REFERENCE_PV;\n case 11: // LINK_RELATION\n return LINK_RELATION;\n case 12: // MEDIA_TYPE\n return MEDIA_TYPE;\n case 13: // STATUS\n return STATUS;\n case 14: // LAST_CHANGED\n return LAST_CHANGED;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "c443888945fadec8a4a2e31e008bb717", "score": "0.75904864", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ROOT_ID\n return ROOT_ID;\n case 2: // FROM_KEY\n return FROM_KEY;\n case 3: // COUNT\n return COUNT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "c443888945fadec8a4a2e31e008bb717", "score": "0.75904864", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ROOT_ID\n return ROOT_ID;\n case 2: // FROM_KEY\n return FROM_KEY;\n case 3: // COUNT\n return COUNT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cf49a36951ac372be6857a117bc3c469", "score": "0.7588911", "text": "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // MISSION_ID\r\n return MISSION_ID;\r\n case 2: // USER_APP_ID\r\n return USER_APP_ID;\r\n case 3: // PLOTS_STATUS\r\n return PLOTS_STATUS;\r\n case 4: // CHECK_START_TIME\r\n return CHECK_START_TIME;\r\n case 5: // CHECK_STOP_TIME\r\n return CHECK_STOP_TIME;\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "85104e413d79da2b109cb067e65f7705", "score": "0.7579204", "text": "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // MMS_SIGN\r\n return MMS_SIGN;\r\n case 2: // CHID\r\n return CHID;\r\n case 3: // APPID\r\n return APPID;\r\n case 4: // REPORTS\r\n return REPORTS;\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "24555e30541f179e1e31cf68b50212e3", "score": "0.75777614", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 2: // REQUEST\n return REQUEST;\n case 3: // LOCALE\n return LOCALE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "bf19810918b8e7a5590ee993d18f1ddc", "score": "0.75754416", "text": "@org.apache.storm.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // TIME_SECS\n return TIME_SECS;\n case 2: // HOSTNAME\n return HOSTNAME;\n case 3: // ASSIGNMENT_ID\n return ASSIGNMENT_ID;\n case 4: // USED_PORTS\n return USED_PORTS;\n case 5: // META\n return META;\n case 6: // SCHEDULER_META\n return SCHEDULER_META;\n case 7: // UPTIME_SECS\n return UPTIME_SECS;\n case 8: // VERSION\n return VERSION;\n case 9: // RESOURCES_MAP\n return RESOURCES_MAP;\n case 10: // SERVER_PORT\n return SERVER_PORT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "0211f000d20ad08eea0e0a240104d261", "score": "0.75676966", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ITEM_INCREMENT\n return ITEM_INCREMENT;\n case 2: // TAG_INCREMENTS\n return TAG_INCREMENTS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "43c610fa2db4dd07722faefb62b30ea2", "score": "0.7555582", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // TIMESTAMP\n return TIMESTAMP;\n case 2: // VERSION\n return VERSION;\n case 3: // LANG\n return LANG;\n case 4: // EXTRA_LIST\n return EXTRA_LIST;\n case 5: // EXTRA_MAP\n return EXTRA_MAP;\n case 6: // INTERFLOW\n return INTERFLOW;\n case 7: // TLS\n return TLS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "6df04144c2fd1da28d0d830ac8888add", "score": "0.75551516", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ROOT_ID\n return ROOT_ID;\n case 2: // FROM_IDX\n return FROM_IDX;\n case 3: // COUNT\n return COUNT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "6df04144c2fd1da28d0d830ac8888add", "score": "0.75551516", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ROOT_ID\n return ROOT_ID;\n case 2: // FROM_IDX\n return FROM_IDX;\n case 3: // COUNT\n return COUNT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "62e431516ef8744ec7038423e5283efb", "score": "0.7551221", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // JOB_SUBMISSION_INTERFACE_ID\n return JOB_SUBMISSION_INTERFACE_ID;\n case 2: // SECURITY_PROTOCOL\n return SECURITY_PROTOCOL;\n case 3: // GLOBUS_GATE_KEEPER_END_POINT\n return GLOBUS_GATE_KEEPER_END_POINT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "6216665f56118dcdd96f20d1f6103632", "score": "0.7533393", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // KEY\n return KEY;\n case 2: // VERSIONED\n return VERSIONED;\n case 3: // ORIGIN\n return ORIGIN;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "6bf66bb8b33613e9bd2c1589f29f4cd4", "score": "0.7530248", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // SOURCE\n return SOURCE;\n case 2: // LINK_ID\n return LINK_ID;\n case 3: // POS\n return POS;\n case 4: // COUNT\n return COUNT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "54ea480485852752b8cf3627967333f5", "score": "0.7529721", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // VALID\n return VALID;\n case 2: // ORDER\n return ORDER;\n case 3: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "8a5ec0c61bd83bf9770db98685b4a4d7", "score": "0.7526086", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_SPLIT\n return FILE_SPLIT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5e1b6bc1bffff01ad7534e4e05cb226d", "score": "0.7525515", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PLATFORM_ARGS\n return PLATFORM_ARGS;\n case 2: // RESOURCE_TAG\n return RESOURCE_TAG;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "15f1c4f13924a3990f9901d244b0871b", "score": "0.75224805", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NAME\n return NAME;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "a5799ee69c578065dff04b67d058ddb9", "score": "0.75209236", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // IP\n return IP;\n case 3: // VERSION\n return VERSION;\n case 4: // APPS\n return APPS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "a17e339a6ff42efd568778b24fc63fe9", "score": "0.75192016", "text": "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // REZERVARI\r\n return REZERVARI;\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "1497f03673657bc4165e2c090d26e35d", "score": "0.7512642", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // FILE\n return FILE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "693a26d94cf1970c625734d5f2e5aa03", "score": "0.75066626", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // KEY\n return KEY;\n case 2: // VERSIONED\n return VERSIONED;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ad4292f7fec2a9fc5a3c0cea69af6fdf", "score": "0.7504377", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // POI_ID\n return POI_ID;\n case 2: // DISTANCE_TO_POI\n return DISTANCE_TO_POI;\n case 3: // DISTANCE_TO_USER\n return DISTANCE_TO_USER;\n case 4: // EXTRA_MAP\n return EXTRA_MAP;\n case 5: // STID\n return STID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "922893796d03d27f4953b4b8584082a8", "score": "0.7503478", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // MEDIA_ID\n return MEDIA_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "922893796d03d27f4953b4b8584082a8", "score": "0.7503478", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // MEDIA_ID\n return MEDIA_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "e8824b96e6d5eecbe54efcdee194abfe", "score": "0.75031656", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CATE_ID\n return CATE_ID;\n case 2: // LINK_ID\n return LINK_ID;\n case 3: // POS\n return POS;\n case 4: // COUNT\n return COUNT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "fa07b6517d29f19b3f0253aa67b8e04d", "score": "0.7502239", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // APP_LOG_ENABLED\n return APP_LOG_ENABLED;\n case 2: // APP_LOG_LEVEL\n return APP_LOG_LEVEL;\n case 3: // TRACE_ENABLED\n return TRACE_ENABLED;\n case 4: // TRACE_LOG_LEVEL\n return TRACE_LOG_LEVEL;\n case 5: // FLUSH_PERIOD\n return FLUSH_PERIOD;\n case 6: // METRIC_LOG_ENABLED\n return METRIC_LOG_ENABLED;\n case 7: // URL_LOG_SAMPLE_RATE\n return URL_LOG_SAMPLE_RATE;\n case 8: // MAX_MESSAGE_SIZE\n return MAX_MESSAGE_SIZE;\n case 9: // EVENT_ENABLED\n return EVENT_ENABLED;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ff9365dc9967d59238777b70507383fe", "score": "0.7496977", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // MAX_STAY_ITEM_LIST\n return MAX_STAY_ITEM_LIST;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "236e5cb49d9eb7a07241ced4ca807a57", "score": "0.74944407", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DEVICE_ID\n return DEVICE_ID;\n case 2: // TASK_TYPE\n return TASK_TYPE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "236e5cb49d9eb7a07241ced4ca807a57", "score": "0.74944407", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DEVICE_ID\n return DEVICE_ID;\n case 2: // TASK_TYPE\n return TASK_TYPE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "1cc0686dddc590b1324cacbeaf4f029c", "score": "0.7489679", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // INTERMEDIATE_FILES\n return INTERMEDIATE_FILES;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4ecb51019a5b1412522fea47bb8fe365", "score": "0.7488408", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DEVICE_ID\n return DEVICE_ID;\n case 2: // DEVICE_KEY\n return DEVICE_KEY;\n case 3: // SUPPORTED_TASK_TYPES\n return SUPPORTED_TASK_TYPES;\n case 4: // DEVICE_INFO\n return DEVICE_INFO;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "0b54c9ede735fa4ad01500aaab14a477", "score": "0.74871206", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ORDER_ID\n return ORDER_ID;\n case 2: // APP_STORE_CODE\n return APP_STORE_CODE;\n case 3: // RECEIPT\n return RECEIPT;\n case 4: // SIGNATURE\n return SIGNATURE;\n case 5: // SELLER\n return SELLER;\n case 6: // REQUEST_TYPE\n return REQUEST_TYPE;\n case 7: // IGNORE_RECEIPT\n return IGNORE_RECEIPT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "afc6af83e13e2d26698c7298533cce78", "score": "0.74851364", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CONFIGURATIONS\n return CONFIGURATIONS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "f65ebdc2e4629a1f3919b9a475898bf3", "score": "0.74821067", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BLOCKS\n return BLOCKS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5d60d6b6e9a79ead19c4919de7f48e5f", "score": "0.74804246", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FOREIGN_ID\n return FOREIGN_ID;\n case 2: // PAGE_NUM\n return PAGE_NUM;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "de67ae9cbdec49e1640ce8c5df2df2d4", "score": "0.74797535", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // SOURCES\n return SOURCES;\n case 2: // TRIPLES\n return TRIPLES;\n case 3: // FEATURES\n return FEATURES;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "f1fa2869965fa01317fe6b044d50c5d5", "score": "0.74787515", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // AD_ID\n return AD_ID;\n case 2: // AD_NAME\n return AD_NAME;\n case 3: // DELIVERY_TYPE\n return DELIVERY_TYPE;\n case 4: // PRODUCTS\n return PRODUCTS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "1e6d76ee7865fde934f4ffb22511606f", "score": "0.7478727", "text": "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // CHAPTER_ID\r\n return CHAPTER_ID;\r\n case 2: // COMMENT_ID\r\n return COMMENT_ID;\r\n case 3: // CONTENT\r\n return CONTENT;\r\n case 4: // PARENT_CMNT_ID\r\n return PARENT_CMNT_ID;\r\n case 5: // USER_ID\r\n return USER_ID;\r\n case 6: // TIME\r\n return TIME;\r\n case 7: // IS_EDIT\r\n return IS_EDIT;\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "3f7b59a9926064996da131743de324a1", "score": "0.7478286", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case // AUTH\n 1:\n return AUTH;\n case // TITLE\n 2:\n return TITLE;\n case // MESSAGE\n 3:\n return MESSAGE;\n case // FORCE_UPGRADE\n 4:\n return FORCE_UPGRADE;\n case // OPEN_URL\n 5:\n return OPEN_URL;\n case // CDN_URL\n 6:\n return CDN_URL;\n case // OTHER_URL\n 7:\n return OTHER_URL;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "fdced5d19436afc8a02af2f0410b55fc", "score": "0.7478003", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CLIENT_IP\n return CLIENT_IP;\n case 2: // APP_ID\n return APP_ID;\n case 3: // APP_KEY\n return APP_KEY;\n case 4: // REQUEST_ID\n return REQUEST_ID;\n case 5: // REQUEST_TIME\n return REQUEST_TIME;\n case 6: // DATA\n return DATA;\n case 7: // VERSION\n return VERSION;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4b5f0ebc8558e8df25b69cbb4a21abd6", "score": "0.7473046", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FOREIGN_ID\n return FOREIGN_ID;\n case 2: // TOP_N\n return TOP_N;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7471946", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7471946", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7471946", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7471946", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7471946", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7471946", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7471946", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7471946", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7471946", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7471946", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" } ]
3bc692fed4455a8fb0f403d199c2c67f
Clase: CamelCaseUp ; Metodos y variables: camelCaseDown ; Constantes: ESTO_ES_CONSTANTE ; Feature: esto_es_feature
[ { "docid": "023d18c2832fd04a8cca9adcdbb2a62c", "score": "0.0", "text": "public Login(Facebooklogin facebooklogin) {\n\t\tthis.facebooklogin = facebooklogin;\n\t}", "title": "" } ]
[ { "docid": "c3f56d87274688861b8befe811bbb9a2", "score": "0.5533312", "text": "java.lang.String getCausality();", "title": "" }, { "docid": "37099595aa355dba7dd4e8b206e78bfc", "score": "0.543685", "text": "public interface CategoriePlatStrings {\n\n String SALADE = \"SALADES\";\n String SOUPE = \"SOUPES\";\n\n String BURGER = \"BURGERS\";\n String PIZZA = \"PIZZAS\";\n\n String BIERE = \"BIERES\";\n String SODA = \"SODAS\";\n\n String DESSERT = \"DESSERTS\";\n}", "title": "" }, { "docid": "e478737744deb71bbc68be8ad4d4fa34", "score": "0.53118", "text": "static String toText(String constName) {\n StringBuilder sb = new StringBuilder(constName.toLowerCase());\n boolean upper = true; // first character is upper\n for (int i = 0; i < sb.length(); i++) {\n if (upper) {\n sb.setCharAt(i, Character.toUpperCase(sb.charAt(i)));\n upper = false;\n }\n if (sb.charAt(i) == '_') {\n sb.setCharAt(i, ' ');\n upper = true; // character after space is upper\n }\n }\n return sb.toString();\n }", "title": "" }, { "docid": "71c47ac6124c506708f1f2aa362c1c3e", "score": "0.5274931", "text": "public SentenceToCamelCaseTest( String testName )\n {\n super( testName );\n }", "title": "" }, { "docid": "a87c6ab691cdb6a040c6890473b805f3", "score": "0.524489", "text": "private List<String> computeFeatures(List<String> words,\n String previousLabel, int position) {\n\n List<String> features = new ArrayList<String>();\n\n String currentWord = words.get(position);\n\n // Baseline Features \n features.add(\"word=\" + currentWord);\n //features.add(\"prevLabel=\" + previousLabel);\n //features.add(\"word=\" + currentWord + \", prevLabel=\" + previousLabel);\n\n\n if (Character.isUpperCase(currentWord.charAt(0))) { // && this.firstNames.containsKey(currentWord.toLowerCase())) {\n features.add(\"case=Title\");\n //features.add(\"caseTitle and prevLabel=\" + previousLabel);\n if (previousLabel.equals(\"PERSON\")) {\n features.add(\"prevPERSON and case title\");\n } else if ((position >= 1) && (words.get(position - 1).equals(\".\"))) {\n features.add(\"dotonebefore\");\n }\n } else {\n features.add(\"casenottitle\");\n }\n\n\n if (currentWord.equals(\"van\") || currentWord.equals(\"der\") || currentWord.equals(\"de\")) {\n features.add(\"particule\");\n } else {\n\n }\n\n\n if (this.big.containsKey(currentWord)) {\n features.add(\"normal word\");\n } else {\n features.add(\"not a normal word\");\n }\n\n //if (currentWord.length() >= 5) {\n //features.add(\"longword\");\n //} else {\n //features.add(\"shortword\");\n //}\n\n //features.add(\"Word length=\" + currentWord.length());\n\n //if ((position >= 1) && (position <= words.size() - 2) && (Character.isUpperCase(words.get(position - 1).charAt(0)) || Character.isUpperCase(words.get(position + 1).charAt(0)))) {\n //features.add(\"clooooose\" );\n //} else {\n //features.add(\"notclose\");\n //}\n\n\n //if ((position >= 10) && (words.get(position - 1).equals(\"\\\"\") ||words.get(position - 2).equals(\"\\\"\") ||words.get(position - 3).equals(\"\\\"\") ||words.get(position - 4).equals(\"\\\"\") ||words.get(position - 5).equals(\"\\\"\") || words.get(position - 6).equals(\"\\\"\") ||words.get(position - 7).equals(\"\\\"\") ||words.get(position - 8).equals(\"\\\"\") ||words.get(position - 9).equals(\"\\\"\") ||words.get(position - 10).equals(\"\\\"\") )) {\n //features.add(\"quotenear\");\n //} else {\n //features.add(\"noquote\");\n //}\n\n\n//if (previousLabel.equals(\"O\")) {\n //features.add(\"O before \");\n//} else {\n //features.add(\"PERSON before \");\n//}\n\n\n//Pattern p = Pattern.compile(\"[a-z]*\");\n //Matcher m = p.matcher(currentWord.toLowerCase());\n //boolean b = m.matches();\n\n//if (b) {\n //features.add(\"notnumber\");\n//} else {\n //features.add(\"withnumber\");\n//}\n\n //if (position >= 1) {\n ////if (words.get(position - 1).equals(\".\")) {\n //features.add(\"Previous word\" + words.get(position - 1));\n ////}\n //}\n\n //if (position >= 1) {\n //if (words.get(position - 1).equals(\".\")) {\n //features.add(\"dotBefore\");\n //}\n //}\n\n if (this.firstNames.containsKey(currentWord.toLowerCase())) {\n //if ((! currentWord.toLowerCase().equals(\"will\")) && (! currentWord.toLowerCase().equals(\"may\")) && (! currentWord.toLowerCase().equals(\"price\"))) {\n //System.out.println(currentWord);\n features.add(\"firstName\");\n //}\n } else {\n features.add(\"notfirstname\");\n }\n\n //if (this.names.containsKey(currentWord.toLowerCase())) {\n //features.add(\"Common name\");\n //}\n\n //if (this.trainNames.containsKey(currentWord.toLowerCase())) {\n //features.add(\"train names\");\n //}\n\n if (this.countries.containsKey(currentWord.toLowerCase())) {\n features.add(\"Country\");\n }\n\n //if (Character.isLowerCase(currentWord.charAt(0))) {\n //features.add(\"case=lower\");\n //}\n\n //if (position >= 1) {\n //features.add(\"double\" + words.get(position - 1) + currentWord);\n //}\n\n //if ((position >= 1) && (position <= words.size() - 2)) {\n //if (words.get(position + 1).equals(\"said\") && words.get(position - 1).equals(\"\\\"\")) {\n //features.add(\"quotesaid\");\n //}\n //}\n\n //if (position <= words.size()-2) {\n //if (words.get(position + 1).equals(\"said\") || words.get(position + 1).equals(\"told\")) {\n //features.add(\"talkedto\");\n //}\n //}\n\n\n /** Warning: If you encounter \"line search failure\" error when\n * running the program, considering putting the baseline features\n * back. It occurs when the features are too sparse. Once you have\n * added enough features, take out the features that you don't need. \n */\n\n // TODO: Add your features here \n\n return features;\n }", "title": "" }, { "docid": "0f11ef60c71d1de8165e56b33e990d19", "score": "0.5241064", "text": "protected abstract String uncamelCase(String camelCaseText);", "title": "" }, { "docid": "368cc612a6dce350f3babed351bc4b02", "score": "0.5238945", "text": "public interface practicaConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int Name = 1;\n /** RegularExpression Id. */\n int NameChar = 2;\n /** RegularExpression Id. */\n int NameStarChar = 3;\n /** RegularExpression Id. */\n int S = 4;\n /** RegularExpression Id. */\n int Entero = 5;\n /** RegularExpression Id. */\n int Flotante = 6;\n /** RegularExpression Id. */\n int ETIXML = 7;\n /** RegularExpression Id. */\n int ETIFUNCION = 8;\n /** RegularExpression Id. */\n int ETIFUNCIONRETURN = 9;\n /** RegularExpression Id. */\n int ETIBLOQUE = 10;\n /** RegularExpression Id. */\n int ETINEXT2 = 11;\n /** RegularExpression Id. */\n int ETIFINNEXT2 = 12;\n /** RegularExpression Id. */\n int ETIFINSTATEMENT2 = 13;\n /** RegularExpression Id. */\n int FINSTAT3 = 14;\n /** RegularExpression Id. */\n int ETIFINXML2 = 15;\n /** RegularExpression Id. */\n int ETIFXML2 = 16;\n /** RegularExpression Id. */\n int ETIFINXML = 17;\n /** RegularExpression Id. */\n int ETIFINBLOQUE = 18;\n /** RegularExpression Id. */\n int ETIPRINT = 19;\n /** RegularExpression Id. */\n int ETIVARSET = 20;\n /** RegularExpression Id. */\n int ETIPROMPT = 21;\n /** RegularExpression Id. */\n int ETINEXT = 22;\n /** RegularExpression Id. */\n int ETIVARGET = 23;\n /** RegularExpression Id. */\n int ETIFINSTATEMENT = 24;\n /** RegularExpression Id. */\n int ETILLAMAFUNCION = 25;\n /** RegularExpression Id. */\n int ETIARGUMENTOS = 26;\n /** RegularExpression Id. */\n int ETIMATHARITHMETIC = 27;\n /** RegularExpression Id. */\n int ETIMATHNUMBER = 28;\n /** RegularExpression Id. */\n int ETIVALUENAMEB = 29;\n /** RegularExpression Id. */\n int ETIIF = 30;\n /** RegularExpression Id. */\n int ETILOGIC = 31;\n /** RegularExpression Id. */\n int ETIDO0 = 32;\n /** RegularExpression Id. */\n int ETIADD3 = 33;\n /** RegularExpression Id. */\n int ETILLFUNCIONRETURN = 34;\n /** RegularExpression Id. */\n int FINBLO = 35;\n /** RegularExpression Id. */\n int TEXTOPRINT = 36;\n /** RegularExpression Id. */\n int TEXT2 = 37;\n /** RegularExpression Id. */\n int CARACTER = 38;\n /** RegularExpression Id. */\n int ETITEXT = 39;\n /** RegularExpression Id. */\n int ETIPRINTNUM = 40;\n /** RegularExpression Id. */\n int ETIBLOCKGET = 41;\n /** RegularExpression Id. */\n int ETIFINVALU = 42;\n /** RegularExpression Id. */\n int ETIMATHARITHMETIC2 = 43;\n /** RegularExpression Id. */\n int ETITEXTJOIN = 44;\n /** RegularExpression Id. */\n int ETIADD2 = 45;\n /** RegularExpression Id. */\n int ETILLFUNCIONRETURN2 = 46;\n /** RegularExpression Id. */\n int CARACTER2 = 47;\n /** RegularExpression Id. */\n int CARACTER3 = 48;\n /** RegularExpression Id. */\n int ETINAMEVALUE = 49;\n /** RegularExpression Id. */\n int ETIFINVALU2 = 50;\n /** RegularExpression Id. */\n int CARACTER8 = 51;\n /** RegularExpression Id. */\n int CARACTER9 = 52;\n /** RegularExpression Id. */\n int MATHNUMBER = 53;\n /** RegularExpression Id. */\n int FINVALUE = 54;\n /** RegularExpression Id. */\n int VARGET = 55;\n /** RegularExpression Id. */\n int ETIMATHARITHMETIC3 = 56;\n /** RegularExpression Id. */\n int ETIMUTATION = 57;\n /** RegularExpression Id. */\n int ETIMUTATIONTEXT = 58;\n /** RegularExpression Id. */\n int CARACTER6 = 59;\n /** RegularExpression Id. */\n int CARACTER7 = 60;\n /** RegularExpression Id. */\n int ETINUMBERPROMPT = 61;\n /** RegularExpression Id. */\n int ETIFINVALUEPROMPT = 62;\n /** RegularExpression Id. */\n int CARACTER10 = 63;\n /** RegularExpression Id. */\n int NOMFUN = 64;\n /** RegularExpression Id. */\n int ARGUMENTOS = 65;\n /** RegularExpression Id. */\n int NOMBRE = 66;\n /** RegularExpression Id. */\n int ARGUM = 67;\n /** RegularExpression Id. */\n int DESCRIPCI = 68;\n /** RegularExpression Id. */\n int DESCRIPC = 69;\n /** RegularExpression Id. */\n int DESCRIPCION = 70;\n /** RegularExpression Id. */\n int STATEM = 71;\n /** RegularExpression Id. */\n int NOMBREFUN = 72;\n /** RegularExpression Id. */\n int FUNC = 73;\n /** RegularExpression Id. */\n int FINLLAMAFUNCION = 74;\n /** RegularExpression Id. */\n int ARGUMENTO = 75;\n /** RegularExpression Id. */\n int LLFVAR = 76;\n /** RegularExpression Id. */\n int LLFTEXT = 77;\n /** RegularExpression Id. */\n int LLFARG = 78;\n /** RegularExpression Id. */\n int ETIFINLLAMAFUNCION = 79;\n /** RegularExpression Id. */\n int OPADD = 80;\n /** RegularExpression Id. */\n int OPMINUS = 81;\n /** RegularExpression Id. */\n int OPMULTIPLY = 82;\n /** RegularExpression Id. */\n int OPDIVIDE = 83;\n /** RegularExpression Id. */\n int OPEQ = 84;\n /** RegularExpression Id. */\n int OPNEQ = 85;\n /** RegularExpression Id. */\n int OPLT = 86;\n /** RegularExpression Id. */\n int OPLTE = 87;\n /** RegularExpression Id. */\n int OPGT = 88;\n /** RegularExpression Id. */\n int OPGTE = 89;\n /** RegularExpression Id. */\n int CAR = 90;\n /** RegularExpression Id. */\n int VRETURN = 91;\n /** RegularExpression Id. */\n int FINSTA = 92;\n /** RegularExpression Id. */\n int ETIELSE = 93;\n /** RegularExpression Id. */\n int FINSTAT2 = 94;\n /** RegularExpression Id. */\n int ETINEXT3 = 95;\n /** RegularExpression Id. */\n int ETIADD = 96;\n /** RegularExpression Id. */\n int ETIFUN2 = 97;\n /** RegularExpression Id. */\n int ETIFUNRET2 = 98;\n /** RegularExpression Id. */\n int ETIBLO2 = 99;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int XML = 1;\n /** Lexical state. */\n int ETIFXML = 2;\n /** Lexical state. */\n int BLOQUE = 3;\n /** Lexical state. */\n int FINBLOQUE = 4;\n /** Lexical state. */\n int PRINT = 5;\n /** Lexical state. */\n int TEXT1 = 6;\n /** Lexical state. */\n int TEXT = 7;\n /** Lexical state. */\n int SIGUIENTE = 8;\n /** Lexical state. */\n int NOM = 9;\n /** Lexical state. */\n int NOMVAR = 10;\n /** Lexical state. */\n int FINNOMVAR = 11;\n /** Lexical state. */\n int NUM = 12;\n /** Lexical state. */\n int NUM2 = 13;\n /** Lexical state. */\n int SIG = 14;\n /** Lexical state. */\n int TEXTPROMPT = 15;\n /** Lexical state. */\n int FRASEPROMPT = 16;\n /** Lexical state. */\n int FRASEPROMPT2 = 17;\n /** Lexical state. */\n int FRASEPROMPT3 = 18;\n /** Lexical state. */\n int TEXTOPROMPT = 19;\n /** Lexical state. */\n int FUNCION = 20;\n /** Lexical state. */\n int NOMFUNCION = 21;\n /** Lexical state. */\n int ARGUN = 22;\n /** Lexical state. */\n int DESCRIPCIONFUNCION = 23;\n /** Lexical state. */\n int DES = 24;\n /** Lexical state. */\n int DESCRIP = 25;\n /** Lexical state. */\n int STATEMENT = 26;\n /** Lexical state. */\n int LLAMAFUNCION = 27;\n /** Lexical state. */\n int LLAMAFUN = 28;\n /** Lexical state. */\n int ARGUMENTOSFUN = 29;\n /** Lexical state. */\n int ARGU = 30;\n /** Lexical state. */\n int NOMVARLLF = 31;\n /** Lexical state. */\n int FINLLF = 32;\n /** Lexical state. */\n int OP = 33;\n /** Lexical state. */\n int OPLOGIC = 34;\n /** Lexical state. */\n int VARRETURN = 35;\n /** Lexical state. */\n int VARRETURN2 = 36;\n /** Lexical state. */\n int FINSTATEMENT = 37;\n /** Lexical state. */\n int TEXTJOIN = 38;\n /** Lexical state. */\n int ETIFUNCION2 = 39;\n /** Lexical state. */\n int ETIFUNCIONRETURN2 = 40;\n /** Lexical state. */\n int ETIBLOQUE2 = 41;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<Name>\",\n \"<NameChar>\",\n \"<NameStarChar>\",\n \"<S>\",\n \"<Entero>\",\n \"<Flotante>\",\n \"\\\"<xml\\\"\",\n \"<ETIFUNCION>\",\n \"<ETIFUNCIONRETURN>\",\n \"<ETIBLOQUE>\",\n \"<ETINEXT2>\",\n \"<ETIFINNEXT2>\",\n \"<ETIFINSTATEMENT2>\",\n \"<FINSTAT3>\",\n \"<ETIFINXML2>\",\n \"\\\">\\\"\",\n \"\\\"/xml\\\"\",\n \"<ETIFINBLOQUE>\",\n \"<ETIPRINT>\",\n \"<ETIVARSET>\",\n \"<ETIPROMPT>\",\n \"<ETINEXT>\",\n \"<ETIVARGET>\",\n \"<ETIFINSTATEMENT>\",\n \"<ETILLAMAFUNCION>\",\n \"<ETIARGUMENTOS>\",\n \"<ETIMATHARITHMETIC>\",\n \"<ETIMATHNUMBER>\",\n \"<ETIVALUENAMEB>\",\n \"<ETIIF>\",\n \"<ETILOGIC>\",\n \"<ETIDO0>\",\n \"<ETIADD3>\",\n \"<ETILLFUNCIONRETURN>\",\n \"<FINBLO>\",\n \"<TEXTOPRINT>\",\n \"<TEXT2>\",\n \"<CARACTER>\",\n \"<ETITEXT>\",\n \"<ETIPRINTNUM>\",\n \"<ETIBLOCKGET>\",\n \"<ETIFINVALU>\",\n \"<ETIMATHARITHMETIC2>\",\n \"<ETITEXTJOIN>\",\n \"<ETIADD2>\",\n \"<ETILLFUNCIONRETURN2>\",\n \"<CARACTER2>\",\n \"<CARACTER3>\",\n \"<ETINAMEVALUE>\",\n \"<ETIFINVALU2>\",\n \"<CARACTER8>\",\n \"<CARACTER9>\",\n \"<MATHNUMBER>\",\n \"<FINVALUE>\",\n \"<VARGET>\",\n \"<ETIMATHARITHMETIC3>\",\n \"<ETIMUTATION>\",\n \"<ETIMUTATIONTEXT>\",\n \"<CARACTER6>\",\n \"<CARACTER7>\",\n \"<ETINUMBERPROMPT>\",\n \"<ETIFINVALUEPROMPT>\",\n \"<CARACTER10>\",\n \"<NOMFUN>\",\n \"<ARGUMENTOS>\",\n \"<NOMBRE>\",\n \"<ARGUM>\",\n \"<DESCRIPCI>\",\n \"<DESCRIPC>\",\n \"<DESCRIPCION>\",\n \"<STATEM>\",\n \"<NOMBREFUN>\",\n \"<FUNC>\",\n \"<FINLLAMAFUNCION>\",\n \"<ARGUMENTO>\",\n \"<LLFVAR>\",\n \"<LLFTEXT>\",\n \"<LLFARG>\",\n \"<ETIFINLLAMAFUNCION>\",\n \"\\\"field name=\\\\\\\"OP\\\\\\\">ADD\\\"\",\n \"\\\"field name=\\\\\\\"OP\\\\\\\">MINUS\\\"\",\n \"\\\"field name=\\\\\\\"OP\\\\\\\">MULTIPLY\\\"\",\n \"\\\"field name=\\\\\\\"OP\\\\\\\">DIVIDE\\\"\",\n \"\\\"field name=\\\\\\\"OP\\\\\\\">EQ\\\"\",\n \"\\\"field name=\\\\\\\"OP\\\\\\\">NEQ\\\"\",\n \"\\\"field name=\\\\\\\"OP\\\\\\\">LT\\\"\",\n \"\\\"field name=\\\\\\\"OP\\\\\\\">LTE\\\"\",\n \"\\\"field name=\\\\\\\"OP\\\\\\\">GT\\\"\",\n \"\\\"field name=\\\\\\\"OP\\\\\\\">GTE\\\"\",\n \"<CAR>\",\n \"<VRETURN>\",\n \"\\\"</block\\\"\",\n \"\\\"statement name=\\\\\\\"ELSE\\\\\\\"\\\"\",\n \"<FINSTAT2>\",\n \"\\\"<next\\\"\",\n \"<ETIADD>\",\n \"<ETIFUN2>\",\n \"<ETIFUNRET2>\",\n \"<ETIBLO2>\",\n \"<token of kind 100>\",\n };\n\n}", "title": "" }, { "docid": "1d77962bca9b403af4ccfee6d8dd56f7", "score": "0.5148791", "text": "public String getCLASE()\n {\n return fieldCLASE.getString();\n }", "title": "" }, { "docid": "4f65f412cacd748c672be2c5897b5a2a", "score": "0.5133794", "text": "public interface AFCcomposerConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int DEBUT = 5;\n /** RegularExpression Id. */\n int FIN = 6;\n /** RegularExpression Id. */\n int INTERFACE = 7;\n /** RegularExpression Id. */\n int COMP = 8;\n /** RegularExpression Id. */\n int PROP = 9;\n /** RegularExpression Id. */\n int EVT = 10;\n /** RegularExpression Id. */\n int INV = 11;\n /** RegularExpression Id. */\n int INIT = 12;\n /** RegularExpression Id. */\n int ACT = 13;\n /** RegularExpression Id. */\n int THEN = 14;\n /** RegularExpression Id. */\n int IF = 15;\n /** RegularExpression Id. */\n int PROPRIETAIRE = 16;\n /** RegularExpression Id. */\n int TYPE = 17;\n /** RegularExpression Id. */\n int PROPERTYTYPE = 18;\n /** RegularExpression Id. */\n int NOMACTIONUTILISATEUR = 19;\n /** RegularExpression Id. */\n int LETTRE = 20;\n /** RegularExpression Id. */\n int NOMBRE = 21;\n /** RegularExpression Id. */\n int ID = 22;\n /** RegularExpression Id. */\n int COMPARAISON = 23;\n /** RegularExpression Id. */\n int AFFECTATIONOperation = 24;\n /** RegularExpression Id. */\n int ACCOLADEOuvrante = 25;\n /** RegularExpression Id. */\n int ACCOLADEFermante = 26;\n /** RegularExpression Id. */\n int SEPARATEUR = 27;\n /** RegularExpression Id. */\n int DeuxPoints = 28;\n /** RegularExpression Id. */\n int PLUS = 29;\n /** RegularExpression Id. */\n int APOSTROPHE = 30;\n /** RegularExpression Id. */\n int ACCESATTRIBUT = 31;\n /** RegularExpression Id. */\n int TILDE = 32;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"DEBUT\\\"\",\n \"\\\"FIN\\\"\",\n \"\\\"INTERFACE\\\"\",\n \"\\\"COMP\\\"\",\n \"\\\"PROP\\\"\",\n \"<EVT>\",\n \"\\\"INV\\\"\",\n \"\\\"INITIALISATIONS\\\"\",\n \"\\\"ACTIONS\\\"\",\n \"<THEN>\",\n \"<IF>\",\n \"<PROPRIETAIRE>\",\n \"<TYPE>\",\n \"<PROPERTYTYPE>\",\n \"<NOMACTIONUTILISATEUR>\",\n \"<LETTRE>\",\n \"<NOMBRE>\",\n \"<ID>\",\n \"<COMPARAISON>\",\n \"\\\":=\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\";\\\"\",\n \"\\\":\\\"\",\n \"\\\"+\\\"\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"::\\\"\",\n \"\\\"~\\\"\",\n \"\\\", \\\"\",\n \"\\\".\\\"\",\n };\n\n}", "title": "" }, { "docid": "8cafd36fda2b8bdfb6c1afabade9abd4", "score": "0.51201504", "text": "@Test\n public void test203() throws Throwable {\n String string0 = StringUtils.capitalize(\".\");\n char[] charArray0 = new char[1];\n boolean boolean0 = StringUtils.containsOnly(\".\", charArray0);\n String string1 = StringUtils.stripAccents(\".\");\n boolean boolean1 = StringUtils.isAllUpperCase(\"java.text.Normalizer$Form\");\n }", "title": "" }, { "docid": "41900decd7f149ceb595ce432e8277a8", "score": "0.51093495", "text": "public static void main(String[] args) {\n\n\t\t \n\t\tString ss=new String (\"Complte Java Classes\");\n\t\t\n\t\tSystem.out.println(ss.toLowerCase());\n\t\tSystem.out.println(ss.toUpperCase());\n\t}", "title": "" }, { "docid": "5d71ad393c049b2287fd55c6cb8cc003", "score": "0.5100577", "text": "public interface TextConstant {\n String APPLY_NAME = \"提交人:%s\";\n String RESULT_NAME = \"动作:%s\";\n String OPERATING_NAME = \"操作人:%s\";\n String REASON_NAME = \"原因:%s\";\n}", "title": "" }, { "docid": "53c1e85910582c1d362c5ac65c014870", "score": "0.50980383", "text": "public boolean getSplitOnCamelCase();", "title": "" }, { "docid": "58af63a46fd6fa0ca70acb44a4cddb2e", "score": "0.5091977", "text": "@Parameters\n\tpublic static Collection<String[]> getCaseNames() {\n\t\treturn Arrays.asList(\n\t\t\t\tnew String[] { \"filesystem\" },\n\t\t\t\tnew String[] { \"flowchart\" },\n\t\t\t\tnew String[] { \"friends\" });\n\t}", "title": "" }, { "docid": "0cd96379e0a50c45560a0f3ed869c309", "score": "0.50851214", "text": "public java.lang.String getCateg_Ope_Niv3(){\n return localCateg_Ope_Niv3;\n }", "title": "" }, { "docid": "0cd96379e0a50c45560a0f3ed869c309", "score": "0.50851214", "text": "public java.lang.String getCateg_Ope_Niv3(){\n return localCateg_Ope_Niv3;\n }", "title": "" }, { "docid": "03b80739bb885c4fcb1e815da22c013c", "score": "0.50683945", "text": "public static void main(String[] args) {\n Solution myS= new Solution();\n String s = myS.toCamelCase(\"trevor_hhh\");\n System.out.println(\"string - \" + s);\n\n }", "title": "" }, { "docid": "0d67d59fb7ab422f671c4097b6d9d1f8", "score": "0.5048162", "text": "@Test\n void operations_are_case_insensitive() {\n assertThat(Operation.findOperation(\"SqRT\")).isEqualByComparingTo(Operation.Sqrt);\n assertThat(Operation.findOperation(\"sqrt\")).isEqualByComparingTo(Operation.Sqrt);\n assertThat(Operation.findOperation(\"SQRT\")).isEqualByComparingTo(Operation.Sqrt);\n\n assertThat(Operation.findOperation(\"undo\")).isEqualByComparingTo(Operation.Undo);\n assertThat(Operation.findOperation(\"UNDO\")).isEqualByComparingTo(Operation.Undo);\n assertThat(Operation.findOperation(\"uNdo\")).isEqualByComparingTo(Operation.Undo);\n\n assertThat(Operation.findOperation(\"clear\")).isEqualByComparingTo(Operation.Clear);\n assertThat(Operation.findOperation(\"CLeaR\")).isEqualByComparingTo(Operation.Clear);\n assertThat(Operation.findOperation(\"clEAr\")).isEqualByComparingTo(Operation.Clear);\n }", "title": "" }, { "docid": "968b5d2bb206177171ec4e41505f2801", "score": "0.5036484", "text": "private void checkCamelCase(Element e, boolean initialCaps) {\n\t\t\t\tlog(\"checkCamelCase: \" + e);\n\n\t\t\t\tString name = e.getSimpleName().toString();\n\t\t\t\tboolean previousUpper = false;\n\t\t\t\tboolean conventional = true;\n\t\t\t\tint firstCodePoint = name.codePointAt(0);\n\n\t\t\t\tif (Character.isUpperCase(firstCodePoint)) {\n\t\t\t\t\tpreviousUpper = true;\n\t\t\t\t\tif (!initialCaps) {\n\t\t\t\t\t\tmessager.printMessage(WARNING, \"Name, ``\" + name + \"'', should start in lowercase.\", e);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else if (Character.isLowerCase(firstCodePoint)) {\n\t\t\t\t\tif (initialCaps) {\n\t\t\t\t\t\tmessager.printMessage(WARNING, \"Name, ``\" + name + \"'', should start in uppercase.\", e);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\t// underscore, etc.\n\t\t\t\t\tconventional = false;\n\n\t\t\t\tif (conventional) {\n\t\t\t\t\tint cp = firstCodePoint;\n\t\t\t\t\tfor (int i = Character.charCount(cp); i < name.length(); i += Character.charCount(cp)) {\n\t\t\t\t\t\tcp = name.codePointAt(i);\n\t\t\t\t\t\tif (Character.isUpperCase(cp)) {\n\t\t\t\t\t\t\tif (previousUpper) {\n\t\t\t\t\t\t\t\tconventional = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpreviousUpper = true;\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tpreviousUpper = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!conventional)\n\t\t\t\t\tmessager.printMessage(WARNING, \"Name, ``\" + name + \"'', should be in camel case.\", e);\n\t\t\t}", "title": "" }, { "docid": "47c8cfda12721c8e3e27f5d071a8fb65", "score": "0.50303096", "text": "public java.lang.String getCedula();", "title": "" }, { "docid": "9c0004fcc1489574f1cd047872c1cabd", "score": "0.5016403", "text": "public interface MensagemConstantes {\n\n\t/** The Constant MSG_INFO_GERACAO_RELATORIO_VAZIO. */\n\tpublic final static String MSG_INFO_GERACAO_RELATORIO_VAZIO \t= \"msg.info.geracao.relatorio.vazio\";\n\t\n\t/** The Constant MSG_ERRO_GERACAO_RELATORIO. */\n\tpublic final static String MSG_ERRO_GERACAO_RELATORIO \t\t\t= \"msg.erro.geracao.relatorio\";\n}", "title": "" }, { "docid": "188638dcbcc060e344e2a29ad70ccaac", "score": "0.5013398", "text": "@Override\n public String description() {\n return \"Analyzer to lowercase and default sort chars of string\";\n }", "title": "" }, { "docid": "be043b6b1d805c0733753c7b7b4806c4", "score": "0.50100404", "text": "void makeStrings() {\n\t\thLowerString = \"H Lower: \";\n\t\tsLowerString = \"S Lower: \";\n\t\tvLowerString = \"V Lower: \";\n\t\thUpperString = \"H Upper: \";\n\t\tsUpperString = \"S Upper: \";\n\t\tvUpperString = \"V Upper: \";\n\t\ttopBorderString = \"Top Border: \";\n\t\trightBorderString = \"Right Border: \";\n\t\tbottomBorderString = \"Bottom Border: \";\n\t\tleftBorderString = \"Left Border: \";\n\t\tcolorThresholdString = \"Color Mass: \";\n\t}", "title": "" }, { "docid": "8e145154290dfe36d6be6e8f79ed5dfe", "score": "0.49991053", "text": "public interface ITipo_Normalizacion {\r\n\t/**\r\n\t * La primera letra de cada palabra en mayuscula\r\n\t */\r\n\tpublic static final int CAPITALIZAR = 10;\r\n\t/**\r\n\t * La primera letra de cada frase en mayuscula, resto de frase minuscula. la\r\n\t * frase de delimita por intros.\r\n\t */\r\n\tpublic static final int FRASEAR = 20;\r\n\t/**\r\n\t * Todo el texto en mayusculas.\r\n\t */\r\n\tpublic static final int MAYUSCULAS = 30;\r\n\t/**\r\n\t * Todo el texto en minuscula.\r\n\t */\r\n\tpublic static final int MINUSCULAS = 40;\r\n\r\n}", "title": "" }, { "docid": "e81e2abaf2898797178ea114488933de", "score": "0.49887148", "text": "private void checkAllCaps(Element e) {\n\t\t\t\tlog(\"checkAllCaps: \" + e);\n\n\t\t\t\tString name = e.getSimpleName().toString();\n\t\t\t\tlog(e.toString());\n\t\t\t\tif (e.getKind() == TYPE_PARAMETER) { // Should be one character\n\t\t\t\t\tif (name.codePointCount(0, name.length()) > 1 ||\n\t\t\t\t\t// Assume names are non-empty\n\t\t\t\t\t\t\t!Character.isUpperCase(name.codePointAt(0)))\n\t\t\t\t\t\tmessager.printMessage(WARNING, \"A type variable's name,``\" + name\n\t\t\t\t\t\t\t\t+ \"'', should be a single uppercace character.\", e);\n\t\t\t\t} else {\n\t\t\t\t\tboolean conventional = true;\n\t\t\t\t\tint firstCodePoint = name.codePointAt(0);\n\n\t\t\t\t\t// Starting with an underscore is not conventional\n\t\t\t\t\tif (!Character.isUpperCase(firstCodePoint))\n\t\t\t\t\t\tconventional = false;\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Was the previous character an underscore?\n\t\t\t\t\t\tboolean previousUnderscore = false;\n\t\t\t\t\t\tint cp = firstCodePoint;\n\t\t\t\t\t\tfor (int i = Character.charCount(cp); i < name.length(); i += Character.charCount(cp)) {\n\t\t\t\t\t\t\tcp = name.codePointAt(i);\n\t\t\t\t\t\t\tif (cp == (int) '_') {\n\t\t\t\t\t\t\t\tif (previousUnderscore) {\n\t\t\t\t\t\t\t\t\tconventional = false;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpreviousUnderscore = true;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpreviousUnderscore = false;\n\t\t\t\t\t\t\t\tif (!Character.isUpperCase(cp) && !Character.isDigit(cp)) {\n\t\t\t\t\t\t\t\t\tconventional = false;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!conventional)\n\t\t\t\t\t\tmessager.printMessage(WARNING, \"A constant's name, ``\" + name + \"'', should be ALL_CAPS.\", e);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "2f9f59673dc576e2ee8d8dd8907f57be", "score": "0.49680448", "text": "@Test\r\n\tpublic void testDisambiguation() throws Exception {\r\n\t\t// Istanbul, hallo! Leider kann ich nur ganz wenig Türkisch.\r\n\t\tString text = \"İstanbul, alo! Ne çok az Türk konuşabilir yazık.\";\r\n\t\t\r\n\t\t// Create a new Engine Description for the Tokenizer.\r\n\t\tAnalysisEngineDescription tokenAnnotator = createEngineDescription(ZemberekTokenizerDefault.class);\r\n\t\t// Create a new Engine Description for the Disambiguation.\r\n\t\tAnalysisEngineDescription disambAnnotator = createEngineDescription(ZemberekDisambiguation.class);\r\n\t\t\t\t\r\n\t\t// Create a new JCas - \"Holder\"-Class for Annotation. \r\n\t\tJCas inputCas = JCasFactory.createJCas();\r\n\t\t\r\n\t\t// Input\r\n\t\tinputCas.setDocumentText(text);\r\n\t\t\r\n\t\t// Pipeline\r\n\t\tSimplePipeline.runPipeline(inputCas, tokenAnnotator, disambAnnotator);\r\n\t\t\r\n\t\t// Sample Text\r\n\t\tString outputCorrectValue = \"[(İstanbul:istanbul) (Noun,Prop;A3sg+Pnon+Nom)] | [(,:,) (Punc)] | [(alo:alo) (Interj)] | [(!:!) (Punc)] | [(ne:ne) (Adj)] | [(Ne:ne) (Noun,Prop;A3sg+Pnon+Nom)] | [(ne:ne) (Noun;A3sg+Pnon+Nom)] | [(ne:ne) (Conj)] | [(ne:ne) (Interj)] | [(ne:ne) (Pron,Ques)] | [(ne:ne) (Adv)] | [(çok:çok) (Adv)] | [(çok:çok) (Det)] | [(çok:çok) (Postp,PCAbl)] | [(çok:çok) (Adj)] | [(az:az) (Adj)] | [(azmak:az) (Verb;Pos+Imp+A2sg)] | [(Az:az) (Noun,Prop;A3sg+Pnon+Nom)] | [(az:az) (Postp,PCAbl)] | [(az:az) (Adv)] | [(Türk:türk) (Noun,Prop;A3sg+Pnon+Nom)] | [(konuşmak:konuş) (Verb;Pos)(Verb;Abil:abil+Aor:ir+A3sg)] | [(konuşmak:konuş) (Verb;Pos)(Verb;Abil:abil)(Adj;AorPart:ir)] | [(konuşmak:konuş) (Verb;Pos)(Verb;Abil:abil+AorPart:ir)] | [(yazık:yazık) (Noun;A3sg+Pnon+Nom)] | [(yazık:yazık) (Adv)] | [(yazık:yazık) (Interj)] | [(.:.) (Punc)] | \";\r\n\t\tString outputCorrectBegin = \"0 | 8 | 10 | 13 | 15 | 15 | 15 | 15 | 15 | 15 | 15 | 18 | 18 | 18 | 18 | 22 | 22 | 22 | 22 | 22 | 25 | 30 | 30 | 30 | 42 | 42 | 42 | 47 | \";\r\n\t\tString outputCorrectEnd = \"8 | 9 | 13 | 14 | 17 | 17 | 17 | 17 | 17 | 17 | 17 | 21 | 21 | 21 | 21 | 24 | 24 | 24 | 24 | 24 | 29 | 41 | 41 | 41 | 47 | 47 | 47 | 48 | \";\r\n\t\t\r\n\t\t// Generate Text with library\r\n\t\tString outputTestValue = \"\";\r\n\t\tString outputTestBegin = \"\";\r\n\t\tString outputTestEnd = \"\";\r\n\t\t\r\n\t\t// Loop over different lemma and create the test text.\r\n\t\tfor (MorphologicalFeatures disambiguation : select(inputCas, MorphologicalFeatures.class)) {\t\t\t\r\n\t\t\toutputTestValue = outputTestValue + disambiguation.getValue() + \" | \";\r\n\t\t\toutputTestBegin = outputTestBegin + disambiguation.getBegin() + \" | \";\r\n\t\t\toutputTestEnd = outputTestEnd + disambiguation.getEnd() + \" | \";\r\n }\r\n\t\t\r\n\t\t// JUnit Test for Value, Begin, End\r\n\t\tassertEquals(outputCorrectValue, outputTestValue);\r\n\t\tassertEquals(outputCorrectBegin, outputTestBegin);\r\n\t\tassertEquals(outputCorrectEnd, outputTestEnd);\r\n\t}", "title": "" }, { "docid": "bd193a69ad7530475142ff64ea823278", "score": "0.49672624", "text": "public static void main(String[] args) {\n\n String cuvant1 = \"ceva\";\n String cuvant2 = \"altceva\";\n String cuvant3 = \"ceva ce nu a mai fost\";\n\n String cuvant4 = \"Un aSa feL nu S-a Mai VaZuT\";\n\n int x = 9;\n\n\n //numeVariabilaString.numeMetoda(); - sintaxa apelare metoda pentru un String\n\n if (cuvant1.contains(\"e\")) {\n System.out.println(\"contine litera e\");\n }\n\n System.out.println(\"Lungimea cuvantului este \" + cuvant1.length());\n\n System.out.println(cuvant4.toLowerCase());\n System.out.println(cuvant4.toUpperCase());\n\n\n }", "title": "" }, { "docid": "306c6fab2c3e15349c72cc3dfebf8e94", "score": "0.49607214", "text": "java.lang.String getVariableNamingConvention();", "title": "" }, { "docid": "9b4e254a1897e6e76f3224c23018cb4f", "score": "0.49520668", "text": "public java.lang.String getCateg_Ope_Niv1(){\n return localCateg_Ope_Niv1;\n }", "title": "" }, { "docid": "9b4e254a1897e6e76f3224c23018cb4f", "score": "0.49520668", "text": "public java.lang.String getCateg_Ope_Niv1(){\n return localCateg_Ope_Niv1;\n }", "title": "" }, { "docid": "c248e6c3120af6ed656d5a7f555f02ac", "score": "0.49514878", "text": "@Test\n public void wordWithCapitalLetter() {\n String word = \"sA\";\n CreateChartActionListener instance = new CreateChartActionListener(null,null,null,null,1);\n String expResult = \"sA\";\n String result = instance.replace(word);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "24425ab1ba373be37381d669c7ef951c", "score": "0.4947122", "text": "public String getUsuf_clave()\r\n/* 39: */ {\r\n/* 40:39 */ return this.usuf_clave;\r\n/* 41: */ }", "title": "" }, { "docid": "6ff503a217caba634e104a591874181f", "score": "0.49401402", "text": "public static void main(String[] args) {\r\n\t\tString original = \"abcd FGJHG ABC abc DEFG \";\r\n\t\t\r\n\t\t//converter minúsculas\r\n\t\tString s01 = original.toLowerCase();\r\n\t\t\r\n\t\tSystem.out.println(\"-\" + s01 + \"-\");\r\n\t\t\r\n\t\t//converter maiúsculas\r\n\t\tString s02 = original.toUpperCase();\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"-\" + s02 + \"-\");\r\n\r\n\t\t//retirar espaços\r\n\t\tString s03 = original.trim();\r\n\t\t\r\n\t\tSystem.out.println(\"-\" + s03 + \"-\");\r\n\t\t\r\n\t\t//Substring pega o caracter a partir do indice correspondente (no exemplo a partir indice 2)\r\n\t\tString s04 = original.substring(2);\r\n\t\t\r\n\t\tSystem.out.println(\"-\" + s04 + \"-\");\r\n\t\t\r\n\t\t//Substring pegando inicio e fim com argumentos\r\n\t\tString s05 = original.substring(2,6);\r\n\t\t\r\n\t\tSystem.out.println(\"-\" + s05 + \"-\");\r\n\t\t\r\n\t\t\r\n\t\t//Replace substitui um caracter ou uma frase por outra\r\n\t\tString s06 = original.replace('a', 'x');\r\n\t\tString s07 = original.replace(\"abc\", \"xy\");\r\n\t\t\r\n\t\tSystem.out.println(\"-\" + s06 + \"-\");\r\n\t\tSystem.out.println(\"-\" + s07 + \"-\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4870a351be775fb3f2186f27234fb1c2", "score": "0.49289027", "text": "@Test\n public void test180() throws Throwable {\n String string0 = StringUtils.substringBetween(\".\", \".\");\n char[] charArray0 = new char[0];\n boolean boolean0 = StringUtils.containsOnly(\".\", charArray0);\n String string1 = StringUtils.deleteWhitespace((String) null);\n boolean boolean1 = StringUtils.isAllUpperCase(\"java.text.Normalizer$Form\");\n }", "title": "" }, { "docid": "1b0e95935d76ee89a3e57a249a37179a", "score": "0.4922224", "text": "public java.lang.String getPeti_causal_baja();", "title": "" }, { "docid": "ecf913a1a547844bc942be6886a55e27", "score": "0.49074075", "text": "public java.lang.String getCateg_Ope_Niv2(){\n return localCateg_Ope_Niv2;\n }", "title": "" }, { "docid": "ecf913a1a547844bc942be6886a55e27", "score": "0.49074075", "text": "public java.lang.String getCateg_Ope_Niv2(){\n return localCateg_Ope_Niv2;\n }", "title": "" }, { "docid": "3bcaeff37a57381335896aaa82307a9f", "score": "0.49037626", "text": "private Constantes(){}", "title": "" }, { "docid": "75c78e1ea9ab4c7ca6e11b0644e1c221", "score": "0.48967624", "text": "private Constantes() {\r\n\t}", "title": "" }, { "docid": "cdfbff6ad2e8f12e376a28609ddc9fd7", "score": "0.48731688", "text": "public void setSplitOnCamelCase(boolean splitOnCamelCase);", "title": "" }, { "docid": "8d313336f0390c8b1197f1a38ae5139b", "score": "0.48710412", "text": "void initialize(String oklasse, String ostunde,String ofach, String oraum, String oausfall, String overtretung) {\n\t\t// Counter for class replacement;\n\t\tint intI = 0;\n\t\t\n\t\tid++;\n\t\tklasse[id] \t\t= oklasse;\n\t\tstunde[id] \t\t= ostunde;\n\n\t\twhile(!(ofach.equals(shortNames[intI])) && intI < 19) intI++;\n\t\t\n\t\tfach[id] \t\t= longNames[intI];\n\t\traum[id] \t\t= \"Raum \" + oraum;\n\t\tausfall[id] \t= oausfall;\n\t\tvertretung[id] \t= overtretung;\n\t}", "title": "" }, { "docid": "43451fbbb5a0e484759cf70acbf982b6", "score": "0.48674998", "text": "protected void setup(Context context) throws IOException, FileNotFoundException{\n\n //http://pastebin.com/48nHpCtR\n //http://pastebin.com/AZpSYTHW\n List<String> tokenList = splitter(DictionaryContants.negStr);\n\n for(String word : tokenList ){\n //System.out.print(word + \",\");\n negWords.add(word);\n }\n\n tokenList = splitter(DictionaryContants.posStr);\n\n for(String word : tokenList ){\n //System.out.print(word + \",\");\n posWords.add(word);\n }\n\n }", "title": "" }, { "docid": "59ebcac0403f7a5798d2b48d562a3dc9", "score": "0.48672113", "text": "public java.lang.String getCateg_Prod_Resol_Modele(){\n return localCateg_Prod_Resol_Modele;\n }", "title": "" }, { "docid": "59ebcac0403f7a5798d2b48d562a3dc9", "score": "0.48672113", "text": "public java.lang.String getCateg_Prod_Resol_Modele(){\n return localCateg_Prod_Resol_Modele;\n }", "title": "" }, { "docid": "55c3e5a3c17de2cb2fbe52c2921b90fa", "score": "0.48653647", "text": "public static String convierteNombre(String frase) {\n String frase2 = \"\";\n int indice = 0;\n int indicepunto = 0;\n\n indicepunto = frase.indexOf('_', indice);\n while (indicepunto >= 0) {\n // El primer carácter es en mayúsculas\n frase2 = frase2 + frase.substring(indice, indice + 1).toUpperCase();\n // Pegamos el resto hasta el primer punto \n frase2 = frase2 + frase.substring(indice + 1, indicepunto + 1);\n\n indice = indicepunto + 1;\n indicepunto = frase.indexOf('_', indice);\n }\n // Incluimos el final de la frase\n frase2 = frase2 + frase.substring(indice, indice + 1).toUpperCase();\n frase2 = frase2 + frase.substring(indice + 1, frase.length());\n frase2 = frase2.replaceAll(\"_\", \"\");\n frase2 = frase2.replace(frase2.substring(0, 1), frase2.substring(0, 1).toLowerCase());\n return frase2;\n }", "title": "" }, { "docid": "b58ef14ce88246350dd4ec74add02d07", "score": "0.48639145", "text": "public java.lang.String getCateg_Prod_Modele(){\n return localCateg_Prod_Modele;\n }", "title": "" }, { "docid": "b58ef14ce88246350dd4ec74add02d07", "score": "0.48639145", "text": "public java.lang.String getCateg_Prod_Modele(){\n return localCateg_Prod_Modele;\n }", "title": "" }, { "docid": "bed6dbf72d2c0a002deef6fcbf346f9e", "score": "0.48629555", "text": "@Test\n public void caseSensitivityTest() {\n // TODO: test caseSensitivity\n }", "title": "" }, { "docid": "9a2b40ea07d437bbda2453eff27f5bc1", "score": "0.48569697", "text": "public String getOgnl() {\r\n StringBuffer buffer = new StringBuffer();\r\n String[] tok = this.getName().split(\"_\");\r\n\r\n for (int i = 0; i < tok.length; i++) {\r\n String string = tok[i];\r\n if (i == 0) {\r\n buffer.append(string.toLowerCase());\r\n } else {\r\n buffer.append(StringUtils.capitalize(string.toLowerCase()));\r\n }\r\n }\r\n return buffer.toString();\r\n }", "title": "" }, { "docid": "7a40d274d7c2bafa58dad5a6e12062d5", "score": "0.48537078", "text": "public interface ICoreTslMessages {\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL000</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL000 = \"logMTSL000\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL001</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL001 = \"logMTSL001\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL002</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL002 = \"logMTSL002\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL003</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL003 = \"logMTSL003\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL004</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL004 = \"logMTSL004\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL005</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL005 = \"logMTSL005\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL006</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL006 = \"logMTSL006\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL007</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL007 = \"logMTSL007\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL008</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL008 = \"logMTSL008\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL009</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL009 = \"logMTSL009\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL010</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL010 = \"logMTSL010\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL011</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL011 = \"logMTSL011\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL012</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL012 = \"logMTSL012\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL013</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL013 = \"logMTSL013\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL014</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL014 = \"logMTSL014\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL015</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL015 = \"logMTSL015\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL016</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL016 = \"logMTSL016\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL017</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL017 = \"logMTSL017\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL018</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL018 = \"logMTSL018\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL019</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL019 = \"logMTSL019\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL020</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL020 = \"logMTSL020\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL021</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL021 = \"logMTSL021\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL022</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL022 = \"logMTSL022\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL023</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL023 = \"logMTSL023\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL024</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL024 = \"logMTSL024\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL025</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL025 = \"logMTSL025\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL026</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL026 = \"logMTSL026\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL027</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL027 = \"logMTSL027\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL028</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL028 = \"logMTSL028\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL029</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL029 = \"logMTSL029\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL030</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL030 = \"logMTSL030\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL031</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL031 = \"logMTSL031\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL032</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL032 = \"logMTSL032\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL033</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL033 = \"logMTSL033\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL034</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL034 = \"logMTSL034\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL035</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL035 = \"logMTSL035\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL036</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL036 = \"logMTSL036\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL037</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL037 = \"logMTSL037\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL038</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL038 = \"logMTSL038\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL039</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL039 = \"logMTSL039\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL040</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL040 = \"logMTSL040\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL041</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL041 = \"logMTSL041\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL042</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL042 = \"logMTSL042\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL043</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL043 = \"logMTSL043\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL044</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL044 = \"logMTSL044\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL045</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL045 = \"logMTSL045\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL046</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL046 = \"logMTSL046\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL047</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL047 = \"logMTSL047\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL048</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL048 = \"logMTSL048\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL049</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL049 = \"logMTSL049\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL050</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL050 = \"logMTSL050\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL051</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL051 = \"logMTSL051\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL052</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL052 = \"logMTSL052\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL053</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL053 = \"logMTSL053\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL054</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL054 = \"logMTSL054\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL055</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL055 = \"logMTSL055\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL056</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL056 = \"logMTSL056\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL057</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL057 = \"logMTSL057\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL058</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL058 = \"logMTSL058\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL059</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL059 = \"logMTSL059\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL060</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL060 = \"logMTSL060\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL061</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL061 = \"logMTSL061\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL062</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL062 = \"logMTSL062\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL063</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL063 = \"logMTSL063\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL064</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL064 = \"logMTSL064\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL065</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL065 = \"logMTSL065\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL066</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL066 = \"logMTSL066\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL067</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL067 = \"logMTSL067\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL068</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL068 = \"logMTSL068\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL069</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL069 = \"logMTSL069\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL070</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL070 = \"logMTSL070\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL071</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL071 = \"logMTSL071\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL072</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL072 = \"logMTSL072\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL073</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL073 = \"logMTSL073\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL074</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL074 = \"logMTSL074\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL075</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL075 = \"logMTSL075\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL076</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL076 = \"logMTSL076\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL077</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL077 = \"logMTSL077\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL078</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL078 = \"logMTSL078\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL079</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL079 = \"logMTSL079\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL080</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL080 = \"logMTSL080\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL081</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL081 = \"logMTSL081\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL082</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL082 = \"logMTSL082\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL083</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL083 = \"logMTSL083\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL084</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL084 = \"logMTSL084\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL085</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL085 = \"logMTSL085\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL086</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL086 = \"logMTSL086\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL087</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL087 = \"logMTSL087\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL088</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL088 = \"logMTSL088\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL089</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL089 = \"logMTSL089\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL090</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL090 = \"logMTSL090\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL091</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL091 = \"logMTSL091\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL092</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL092 = \"logMTSL092\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL093</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL093 = \"logMTSL093\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL094</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL094 = \"logMTSL094\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL095</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL095 = \"logMTSL095\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL095b</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL095B = \"logMTSL095b\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL096</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL096 = \"logMTSL096\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL097</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL097 = \"logMTSL097\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL098</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL098 = \"logMTSL098\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL099</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL099 = \"logMTSL099\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL100</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL100 = \"logMTSL100\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL101</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL101 = \"logMTSL101\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL102</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL102 = \"logMTSL102\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL103</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL103 = \"logMTSL103\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL104</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL104 = \"logMTSL104\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL105</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL105 = \"logMTSL105\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL106</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL106 = \"logMTSL106\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL107</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL107 = \"logMTSL107\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL108</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL108 = \"logMTSL108\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL109</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL109 = \"logMTSL109\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL110</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL110 = \"logMTSL110\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL111</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL111 = \"logMTSL111\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL112</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL112 = \"logMTSL112\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL113</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL113 = \"logMTSL113\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL114</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL114 = \"logMTSL114\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL115</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL115 = \"logMTSL115\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL116</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL116 = \"logMTSL116\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL117</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL117 = \"logMTSL117\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL118</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL118 = \"logMTSL118\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL119</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL119 = \"logMTSL119\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL120</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL120 = \"logMTSL120\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL121</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL121 = \"logMTSL121\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL122</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL122 = \"logMTSL122\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL123</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL123 = \"logMTSL123\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL124</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL124 = \"logMTSL124\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL125</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL125 = \"logMTSL125\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL126</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL126 = \"logMTSL126\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL127</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL127 = \"logMTSL127\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL128</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL128 = \"logMTSL128\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL129</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL129 = \"logMTSL129\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL130</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL130 = \"logMTSL130\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL131</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL131 = \"logMTSL131\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL132</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL132 = \"logMTSL132\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL133</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL133 = \"logMTSL133\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL134</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL134 = \"logMTSL134\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL135</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL135 = \"logMTSL135\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL136</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL136 = \"logMTSL136\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL137</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL137 = \"logMTSL137\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL138</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL138 = \"logMTSL138\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL139</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL139 = \"logMTSL139\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL140</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL140 = \"logMTSL140\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL141</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL141 = \"logMTSL141\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL142</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL142 = \"logMTSL142\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL143</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL143 = \"logMTSL143\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL144</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL144 = \"logMTSL144\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL145</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL145 = \"logMTSL145\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL146</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL146 = \"logMTSL146\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL147</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL147 = \"logMTSL147\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL148</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL148 = \"logMTSL148\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL149</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL149 = \"logMTSL149\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL150</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL150 = \"logMTSL150\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL151</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL151 = \"logMTSL151\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL152</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL152 = \"logMTSL152\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL153</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL153 = \"logMTSL153\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL154</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL154 = \"logMTSL154\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL155</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL155 = \"logMTSL155\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL156</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL156 = \"logMTSL156\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL157</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL157 = \"logMTSL157\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL158</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL158 = \"logMTSL158\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL159</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL159 = \"logMTSL159\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL160</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL160 = \"logMTSL160\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL161</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL161 = \"logMTSL161\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL162</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL162 = \"logMTSL162\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL163</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL163 = \"logMTSL163\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL164</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL164 = \"logMTSL164\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL165</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL165 = \"logMTSL165\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL166</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL166 = \"logMTSL166\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL167</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL167 = \"logMTSL167\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL168</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL168 = \"logMTSL168\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL169</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL169 = \"logMTSL169\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL170</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL170 = \"logMTSL170\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL171</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL171 = \"logMTSL171\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL172</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL172 = \"logMTSL172\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL173</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL173 = \"logMTSL173\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL174</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL174 = \"logMTSL174\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL175</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL175 = \"logMTSL175\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL176</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL176 = \"logMTSL176\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL177</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL177 = \"logMTSL177\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL178</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL178 = \"logMTSL178\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL179</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL179 = \"logMTSL179\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL180</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL180 = \"logMTSL180\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL181</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL181 = \"logMTSL181\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL182</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL182 = \"logMTSL182\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL183</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL183 = \"logMTSL183\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL184</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL184 = \"logMTSL184\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL185</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL185 = \"logMTSL185\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL186</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL186 = \"logMTSL186\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL187</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL187 = \"logMTSL187\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL188</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL188 = \"logMTSL188\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL189</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL189 = \"logMTSL189\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL190</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL190 = \"logMTSL190\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL191</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL191 = \"logMTSL191\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL192</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL192 = \"logMTSL192\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL193</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL193 = \"logMTSL193\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL194</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL194 = \"logMTSL194\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL195</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL195 = \"logMTSL195\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL196</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL196 = \"logMTSL196\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL197</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL197 = \"logMTSL197\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL198</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL198 = \"logMTSL198\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL199</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL199 = \"logMTSL199\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL200</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL200 = \"logMTSL200\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL201</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL201 = \"logMTSL201\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL202</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL202 = \"logMTSL202\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL203</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL203 = \"logMTSL203\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL204</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL204 = \"logMTSL204\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL205</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL205 = \"logMTSL205\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL206</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL206 = \"logMTSL206\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL207</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL207 = \"logMTSL207\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL208</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL208 = \"logMTSL208\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL209</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL209 = \"logMTSL209\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL210</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL210 = \"logMTSL210\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL211</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL211 = \"logMTSL211\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL212</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL212 = \"logMTSL212\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL213</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL213 = \"logMTSL213\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL214</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL214 = \"logMTSL214\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL215</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL215 = \"logMTSL215\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL216</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL216 = \"logMTSL216\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL217</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL217 = \"logMTSL217\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL218</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL218 = \"logMTSL218\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL219</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL219 = \"logMTSL219\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL220</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL220 = \"logMTSL220\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL221</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL221 = \"logMTSL221\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL222</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL222 = \"logMTSL222\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL223</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL223 = \"logMTSL223\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL224</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL224 = \"logMTSL224\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL225</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL225 = \"logMTSL225\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL226</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL226 = \"logMTSL226\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL227</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL227 = \"logMTSL227\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL228</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL228 = \"logMTSL228\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL229</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL229 = \"logMTSL229\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL230</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL230 = \"logMTSL230\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL231</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL231 = \"logMTSL231\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL232</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL232 = \"logMTSL232\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL233</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL233 = \"logMTSL233\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL234</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL234 = \"logMTSL234\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL235</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL235 = \"logMTSL235\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL236</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL236 = \"logMTSL236\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL237</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL237 = \"logMTSL237\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL238</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL238 = \"logMTSL238\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL239</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL239 = \"logMTSL239\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL240</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL240 = \"logMTSL240\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL241</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL241 = \"logMTSL241\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL242</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL242 = \"logMTSL242\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL243</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL243 = \"logMTSL243\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL244</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL244 = \"logMTSL244\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL245</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL245 = \"logMTSL245\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL246</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL246 = \"logMTSL246\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL247</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL247 = \"logMTSL247\";\n\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>logMTSL248</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String LOGMTSL248 = \"logMTSL248\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL250</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL250 = \"logMTSL250\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL251</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL251 = \"logMTSL251\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL252</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL252 = \"logMTSL252\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL253</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL253 = \"logMTSL253\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL254</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL254 = \"logMTSL254\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL255</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL255 = \"logMTSL255\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL256</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL256 = \"logMTSL256\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL257</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL257 = \"logMTSL257\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL258</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL258 = \"logMTSL258\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL259</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL259 = \"logMTSL259\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL260</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL260 = \"logMTSL260\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL261</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL261 = \"logMTSL261\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL262</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL262 = \"logMTSL262\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL263</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL263 = \"logMTSL263\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL264</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL264 = \"logMTSL264\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL265</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL265 = \"logMTSL265\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL266</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL266 = \"logMTSL266\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL267</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL267 = \"logMTSL267\";\n\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL268</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL268 = \"logMTSL268\";\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>resultVal00</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String RESULTVAL00 = \"resultVal00\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>resultVal01</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String RESULTVAL01 = \"resultVal01\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>resultVal02</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String RESULTVAL02 = \"resultVal02\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>resultVal03</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String RESULTVAL03 = \"resultVal03\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>resultVal04</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String RESULTVAL04 = \"resultVal04\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>resultVal05</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String RESULTVAL05 = \"resultVal05\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>resultVal06</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String RESULTVAL06 = \"resultVal06\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>resultVal07</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String RESULTVAL07 = \"resultVal07\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>RESTVALETCLIENT001</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String REST_VALET_CLIENT_LOG001 = \"RESTVALETCLIENT001\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>RESTVALETCLIENT002</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String REST_VALET_CLIENT_LOG002 = \"RESTVALETCLIENT002\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>RESTVALETCLIENT003</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String REST_VALET_CLIENT_LOG003 = \"RESTVALETCLIENT003\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>RESTVALETCLIENT004</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String REST_VALET_CLIENT_LOG004 = \"RESTVALETCLIENT004\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>RESTVALETCLIENT005</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String REST_VALET_CLIENT_LOG005 = \"RESTVALETCLIENT005\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>RESTVALETCLIENT006</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String REST_VALET_CLIENT_LOG006 = \"RESTVALETCLIENT006\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>RESTVALETCLIENT007</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String REST_VALET_CLIENT_LOG007 = \"RESTVALETCLIENT007\";\n\t//\n\t// /**\n\t// * Constant attribute that represents the name of the property\n\t// <code>RESTVALETCLIENT008</code> belonging to the file\n\t// messages/valet-core/tsl_xx_YY.properties.\n\t// */\n\t// String REST_VALET_CLIENT_LOG008 = \"RESTVALETCLIENT008\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL269</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL269 = \"logMTSL269\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL270</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL270 = \"logMTSL270\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL271</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL271 = \"logMTSL271\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL272</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL272 = \"logMTSL272\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL273</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL273 = \"logMTSL273\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL274</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL274 = \"logMTSL274\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL275</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL275 = \"logMTSL275\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL276</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL276 = \"logMTSL276\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL277</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL277 = \"logMTSL277\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL278</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL278 = \"logMTSL278\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL279</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL279 = \"logMTSL279\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL28</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL280 = \"logMTSL280\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL281</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL281 = \"logMTSL281\";\n\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL282</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL282 = \"logMTSL282\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL283</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL283 = \"logMTSL283\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL284</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL284 = \"logMTSL284\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL285</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL285 = \"logMTSL285\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL286</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL286 = \"logMTSL286\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL287</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL287 = \"logMTSL287\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL288</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL288 = \"logMTSL288\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL289</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL289 = \"logMTSL289\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL290</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL290 = \"logMTSL290\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL291</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL291 = \"logMTSL291\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL292</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL292 = \"logMTSL292\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL293</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL293 = \"logMTSL293\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL294</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL294 = \"logMTSL294\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL295</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL295 = \"logMTSL295\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL296</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL296 = \"logMTSL296\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL297</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL297 = \"logMTSL297\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL298</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL298 = \"logMTSL298\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL299</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL299 = \"logMTSL299\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL300</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL300 = \"logMTSL300\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL301</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL301 = \"logMTSL301\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL302</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL302 = \"logMTSL302\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL303</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL303= \"logMTSL303\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL304</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL304 = \"logMTSL304\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL305</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL305 = \"logMTSL305\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL306</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL306 = \"logMTSL306\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL307</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL307 = \"logMTSL307\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL308</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL308 = \"logMTSL308\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL309</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL309 = \"logMTSL309\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL310</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL310 = \"logMTSL310\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL311</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL311 = \"logMTSL311\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL312</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL312 = \"logMTSL312\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL313</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL313 = \"logMTSL313\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL314</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL314 = \"logMTSL314\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL315</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL315 = \"logMTSL315\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL316</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL316 = \"logMTSL316\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL317</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL317 = \"logMTSL317\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL318</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL318 = \"logMTSL318\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL319</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL319 = \"logMTSL319\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL320</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL320 = \"logMTSL320\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL321</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL321 = \"logMTSL321\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL322</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL322 = \"logMTSL322\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL323</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL323 = \"logMTSL323\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL324</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL324 = \"logMTSL324\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL325</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL325 = \"logMTSL325\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL3261</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL326 = \"logMTSL326\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL327</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL327 = \"logMTSL327\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL328</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL328 = \"logMTSL328\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL329</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL329 = \"logMTSL329\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL330</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL330 = \"logMTSL330\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL331</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL331 = \"logMTSL331\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL332</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL332 = \"logMTSL332\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL333</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL333 = \"logMTSL333\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL334</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL334 = \"logMTSL334\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL335</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL335 = \"logMTSL335\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL336</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL336 = \"logMTSL336\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL337</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL337 = \"logMTSL337\";\t\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL338</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL338 = \"logMTSL338\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL339</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL339 = \"logMTSL339\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL340</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL340 = \"logMTSL340\";\n\t\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL341</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL341 = \"logMTSL341\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL342</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL342 = \"logMTSL342\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL343</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL343 = \"logMTSL343\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL344</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL344 = \"logMTSL344\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL345</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL345 = \"logMTSL345\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL346</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL346 = \"logMTSL346\";\n\t/**\n\t * Constant attribute that represents the name of the property <code>logMTSL347</code> belonging to the file messages/valet-core/tsl_xx_YY.properties.\n\t */\n\tString LOGMTSL347 = \"logMTSL347\";\n\t\n}", "title": "" }, { "docid": "0cab24ff454523fc5d563f5b479dada5", "score": "0.48474014", "text": "public java.lang.String getCateg_Ope_Resol_Niv3(){\n return localCateg_Ope_Resol_Niv3;\n }", "title": "" }, { "docid": "0cab24ff454523fc5d563f5b479dada5", "score": "0.48474014", "text": "public java.lang.String getCateg_Ope_Resol_Niv3(){\n return localCateg_Ope_Resol_Niv3;\n }", "title": "" }, { "docid": "88c3d0e17956c42a27812b0120744757", "score": "0.48434573", "text": "private void setWordFields(String cgWord) {\r\n\t\tname = getName(cgWord).replaceAll(\"=\", \" \");\r\n\t\tbaseWord = getBaseWord(cgWord).replaceAll(\"=\", \" \");\r\n\t\tString[] lexicalTags = getLexicalTags(cgWord);\r\n\t\tString[] syntacticTags = getSyntacticTags(cgWord);\r\n\t\tsetHeuristic(syntacticTags);\r\n\t\tsetContraction(syntacticTags);\r\n\t\t\r\n\t\t//System.out.println(Arrays.asList(lexicalTags) + \" \" + Arrays.asList(syntacticTags));\r\n\t\t\r\n\t\tswitch (lexicalTags[0]) {\r\n\t\t\r\n\t\t\t// es sustantivo (cargo tipo, genero y numero)\r\n\t\t\tcase \"N\":\r\n\t\t\t\ttype = WordTypes.Type.NOUN;\r\n\t\t\t\tsetGender(lexicalTags[1]);\r\n\t\t\t\tsetNumber(lexicalTags[2]);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// es adjetivo (cargo tipo, genero y numero)\r\n\t\t\tcase \"ADJ\":\r\n\t\t\t\ttype = WordTypes.Type.ADJECTIVE;\r\n\t\t\t\tsetGender(lexicalTags[1]);\r\n\t\t\t\tsetNumber(lexicalTags[2]);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// es verbo (cargo tipo, modo, tiempo y persona)\r\n\t\t\tcase \"V\":\r\n\t\t\t\ttype = WordTypes.Type.VERB;\r\n\t\t\t\tsetModeTenseAndPerson(lexicalTags);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// es nombre propio (cargo tipo, genero y numero)\r\n\t\t\tcase \"PROP\":\r\n\t\t\t\ttype = WordTypes.Type.PROPER_NAME;\r\n\t\t\t\tsetGender(lexicalTags[1]);\r\n\t\t\t\tsetNumber(lexicalTags[2]);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// es preposicion (solo cargo el tipo)\r\n\t\t\tcase \"PRP\":\r\n\t\t\t\ttype = WordTypes.Type.PREPOSITION;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// es numerico (cargo tipo, genero y numero)\r\n\t\t\tcase \"NUM\":\r\n\t\t\t\ttype = WordTypes.Type.NUMERIC;\r\n\t\t\t\tif (lexicalTags.length > 2) {\r\n\t\t\t\t\tsetGender(lexicalTags[1]);\r\n\t\t\t\t\tsetNumber(lexicalTags[2]);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tsetNumber(lexicalTags[1]);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// es interjeccion (solo cargo el tipo)\r\n\t\t\tcase \"IN\":\r\n\t\t\t\ttype = WordTypes.Type.INTERJECTION;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// es conjuncion coordinada (cargo tipo y subtipo)\r\n\t\t\tcase \"KC\":\r\n\t\t\t\ttype = WordTypes.Type.CONJUNCTION;\r\n\t\t\t\tsubType = WordTypes.Type.ConjunctionSubtype.COORDINATING;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// es conjuncion subodinada (cargo tipo y subtipo)\r\n\t\t\tcase \"KS\":\r\n\t\t\t\ttype = WordTypes.Type.CONJUNCTION;\r\n\t\t\t\tsubType = WordTypes.Type.ConjunctionSubtype.SUBORDINATING;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// es pronombre personal (cargo tipo y subtipo)\r\n\t\t\tcase \"PERS\":\r\n\t\t\t\ttype = WordTypes.Type.PERSONAL_PRONOUN;\r\n\t\t\t\tsetPersonalPronounSubtype(lexicalTags);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t// es pronombre no personal o articulo (cargo tipo, subtipo, genero y numero)\r\n\t\t\tcase \"DET\":\r\n\t\t\tcase \"INDP\":\r\n\t\t\t\tsetPronounAndArticlesSubtype(lexicalTags, syntacticTags);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// es pronombre no personal o articulo (cargo tipo, subtipo, genero y numero)\r\n\t\t\tcase \"ADV\":\r\n\t\t\t\tsetAdverbSubtype(syntacticTags);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// si no es nada de lo anterior, que Dios nos ampare.\r\n\t\t\tdefault:\r\n\t\t\t\ttype = WordTypes.UNKNOWN;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5577ac6e6718d3833a015205cf060516", "score": "0.48414636", "text": "String getDefineName(String name) {\n return name.toUpperCase().replace(\"-\", \"\");\n }", "title": "" }, { "docid": "d056720090565f335f7218836c01d567", "score": "0.48385778", "text": "public interface IConstantes_Pais {\r\n\r\n\t// CONSTANTES DE CLSE GENERALES PARA LA DEFINICION DE ACCIONES CON PAISES\r\n\tpublic static final int ASCENDENTE = 10;\r\n\tpublic static final int DESCENDENTE = 20;\r\n\tpublic static final int CODIGO = 100;\r\n\tpublic static final int NOMBRE = 200;\r\n}", "title": "" }, { "docid": "2f166cc49f3e9f8be486bb666593d20f", "score": "0.48262906", "text": "public void variablesLocales() {\n\t}", "title": "" }, { "docid": "e59947280f00e4feead36222a0c2be70", "score": "0.4821156", "text": "@Test\r\n\t\tpublic void UC5_scenarioAlternativo_3A() {\r\n\t\t\t// 1 - L'attore richiede di cercare un Cinema della catena\r\n\t\t\t// 2 - Il sistema richiede i paramatri per la ricerca\r\n\t\t\t// 3a - L'attore annulla l'operazione\t\t\r\n\t\t\t// Torna all'UC2: visualizzazione elenco cinema del circuito\r\n\t\t}", "title": "" }, { "docid": "ef2c1812ceef85317973f7e46a69462a", "score": "0.48169062", "text": "@Test\n public void test199() throws Throwable {\n String string0 = StringUtils.removeStartIgnoreCase((String) null, \"Search and Replace array lengths don't match: \");\n String[] stringArray0 = StringUtils.splitByCharacterTypeCamelCase(\"Ec[o?z)5\");\n }", "title": "" }, { "docid": "a693273dcbc9b53418c82c5af56aefc9", "score": "0.48154232", "text": "void Strategize();", "title": "" }, { "docid": "f92e1e987ebac5ca7eb4b95b396ce856", "score": "0.48099613", "text": "@Test\n public void capitalizeTest17() throws Exception {\n File inputFile1 = createInputFile3();\n String args[] = {\"-W-X--FA\", inputFile1.getPath()};\n Main.main(args);\n assertEquals(\"Usage: Capitalize [-w [string]] [-m string] [-f] [-i|-I] [-o] <filename>\", errStream.toString().trim());\n }", "title": "" }, { "docid": "1c9bfecd67dda30dce811ea8daa26c90", "score": "0.48098594", "text": "private Constants(String description) {\n\t\tthis.description = description;\n\t}", "title": "" }, { "docid": "89bb7d4e2366bb7554837d3ff33d4746", "score": "0.4801471", "text": "private WeirdConstants() { }", "title": "" }, { "docid": "51b746bb21103b043d23a09f66cdf018", "score": "0.4800349", "text": "public static String convierteNombreTitulo(String frase) {\n String frase2 = \"\";\n int indice = 0;\n int indicepunto = 0;\n\n indicepunto = frase.indexOf('_', indice);\n while (indicepunto >= 0) {\n // El primer carácter es en mayúsculas\n frase2 = frase2 + frase.substring(indice, indice + 1).toUpperCase();\n // Pegamos el resto hasta el primer punto \n frase2 = frase2 + frase.substring(indice + 1, indicepunto + 1);\n\n indice = indicepunto + 1;\n indicepunto = frase.indexOf('_', indice);\n }\n // Incluimos el final de la frase\n frase2 = frase2 + frase.substring(indice, indice + 1).toUpperCase();\n frase2 = frase2 + frase.substring(indice + 1, frase.length());\n frase2 = frase2.replaceAll(\"_\", \" \");\n frase2 = frase2.replace(frase2.substring(0, 1), frase2.substring(0, 1).toLowerCase());\n return frase2;\n }", "title": "" }, { "docid": "3748fb7c853d51a3a0a2626ceccbf939", "score": "0.48003325", "text": "public static void main(String[] args) {\n\t\t\n\t\tCaracterHelper caracter = new CaracterHelper();\n\t\t\n\t\tcaracter.showLetras(\"COSAM\");\n\t}", "title": "" }, { "docid": "d605f242e9cf8e14aff7b3e3905f926b", "score": "0.47951362", "text": "String getFeature();", "title": "" }, { "docid": "5e269892fd84d16e847bd0912cfee859", "score": "0.47864354", "text": "public interface ServiceConstants {\n\n String AUTHORIZATION_HEADER = \"Authorization: 5055538:e52b2981d949fea96d3a103643f377e1ab85c08e347e310adf5ed927831e1018\";\n String BASE_SUFFIX_URL = \"/icebox/v1/foods/en/se\";\n}", "title": "" }, { "docid": "69ce80f2d815ff1866093ea18d44f9d0", "score": "0.47852412", "text": "public String getCapitalized(Object... args) {\n try {\n var msg = getUnchecked(args);\n\n if (msg.length() > 0) {\n msg = Character.toUpperCase(msg.charAt(0)) + msg.substring(1);\n }\n\n return msg;\n } catch (MissingResourceException ex) {\n LOG.warning(ex.toString());\n\n return name();\n }\n }", "title": "" }, { "docid": "4baaa063eaf8bab47b362edcdee1f872", "score": "0.4781732", "text": "java.lang.String getColoe();", "title": "" }, { "docid": "fee065a299f1f94513d8ac011989e9a1", "score": "0.47743046", "text": "private static String convertMethodShortnameToCsvTitle(String shortname) {\n\t\tfor (int i=1; i<shortname.indexOf(\"_\"); i++) {\n\t\t\tif (Character.isUpperCase(shortname.charAt(i))) {\n\t\t\t\tshortname = shortname.substring(0, i) + \" \" + shortname.substring(i);\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// replace _ with [\n\t\tint iUnderscore = shortname.indexOf(\"_\");\n\t\tshortname = shortname.substring(0, iUnderscore) + \" [\" + shortname.substring(iUnderscore + 1);\n\t\t\n\t\t// close unit bracket ]\n\t\tshortname = shortname + \"]\";\n\t\t\n\t\t// further enhancements\n\t\tshortname = shortname.replace(\"[pro\", \"[pro \");\n\t\tshortname = shortname.replace(\"[pro M3\", \"[pro m3\");\n\t\tshortname = shortname.replace(\"[pro H\", \"[pro h\");\n\t\tshortname = shortname.replace(\"[Prz]\", \"[%]\");\n\t\tshortname = shortname.replace(\"m3oR\", \"m3 oR\");\n\t\tshortname = shortname.replace(\"m3iR\", \"m3 iR\");\n\t\t\n\t\treturn shortname;\n\t}", "title": "" }, { "docid": "112878035b5e45893fbbbcf0e67cf789", "score": "0.47715798", "text": "abstract protected String getFeatureNamePrefix();", "title": "" }, { "docid": "c16b009f3584b0b0b206a309fc2283d4", "score": "0.4770532", "text": "public static void main(String[] args) {\n String name = \"Anushka Shukla\";\n // everything that starts with capital letter is a class o String is also a class\n System.out.println(name);\n }", "title": "" }, { "docid": "708db9de0b4e3ce1bdf5ab4463034aed", "score": "0.4762004", "text": "@Test\n public void testToCommonName() {\n assertEquals(\"Tree\", ModuleUtils.toCommonName(\"TreeBehavior\", Category.BEHAVIOR));\n assertEquals(\"Users\", ModuleUtils.toCommonName(\"UsersController\", Category.CONTROLLER));\n assertEquals(\"Users\", ModuleUtils.toCommonName(\"UsersComponent\", Category.COMPONENT));\n assertEquals(\"Users\", ModuleUtils.toCommonName(\"UsersFixture\", Category.FIXTURE));\n assertEquals(\"Html\", ModuleUtils.toCommonName(\"HtmlHelper\", Category.HELPER));\n assertEquals(\"Bake\", ModuleUtils.toCommonName(\"BakeShell\", Category.SHELL));\n assertEquals(\"Users\", ModuleUtils.toCommonName(\"UsersTable\", Category.TABLE));\n assertEquals(\"Bake\", ModuleUtils.toCommonName(\"BakeTask\", Category.TASK));\n assertEquals(\"Bake\", ModuleUtils.toCommonName(\"BakeTest\", Category.TEST_CASE));\n assertEquals(\"Json\", ModuleUtils.toCommonName(\"JsonView\", Category.VIEW));\n assertEquals(\"Inbox\", ModuleUtils.toCommonName(\"InboxCell\", Category.VIEW_CELL));\n\n List<Category> categories = Arrays.asList(\n Category.CONFIG,\n Category.CSS,\n Category.DIR,\n Category.ELEMENT,\n Category.EMAIL,\n Category.ENTITY,\n Category.ERROR,\n Category.IMG,\n Category.JS,\n Category.LAYOUT,\n Category.LOCALE,\n Category.MODEL,\n Category.PAGES,\n Category.TEMPLATE,\n Category.TEMPLATE_CELL,\n Category.TEST,\n Category.UNKNOWN,\n Category.WEBROOT\n );\n for (Category category : categories) {\n assertEquals(\"tests\", ModuleUtils.toCommonName(\"tests\", category));\n }\n\n for (Category value : Category.values()) {\n assertEquals(\"\", ModuleUtils.toCommonName(\"\", value));\n }\n }", "title": "" }, { "docid": "ae20838d6e7976b04e688210a4e15bad", "score": "0.47585905", "text": "public TestUserDefinedAcronyms() {\n\n }", "title": "" }, { "docid": "b28bebe2a61a41b6683545be777fcdc6", "score": "0.47575423", "text": "@Before\n public void setUp() {\n pro = new Project(\"Name\");\n dec1 = new DecisionVariableDeclaration(\"Name\", StringType.TYPE, pro);\n dec2 = new DecisionVariableDeclaration(\"Name2\", StringType.TYPE, pro);\n decs = new DecisionVariableDeclaration[2];\n decs[0] = dec1;\n decs[1] = dec2;\n }", "title": "" }, { "docid": "af3e7f65ca8ebe41d88415e16303f686", "score": "0.4756989", "text": "private Globales(){}", "title": "" }, { "docid": "e9eec9b8f87b747e024b53e5f2a23e7b", "score": "0.47541675", "text": "public void gerarESalvarCartelas();", "title": "" }, { "docid": "5c194ea80b39c01e297458a4f9433f1a", "score": "0.47439224", "text": "public static String assentodisponivel(){\n return \"cadeira tal, fila tal\";\r\n }", "title": "" }, { "docid": "a92d32885c16b0fd2fc6f22b140aad49", "score": "0.47428727", "text": "public StandardNormalizerOptions() {\n this.commonCase = true;\n this.replaceSymbolsWithWhite = true;\n this.compactWhite = true;\n }", "title": "" }, { "docid": "57617dc6f150c3b221dec0de36097d5a", "score": "0.4740179", "text": "void modeloAbierto();", "title": "" }, { "docid": "13fe68d7dac346da9079a4c06f2a59f6", "score": "0.4739274", "text": "@Test\n public void capitalizeTest31() throws Exception {\n File inputFile1 = createInputFile6();\n String args[] = {\" \",\" \",inputFile1.getPath()};\n Main.main(args);\n assertEquals(\"Usage: Capitalize [-w [string]] [-m string] [-f] [-i|-I] [-o] <filename>\", errStream.toString().trim());\n\n }", "title": "" }, { "docid": "f49ad9ab93f9d8a2921518c0130bc993", "score": "0.47389498", "text": "public static void main(String[] args) {\n String threeWordSentence_1 = \"hapPy nEW yeAr\";\n System.out.println(\"Before code : \" + threeWordSentence_1);\n\n // Now convert the sentence to lowercase\n String threewordsentencetolowercase = threeWordSentence_1.toLowerCase();\n System.out.println(threewordsentencetolowercase);\n\n //extract words in the sentence\n String[] threeWordSentenceSplit = threewordsentencetolowercase.split(\" \");\n //System.out.println(Arrays.toString(threeWordSentenceSplit));\n\n //change first letter of each word to upper case\n String firstWord = threeWordSentenceSplit[0].substring(0, 1).toUpperCase() + threeWordSentenceSplit[0].substring(1);\n String secondWord = threeWordSentenceSplit[1].substring(0, 1).toUpperCase() + threeWordSentenceSplit[1].substring(1);\n String thirdWord = threeWordSentenceSplit[2].substring(0, 1).toUpperCase() + threeWordSentenceSplit[2].substring(1);\n\n //combine final sentence\n threeWordSentence_1 = firstWord + \" \" + secondWord + \" \" + thirdWord;\n\n System.out.println(\"After code : \" + threeWordSentence_1);\n\n\n //Question 2\n String threeWordsSentence_2 = \"very gOOD MorNING\";\n String abbr = \"\";\n\n // covert the sentence to lowercase\n threeWordsSentence_2 = threeWordsSentence_2.toLowerCase();\n //System.out.println(threeWordsSentence_2);\n\n //extract words in the sentence\n String[] threeWordSentence_2Split = threeWordsSentence_2.split(\" \");\n //System.out.println(Arrays.toString(threeWordSentence_2Split));\n\n //change first letter of each word to upper case\n String firstLetter = threeWordSentence_2Split[0].substring(0, 1).toUpperCase();\n String secondLetter = threeWordSentence_2Split[1].substring(0, 1).toUpperCase();\n String thirdLetter = threeWordSentence_2Split[2].substring(0, 1).toUpperCase();\n\n //create abbreviation\n abbr = firstLetter + secondLetter + thirdLetter;\n\n System.out.println(\"\\nAbbreviation for 'very gOOD MorNING' is : \" + abbr);\n\n\n //Question 3\n String sentence_3 = \"We all are here to learn programming and testing\";\n\n //extract words in the sentence and get total number of words\n String[] sentence_3Split = sentence_3.split(\" \");\n int numberOfWordsInSentence = sentence_3Split.length;\n\n System.out.println(\"\\nTotal number of words in the sentence is \" + numberOfWordsInSentence);\n\n }", "title": "" }, { "docid": "6589716245f7287a256c82bcf5385a9f", "score": "0.4734622", "text": "private static String getOperationConstant(DescriptorProtos.MethodDescriptorProto methodDescriptor) {\n return CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, methodDescriptor.getName());\n }", "title": "" }, { "docid": "ebd009e41b21b4d144920bfe30b1dfd2", "score": "0.47269103", "text": "private String splitCamelCase(String s) {\n return s.replaceAll(String.format(\"%s|%s|%s\",\n \"(?<=[A-Z])(?=[A-Z][a-z])\", \"(?<=[^A-Z])(?=[A-Z])\",\n \"(?<=[A-Za-z])(?=[^A-Za-z])\"), \" \");\n }", "title": "" }, { "docid": "8539c2298b3fd8e984b46b8959efebcc", "score": "0.47223812", "text": "public String getUsuf_clave_emer()\r\n/* 44: */ {\r\n/* 45:42 */ return this.usuf_clave_emer;\r\n/* 46: */ }", "title": "" }, { "docid": "e633bd2f4d3a8acc4f6b230a65c6f1e6", "score": "0.47102112", "text": "public String fromCamelCase(String camelCasedData){\n StringBuilder sb = new StringBuilder();\n Pattern pattern = Pattern.compile(\"[A-Z]\");\n String [] data = camelCasedData.split(\"\");\n for(String d: data){\n Matcher mat = pattern.matcher(d);\n if(mat.find()){\n sb.append(\"_\");\n sb.append(d.toLowerCase());\n continue;\n }\n sb.append(d);\n }\n\n if(sb.toString().startsWith(\"_\"))sb.deleteCharAt(0);\n return sb.toString();\n }", "title": "" }, { "docid": "e96a18c04095d5cca9d0605214b63478", "score": "0.47049817", "text": "public static void main(String[] args) {\n\t\t\n\t\t String str1=\"syntaxsolutions\";\n\t\t \n\t\t String upperCase=str1.toUpperCase();\n\t\t\tSystem.out.println(upperCase);\n\t\t\t\n\t\tString str2=\"SYNTAXSOLUTIONS\";\n\t\t\n\t\tString lowerCase=str2.toLowerCase();\n\t\tSystem.out.println(lowerCase);\n\n\t}", "title": "" }, { "docid": "f289a97bbe815c98d91b16ff2ec81e03", "score": "0.46972245", "text": "@Override\n\tpublic String getName() {\n\t\treturn \"sono un cane\";\n\t}", "title": "" }, { "docid": "3f3481627f0c5a1f054fbe18772e116e", "score": "0.46954438", "text": "static String toCamelCase(String s) {\n String[] words = s.split(\"-|_\");\n String camelCased = words[0];\n for (int i = 1; i <= words.length - 1; i++) {\n String first = words[i].substring(0, 1);\n String next = words[i].substring(1);\n camelCased = camelCased + first.toUpperCase() + next;\n }\n return camelCased;\n }", "title": "" }, { "docid": "cfec551a41a6deda11949986b1e1d72d", "score": "0.46950823", "text": "private Constants() {\n\n\t}", "title": "" }, { "docid": "c4f9473b53b49fdc2deca91347866bb6", "score": "0.4694987", "text": "public interface ClassLevels {\n\n String CONTROLLER = \"Controller\";\n\n String INTERCEPTOR = \"Interceptor\";\n\n String PRODUCER = \"Producer\";\n\n String CONSUMER = \"Consumer\";\n\n String LISTENER = \"Listener\";\n\n String FILTER = \"Filter\";\n\n String HANDLER = \"Handler\";\n\n String PROCESSOR = \"Processor\";\n\n String DISPATCHER = \"Dispatcher\";\n\n String API = \"Api\";\n\n String SERVICE = \"Service\";\n\n String CACHE = \"Cache\";\n\n String DAO = \"DAO\";\n\n String UTILS = \"Utils\";\n\n String OTHERS = \"Others\";\n}", "title": "" }, { "docid": "c2c8d87779c5ca82a605c15d27987a1a", "score": "0.46914306", "text": "String ExpressCuriosity();", "title": "" }, { "docid": "bd447e81b2c9e0aa378409f40727e5ab", "score": "0.4690098", "text": "public final static String getNomCouleur(int couleur) {\r\n\tString nom = \"\";\r\n\tswitch (couleur) {\r\n\t\tcase 0 :\r\n\t\t\tnom = \"Rouge clair\"; // Rouge clair.\r\n\t\t\tbreak;\r\n\t\tcase 1 :\r\n\t\t\tnom = \"Vert clair\"; // Vert clair.\r\n\t\t\tbreak;\r\n\t\tcase 2 :\r\n\t\t\tnom = \"Bleu clair\"; // Bleu clair.\r\n\t\t\tbreak;\r\n\t\tcase 3 :\r\n\t\t\tnom = \"or\"; // or\r\n\t\t\tbreak;\r\n\t}\r\n\t/* Retourne une chaine vide si aucune correspondance n'a ete trouvee: */\r\n\treturn nom;\r\n}", "title": "" }, { "docid": "fe3b8720df5c5396b619a510fd5457d1", "score": "0.46843985", "text": "private Strategien(){}", "title": "" }, { "docid": "16a9082bc5061fc625fea2643ce515cc", "score": "0.46836448", "text": "public interface Constants {\n\n String PULL_UPS = \"Pull Ups\";\n String PUSH_UPS = \"Push Ups\";\n String SIT_UPS = \"Sit Ups\";\n String SQUATS = \"Squats\";\n\n String CHOSEN_WORKOUT_EXTRA_KEY = \"chosen_workout\";\n String WORKOUT_TYPE_KEY = \"mix_or_simple_workout\";\n String UPDATING_MAX_IN_SETTINGS = \"update_max_value\";\n\n String OPEN_SOURCE = \"open_source\";\n String PRIVACY_POLICY = \"privacy_policy\";\n String TERMS_OF_USE = \"terms_of_use\";\n String CHOSEN_DOCUMENTATION = \"chosenDocumentation\";\n}", "title": "" }, { "docid": "8fa39253fc81b51c89343f9586d251d7", "score": "0.46832085", "text": "@Test\n\tvoid controlloStampa(){\n\t\tNonTerminale nts = new NonTerminale(\"S\");\n\t\tassertEquals(nts.toString(), nts.getLettera());\n\t}", "title": "" }, { "docid": "106b3fea9f597e2630a7b0f04b85ff14", "score": "0.46814778", "text": "public java.lang.String getJornada_agnd_sc();", "title": "" }, { "docid": "e3e729740d6e7dafa5badda284645eda", "score": "0.46811968", "text": "public interface ConstantService {\n\n /**\n * 未删除\n */\n Integer UN_DELETED = SysConst.DeleteState.UN_DELETED.getCode();\n\n /**\n * 删除\n */\n Integer DELETED = SysConst.DeleteState.DELETE.getCode();\n\n /**\n * 隐藏\n */\n Integer HIDE = SysConst.ShowState.HIDE.getCode();\n\n /**\n * 显示\n */\n Integer DISPLAY = SysConst.ShowState.DISPLAY.getCode();\n\n /**\n * 置顶\n */\n Integer TOP = SysConst.TopState.TOP.getCode();\n\n /**\n * 不置顶\n */\n Integer UN_TOP = SysConst.TopState.UN_TOP.getCode();\n\n /**\n * 关\n */\n Integer OFF = SysConst.EnabledState.OFF.getCode();\n\n /**\n * 开\n */\n Integer ON = SysConst.EnabledState.ON.getCode();\n\n /**\n * 正序\n */\n String ASC = SysConst.SortOrder.ASC.getCode();\n /**\n * 倒叙\n */\n String DESC = SysConst.SortOrder.DESC.getCode();\n\n /**\n * 系统\n */\n Integer SYSTEM = SysConst.InfoClass.SYSTEM.getCode();\n /**\n * 自定义\n */\n Integer CUSTOM = SysConst.InfoClass.CUSTOM.getCode();\n\n /**\n * 居左\n */\n String LEFT = SysConst.Position.LEFT.getType();\n /**\n * 居中\n */\n String CENTER = SysConst.Position.CENTER.getType();\n /**\n * 居右\n */\n String RIGHT = SysConst.Position.RIGHT.getType();\n\n String SORT_NAME_CREATED_TIME = SysConst.SORT_NAME_CREATED_TIME;\n\n String SORT_NAME_ORDER_BY = SysConst.SORT_NAME_ORDER_BY;\n\n LocalDateTime currentDateTime = DateUtils.currentDateTime();\n\n /**\n * 唯一id(雪花id)\n */\n default long generateKey() {\n return UniqueIdUtils.SnowflakeShardingKeyGenerator();\n }\n}", "title": "" }, { "docid": "e84f14f6322ff652f8c48aba0b3e2e16", "score": "0.46809226", "text": "public static void main(String[] args) {\n\n\n System.out.println(\"Continente no. 4: \" + Continentes.AMERICA);\n System.out.println(\"No. Paises en el 4 continente: \"\n + Continentes.AMERICA.getPaises() + \" \" + Continentes.AMERICA.getNumeroPaises());\n \n System.out.println(\"\");\n \n \n System.out.println(\"Continente no. 1: \" + Continentes.AFRICA);\n System.out.println(\"No. Paises en el 1 continente: \"\n + Continentes.AFRICA.getPaises() + \" \" + Continentes.AFRICA.getNumeroPaises());\n \n System.out.println(\"\");\n \n \n System.out.println(\"Continente no. 2: \" + Continentes.EUROPA);\n System.out.println(\"No. Paises en el 2 continente: \"\n + Continentes.EUROPA.getPaises() + \" \" + Continentes.EUROPA.getNumeroPaises()); \n \n \n\n }", "title": "" }, { "docid": "e3e23c9402ceba45bac133902607c2e4", "score": "0.4679022", "text": "public Categoria(@JsonProperty(value=\"nombre\")String nombre, @JsonProperty(value=\"descripcion\")String descripcion) {\n\t\tsuper();\n\t\tthis.nombre = nombre;\n\t\tthis.descripcion = descripcion;\t\t\n\t}", "title": "" }, { "docid": "0164015be7b708f930b24869370993ee", "score": "0.4678065", "text": "public java.lang.String getCateg_Ope_Resol_Niv1(){\n return localCateg_Ope_Resol_Niv1;\n }", "title": "" }, { "docid": "0164015be7b708f930b24869370993ee", "score": "0.4678065", "text": "public java.lang.String getCateg_Ope_Resol_Niv1(){\n return localCateg_Ope_Resol_Niv1;\n }", "title": "" } ]
0d809a12f68ff75fde0cf93b3dc8e1d7
adding parameters to the request
[ { "docid": "03aaa3557f2b4685d169f73ad96c1da6", "score": "0.0", "text": "@Override\r\n protected Map<String, String> getParams() throws AuthFailureError {\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"username\", username);\r\n return params;\r\n }", "title": "" } ]
[ { "docid": "6ca828e8106c807738d3b7a03cc300d4", "score": "0.7044231", "text": "java.lang.String getRequestParameters();", "title": "" }, { "docid": "488d086b343688b033d0b5405b83613e", "score": "0.6834329", "text": "private void addPostParams(final Request request) {\n if (to != null) {\n request.addPostParam(\"To\", to);\n }\n\n if (mediaUrl != null) {\n request.addPostParam(\"MediaUrl\", mediaUrl.toString());\n }\n\n if (quality != null) {\n request.addPostParam(\"Quality\", quality.toString());\n }\n\n if (statusCallback != null) {\n request.addPostParam(\"StatusCallback\", statusCallback.toString());\n }\n\n if (from != null) {\n request.addPostParam(\"From\", from);\n }\n\n if (sipAuthUsername != null) {\n request.addPostParam(\"SipAuthUsername\", sipAuthUsername);\n }\n\n if (sipAuthPassword != null) {\n request.addPostParam(\"SipAuthPassword\", sipAuthPassword);\n }\n\n if (storeMedia != null) {\n request.addPostParam(\"StoreMedia\", storeMedia.toString());\n }\n\n if (ttl != null) {\n request.addPostParam(\"Ttl\", ttl.toString());\n }\n }", "title": "" }, { "docid": "7d7951370976891e197fe7ae59006ae5", "score": "0.6807854", "text": "private void addPostParams(final Request request) {\n if (identity != null) {\n request.addPostParam(\"Identity\", identity);\n }\n\n if (roleSid != null) {\n request.addPostParam(\"RoleSid\", roleSid);\n }\n\n if (lastConsumedMessageIndex != null) {\n request.addPostParam(\"LastConsumedMessageIndex\", lastConsumedMessageIndex.toString());\n }\n\n if (lastConsumptionTimestamp != null) {\n request.addPostParam(\"LastConsumptionTimestamp\", lastConsumptionTimestamp.toString());\n }\n\n if (dateCreated != null) {\n request.addPostParam(\"DateCreated\", dateCreated.toString());\n }\n\n if (dateUpdated != null) {\n request.addPostParam(\"DateUpdated\", dateUpdated.toString());\n }\n\n if (attributes != null) {\n request.addPostParam(\"Attributes\", attributes);\n }\n }", "title": "" }, { "docid": "60609be12c93d35eef4b12271f2c9bae", "score": "0.6759148", "text": "private void addPostParams(final Request request) {\n if (phoneNumber != null) {\n request.addPostParam(\"PhoneNumber\", phoneNumber.toString());\n }\n \n if (friendlyName != null) {\n request.addPostParam(\"FriendlyName\", friendlyName);\n }\n \n if (callDelay != null) {\n request.addPostParam(\"CallDelay\", callDelay.toString());\n }\n \n if (extension != null) {\n request.addPostParam(\"Extension\", extension);\n }\n \n if (statusCallback != null) {\n request.addPostParam(\"StatusCallback\", statusCallback.toString());\n }\n \n if (statusCallbackMethod != null) {\n request.addPostParam(\"StatusCallbackMethod\", statusCallbackMethod.toString());\n }\n }", "title": "" }, { "docid": "abd3ac2060d2d198dff12b678ea42503", "score": "0.6668155", "text": "private void addPostParams(final Request request) {\n if (messagingServiceSid != null) {\n request.addPostParam(\"MessagingServiceSid\", messagingServiceSid);\n }\n }", "title": "" }, { "docid": "291e124d1e513bb1a4bca01ea474f605", "score": "0.6505952", "text": "static void setRequestParams(MultiDataObject.Entry entry, String params) throws IOException {\n StringBuffer newParams=new StringBuffer();\n String s=null;\n if (params!=null){\n for (int i=0;i<params.length();i++) {\n char ch = params.charAt(i);\n if ((int)ch!=13 && (int)ch!=10) newParams.append(ch);\n }\n s=newParams.toString();\n if (s.length()==0) s=null;\n } \n WebExecSupport.setQueryString(entry.getFile (), s);\n }", "title": "" }, { "docid": "51009b003cd460d476ab19401783450f", "score": "0.64819974", "text": "@Override\n protected java.util.Map<String, String> getParams() {\n\n java.util.Map<String, String> params = new HashMap<>();\n params.put(\"user_id\", user_id);\n params.put(\"name\", simpleAutoCompleteTextView.getText().toString().trim());\n params.put(\"latitude\", String.valueOf(latitude));\n params.put(\"longitude\", String.valueOf(longitude));\n params.put(\"company_id\", company_id);\n\n Log.e(\"===============\", \"getParams:params \" + params);\n// params.put(\"operatorId\", agentId);\n// params.put(\"vendorId\", vendorId);\n\n\n //.addFileToUpload(path, \"file\") //Adding file\n return params;\n }", "title": "" }, { "docid": "e49ec28cb26d6ce14f2853a54ab4948c", "score": "0.6477324", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"visitor_id\",Users.visitor_id);\n params.put(\"request\",\"Dashboard_ChatAssigned\");\n params.put(\"agent_id\",user.get(\"agent_id\"));\n params.put(\"forward_dept\",ID);\n params.put(\"forward_agent_id\",AgentID);\n Log.d(\"Tag add data\",params.toString());\n return params;\n }", "title": "" }, { "docid": "dc33b4afe98b470197c5948635af6380", "score": "0.644575", "text": "public void readAdditionalParameters(HttpServletRequest request, Search search) throws InvalidSearchTermException {\n List<SearchExpression> searchExpressions = parseParameters(request);\n \n if (searchExpressions.size() > 0) {\n search.addSearchUnit(new SearchUnit(searchExpressions));\n }\n }", "title": "" }, { "docid": "a5d6295a893419e098736a5966780970", "score": "0.64453995", "text": "void putParametersToRequest() {\n\n PortletConfig pc = portlet.getPortletConfig();\n request.setAttribute( \"PORTLETID\", portlet.getID() );\n request.setAttribute( \"SELECTABLELIST\", selectableList );\n String tmp = pc.getInitParameter( INIT_FORCELINEBREAK );\n List<String> list = new ArrayList<String>();\n if ( tmp != null ) {\n for ( int i = 0; i < tmp.length(); i++ ) {\n list.add( \"\" + tmp.charAt( i ) );\n }\n }\n request.setAttribute( \"LINEBREAK\", list );\n\n }", "title": "" }, { "docid": "a76bf6da7c43b06c95bf42558f469cca", "score": "0.6442633", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\", name);\n params.put(\"details\", details);\n params.put(\"date\", date);\n return params;\n }", "title": "" }, { "docid": "9003219d7e83bec056c7df19bbdc33f6", "score": "0.6440863", "text": "public void addRequestParameter(String name, String value) {\n LOG.createAppender()\n .appendBold(\"Add Request Parameter:\")\n .appendProperty(\"Name\", name)\n .appendProperty(\"Value\", value)\n .log();\n\n params.add(new BasicNameValuePair(name, value));\n }", "title": "" }, { "docid": "93ac6739f8805a1c677b9d1d45d0fc01", "score": "0.6429941", "text": "void setParameters(javax.servlet.http.HttpServletRequest request, servicios.control.Service servicio) throws servicios.generales.WSException;", "title": "" }, { "docid": "230627437106c4ced71d039318d2911c", "score": "0.6402647", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", userId);\n params.put(\"zoneid\", zone_id+\"\");\n params.put(\"holderid\", holder_id+\"\");\n params.put(\"starttime\", mstartTime);\n params.put(\"endtime\", mendTime);\n return params;\n }", "title": "" }, { "docid": "af39b5b47f8089cf9b4f92716ee00836", "score": "0.63987315", "text": "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"body\", backgr);\r\n return params;\r\n\r\n }", "title": "" }, { "docid": "34ab80b09cb78e105ab5f3506f12acda", "score": "0.63741714", "text": "@Override\r\n protected Map<String, String> getParams() {\n\r\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"name\", name);\r\n params.put(\"quantity\", quantity);\r\n params.put(\"price\", price);\r\n params.put(\"customerPrice\", cP);\r\n params.put(\"minimumQuantity\", minQuantity);\r\n\r\n return params;\r\n }", "title": "" }, { "docid": "d706a6a85eb5a2fb5629fee0fea09d08", "score": "0.63407546", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"dept\",ID);\n params.put(\"request\",\"Dashboard_AgentByDept\");\n Log.d(\"Tag add data\",params.toString());\n return params;\n }", "title": "" }, { "docid": "553283d505eb186007476361d8da7b8d", "score": "0.6320309", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n params.put(\"size\",sizes);\n params.put(\"qty\", qty);\n params.put(\"freq\", freq);\n\n return params;\n }", "title": "" }, { "docid": "e39bcfff64107e2dec5e4e98e6a7dbc3", "score": "0.6313577", "text": "public void requestWithParams(String name, Date date);", "title": "" }, { "docid": "39696fcd5845986ff4ed3ff74a527333", "score": "0.63051254", "text": "private void addParameters() {\n parameterSet = this.hcalParameters;\n }", "title": "" }, { "docid": "673a8eee7bd6d50c9edbe5f4921f88f8", "score": "0.6304955", "text": "public static Request addParams(@NonNull final Request original) throws IOException {\n final HttpUrl originalHttpUrl = original.url();\n final HttpUrl url = originalHttpUrl.newBuilder()\n .addQueryParameter(QUERY_NAME, BuildConfig.API_KEY)\n .build();\n\n return original.newBuilder().url(url).build();\n }", "title": "" }, { "docid": "0405458fb0ad66ffed4d4767d05964df", "score": "0.6304044", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(AppConstants.FIRST_NAME, fName);\n params.put(AppConstants.LAST_NAME, lName);\n params.put(AppConstants.PHONE, phone);\n params.put(AppConstants.CITY, city);\n params.put(AppConstants.UID, id);\n params.put(AppConstants.STATE, state);\n params.put(AppConstants.ADDRESSLINE1, addrln1);\n params.put(AppConstants.ADDRESSLINE2, addrln2);\n params.put(AppConstants.CREDIT, credit);\n\n\n return params;\n }", "title": "" }, { "docid": "bcff3baadec00cc97bc12feca693b72f", "score": "0.6296937", "text": "public void addQueryParameter(String name, String value) {\n\n\t\tRequestPayload requestPayload = httpRequestWrapper.getRequestPayload();\n\t\tif (requestPayload instanceof UrlEncodedRequestPayload) {\n\t\t\t((UrlEncodedRequestPayload) requestPayload).addParameter(name, value);\n\t\t\tpayloadChanged.set(true);\n\t\t} else {\n\t\t\tlogger.warn(\"Request payload is not of content-type: {}\", ContentType.APPLICATION_FORM_URLENCODED);\n\t\t}\n\t}", "title": "" }, { "docid": "fd526a43813a72ac2780416959e03a8e", "score": "0.6296402", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"uid\", uid);\n params.put(\"birthday\", birthday);\n params.put(\"gender\", gender);\n params.put(\"situation\", situation);\n params.put(\"country\", country);\n\n return params;\n }", "title": "" }, { "docid": "b3c8405be93e7037cb1b8603c2ad2a6b", "score": "0.6273172", "text": "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"user_id\", user_id);\r\n params.put(\"token\", token);\r\n params.put(\"post_id\", post_id);\r\n\r\n return params;\r\n\r\n }", "title": "" }, { "docid": "2256e7d3b41d156f0ab8b853136ce3a8", "score": "0.62615746", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n\n params.put(\"OrderAmount\",Order_Amount);\n params.put(\"OrderCurrency\", \"INR\");\n\n\n return params;\n }", "title": "" }, { "docid": "d9d5443684cb970369e308fb0540ffcf", "score": "0.62379575", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"visitor_id\",Users.visitor_id);\n params.put(\"request\",\"Dashboard_AddTag\");\n params.put(\"tag\",newtag.getText().toString().trim());\n params.put(\"mid\",user.get(\"mid\"));\n Log.d(\"Tag add data\",params.toString());\n return params;\n }", "title": "" }, { "docid": "b84d06f3c92ccbceb6b0c1f4a86a0006", "score": "0.6233917", "text": "void addDataRequest(DataRequest newRequest);", "title": "" }, { "docid": "9e1f4181aaa648409fa468b99c8c0784", "score": "0.62222", "text": "private void setParametersFromRequest() throws IOException {\r\n inputContentType = theServletRequest.getContentType();\r\n outputContentType = theServletRequest.getParameter(\"_format\");\r\n csvText = IOUtils.toString(theServletRequest.getInputStream(), StandardCharsets.UTF_8);\r\n // Remove the Byte Order Mark if Present\r\n if (csvText.charAt(0) == '\\uFEFF') {\r\n csvText = csvText.substring(1);\r\n }\r\n handleContentType();\r\n\r\n organization = getParameter(\"reporter\");\r\n subject = getParameter(\"subject\");\r\n periodStart = getParameter(\"period.start\");\r\n periodEnd = getParameter(\"period.end\");\r\n map = getParameter(\"map\");\r\n\r\n if (StringUtils.isEmpty(outputContentType)) {\r\n outputContentType = theServletRequest.getHeader(HttpHeaders.ACCEPT);\r\n }\r\n // remove any charset requests\r\n outputContentType = outputContentType.toLowerCase().split(\";\")[0].trim();\r\n\r\n if (!StringUtils.isEmpty(map)) {\r\n for (String mapping : map.split(\",\")) {\r\n String from = StringUtils.substringBeforeLast(mapping, \"$\");\r\n String to = StringUtils.substringAfterLast(mapping, \"$\");\r\n if (StringUtils.isEmpty(to)) {\r\n to = from;\r\n }\r\n overrides.put(to, from);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "34b145f7effffe526ddb822b5f7a6228", "score": "0.621761", "text": "private void initParams() {\n\t\tpageId = request.getParameter(\"pageid\");\n\t\tactionId = request.getParameter(\"actionid\");\n\t\tfileId = request.getParameter(\"fileid\");\n\t}", "title": "" }, { "docid": "ed917cb7cd89038eb85cc57627af0309", "score": "0.6215975", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"RequestId\", \"33\");\n params.put(\"PosCarga\",\"1\");\n params.put(\"Tarjeta\",\"4000004210500001\");\n params.put(\"Productos\",mjason.toString());\n\n return params;\n }", "title": "" }, { "docid": "1d7e83046debe205b4de44f9dcd8bcc5", "score": "0.6215562", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"student_id\", studentID);\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"password\", password);\n params.put(\"course\",course);\n params.put(\"contact\",contact);\n return params;\n }", "title": "" }, { "docid": "2c7e6b0db643056f6f48f4c2a7779f17", "score": "0.62146413", "text": "public void addParams(String queryString) {\r\n if (queryString == null) {\r\n return;\r\n }\r\n String[] pairs = StringUtils.split(queryString, '&');\r\n for (String pair : pairs) {\r\n String[] keyValue = StringUtils.split(pair, '=');\r\n String[] values = new String[0];\r\n if (keyValue.length > 1) {\r\n values = StringUtils.split(keyValue[1], ',');\r\n }\r\n for (int j = 0; j < values.length; j++) {\r\n try {\r\n values[j] = URLDecoder.decode(values[j], \"UTF-8\");\r\n } catch (UnsupportedEncodingException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n if (keyValue.length > 1) {\r\n put(keyValue[0], values);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "07e193e84b0f6ca5bbb420c8afb15855", "score": "0.62092555", "text": "public MutableRequest(final HttpServletRequest request, final Map<String, String[]> additionalParams) {\n\t\tsuper(request);\n\t\tmodifiableParameters = new TreeMap<String, String[]>();\n\t\tmodifiableParameters.putAll(additionalParams);\n\t}", "title": "" }, { "docid": "73fb7df212200a9819765a44fb25e0b3", "score": "0.6208616", "text": "void addQueryParameter(String name, Object value);", "title": "" }, { "docid": "b67ce3635b428109b7584d11e6f12ad5", "score": "0.6205446", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n\n params.put(\"user_id\", senderUserid);\n params.put(\"amount\", send);\n params.put(\"receiver\", mobileNo);\n\n return params;\n }", "title": "" }, { "docid": "6c4a1b1daa836c7ab36abe488003be41", "score": "0.6204283", "text": "Map<String, Object> prepareAdditionalInformationParams(HttpServletRequest request, GIPIQuote gipiQuote);", "title": "" }, { "docid": "8defe367d300d0bea7f9b4e27decc5d7", "score": "0.62030953", "text": "public void appendCustomQueryParameterToAllRequests(String key, String value) {\n mCustomQueryParams.add(new BasicNameValuePair(key, value));\n }", "title": "" }, { "docid": "1dd0341f0550642b951369d251ce4cfd", "score": "0.6200266", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"CustomerName\", \"Usman\");\n // volley will escape this for you\n params.put(\"Customerid\", \"130734\");\n return params;\n }", "title": "" }, { "docid": "37408e2b99917bb32f3343f5d9c119e0", "score": "0.6199778", "text": "@Override\n protected java.util.Map<String, String> getParams() {\n HashMap<String, String> user = db.getUserDetails();\n\n String userid = user.get(\"id\");\n String Carid = String.valueOf(MainActivity.vehiclesListSorted.get(MainActivity.index).getId());\n\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"userid\", userid);\n params.put(\"Carid\", Carid);\n params.put(\"UserReview\", review);\n\n return params;\n }", "title": "" }, { "docid": "5cd69e73118878e5d52815733b782596", "score": "0.6193701", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"adgangskode\", adgangskode);\n params.put(\"medlemsid\", medlemsid);\n return params;\n }", "title": "" }, { "docid": "deba8a6935b6c837bb17ca7f449f9267", "score": "0.6173218", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"first_name\", FirstNameHolder);\n params.put(\"last_name\", LastNameHolder);\n params.put(\"email\", EmailHolder);\n\n return params;\n }", "title": "" }, { "docid": "9d6f8b60951a5b80b7827f381c24ec93", "score": "0.6168916", "text": "@Override\n protected Map<String, String> getParams() {\n\n\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"ride_status\", ride_status);\n params.put(\"ride_lat\", ride_lat);\n params.put(\"ride_lng\", ride_lng);\n params.put(\"fk_driver_id\", fk_driver_id);\n params.put(\"fk_car_id\", fk_car_id);\n\n params.put(\"order_id_1\", mOrder1);\n params.put(\"order_id_2\", mOrder2);\n params.put(\"order_id_3\", mOrder3);\n\n\n return params;\n }", "title": "" }, { "docid": "d50b9cdcdf1ce20c6d351c989b27cf79", "score": "0.6165626", "text": "@Override\n protected Map<String, String> getParams() {\n\n\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"ride_id\", ride_id);\n params.put(\"ride_lat\", ride_lat);\n params.put(\"ride_lng\", ride_lng);\n\n\n\n return params;\n }", "title": "" }, { "docid": "034536f8c1394d4453cacb6fbacafef6", "score": "0.61620975", "text": "public void addParameters(Collection<String> parameters){\n\t\tthis.parameters.addAll(parameters);\n\t}", "title": "" }, { "docid": "e68aeee7e833ed5f04c985f4b99b0b3a", "score": "0.6157198", "text": "protected void addToParameters(Map<String, Object> parameters)\n {\n // do nothing, can be user in subclasses\n }", "title": "" }, { "docid": "81b3e63c7cb6ce664fcda1656b589106", "score": "0.6142769", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", iduser);\n return params;\n }", "title": "" }, { "docid": "c28a187d388c6500243c7365be12dbf4", "score": "0.6140424", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"mid\",user.get(\"mid\"));\n params.put(\"request\",\"Dashboard_Departments\");\n Log.d(\"Tag add data\",params.toString());\n return params;\n }", "title": "" }, { "docid": "1f33d217e204beaa8b04ed6f84c84df0", "score": "0.61349404", "text": "private ObjectActionReprRenderer addParameterDetails() {\n boolean gsoc2013 = getRendererContext().getConfiguration().getBoolean(\"isis.viewer.restfulobjects.gsoc2013.legacyParamDetails\", false);\n if(gsoc2013) {\n final List<Object> parameters = Lists.newArrayList();\n for (int i = 0; i < objectMember.getParameterCount(); i++) {\n final ObjectActionParameter param = objectMember.getParameters().get(i);\n final Object paramDetails = paramDetails(param, getInteractionInitiatedBy());\n parameters.add(paramDetails);\n }\n representation.mapPut(\"parameters\", parameters);\n } else {\n final Map<String,Object> parameters = Maps.newLinkedHashMap();\n for (int i = 0; i < objectMember.getParameterCount(); i++) {\n final ObjectActionParameter param = objectMember.getParameters().get(i);\n final Object paramDetails = paramDetails(param, getInteractionInitiatedBy());\n parameters.put(param.getId(), paramDetails);\n }\n representation.mapPut(\"parameters\", parameters);\n }\n return this;\n }", "title": "" }, { "docid": "5c59405ae2ba64435a758ee643dcf008", "score": "0.61280113", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id_user\", id_user);\n params.put(\"id_seleksi\", id_seleksi);\n\n return params;\n }", "title": "" }, { "docid": "948e372f0a6a43b4b9de00e871e8512e", "score": "0.6122979", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"pname\", pname);\n params.put(\"pdesc\", pdesc);\n params.put(\"qnty\", qnty);\n params.put(\"username\",username);\n\n return params;\n }", "title": "" }, { "docid": "7d3e3ddde2a43868eedafd36bf8f7170", "score": "0.61188227", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n\n params.put(\"user_id\",userID);\n params.put(\"amount\", send+\"\");\n params.put(\"total\", balance+\"\");\n params.put(\"receiver\", number);\n Log.e(\"param\", params+\"\");\n return params;\n }", "title": "" }, { "docid": "d5d29d4d917cbd4f062c53fa50b18dc1", "score": "0.6110531", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"employeeid\", eid);\n params.put(\"firstname\", fname);\n params.put(\"lastname\", lname);\n params.put(\"phoneno\", phoneno);\n params.put(\"divisionid\", divisionid);\n params.put(\"buildingid\", buildingid);\n params.put(\"jobposition\", jobposition);\n params.put(\"email\", email);\n params.put(\"password\", password);\n\n return params;\n }", "title": "" }, { "docid": "f9ab7121c3d3c24c26440f4674edde5c", "score": "0.6108574", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"uploadXML\", uploadXML);\n return params;\n }", "title": "" }, { "docid": "d52ab681a48f00c364db8b4fe3bf7f2f", "score": "0.61074775", "text": "@SuppressWarnings(\"unused\")\n private void coreRequestData(String dataId) {\n mParameters.add(dataId);\n }", "title": "" }, { "docid": "00ee7ebc990158685ece02c093e95f61", "score": "0.6092345", "text": "@Override\r\n\tpublic List<NameValuePair> fillParams() {\n\t\treturn build(params);\r\n\t}", "title": "" }, { "docid": "00ee7ebc990158685ece02c093e95f61", "score": "0.6092345", "text": "@Override\r\n\tpublic List<NameValuePair> fillParams() {\n\t\treturn build(params);\r\n\t}", "title": "" }, { "docid": "6bee0a9b40c776b21c116f3e17779a0c", "score": "0.6090978", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", idx);\n\n return params;\n }", "title": "" }, { "docid": "6bee0a9b40c776b21c116f3e17779a0c", "score": "0.6090978", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", idx);\n\n return params;\n }", "title": "" }, { "docid": "6e749c910e5d09664a4a7b2900023cc5", "score": "0.6089847", "text": "protected void parse_request()\r\n/* 27: */ {\r\n/* 28: 50 */ super.parse_request();\r\n/* 29: */ \r\n/* 30: 52 */ String id = this.http_request.getParameter(\"id\");\r\n/* 31: 53 */ if (id != null) {\r\n/* 32: 54 */ this.request.set_relation(id);\r\n/* 33: */ } else {\r\n/* 34: 56 */ this.request.set_relation(\"0\");\r\n/* 35: */ }\r\n/* 36: 58 */ this.request.set_limit(\"\", \"\");\r\n/* 37: */ }", "title": "" }, { "docid": "a6578a741708665f989e21bf32dbfff3", "score": "0.60837007", "text": "@Override\n\tprotected List<NameValuePair> getParameters() {\n\t\tList<NameValuePair> nvps = new ArrayList<NameValuePair>();\n\t\tnvps.add(new BasicNameValuePair(PARAMS_CUSTOM_ID, Long\n\t\t\t\t.toString(customerId)));\n\t\tnvps.add(new BasicNameValuePair(PARAMS_ORDER_STATE, orderState));\n\t\tnvps.add(new BasicNameValuePair(PARAMS_START_INDEX, Integer\n\t\t\t\t.toString(startIndex)));\n\t\tnvps.add(new BasicNameValuePair(PARAMS_PAGE, Integer.toString(page)));\n\t\treturn nvps;\n\t}", "title": "" }, { "docid": "986d7c81a6ff0aad0a3c8340c1ab7f85", "score": "0.6081232", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n // Adding All values to Params.\n params.put(\"USER\", USER);\n params.put(\"D_name\", devicename);\n params.put(\"POWER\", devicepower);\n params.put(\"T_Start\", starting);\n params.put(\"T_End\", ending);\n return params;\n }", "title": "" }, { "docid": "cfb179d4da93e59ee25e00c246c8d23a", "score": "0.6073918", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"status\", status);\n params.put(\"matriFunc\", matriFunc);\n return params;\n }", "title": "" }, { "docid": "d983f0f324ffab04205470c23a8f99d4", "score": "0.60717237", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id_usuario\",id_usuario);\n return params;\n }", "title": "" }, { "docid": "d983f0f324ffab04205470c23a8f99d4", "score": "0.60717237", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id_usuario\",id_usuario);\n return params;\n }", "title": "" }, { "docid": "d983f0f324ffab04205470c23a8f99d4", "score": "0.60717237", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id_usuario\",id_usuario);\n return params;\n }", "title": "" }, { "docid": "27bf186e00caf397cf26f1a27d2c0955", "score": "0.60714155", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n //params.put(\"id\",\"\");\n params.put(\"user_name\", userName);\n params.put(\"user_pass\", password);\n\n return params;\n }", "title": "" }, { "docid": "fe3f17a0f20eb6b59a1def81845458d5", "score": "0.60702443", "text": "@Override\n protected List<NameValuePair> getQueryParameters() {\n ArrayList<NameValuePair> params = new ArrayList<NameValuePair>(4);\n\n addParameter(\"id\", id, params);\n\n if (null != display && 0 < display.length) {\n params.add(new BasicNameValuePair(\"display\", convertToCommaSeparatedList(display)));\n }\n\n return params;\n }", "title": "" }, { "docid": "48f15e643879dcd928cb7d077520780f", "score": "0.6067613", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"search_id\", String.valueOf(id));\n return params;\n }", "title": "" }, { "docid": "48f15e643879dcd928cb7d077520780f", "score": "0.6067613", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"search_id\", String.valueOf(id));\n return params;\n }", "title": "" }, { "docid": "d98c8311369add89ddead7e8292fc46a", "score": "0.60655475", "text": "private List<NameValuePair> setParams()\n\t{\n\t\tList<NameValuePair> qparams = new ArrayList<NameValuePair>();\n\n\t\tqparams.add(new BasicNameValuePair(\"appId\", APP_ID));\n\t\tqparams.add(new BasicNameValuePair(\"appKey\", APP_KEY));\n\t\tqparams.add(new BasicNameValuePair(\"id\", DEVICE_ID));\n\n\t\treturn qparams;\n\t}", "title": "" }, { "docid": "323d6257436ce89dd3dacd7379303343", "score": "0.6055651", "text": "@Override\n\tpublic List<NameValuePair> fillParams() {\n\t\treturn build(params);\n\t}", "title": "" }, { "docid": "2c7dee6ef9682b3616979484c9211755", "score": "0.6053849", "text": "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "title": "" }, { "docid": "e4aa7beff1ccd88d7de84cdc4695abb2", "score": "0.6053356", "text": "public LocalRestRequest addParam(String key, String value) {\n\t\tparams.put(key, value);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "bbc8f65f7a45ada92b38acd5c0dbaced", "score": "0.6052708", "text": "@Override\n\tpublic void initRequest() {\n\n\t}", "title": "" }, { "docid": "cacc489c5061f56430fa3bf9de277506", "score": "0.6049498", "text": "public EndpointClient requestParameters(final Object ... params) {\t\t\n\t\tthis.uri = this.uriTemplate.expand(params);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "21b1277f5fc6b3234c35accf0f6f41db", "score": "0.6044885", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\", name);\n params.put(\"mobile\", mobile);\n params.put(\"state\", state);\n params.put(\"district\", district);\n params.put(\"regid\", regId);\n\n Log.e(TAG, \"Posting params: \" + params.toString());\n\n return params;\n }", "title": "" }, { "docid": "14336992f0678180a1135975b26d641c", "score": "0.60287005", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"firstname\", firstname);\n params.put(\"lastname\", lastname);\n params.put(\"phone\", phone);\n params.put(\"username\", username);\n params.put(\"password\", password);\n params.put(\"gender\", gender);\n return params;\n }", "title": "" }, { "docid": "eb038fde4da5b9661ff9bce919ca2e25", "score": "0.60234636", "text": "@Override\n public Map<String, String> getRequestParameters() {\n // Clone the params and cast to string\n Map<String, String> requestParams = new HashMap<>();\n for (Map.Entry<String, Object> entry : params.entrySet()) {\n final String parameterName = entry.getKey();\n final Object value = entry.getValue();\n\n // If the value is a collection\n if (value instanceof Collection) {\n // Convert to an array => Example: parameterName[0],parameterName[1],...\n int index = 0;\n for (Object object: ((Collection)value)) {\n requestParams.put(parameterName + \"[\" + index + \"]\", object.toString());\n index++;\n }\n } else {\n // Convert it to a string.\n requestParams.put(parameterName, entry.getValue().toString());\n }\n }\n return requestParams;\n }", "title": "" }, { "docid": "9cd4d626ac1fb61f7dc91b63d809f95e", "score": "0.60169435", "text": "private void appendParameter(String addParam) {\n if(this.getParameters() != null)\n this.setParameters(this.getParameters() + addParam);\n else {\n this.setParameters(addParam);\n }\n }", "title": "" }, { "docid": "db99e6b16fc3b6b9f6e773490c0aea1c", "score": "0.60124993", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"no_nota\", no_nota);\n params.put(\"kode\", kode);\n params.put(\"harga\", harga);\n params.put(\"jumlah\", jumlah);\n return params;\n }", "title": "" }, { "docid": "8f07b2f7c05ec76c061265e13bccc88b", "score": "0.60079503", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n //list of parameters to the hash map\n params.put(\"email\", email);\n\n\n return params;\n }", "title": "" }, { "docid": "c993c4043e994e71ffd5c27861be5e94", "score": "0.5996295", "text": "private HashMap<String,Object> addCommonParams(String method, String path, HashMap<String,Object> params){\n params.put(\"api_key\", mApiKey);\n params.put(\"timestamp\", System.currentTimeMillis() / 1000L);\n params.put(\"signature\", mSignatory.generateSignature(method, path, params));\n return params;\n }", "title": "" }, { "docid": "73123c262f0c0a38ddfac0f7d5cc85af", "score": "0.5991577", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", id);\n params.put(\"password\", password);\n\n return params;\n }", "title": "" }, { "docid": "883baf0a94520a1d5809fed43b0c3d05", "score": "0.59887165", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"uid\", userid);\n return params;\n }", "title": "" }, { "docid": "301bcd590667b13e660158af095d740d", "score": "0.59645104", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id_wallet\", id_wall);\n\n return params;\n }", "title": "" }, { "docid": "dcdc0a4242bc4a55063c10f1f923e980", "score": "0.5960256", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"firstname\", firstname);\n params.put(\"middlename\", middlename);\n params.put(\"lastname\", lastname);\n params.put(\"id_number\", idNumber);\n params.put(\"email\", email);\n params.put(\"password\", password);\n params.put(\"password_confirmation\", passwordConfirm);\n return params;\n }", "title": "" }, { "docid": "902920ecc21b8b462526440c188cc523", "score": "0.595654", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"job\", job);\n params.put(\"location\", location);\n params.put(\"salary\", salary);\n params.put(\"exe\", exe);\n params.put(\"sex\", sex);\n params.put(\"page\", page);\n params.put(\"uid\",user.get(KEY_ID));\n// Log.e(\"uid\",user.get(KEY_ID)+\"\");\n return params;\n }", "title": "" }, { "docid": "9be5ffefa98688944c0616b1f1cf42ec", "score": "0.5956478", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", useremail);\n params.put(\"username\", username);\n params.put(\"phoneNumber\", userphone);\n params.put(\"photo\", userPhoto);\n return params;\n }", "title": "" }, { "docid": "ccf9f56da9501b5c35b51b7a1eefefdb", "score": "0.59550977", "text": "public void buildRequest(Map<String, Object> reqDict);", "title": "" }, { "docid": "b35ac27d7d14859cac4e56ba63b3eb10", "score": "0.5954649", "text": "private JsonObjectBuilder getParameterMap(MultivaluedMap<String, String> requestParams) {\n JsonObjectBuilder params = Json.createObjectBuilder();\n if (requestParams != null) {\n for (Map.Entry<String,List<String>> e : requestParams.entrySet()) {\n String key = e.getKey();\n List<String> values = e.getValue();\n if (values == null) {\n params.addNull(key);\n } else {\n JsonArrayBuilder jArray = Json.createArrayBuilder();\n for (String v: values) jArray.add(v);\n params.add(key,jArray);\n }\n }\n }\n return params;\n }", "title": "" }, { "docid": "e67e7eb602916966ee8508092e7f4c5e", "score": "0.59520006", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"waitingtime\", waitingtime);\n return params;\n }", "title": "" }, { "docid": "7f983f313633c875fd8fca6ba543c63f", "score": "0.59507483", "text": "protected String paramString() {\n return protocol\n + \",\" + userInfo\n + \",\" + host\n + \",\" + port\n + \",\" + path\n + \",\" + queryParameters\n + \",\" + reference;\n }", "title": "" }, { "docid": "07c1568022250d432aa289580f39847e", "score": "0.59479797", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"password\", password);\n\n return params;\n }", "title": "" }, { "docid": "b7ca9e841bfdeba8a32f68edd041c996", "score": "0.5946735", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"id\", \"1\");\n params.put(\"set_value\", \" \");\n\n for (int i = 0; i < 4; i++){\n params.put(serviceString[i] + \"Fee\", detailItem.get(serviceString[i] + \"Fee\"));\n params.put(serviceString[i] + \"Date\", detailItem.get(serviceString[i] + \"Date\"));\n }\n\n bSet = false;\n// setSubscriptionDetail();\n\n Log.e(\"URL\", ApiConfig.urlSubScription);\n Log.e(\"Subscription Params: \", params.toString());\n\n return params;\n }", "title": "" }, { "docid": "ee41f5231682bfe93d8e2fa4fd112f47", "score": "0.59415084", "text": "@Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n return params;\n }", "title": "" }, { "docid": "29f56be8e8d2c3436f71de33dc6c60db", "score": "0.59170717", "text": "protected RequestParams createAPIRequestParameters(int count, long lastId) {\n\t\t// Prepare a request\n\t\tRequestParams request = new RequestParams(\"count\", count);\n\n\t\tboolean isSubsequentLoad = (lastId != -1);\n\n\t\tif ( isSubsequentLoad ) {\n\t\t\t//since_id\n\t\t\trequest.put(\"max_id\", Long.toString(lastId) );\n\t\t\t// save the id\n\t\t\tlastTweetId = lastId;\n\t\t}\n\t\t\n\t\treturn request;\n\t}", "title": "" }, { "docid": "fd5805a91ae8537bf131da521a0cfea6", "score": "0.59150803", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"action\", \"get\");\n params.put(\"username\", username);\n return params;\n }", "title": "" }, { "docid": "f6c329edba1fe637cd466278ff780935", "score": "0.5909409", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"PackageId\", Course_id);\n\n return params;\n }", "title": "" }, { "docid": "2c8baadc55a1b88d7fe2c28b59833d1d", "score": "0.5908563", "text": "private Map<String, String> addQueryStringParametersAsHeaders()\n\t{\n\t\tMap<String, String> parameters = new HashMap<String, String>();\n\t\tString uri = getUri(httpRequest);\n\t\tint x = uri.indexOf('?');\n\t\tString queryString = (x >= 0 ? uri.substring(x + 1) : null);\n\t\t\n\t\tif (queryString != null)\n\t\t{\n\t\t\tString[] params = queryString.split(\"&\");\n\t\t\t\n\t\t\tfor (String pair : params)\n\t\t\t{\n\t\t\t\tString[] keyValue = pair.split(\"=\");\n\t\t\t\t\n\t\t\t\tif (keyValue.length == 1)\n\t\t\t\t{\n\t\t\t\t\thttpRequest.addHeader(keyValue[0], \"\");\n\t\t\t\t\tparameters.put(keyValue[0], \"\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\thttpRequest.addHeader(keyValue[0], keyValue[1]);\n\t\t\t\t\tparameters.put(keyValue[0], keyValue[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn parameters;\n\t}", "title": "" }, { "docid": "3f6abc705f97822ed0a17f36af2be68c", "score": "0.5901338", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> parameters = new HashMap<>();\n parameters.put(\"fromMonth\", String.valueOf(month));\n parameters.put(\"fromDay\", String.valueOf(day));\n parameters.put(\"fromHour\", String.valueOf(hour));\n parameters.put(\"lat1\", String.valueOf(origin.latitude));\n parameters.put(\"lon1\", String.valueOf(origin.longitude));\n parameters.put(\"lat2\", String.valueOf(destination.latitude));\n parameters.put(\"lon2\", String.valueOf(destination.longitude));\n return parameters;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "9ee887fd55305fdb0369654cd809e584", "score": "0.0", "text": "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t\tLog.e(\"TabIR\",\"TabIR-->onStart\");\r\n//\t\tmUid=myPreferences.getString(\"uid\", \"NULL\");\t\r\n//\t\tif (mUid.equals(\"NULL\")) {\r\n//\t\t\tToast.makeText(getApplicationContext(),\"设备为设置,请到Set界面添加设备\", Toast.LENGTH_SHORT).show();\t\r\n//\t\t\tfinish();\r\n//\t\t}\r\n\t\t\r\n//\t\tmyPre= getSharedPreferences(\"devset\", Activity.MODE_PRIVATE);\r\n//\t\tString mUid = myPre.getString(\"uid\", \"NULL\");\t\r\n//\t\tif (!mUid.equals(\"NULL\")) {\t \r\n//\t\t\tLog.e(\"TabIR\",\"connecting mUid is not NULL\");\r\n//\t\t\tshowProgressDialog(mUid);\r\n//\t\t}else{\r\n//\t\t\tLog.e(\"TabIR\",\"connecting mUid is not NULL\");\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tLog.e(\"TabIR\",\"mUid=\"+TabControl.mUid);\r\n\t\tCursor cur=TabControl.mSQLHelper.seleteListClass(TabControl.writeDB, TabControl.mUid,\"ir\");\r\n\t\tLog.e(\"leewoo\",\"count=\"+cur.getCount());\r\n//\t\tif(0==cur.getCount()){\r\n//\t\t\tLog.e(\"leewoo\",\"count=\"+0);\r\n//\t\t\treturn;\r\n//\t\t}\t\t\t\r\n\t\tList<Map<String, Object>> listItemsIR=new ArrayList<Map<String,Object>>();\t\r\n\t\tfor(cur.moveToFirst();!cur.isAfterLast();cur.moveToNext()){\r\n\t\t\tMap<String,Object> listItem =new HashMap<String,Object>();\t\t\t\r\n\t\t\tlistItem.put(\"name\", cur.getString(4));\r\n\t\t\tString type=cur.getString(3);\r\n\t\t\tlistItem.put(\"irflag\", \"ir\");\r\n//\t\t\titemsIR = {\"TV\", \"AC\",\"Media\",\"STU\",\"WH\", \"DVD\",\"FAN\",\"自定义1\",\"自定义2\"};\r\n\t\t\t listItem.put(\"type\",type);\r\n\t\t\t if(type.equals(\"TV\")){\r\n\t\t\t\t listItem.put(\"icon\", R.drawable.ir_logo_tv);\r\n\t\t\t\t listItem.put(\"status\", R.drawable.ir_logo_close);\r\n\t\t\t }else if(type.equals(\"AC\")){\r\n\t\t\t\t listItem.put(\"icon\", R.drawable.ir_logo_ac); \r\n\t\t\t\t listItem.put(\"status2\", R.drawable.rf_logo_on);\r\n\t\t\t\t listItem.put(\"status\", R.drawable.rf_logo_off);\r\n\t\t\t }else if(type.equals(\"MEDIA\")){//media\r\n\t\t\t\t listItem.put(\"icon\", R.drawable.ir_logo_media);\r\n\t\t\t\t listItem.put(\"status\", R.drawable.ir_logo_close);\r\n\t\t\t }else if(type.equals(\"STU\")){\r\n\t\t\t\t listItem.put(\"icon\", R.drawable.ir_logo_stu);\r\n\t\t\t\t listItem.put(\"status\", R.drawable.ir_logo_close);\t\t\t\r\n\t\t\t }else if(type.equals(\"WH\")){\r\n\t\t\t\t listItem.put(\"icon\",R.drawable.ir_logo_wh );\r\n\t\t\t\t listItem.put(\"status2\", R.drawable.rf_logo_on);\r\n\t\t\t\t listItem.put(\"status\", R.drawable.rf_logo_off);\r\n\t\t\t }else if(type.equals(\"DVD\")){\r\n\t\t\t\t listItem.put(\"icon\", R.drawable.ir_logo_dvd);\r\n\t\t\t\t listItem.put(\"status\", R.drawable.ir_logo_close);\r\n\t\t\t }else if(type.equals(\"FAN\")){\r\n\t\t\t\t listItem.put(\"icon\", R.drawable.ir_logo_fan1);\r\n\t\t\t\t listItem.put(\"status\", R.drawable.ir_logo_close);\r\n\t\t\t }else if(type.equals(\"CUSTOM1\")){\r\n\t\t\t\t listItem.put(\"icon\", R.drawable.ir_logo_custom);\r\n\t\t\t\t listItem.put(\"status\", R.drawable.ir_logo_close);\r\n\t\t\t }else {\r\n\t\t\t\t listItem.put(\"icon\",R.drawable.ir_logo_custom);\r\n\t\t\t\t listItem.put(\"status2\", R.drawable.rf_logo_on);\r\n\t\t\t\t listItem.put(\"status\", R.drawable.rf_logo_off);\r\n\t\t\t }\t\r\n\t\t\tlistItem.put(\"devid\", cur.getInt(1));\r\n\t\t\tlistItemsIR.add(listItem);\r\n\t\t}\t\r\n\t\tcur.close();\r\n\t\t//list排序 需要优化\r\n//\t\tif (!listItemsIR.isEmpty()) { \r\n//\t \t Collections.sort(listItemsIR, new Comparator<Map<String, Object>>() {\r\n//\t \t@Override\r\n//\t \tpublic int compare(Map<String, Object> object1,\r\n//\t \tMap<String, Object> object2) {\r\n//\t\t\t//根据文本排序\r\n//\t return ((String) object1.get(\"name\")).compareTo((String) object2.get(\"name\"));\r\n//\t \t} \r\n//\t }); \r\n//\t }\t\r\n\t\tirAdapter=new EtcAdapter(this, listItemsIR);\r\n\t\tlistViewIR.setAdapter(irAdapter);\r\n\t}", "title": "" } ]
[ { "docid": "ef1b6c3f597a66c59960d73eadee6f25", "score": "0.6904447", "text": "private void apparence()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "4862518dedb9e169c3cc620e5ebe04c5", "score": "0.6696056", "text": "@Override\r\n\tpublic void atura() {\n\t\t\r\n\t}", "title": "" }, { "docid": "651ef6275f1a33ed6582a1599cab78d2", "score": "0.66211534", "text": "@Override\n\tpublic void bekle() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "c56ced5e9768caa7a88a0e86dc1d02eb", "score": "0.6557507", "text": "@Override\n\tpublic void pintate() {\n\t\t\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6546559", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "761f5db0b07474bff2090f23a6693efb", "score": "0.6211042", "text": "private void Prodto() {\n\n\t}", "title": "" }, { "docid": "74578344538dd194907dffc0406cacac", "score": "0.6166714", "text": "@Override\n public void suicide() {\n \n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6153736", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "db51ad8e6f15ad35a767d84e1e1eda68", "score": "0.61275035", "text": "@Override\n\t\t\tpublic void cry() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e24a2515146ce17481b567e14f6d3258", "score": "0.6075012", "text": "public void retrievecart() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "fba36b6a112c0dbc3dd5aa61fe730a40", "score": "0.60609394", "text": "@Override\n\tpublic void subir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "280c1f1bfe3582788f566eafe40085dd", "score": "0.60448366", "text": "@Override\n \tpublic void init() {\n \t\t\n \t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "2ba22ff158b6e941041f9460eddd0944", "score": "0.5991409", "text": "@Override\n public void operation() {\n \n }", "title": "" }, { "docid": "afc2a2ef708681a23da24526386fa543", "score": "0.5979341", "text": "@Override\r\n\tpublic void demo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "951638c11e887c3f81bcc83306f4e413", "score": "0.5957303", "text": "@Override\r\n\tpublic void trunon() {\n\r\n\t}", "title": "" }, { "docid": "03a6fa2a6dc40f30e9f67797ea87ac0e", "score": "0.5950196", "text": "@Override\n\tvoid generate() {\n\t\t\n\t}", "title": "" }, { "docid": "86b315eabc97abef1ea325b454b16656", "score": "0.5934478", "text": "@Override\n\tpublic void veneno() {\n\t\t\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.59033096", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58815277", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "a6c80a6456cfc74acaa16a2f9c3063c5", "score": "0.5881057", "text": "@Override\n\t\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "bf75e876384ccbd3516440064d914edb", "score": "0.585407", "text": "@Override\r\n\t\t\tpublic void process() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.5850562", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.58336115", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "d07c1f5c9d405e36c1ebf9e7e586652e", "score": "0.5830177", "text": "private Solution() {\n /** Not using this function**/\n }", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5821835", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58195674", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "4112f041d618773e927eaf69a897467b", "score": "0.5817743", "text": "@Override\r\n\tpublic void tempup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "8d9539007d174aa71cae3fdbfe4952c6", "score": "0.5801801", "text": "@Override \n\tpublic void init() {\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "5243b8d363dba36edfd9e64eb96cc9d5", "score": "0.57880706", "text": "@Override\n public int getStatus() {\n return 0;\n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.5776792", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5773822", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.57677484", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "81ea0647fff57e17ec5107049b4dbf8b", "score": "0.57594514", "text": "@Override\n public int size() {\n return 1;\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5755988", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "33572cd017818797318a53dbacbc00b9", "score": "0.57530975", "text": "@Override\r\n\t\t\tpublic void initialize() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.57492036", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57409", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5736822", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4f5334e4c63e1b16e38cf957e8576a25", "score": "0.5735921", "text": "@Override\n\tpublic void getHaned() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.57304126", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "ba3ff1d644c6b502f46e78f3112e984c", "score": "0.57151", "text": "@Override\r\n\tpublic void toss() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57141805", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "20aa3abef3af4ea8bcf5e834227be04c", "score": "0.57137775", "text": "@Override\n\tpublic void Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "6894ea3aa25d3dee3c3dd8331b9a9cdd", "score": "0.57120746", "text": "@Override\n\t public int correr() {\n\t return 7;\n\t }", "title": "" }, { "docid": "d7405dbb7f385c28de1f97859172342b", "score": "0.5705621", "text": "@Override\n\tpublic void affiche() {\n\t}", "title": "" }, { "docid": "f9fa4d6203b441d4a00a824c3219ddb2", "score": "0.5704342", "text": "@Override\n\tprotected void doOperate() {\n\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "af5603f291fb4fc9dd83e46e0602225b", "score": "0.56868714", "text": "@Override\r\n\tpublic void demo3() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.56740177", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "e8efac2ee01f452014413fb75d28b3a6", "score": "0.5659524", "text": "@Override\r\n\tpublic void initState() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1857996533d34551ac38dd34ec5213a3", "score": "0.56573755", "text": "public void koniecReplikacie() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
a2f9d2bd769680213dae69c5b8d62238
Allows to encode only part of the input. Defines start (offset) and duration of the desired section.
[ { "docid": "260053fef5624a2824f43a544b4b9e16", "score": "0.0", "text": "public void setTrimming(Trimming trimming) {\n this.trimming = trimming;\n }", "title": "" } ]
[ { "docid": "ad2a763f95bbabdc945af0e1826de7b8", "score": "0.51553565", "text": "public interface Encoder {\n\n /** Advances the encoder to the specified region.\n * The specified range is used to rescale the given\n * region intervals to the coder's native coding range.\n * <p>For example, {@code storeRegion(0,1,2)} and\n * {@code storeRegion(1,2,2)} can be used to encode the\n * outcomes of a fair coin flip.</p>\n * @param l low index (min=0, max=h-1)\n * @param h high index (min=l+1, max=t)\n * @param t range\n * @see Decoder#loadRegion(long,long,long) */\n public void storeRegion(long l, long h, long t);\n \n /** Advances the encoder to the specified region.\n * This method performs no rescaling, and is useful when the\n * encoder's current coding range is known.\n * The coding range can be queried with {@code getRange()}.\n * @param l low index (min=0, max=h-1)\n * @param h high index (min=l+1, max=range)\n * @see #getRange()\n * @see Decoder#loadRegion(long,long) */\n public void storeRegion(long l, long h);\n\n /** Returns the encoder's current coding range.\n * The coding range typically changes after each coding step.\n * Knowing the coder's range can help to reduce rounding\n * errors and maximise performance. */\n public long getRange();\n\n}", "title": "" }, { "docid": "ba311af41025fd744678bdff238b17ca", "score": "0.48659164", "text": "private void writeFragmentationUnits(byte[] data, int srcOffset, int dataLength, long pts) {\n dataLength -= 5;\n\n int offset = srcOffset + 5;\n while (dataLength > 0) {\n RtpPacket rtpPacket = getRtpPacket();\n byte[] dest = rtpPacket.getBuffer();\n\n writeRtpHeader(dest, pts);\n\n // Set FU-A indicator\n dest[RTP_HEADER_LENGTH] = (byte) (data[srcOffset + 4] & 0xE0);\n dest[RTP_HEADER_LENGTH] += 28; // (FU-A)\n\n // Set FU-A header\n dest[RTP_HEADER_LENGTH + 1] = (byte) (data[srcOffset + 4] & 0x1F);\n if (offset == srcOffset + 5) {\n // set start flag\n dest[RTP_HEADER_LENGTH + 1] += 0x80;\n }\n\n int length;\n if (dataLength > MAX_PACKET_SIZE - HEADER_LEN) {\n length = MAX_PACKET_SIZE - HEADER_LEN;\n } else {\n // set end flag\n dest[RTP_HEADER_LENGTH + 1] += 0x40;\n writeNextPacket(dest);\n length = dataLength;\n }\n\n System.arraycopy(data, offset, dest, HEADER_LEN, length);\n\n send(rtpPacket, HEADER_LEN + length, pts);\n\n offset += length;\n dataLength -= length;\n }\n }", "title": "" }, { "docid": "533b8bf472a08864d15384a935c51950", "score": "0.4849399", "text": "public static byte[] encode(byte[] input, int inOffset, int inLen)\r\n/* 41: */ {\r\n/* 42: 91 */ byte[] output = new byte[(inLen + 2) / 3 * 4];\r\n/* 43: 92 */ encode(input, inOffset, inLen, output, 0);\r\n/* 44: 93 */ return output;\r\n/* 45: */ }", "title": "" }, { "docid": "1d15693d67bc34751dc2e11908be7716", "score": "0.484487", "text": "public void setStartOffset(int startOffset) {\n\t\tthis.startOffset = startOffset;\n\t}", "title": "" }, { "docid": "584c18516d84eb86935e93dcea3339fc", "score": "0.48339647", "text": "@Test\n public void encode_startIntervalWorkoutWithDuration1234AndSeconds_returnsWIU04D2() {\n assertEquals(\"WIU04D2\", interpreter.encode(new ConfigureWorkoutMessage(START_INTERVAL_WORKOUT, 1234, SECONDS)));\n }", "title": "" }, { "docid": "b79c485658e9ceb5898ee15351804979", "score": "0.4780403", "text": "public void description(byte[] data, int start, int length) throws FastaException, IOException;", "title": "" }, { "docid": "318dbedae27b1f1390ed404eb5dd2535", "score": "0.4725386", "text": "public interface HasOffset extends Serializable {\r\n\r\n /**\r\n * Return the beginning character offset of the label (or -1 if none).\r\n *\r\n * @return the beginning position for the label\r\n */\r\n public int beginPosition();\r\n\r\n\r\n /**\r\n * Set the beginning character offset for the label.\r\n * Setting this key to \"-1\" can be used to\r\n * indicate no valid value.\r\n *\r\n * @param beginPos The beginning position\r\n */\r\n public void setBeginPosition(int beginPos);\r\n\r\n /**\r\n * Return the ending character offset of the label (or -1 if none).\r\n *\r\n * @return the end position for the label\r\n */\r\n public int endPosition();\r\n\r\n /**\r\n * Set the ending character offset of the label (or -1 if none).\r\n *\r\n * @param endPos The end character offset for the label\r\n */\r\n public void setEndPosition(int endPos);\r\n\r\n}", "title": "" }, { "docid": "5846077d0550d12eca6337a338d6954b", "score": "0.47133645", "text": "public void sequence(byte[] data, int start, int length) throws FastaException, IOException;", "title": "" }, { "docid": "f80fc5099f74388169a7e164f9b5beb6", "score": "0.47052708", "text": "byte[] encode(S span);", "title": "" }, { "docid": "10e7b288a2e6f96a202cbe79895dc283", "score": "0.4700789", "text": "private void updateStart (long offset)\n {\n start += offset;\n timeService.setStart(start);\n competitionControl.resume(start);\n }", "title": "" }, { "docid": "1de11c9f1e50bf5bdf74140fda536dbb", "score": "0.46773744", "text": "public void compactedStart (long offset, long pollTimeoutMs) ;", "title": "" }, { "docid": "51a56582dde4f45b2cb02fdfd7ceabe2", "score": "0.46313107", "text": "public se.lth.cs.koshik.model.avro.AvroAnnotation.Builder setBegin(int value) {\n validate(fields()[1], value);\n this.begin = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "title": "" }, { "docid": "8525164b44105e3bdbd126cea49bd8d9", "score": "0.46249285", "text": "private static void encode(byte[] input, int inOffset, int inLen, byte[] output, int outOffset)\r\n/* 60: */ {\r\n/* 61:127 */ int remaining = inLen % 3;int stop = inOffset + (inLen - remaining);\r\n/* 62:128 */ while (inOffset < stop)\r\n/* 63: */ {\r\n/* 64:130 */ byte b0 = input[(inOffset++)];\r\n/* 65:131 */ byte b1 = input[(inOffset++)];\r\n/* 66:132 */ byte b2 = input[(inOffset++)];\r\n/* 67:133 */ output[(outOffset++)] = nibble2code[(b0 >>> 2 & 0x3F)];\r\n/* 68:134 */ output[(outOffset++)] = nibble2code[(b0 << 4 & 0x3F | b1 >>> 4 & 0xF)];\r\n/* 69:135 */ output[(outOffset++)] = nibble2code[(b1 << 2 & 0x3F | b2 >>> 6 & 0x3)];\r\n/* 70:136 */ output[(outOffset++)] = nibble2code[(b2 & 0x3F)];\r\n/* 71: */ }\r\n/* 72:139 */ switch (remaining)\r\n/* 73: */ {\r\n/* 74: */ case 0: \r\n/* 75: */ break;\r\n/* 76: */ case 1: \r\n/* 77:144 */ byte b0 = input[(inOffset++)];\r\n/* 78:145 */ output[(outOffset++)] = nibble2code[(b0 >>> 2 & 0x3F)];\r\n/* 79:146 */ output[(outOffset++)] = nibble2code[(b0 << 4 & 0x3F)];\r\n/* 80:147 */ output[(outOffset++)] = 61;\r\n/* 81:148 */ output[(outOffset++)] = 61;\r\n/* 82:149 */ break;\r\n/* 83: */ case 2: \r\n/* 84:151 */ byte b0 = input[(inOffset++)];\r\n/* 85:152 */ byte b1 = input[(inOffset++)];\r\n/* 86:153 */ output[(outOffset++)] = nibble2code[(b0 >>> 2 & 0x3F)];\r\n/* 87:154 */ output[(outOffset++)] = nibble2code[(b0 << 4 & 0x3F | b1 >>> 4 & 0xF)];\r\n/* 88:155 */ output[(outOffset++)] = nibble2code[(b1 << 2 & 0x3F)];\r\n/* 89:156 */ output[(outOffset++)] = 61;\r\n/* 90:157 */ break;\r\n/* 91: */ default: \r\n/* 92:160 */ throw new IllegalStateException(\"should not happen\");\r\n/* 93: */ }\r\n/* 94: */ }", "title": "" }, { "docid": "a4050bac702ee5df8aca3c61fc251d06", "score": "0.4619009", "text": "byte[] encode(byte[] data, int offset, int length);", "title": "" }, { "docid": "e7a8ec10f3ece5de66a2aa31f32e02ce", "score": "0.45995364", "text": "@Override\r\n public void appendStart(final Appendable out, final Object... otherData) {\r\n }", "title": "" }, { "docid": "6b0c4376744a3bd0b2f3215fbe24c8ae", "score": "0.45779267", "text": "void start(ByteOutput newOutput) throws IOException;", "title": "" }, { "docid": "bc592a12089901d9f76401f965e4634f", "score": "0.45687035", "text": "public void setArtificialTimeStartOffset(String art) {\n m_artificialTimeStartOffset = art;\n }", "title": "" }, { "docid": "fad65416f1ae45971b6c25ceb06b816e", "score": "0.4553754", "text": "@Override\n\tpublic void encode() {\n\t\t\n\t}", "title": "" }, { "docid": "404f5e62923abdc9b52da9db41d6f9c2", "score": "0.45470905", "text": "private void encode(final int minOffset) {\n br.ufmg.labsoft.mutvariants.schematalib.SchemataLibMethods.listener.listen(\"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\");\n // choose an offset with some margins\n offset = AOR_plus(minOffset, 31, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86098, _mut86099, _mut86100, _mut86101);\n offset -= AOR_remainder(offset, 32, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86102, _mut86103, _mut86104, _mut86105);\n if ((_mut86117 ? ((_mut86111 ? ((encoding != null) || (ROR_equals(encoding.length, 1, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86106, _mut86107, _mut86108, _mut86109, _mut86110))) : ((encoding != null) && (ROR_equals(encoding.length, 1, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86106, _mut86107, _mut86108, _mut86109, _mut86110)))) || (ROR_equals(encoding[0], 0x0L, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86112, _mut86113, _mut86114, _mut86115, _mut86116))) : ((_mut86111 ? ((encoding != null) || (ROR_equals(encoding.length, 1, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86106, _mut86107, _mut86108, _mut86109, _mut86110))) : ((encoding != null) && (ROR_equals(encoding.length, 1, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86106, _mut86107, _mut86108, _mut86109, _mut86110)))) && (ROR_equals(encoding[0], 0x0L, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86112, _mut86113, _mut86114, _mut86115, _mut86116))))) {\n // the components are all zeroes\n return;\n }\n // 63 bits per element because there is no unsigned long in Java)\n final int neededBits = AOR_minus(AOR_plus(offset, 1, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86118, _mut86119, _mut86120, _mut86121), lsb, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86122, _mut86123, _mut86124, _mut86125);\n final int neededLongs = AOR_divide((AOR_plus(neededBits, 62, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86126, _mut86127, _mut86128, _mut86129)), 63, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86130, _mut86131, _mut86132, _mut86133);\n encoding = new long[AOR_multiply(components.length, neededLongs, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86134, _mut86135, _mut86136, _mut86137)];\n // mix the bits from all components\n int eIndex = 0;\n int shift = 62;\n long word = 0x0L;\n for (int k = offset; ROR_less(eIndex, encoding.length, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86153, _mut86154, _mut86155, _mut86156, _mut86157); --k) {\n br.ufmg.labsoft.mutvariants.schematalib.SchemataLibMethods.listener.listen(\"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\");\n for (int vIndex = 0; ROR_less(vIndex, components.length, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86148, _mut86149, _mut86150, _mut86151, _mut86152); ++vIndex) {\n br.ufmg.labsoft.mutvariants.schematalib.SchemataLibMethods.listener.listen(\"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\");\n if (ROR_not_equals(getBit(vIndex, k), 0, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86138, _mut86139, _mut86140, _mut86141, _mut86142)) {\n word |= 0x1L << shift;\n }\n if (ROR_equals(shift--, 0, \"org.apache.commons.math3.geometry.partitioning.utilities.OrderedTuple.encode_183\", _mut86143, _mut86144, _mut86145, _mut86146, _mut86147)) {\n encoding[eIndex++] = word;\n word = 0x0L;\n shift = 62;\n }\n }\n }\n }", "title": "" }, { "docid": "8260d6d2f8255e33f0208dc94c5d0d29", "score": "0.4546333", "text": "@Test\n public void encode_addIntervalWorkoutWithDuration1AndRestInterval1234AndMeters_returnsWIN04D20001() {\n assertEquals(\"WIN04D20001\", interpreter.encode(new ConfigureWorkoutMessage(ADD_INTERVAL_WORKOUT, 1, SECONDS, 1234)));\n }", "title": "" }, { "docid": "0510c01452029a52053ee584a95ccf43", "score": "0.45326698", "text": "@Test\n public void encode_startIntervalWorkoutWithDistance1AndMeters_returnsWII10001() {\n assertEquals(\"WII10001\", interpreter.encode(new ConfigureWorkoutMessage(START_INTERVAL_WORKOUT, 1, METERS)));\n }", "title": "" }, { "docid": "3d86abdd88d6b3c86bdc58883ab18a76", "score": "0.45056465", "text": "@Override\r\n\tpublic void encode(){\n\t\t\r\n\t}", "title": "" }, { "docid": "7f502817638189322c2fac72411086d8", "score": "0.44935262", "text": "public InStream(byte[] data, int offset, int length, Duration readDuration) {\n\t\tbuffer = new ByteArrayInputStream(data, offset, length);\n\t\tin = new DataInputStream(buffer);\n\t\tthis.length = length;\n\t\tthis.readDuration = readDuration;\n\t}", "title": "" }, { "docid": "6cd98f51939fdf72bf2a394062878367", "score": "0.4489603", "text": "public void start(int width, int height, Format format);", "title": "" }, { "docid": "769d6fc2abe3712721a45d601da166a1", "score": "0.44814587", "text": "@Override\n\tpublic byte[] process(byte[] input)\n\t{\n\t\t// 32-bit input is not yet supported.\n\t\tif(!validateInputParameters(0, 24))\n\t\t{\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\tif(outProperties.SampleRate == properties.SampleRate)\n\t\t{\n\t\t\t// No processing needed.\n\t\t\treturn input;\n\t\t}\n\n\t\t// Initialization\n\t\tint frameSize = properties.getFrameSize();\n\n\t\tByteBuffer inputBuffer = ByteBuffer.wrap(input);\n\t\tinputBuffer.order(properties.ByteOrder);\n\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n\t\t// Iteration\n\t\tint frameCount = 0;\n\n\t\t// O(n) - Iterate through frames, dependent on n (input length).\n\t\tfor(;;)\n\t\t{\n\t\t\t// The next location of the sample to retrieve. If the value is decimal, it is between two frames.\n\t\t\tdouble framePointer = MathHelper.Round(segmentOffset + (frameCount * decimationRate), DecimalPlaces);\n\t\t\t// The decimal portion of the frame pointer.\n\t\t\tdouble framePointerDecimal = MathHelper.Round(framePointer % 1, DecimalPlaces);\n\t\t\t/* An adjusted, positive value of the frame pointer's decimal portion,\n\t\t\t * representing the distance between the left frame and the right frame to interpolate.\n\t\t\t * When downsampling, it is the same value as framePointerDecimal. When upsampling,\n\t\t\t * consecutive input data will result in a negative offset, meaning the last frame\n\t\t\t * processed in the last set of input data is interpolated with the first frame of the\n\t\t\t * current input data to obtain the correct number of samples in output. In this case,\n\t\t\t * framePointerDecimal will be a negative value, and must be adjusted for interpolation.\n\t\t\t */\n\t\t\tdouble weight = MathHelper.Round((framePointerDecimal + 1) % 1, DecimalPlaces);\n\n\t\t\t// The frame numbers used to perform interpolation.\n\t\t\tint leftFrameNumber = (int) Math.round(framePointer - weight);\n\t\t\tint rightFrameNumber = leftFrameNumber + 1;\n\n\t\t\t// Ensure that the input data is large enough to contain the frames required in this loop.\n\t\t\t// If the weight is 0, only one frame is needed, the left frame. Otherwise, two frames are needed.\n\t\t\t// When upsampling, one last loop will be performed with empty input data to add extra frames based\n\t\t\t// on the remaining offset. The second test ensures that there is no missing or extra sample(s) added.\n\t\t\tif(input.length < (framePointerDecimal > 0 ? rightFrameNumber : leftFrameNumber) * frameSize + frameSize || (input.length == 0 && (int)Math.round(framePointerDecimal) >= 0))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Read samples in the left and right frames.\n\t\t\t// Left samples are null on the first frame when upsampling, due to a negative offset.\n\t\t\t// Right samples are null when the weight is 0, meaning an input sample is simply copied to the output.\n\t\t\tint[] leftSamples = leftFrameNumber < 0 ? readFrameSamples(lastFrameProcessed) : readFrameSamples(inputBuffer, leftFrameNumber);\n\t\t\tint[] rightSamples = weight > 0 ? readFrameSamples(inputBuffer, rightFrameNumber) : null;\n\n\t\t\tint[] interpolatedSamples = new int[properties.NumChannels];\n\n\t\t\t// O(1) - Iterate through channels, independent from n.\n\t\t\tfor(int channel = 0; channel < properties.NumChannels; channel++)\n\t\t\t{\n\t\t\t\t// Perform the actual interpolation.\n\t\t\t\t// When the left sample is set to 0 (because the bytes are null), the right sample will be interpolated with 0.\n\t\t\t\t// When the right sample is set to 0, then the weight is typically equal to 0, and the left sample will be selected as is.\n\t\t\t\tinterpolatedSamples[channel] = MathHelper.InterpolateLinear(leftSamples == null ? 0 : leftSamples[channel], rightSamples == null ? 0 : rightSamples[channel], weight);\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t// Write interpolated samples to the output stream.\n\t\t\t\t\tif(properties.BitsPerSample <= 8)\n\t\t\t\t\t{\n\t\t\t\t\t\toutputStream.write((byte) interpolatedSamples[channel]);\n\t\t\t\t\t}\n\t\t\t\t\telse if(properties.BitsPerSample <= 16)\n\t\t\t\t\t{\n\t\t\t\t\t\toutputStream.write(ByteHelper.GetShortBytes((short) interpolatedSamples[channel], properties.ByteOrder));\n\t\t\t\t\t}\n\t\t\t\t\telse if(properties.BitsPerSample <= 24)\n\t\t\t\t\t{\n\t\t\t\t\t\toutputStream.write(ByteHelper.GetNumberBytes(interpolatedSamples[channel], properties.ByteOrder, 3));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// Assuming 32-bit signed integers.\n\t\t\t\t\t\toutputStream.write(ByteHelper.GetIntBytes(interpolatedSamples[channel], properties.ByteOrder));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Error Writing Output Stream\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Increment the output frame count.\n\t\t\tframeCount++;\n\n\t\t\t// Place the buffer back to the first byte of the left frame.\n\t\t\tinputBuffer.position(Math.max(leftFrameNumber * frameSize, 0));\n\t\t}\n\n\t\t// Set the last frame processed and the segment offset in order to process the next data segment properly.\n\t\t// This is skipped on the last empty segment, as there is no actual frame being processed.\n\t\tif(input.length >= frameSize)\n\t\t{\n\t\t\tlastFrameProcessed = Arrays.copyOfRange(input, input.length - frameSize, input.length);\n\t\t\tsegmentOffset -= MathHelper.Round(((input.length / (decimationRate * frameSize) - (frameCount))) * decimationRate, DecimalPlaces);\n\t\t}\n\n\t\toutProperties.DataSize += outputStream.size();\n\t\treturn outputStream.toByteArray();\n\t}", "title": "" }, { "docid": "fa13d26eac3e65ada7816400094893cf", "score": "0.44813308", "text": "protected boolean includeRegionInScan(final byte[] startKey, final byte[] endKey) {\n return true;\n }", "title": "" }, { "docid": "ebf26690d4bb647815af789715d742fc", "score": "0.44659245", "text": "public void identifier(byte[] data, int start, int length) throws FastaException, IOException;", "title": "" }, { "docid": "cc7083176fba3e5d5d708eddb58b7f8e", "score": "0.44528443", "text": "@Override\n\tpublic void start(Chunk c) {\n\n\t}", "title": "" }, { "docid": "1559619ca13eade4ae838a228a809948", "score": "0.44142526", "text": "public M csrEndTimeStart(Object start){this.put(\"csrEndTimeStart\", start);return this;}", "title": "" }, { "docid": "ed268f644244c568031e8fb16e723014", "score": "0.4411977", "text": "public void setStart(int start) {\n this.start=start;\n }", "title": "" }, { "docid": "ed268f644244c568031e8fb16e723014", "score": "0.4411977", "text": "public void setStart(int start) {\n this.start=start;\n }", "title": "" }, { "docid": "e388c2d7a231fa07d52964d407acefab", "score": "0.44085816", "text": "public void initEncoder(){\n encoder.setDistancePerPulse(ENCODER_UNIT); //degrees\n encoder.start();\n }", "title": "" }, { "docid": "774a96ed93b17e7d63ca83279d9301cb", "score": "0.44028336", "text": "private SampleSegment(double start, double end, long seed, boolean complement) {\n _start = start;\n _end = end;\n _complement = complement;\n _seed = seed;\n }", "title": "" }, { "docid": "84f9cb192a80c2297ccd93226c886fd3", "score": "0.4397416", "text": "public byte encode( int inputSample )\n {\n int stepSize;\n int delta;\n byte encodedSample;\n\n stepSize = stepSizes[ stepIndex ];\n\n /* calculate delta */\n delta = inputSample - value;\n delta = clip( delta, -32768, 32767 );\n\n /* encode delta relative to the current stepsize */\n encodedSample = encodeDelta( stepSize, delta );\n\n /* decode ADPCM code value to reproduce delta and generate an estimated InputSample */\n value += decodeDelta( stepSize, encodedSample);\n value = clip( value, -32768, 32767 );\n\n /* adapt stepsize */\n stepIndex += indexDeltas[ encodedSample & 7 ];\n stepIndex = clip( stepIndex, 0, 88 );\n\n return encodedSample;\n }", "title": "" }, { "docid": "752dfadd3a0d7f6727012220fcad23b5", "score": "0.43860853", "text": "public void encodeHeader() {\n\t\t\n\t\t// determine packet size and make sure we can accept it\n\t\tint packetSize = buffer.readableBytes();\n\t\tif (packetSize < HEADER_SIZE) {\n\t\t\tthrow new IllegalArgumentException(\"buffer is too small for header, readable bytes: \" + packetSize);\n\t\t}\n\t\tif (packetSize > MAX_PACKET_SIZE) {\n\t\t\tthrow new IllegalArgumentException(\"packet is too large, size: \" + packetSize);\n\t\t}\n\t\t\n\t\t// assemble header fields\n\t\tint previousWriterIndex = buffer.writerIndex();\n\t\tbuffer.writerIndex(buffer.readerIndex());\n\t\tbuffer.writeShort(packetSize - HEADER_SIZE);\n\t\tbuffer.writeShort(type);\n\t\tbuffer.writerIndex(previousWriterIndex);\n\t\t\n\t}", "title": "" }, { "docid": "5a9ccdfaef36617d7667e2eb96248001", "score": "0.43791354", "text": "@Test\n public void encode_addIntervalWorkoutWithDistance1AndRestInterval1234AndMeters_returnsWIN04D20001() {\n assertEquals(\"WIN04D20001\", interpreter.encode(new ConfigureWorkoutMessage(ADD_INTERVAL_WORKOUT, 1, METERS, 1234)));\n }", "title": "" }, { "docid": "7af1cbb9a80d6fa6c876dc3846628ec9", "score": "0.43786556", "text": "void changeStart(int newStart) {\n if (newStart < 0 || newStart > end) {\n throw new IllegalArgumentException(\"Invalid start beat\");\n }\n this.start = newStart;\n }", "title": "" }, { "docid": "6972b8ceb3a23e906126f2f575994a32", "score": "0.4377346", "text": "public void feed(byte[] clip_part) {}", "title": "" }, { "docid": "4bfc34a4192077da86da03428370e0f3", "score": "0.43540597", "text": "protected void encode() {\n encodedFields = new LinkedList<>();\n encodedFields.add(delimiter + talker + formatter);\n }", "title": "" }, { "docid": "841d62c49836b40770c3664880eeaaac", "score": "0.4346337", "text": "public CWPartialInputStream(InputStream input,long limit)\r\n//===================================================================\r\n{\r\n\tsuper(input);\r\n\tthis.limit = limit;\r\n\tfilepos = -1;\r\n}", "title": "" }, { "docid": "7dce559d9fb05dd75453a3f0e738f726", "score": "0.43405375", "text": "void startCalculation(long length);", "title": "" }, { "docid": "8e84f700029fadb076fdee2d67b34c5c", "score": "0.43395713", "text": "public void setStart(int start) {\n this.start = start;\n }", "title": "" }, { "docid": "16a65506a197e1900c2139ae1e6a5faf", "score": "0.43254903", "text": "public Segment(long begin, long end) {\n this.begin = begin;\n this.end = end;\n }", "title": "" }, { "docid": "acc1621e20f72867c12d0d624e145318", "score": "0.43216234", "text": "public void setStart(int start) {\r\n this.start = start;\r\n }", "title": "" }, { "docid": "e701d0f1f3958c88ef11abc6a1c5f262", "score": "0.43058792", "text": "public CWPartialInputStream(InputStream input,int limit)\r\n//===================================================================\r\n{\r\n\tsuper(input);\r\n\tthis.limit = limit;\r\n\tfilepos = -1;\r\n}", "title": "" }, { "docid": "fe6a64fe4b28dda223bef1d5d1c5ca65", "score": "0.4300367", "text": "void beginWrite();", "title": "" }, { "docid": "14a19c07079d058112c6a23bb99d47ce", "score": "0.42966506", "text": "void beginBinary(byte[] header);", "title": "" }, { "docid": "ca7c2594695f0cd9c393eed3f27f3363", "score": "0.42963", "text": "@Override\r\n\tpublic void encodeBody(IoBuffer out) {\n\t}", "title": "" }, { "docid": "668ceb75d94075a73e36f74252166b97", "score": "0.4273367", "text": "public String getArtificialTimeStartOffset() {\n return m_artificialTimeStartOffset;\n }", "title": "" }, { "docid": "8fd2c08e022d0bba2f289d4b67478a56", "score": "0.42713994", "text": "Chunk concatonateFrom(int offset, int width) {\n int start, next, index, todo, frag;\n int i, delta;\n char[] target;\n \n if (offset < 0) {\n throw new IllegalArgumentException();\n }\n if (width < 0) {\n throw new IllegalArgumentException();\n }\n \n /*\n * Find the Chunk containing the start point of the range we want to\n * isolate.\n */\n \n start = 0;\n next = 0;\n i = 0;\n delta = 0;\n \n for (i = 0; i < chunks.length; i++) {\n if (start == offset) {\n delta = 0;\n break;\n }\n \n next = chunks[i].width;\n \n if (start + next > offset) {\n delta = offset - start;\n break;\n }\n \n start += next;\n }\n \n /*\n * Copy characters from this and subsequent Chunks into a char[]\n */\n \n index = 0;\n todo = width;\n target = new char[width];\n \n while (todo > 0) {\n if (i == chunks.length) {\n throw new IndexOutOfBoundsException();\n }\n \n // amount of to copy, which is all unless we're on first or last.\n if (chunks[i].width > todo) {\n frag = todo;\n } else {\n frag = chunks[i].width - delta;\n }\n \n System.arraycopy(chunks[i].text, chunks[i].start + delta, target, index, frag);\n index += frag;\n todo -= frag;\n delta = 0;\n i++;\n }\n \n if (todo == 0) {\n return new Chunk(target);\n }\n \n if (index == 0) {\n throw new IndexOutOfBoundsException(\"offset too high\");\n } else {\n throw new IndexOutOfBoundsException(\"width greater than available text\");\n }\n }", "title": "" }, { "docid": "1295de0b9a033fad2ec80461073cfb22", "score": "0.42565122", "text": "public void encode() {\r\n\t\tthis.setTLVValueLength(8);\r\n\t\tthis.tlv_bytes=new byte[this.TotalTLVLength];\r\n\t\tencodeHeader();\r\n\t\tint offset = 4;\r\n\t\tthis.tlv_bytes[offset]=(byte)(domainType>>>8 & 0xFF);\r\n\t\tthis.tlv_bytes[offset+1]=(byte)(domainType & 0xFF);\r\n\t\tSystem.arraycopy(domainId.getAddress(),0, this.tlv_bytes, 8, 4);\r\n\t}", "title": "" }, { "docid": "7fe8385a3b00e6381f48b00ee00a366f", "score": "0.4236783", "text": "public void transferToStream(OutputStream outputStream, long startOffset,\r\n long offset, long duration)\r\n throws IOException {\r\n SetDurationControl setDurationControl = (SetDurationControl)\r\n multiplexer.getControl(SetDurationControl.class.getName());\r\n if (setDurationControl != null) {\r\n setDurationControl.setOffset(new Time(offset * 1000000L));\r\n setDurationControl.setDuration(new Time(duration * 1000000L));\r\n }\r\n OutputStreamDataSink dataSink = new OutputStreamDataSink(\r\n multiplexer.getDataOutput(), 0, outputStream);\r\n dataSink.start();\r\n\r\n // Seek to the start of the video and audio\r\n long audioEndTimestamp = duration * 1000000L;\r\n long videoEndTimestamp = duration * 1000000L;\r\n long videoTimestampOffset = 0;\r\n if (videoMixer != null) {\r\n videoMixer.streamSeek(offset - (videoOffset / 1000000L)\r\n + startOffset);\r\n long videoOffsetShift =\r\n (videoMixer.getOffset() - offset - startOffset) * 1000000;\r\n videoTimestampOffset = videoOffset + videoOffsetShift;\r\n videoSource.setTimestampOffset(offset * 1000000L);\r\n }\r\n if (audioMixer != null) {\r\n audioMixer.streamSeek(offset - (audioOffset / 1000000L)\r\n + startOffset);\r\n long audioOffsetShift =\r\n (audioMixer.getOffset() - offset - startOffset) * 1000000;\r\n audioMixer.setTimestampOffset(audioOffset + audioOffsetShift);\r\n audioSource.setTimestampOffset(offset * 1000000L);\r\n }\r\n\r\n boolean isAudioData = false;\r\n boolean isVideoData = false;\r\n\r\n // Output the first video frame\r\n if (videoMixer != null) {\r\n videoMixer.setTimestampOffset(videoTimestampOffset);\r\n isVideoData = videoSource.readNext();\r\n if (isVideoData) {\r\n videoSource.setTimestamp(0);\r\n videoSource.process();\r\n isVideoData = videoSource.readNext();\r\n }\r\n\r\n }\r\n\r\n // Read the first audio buffer\r\n if (audioMixer != null) {\r\n isAudioData = audioSource.readNext();\r\n }\r\n\r\n long startTime = System.currentTimeMillis();\r\n long firstTimestamp = -1;\r\n\r\n // Output the rest of the data\r\n while ((isAudioData || isVideoData) && !dataSink.isDone()) {\r\n long audioTimestamp = Long.MAX_VALUE;\r\n if (isAudioData) {\r\n audioTimestamp = audioSource.getTimestamp();\r\n }\r\n long videoTimestamp = Long.MAX_VALUE;\r\n if (isVideoData) {\r\n videoTimestamp = videoSource.getTimestamp();\r\n }\r\n\r\n //System.err.println(\"Audio ts = \" + audioTimestamp + \" os = \" + audioMixer.getOffset() + \" Video ts = \" + videoTimestamp + \" os = \" + videoMixer.getOffset());\r\n\r\n if (audioTimestamp < videoTimestamp) {\r\n if (audioTimestamp <= audioEndTimestamp) {\r\n firstTimestamp = waitForNext(startTime, firstTimestamp,\r\n audioTimestamp);\r\n audioSource.process();\r\n isAudioData = audioSource.readNext();\r\n } else {\r\n isAudioData = false;\r\n }\r\n } else {\r\n if (videoTimestamp <= videoEndTimestamp) {\r\n firstTimestamp = waitForNext(startTime, firstTimestamp,\r\n videoTimestamp);\r\n videoSource.process();\r\n isVideoData = videoSource.readNext();\r\n } else {\r\n isVideoData = false;\r\n }\r\n }\r\n }\r\n\r\n if (videoMixer != null) {\r\n videoMixer.close();\r\n videoSource.close();\r\n }\r\n if (audioMixer != null) {\r\n audioMixer.close();\r\n audioSource.close();\r\n }\r\n multiplexer.close();\r\n while (!dataSink.isDone()) {\r\n try {\r\n Thread.sleep(100);\r\n } catch (InterruptedException e) {\r\n // Do Nothing\r\n }\r\n }\r\n System.err.println(\"Extractor finished\");\r\n }", "title": "" }, { "docid": "8b7ba9a0f2144e410ea8e50ecb65c466", "score": "0.4232899", "text": "private void convertStartEndFields(boolean reset) {\n\t\t// If initializing to go from start to end\n\t\tif (reset) {\n\t\t\tif (time_start_end_type_radio_button.isSelected()) {\n\t\t\t\tstart_text_field.setText(\"0\");\n\t\t\t\tString end_time = String.valueOf(processed_audio_samples\n\t\t\t\t\t\t.getDuration());\n\t\t\t\tend_text_field.setText(end_time);\n\t\t\t} else {\n\t\t\t\tstart_text_field.setText(\"0\");\n\t\t\t\tString end_sample = String.valueOf(processed_audio_samples\n\t\t\t\t\t\t.getNumberSamplesPerChannel() - 1);\n\t\t\t\tend_text_field.setText(end_sample);\n\t\t\t}\n\t\t}\n\n\t\t// If switching between time and sample indice, or vice versa\n\t\telse {\n\t\t\tfloat sampling_rate = processed_audio_samples.getSamplingRate();\n\t\t\tif (time_start_end_type_radio_button.isSelected()) {\n\t\t\t\tint start_sample = (int) (new Double(start_text_field.getText())\n\t\t\t\t\t\t.doubleValue());\n\t\t\t\tdouble start_time = DSPMethods.convertSampleToTime(\n\t\t\t\t\t\tstart_sample, sampling_rate);\n\t\t\t\tstart_text_field.setText(String.valueOf(start_time));\n\t\t\t\tint end_sample = (int) (new Double(end_text_field.getText())\n\t\t\t\t\t\t.doubleValue());\n\t\t\t\tdouble end_time = DSPMethods.convertSampleToTime(end_sample,\n\t\t\t\t\t\tsampling_rate);\n\t\t\t\tend_text_field.setText(String.valueOf(end_time));\n\t\t\t} else {\n\t\t\t\tdouble start_time = (new Double(start_text_field.getText()))\n\t\t\t\t\t\t.doubleValue();\n\t\t\t\tint start_sample = DSPMethods.convertTimeToSample(start_time,\n\t\t\t\t\t\tsampling_rate);\n\t\t\t\tstart_text_field.setText(String.valueOf(start_sample));\n\t\t\t\tdouble end_time = (new Double(end_text_field.getText()))\n\t\t\t\t\t\t.doubleValue();\n\t\t\t\tint end_sample = DSPMethods.convertTimeToSample(end_time,\n\t\t\t\t\t\tsampling_rate);\n\t\t\t\tend_text_field.setText(String.valueOf(end_sample));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d0c5c5568690eb61a5bce3686fd48670", "score": "0.42275313", "text": "void startInterleavedContinuous(short period)\n\t{\n\t\tshort period_reg = (short)((period / 10) - 1);\n\t\tperiod_reg = constrain(period_reg, (short)0, (short)254);\n\n\t\twriteReg(INTERLEAVED_MODE__ENABLE, 1);\n\t\twriteReg(SYSALS__INTERMEASUREMENT_PERIOD, period_reg);\n\t\twriteReg(SYSALS__START, 0x03);\n\t}", "title": "" }, { "docid": "e586fa1ba74139a0bf7ec75632305433", "score": "0.4219194", "text": "private int decoder2Encoder(boolean audio , MediaCodec audioDecoder , MediaCodec videoDecoder , MediaCodec audioEncoder , MediaCodec videoEncoder) {\n MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo();\n int decoderIndex ;\n int encoderIndex ;\n\n MediaCodec decoder = audio ? audioDecoder : videoDecoder;\n MediaCodec encoder = audio ? audioEncoder : videoEncoder;\n\n\n decoderIndex = decoder.dequeueOutputBuffer(bufferInfo, TIMEUS);\n\n if (0 <= decoderIndex) {\n ByteBuffer decodeBuffer = decoder.getOutputBuffer(decoderIndex);\n encoderIndex = encoder.dequeueInputBuffer(TIMEUS);\n\n if (0 <= encoderIndex) {\n ByteBuffer encodeBuffer = encoder.getInputBuffer(encoderIndex);\n// //PST计算出现问题,当第一段结束后,DST一旦重置,就会计算失误。\n// if (audio) {\n// gapA = bufferInfo.presentationTimeUs - gapA;\n// audioEncoderInputTimestamp += gapA ;\n// gapA = bufferInfo.presentationTimeUs;\n// } else {\n// gapV = bufferInfo.presentationTimeUs - gapV;\n// videoEncoderInputTimestamp += gapV;\n// gapV = bufferInfo.presentationTimeUs;\n// }\n if (audio){\n audioEncoderInputTimestamp = bufferInfo.presentationTimeUs;\n }else{\n videoEncoderInputTimestamp = bufferInfo.presentationTimeUs;\n }\n if ((bufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) {\n encoder.queueInputBuffer(encoderIndex, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM);\n Log.d(TAG, (audio ? \"Audio\" : \"Video\") + \" decoder received EOF\");\n return MediaCodec.BUFFER_FLAG_END_OF_STREAM;\n } else {\n\n encodeBuffer.put(decodeBuffer);\n if (bufferInfo.size >= 0) {\n encoder.queueInputBuffer(encoderIndex, bufferInfo.offset, bufferInfo.size, audio ? audioEncoderInputTimestamp : videoEncoderInputTimestamp, bufferInfo.flags);\n// Log.d(TAG, \"presentationTIMEUs \" + bufferInfo.presentationTimeUs + \" size \" + bufferInfo.size);\n }\n// Log.e(TAG,(audio ? \"audio \" : \"video \") + \"encoding\");\n decoder.releaseOutputBuffer(decoderIndex, false);\n }\n\n }\n }\n return 0;\n\n}", "title": "" }, { "docid": "ff89c5948e8c179826ce890712c7ef24", "score": "0.4217764", "text": "@Nullable\n @SerializedName(\"start_time\")\n public abstract String startTime();", "title": "" }, { "docid": "54274fbd789dec7f4d1a839f4e440c19", "score": "0.42104712", "text": "public static LinkedBuffer sencode(byte[] input, int inOffset, int inLen, WriteSession session, LinkedBuffer lb)\r\n/* 194: */ throws IOException\r\n/* 195: */ {\r\n/* 196:306 */ int outputSize = (inLen + 2) / 3 * 4;\r\n/* 197:307 */ session.size += outputSize;\r\n/* 198: */ \r\n/* 199:309 */ int available = lb.buffer.length - lb.offset;\r\n/* 200:310 */ if (outputSize > available)\r\n/* 201: */ {\r\n/* 202:312 */ byte[] buffer = lb.buffer;\r\n/* 203:313 */ int offset = lb.offset;int remaining = inLen % 3;int chunks = available / 4;\r\n/* 204:316 */ for (int stop = inOffset + (inLen - remaining); inOffset < stop; chunks--)\r\n/* 205: */ {\r\n/* 206:318 */ if (chunks == 0)\r\n/* 207: */ {\r\n/* 208:322 */ offset = session.flush(buffer, lb.start, offset - lb.start);\r\n/* 209: */ \r\n/* 210:324 */ chunks = (buffer.length - offset) / 4;\r\n/* 211: */ }\r\n/* 212:327 */ byte b0 = input[(inOffset++)];\r\n/* 213:328 */ byte b1 = input[(inOffset++)];\r\n/* 214:329 */ byte b2 = input[(inOffset++)];\r\n/* 215:330 */ buffer[(offset++)] = nibble2code[(b0 >>> 2 & 0x3F)];\r\n/* 216:331 */ buffer[(offset++)] = nibble2code[(b0 << 4 & 0x3F | b1 >>> 4 & 0xF)];\r\n/* 217:332 */ buffer[(offset++)] = nibble2code[(b1 << 2 & 0x3F | b2 >>> 6 & 0x3)];\r\n/* 218:333 */ buffer[(offset++)] = nibble2code[(b2 & 0x3F)];\r\n/* 219: */ }\r\n/* 220:336 */ switch (remaining)\r\n/* 221: */ {\r\n/* 222: */ case 0: \r\n/* 223: */ break;\r\n/* 224: */ case 1: \r\n/* 225:341 */ if (chunks == 0) {\r\n/* 226:342 */ offset = session.flush(buffer, lb.start, offset - lb.start);\r\n/* 227: */ }\r\n/* 228:344 */ byte b0 = input[(inOffset++)];\r\n/* 229:345 */ buffer[(offset++)] = nibble2code[(b0 >>> 2 & 0x3F)];\r\n/* 230:346 */ buffer[(offset++)] = nibble2code[(b0 << 4 & 0x3F)];\r\n/* 231:347 */ buffer[(offset++)] = 61;\r\n/* 232:348 */ buffer[(offset++)] = 61;\r\n/* 233:349 */ break;\r\n/* 234: */ case 2: \r\n/* 235:351 */ if (chunks == 0) {\r\n/* 236:352 */ offset = session.flush(buffer, lb.start, offset - lb.start);\r\n/* 237: */ }\r\n/* 238:354 */ byte b0 = input[(inOffset++)];\r\n/* 239:355 */ byte b1 = input[(inOffset++)];\r\n/* 240:356 */ buffer[(offset++)] = nibble2code[(b0 >>> 2 & 0x3F)];\r\n/* 241:357 */ buffer[(offset++)] = nibble2code[(b0 << 4 & 0x3F | b1 >>> 4 & 0xF)];\r\n/* 242:358 */ buffer[(offset++)] = nibble2code[(b1 << 2 & 0x3F)];\r\n/* 243:359 */ buffer[(offset++)] = 61;\r\n/* 244:360 */ break;\r\n/* 245: */ default: \r\n/* 246:363 */ throw new IllegalStateException(\"should not happen\");\r\n/* 247: */ }\r\n/* 248:366 */ lb.offset = offset;\r\n/* 249:367 */ return lb;\r\n/* 250: */ }\r\n/* 251:370 */ encode(input, inOffset, inLen, lb.buffer, lb.offset);\r\n/* 252:371 */ lb.offset += outputSize;\r\n/* 253: */ \r\n/* 254:373 */ return lb;\r\n/* 255: */ }", "title": "" }, { "docid": "815f5a12157d3479d32245159062c6b8", "score": "0.4210412", "text": "public int getBioStart();", "title": "" }, { "docid": "310cd01ebe7d2bf2684315bc94d9a4bb", "score": "0.4209926", "text": "public final void encrypt(final int startSelection, final int endSelection) {\r\n if (startSelection != endSelection) {\r\n encryptText((startSelection < endSelection ? startSelection : endSelection),\r\n (startSelection < endSelection ? endSelection : startSelection));\r\n mSpanFlags.add(new SpanFlag((startSelection < endSelection ? startSelection\r\n : endSelection),\r\n (startSelection < endSelection ? endSelection : startSelection)));\r\n Collections.sort(mSpanFlags, new SpanFlagComparator());\r\n mergeSpanFlag();\r\n }\r\n }", "title": "" }, { "docid": "2a0c793b720d3a30839aebf1fe1278e8", "score": "0.4196469", "text": "public M csrAddTimeStart(Object start){this.put(\"csrAddTimeStart\", start);return this;}", "title": "" }, { "docid": "ed25c1dc78002a995b7da4c6f6651574", "score": "0.4194586", "text": "@Override\n public int getStartOffset ()\n {\n return view.getStartOffset ();\n }", "title": "" }, { "docid": "712831654f6ec27aa5550f18545a3349", "score": "0.41850176", "text": "public int getStartOffset() {\n\t\treturn startOffset;\n\t}", "title": "" }, { "docid": "14a65357bb46cff89077070b1516b27f", "score": "0.41786528", "text": "private MP3AudioHeader checkAudioStart(long startByte, MP3AudioHeader currentHeader) throws IOException, InvalidAudioFrameException {\n MP3AudioHeader newAudioHeader;\n MP3AudioHeader nextAudioHeader;\n\n //logger.warning(ErrorMessage.MP3_ID3TAG_LENGTH_INCORRECT.getMsg(file.getPath(), Hex.asHex(startByte), Hex.asHex(currentHeader.getMp3StartByte())));\n\n //because we cant agree on start location we reread the audioheader from the start of the file, at least\n //this way we cant overwrite the audio although we might overwrite part of the tag if we write this file\n //back later\n newAudioHeader = new MP3AudioHeader(file, 0);\n// //logger.info(\"Checking from start:\" + newAudioHeader);\n\n if (currentHeader.getMp3StartByte() == newAudioHeader.getMp3StartByte()) {\n //Although the tag size appears to be incorrect at least we have found the same location for the start\n //of audio whether we start searching from start of file or at the end of the alleged of file so no real\n //problem\n// //logger.info(ErrorMessage.MP3_START_OF_AUDIO_CONFIRMED.getMsg(file.getPath(), Hex.asHex(newAudioHeader.getMp3StartByte())));\n return currentHeader;\n } else {\n //We get a different value if read from start, can't guarantee 100% correct lets do some more checks\n// //logger.info((ErrorMessage.MP3_RECALCULATED_POSSIBLE_START_OF_MP3_AUDIO.getMsg(file.getPath(), Hex.asHex(newAudioHeader.getMp3StartByte()))));\n\n //Frame counts dont match so eiither currentHeader or newAudioHeader isnt really audio header\n if (currentHeader.getNumberOfFrames() != newAudioHeader.getNumberOfFrames()) {\n //Skip to the next header (header 2, counting from start of file)\n nextAudioHeader = new MP3AudioHeader(file, newAudioHeader.getMp3StartByte() + newAudioHeader.mp3FrameHeader.getFrameLength());\n// //logger.info(\"Checking next:\" + nextAudioHeader);\n\n //It matches the header we found when doing the original search from after the ID3Tag therefore it\n //seems that newAudioHeader was a false match and the original header was correct\n if (nextAudioHeader.getMp3StartByte() == currentHeader.getMp3StartByte()) {\n //logger.warning((ErrorMessage.MP3_START_OF_AUDIO_CONFIRMED.getMsg(file.getPath(), Hex.asHex(currentHeader.getMp3StartByte()))));\n return currentHeader;\n }\n //it matches the header we just found so lends weight to the fact that the audio does indeed start at new header\n else if (nextAudioHeader.getNumberOfFrames() == newAudioHeader.getNumberOfFrames()) {\n //logger.warning((ErrorMessage.MP3_RECALCULATED_START_OF_MP3_AUDIO.getMsg(file.getPath(), Hex.asHex(newAudioHeader.getMp3StartByte()))));\n return newAudioHeader;\n }\n ///Not sure but safer to return earlier audio beause stops jaudiotagger overwriting when writing tag\n else {\n //logger.warning((ErrorMessage.MP3_RECALCULATED_START_OF_MP3_AUDIO.getMsg(file.getPath(), Hex.asHex(newAudioHeader.getMp3StartByte()))));\n return newAudioHeader;\n }\n }\n //Same frame count so probably both audio headers with newAudioHeader being the firt one\n else {\n //logger.warning((ErrorMessage.MP3_RECALCULATED_START_OF_MP3_AUDIO.getMsg(file.getPath(), Hex.asHex(newAudioHeader.getMp3StartByte()))));\n return newAudioHeader;\n }\n }\n }", "title": "" }, { "docid": "18f782bb49389027c64740d9683cd60a", "score": "0.4178482", "text": "public abstract void substring(int id, int base, int start);", "title": "" }, { "docid": "30790eea70eba16cfae44d6f25f63be7", "score": "0.4173161", "text": "@Test\n public void encode_endIntervalWorkoutWithDistance1_returnsWINFFFF0001() {\n assertEquals(\"WINFFFF0001\", interpreter.encode(new ConfigureWorkoutMessage(END_INTERVAL_WORKOUT, 1, METERS, 0xFFFF)));\n }", "title": "" }, { "docid": "bc7ce4602f2720d63dd05cb0cb03335a", "score": "0.41674685", "text": "public String getBegin(){\r\n return begin;\r\n }", "title": "" }, { "docid": "ec6361f7b386741b84b65d1f5164919d", "score": "0.41575834", "text": "public void buildStartPoint()\n\t{\n\t\tfor (CritterBase critter : wave.getCritterWave())\n\t\t{\n\t\t\tcritter.setStartPoint(critter.correctRouteCopy);\n\t\t}\n\t}", "title": "" }, { "docid": "288b4c617d2881ca24e7e12d54c455e2", "score": "0.41575238", "text": "interface StartPosition {\n\n /**\n * Whether the event of the specified sequence number is included.\n * @return Whether to include the specified event.\n */\n boolean isInclusive();\n\n /**\n * The offset of the event within that partition. String keyword, \"earliest\" and \"latest\" (case-insensitive),\n * are reserved for specifying the start and end of the partition. Other provided value will be cast to Long.\n * @return The offset of the event within that partition.\n */\n String getOffset();\n\n /**\n * The sequence number of the event within that partition.\n * @return The sequence number of the event within that partition.\n */\n Long getSequenceNumber();\n\n /**\n * The event enqueued after the requested enqueuedDateTime becomes the current position.\n * @return The enqueued datetime.\n */\n Instant getEnqueuedDateTime();\n\n }", "title": "" }, { "docid": "06ae83746f3c896167518a48247e541d", "score": "0.4157061", "text": "public se.lth.cs.koshik.model.avro.AvroAnnotation.Builder clearBegin() {\n fieldSetFlags()[1] = false;\n return this;\n }", "title": "" }, { "docid": "786603dfd97e37423fc35558c7c288ad", "score": "0.4156378", "text": "public abstract double getStartPitch();", "title": "" }, { "docid": "4611ae0d7e026ae9c914352e361f2f02", "score": "0.41548052", "text": "public TimedSnippet(final int starttime, final int duration) {\n if (starttime < 0) {\n this.starttime = 0;\n } else {\n this.starttime = starttime;\n }\n if (duration > 0) {\n this.window = duration;\n } else {\n this.window = defaultDURATION;\n }\n }", "title": "" }, { "docid": "a88fa015acc13de0e6f8236c60c0c936", "score": "0.4153885", "text": "public static LinkedBuffer encode(byte[] input, int inOffset, int inLen, WriteSession session, LinkedBuffer lb)\r\n/* 134: */ throws IOException\r\n/* 135: */ {\r\n/* 136:230 */ int outputSize = (inLen + 2) / 3 * 4;\r\n/* 137:231 */ session.size += outputSize;\r\n/* 138: */ \r\n/* 139:233 */ int available = lb.buffer.length - lb.offset;\r\n/* 140:234 */ if (outputSize > available)\r\n/* 141: */ {\r\n/* 142:236 */ int chunks = available / 4;\r\n/* 143:237 */ if (chunks == 0)\r\n/* 144: */ {\r\n/* 145:240 */ if (outputSize > session.nextBufferSize)\r\n/* 146: */ {\r\n/* 147:242 */ byte[] encoded = new byte[outputSize];\r\n/* 148:243 */ encode(input, inOffset, inLen, encoded, 0);\r\n/* 149: */ \r\n/* 150:245 */ return new LinkedBuffer(session.nextBufferSize, new LinkedBuffer(encoded, 0, outputSize, lb));\r\n/* 151: */ }\r\n/* 152:249 */ byte[] encoded = new byte[session.nextBufferSize];\r\n/* 153:250 */ encode(input, inOffset, inLen, encoded, 0);\r\n/* 154: */ \r\n/* 155:252 */ return new LinkedBuffer(encoded, 0, outputSize, lb);\r\n/* 156: */ }\r\n/* 157:255 */ int inBefore = inOffset;\r\n/* 158:256 */ byte[] buffer = lb.buffer;\r\n/* 159:257 */ int offset = lb.offset;\r\n/* 160:261 */ while (chunks-- > 0)\r\n/* 161: */ {\r\n/* 162:263 */ byte b0 = input[(inOffset++)];\r\n/* 163:264 */ byte b1 = input[(inOffset++)];\r\n/* 164:265 */ byte b2 = input[(inOffset++)];\r\n/* 165:266 */ buffer[(offset++)] = nibble2code[(b0 >>> 2 & 0x3F)];\r\n/* 166:267 */ buffer[(offset++)] = nibble2code[(b0 << 4 & 0x3F | b1 >>> 4 & 0xF)];\r\n/* 167:268 */ buffer[(offset++)] = nibble2code[(b1 << 2 & 0x3F | b2 >>> 6 & 0x3)];\r\n/* 168:269 */ buffer[(offset++)] = nibble2code[(b2 & 0x3F)];\r\n/* 169: */ }\r\n/* 170:272 */ inLen -= inOffset - inBefore;\r\n/* 171: */ \r\n/* 172:274 */ outputSize -= offset - lb.offset;\r\n/* 173: */ \r\n/* 174:276 */ lb.offset = offset;\r\n/* 175:278 */ if (outputSize > session.nextBufferSize)\r\n/* 176: */ {\r\n/* 177:280 */ byte[] encoded = new byte[outputSize];\r\n/* 178:281 */ encode(input, inOffset, inLen, encoded, 0);\r\n/* 179: */ \r\n/* 180:283 */ return new LinkedBuffer(session.nextBufferSize, new LinkedBuffer(encoded, 0, outputSize, lb));\r\n/* 181: */ }\r\n/* 182:287 */ byte[] encoded = new byte[session.nextBufferSize];\r\n/* 183:288 */ encode(input, inOffset, inLen, encoded, 0);\r\n/* 184: */ \r\n/* 185:290 */ return new LinkedBuffer(encoded, 0, outputSize, lb);\r\n/* 186: */ }\r\n/* 187:293 */ encode(input, inOffset, inLen, lb.buffer, lb.offset);\r\n/* 188:294 */ lb.offset += outputSize;\r\n/* 189: */ \r\n/* 190:296 */ return lb;\r\n/* 191: */ }", "title": "" }, { "docid": "008ab9b92b12a57fc17dddd21764da06", "score": "0.41424155", "text": "@Override\n public int getStartByteIndex() {\n return startByteIndex;\n }", "title": "" }, { "docid": "bf327494487e0d5edeb143d06149b4ff", "score": "0.4129034", "text": "public Parser(byte []in, boolean encoding, int start, int stop)\r\n {\r\n\tthis.in = in;\r\n\tthis.start = start;\r\n\tthis.pos = start;\r\n\tthis.stop = stop;\r\n\t\r\n\tif (encoding == true) {\r\n\t parseEncoding();\r\n\t} else {\r\n\t this.encoding = ISO;\r\n\t}\r\n }", "title": "" }, { "docid": "32633a37b9e37aa15a51c8fe63764e6a", "score": "0.41262755", "text": "public OffsetDateTime getStart() {\n return this.start;\n }", "title": "" }, { "docid": "15d3be33e99570f8005fed42a7d12333", "score": "0.4119283", "text": "public String dump(int start, int len) {\r\n return buffer.toString();\r\n }", "title": "" }, { "docid": "638f1b3129545c86caf3c6a36db1d5f0", "score": "0.4115605", "text": "private static void addCalendarRangeKey(OutputStream itemOut, OutputStream valueDataOut, int startInnard0, int startInnard1,\n\t\t\tint endInnard0, int endInnard1) throws Exception {\n\t\t\n\t\tMemory itemMem = new Memory(JNANotesConstants.tableItemSize);\n\t\tNotesTableItemStruct item = NotesTableItemStruct.newInstance(itemMem);\n\t\titem.NameLength = 0;\n\t\titem.ValueLength = (short) ((JNANotesConstants.rangeSize + JNANotesConstants.timeDatePairSize + 2) & 0xffff);\n\t\titem.write();\n\n\t\tfor (int i=0; i<JNANotesConstants.tableItemSize; i++) {\n\t\t\titemOut.write(itemMem.getByte(i));\n\t\t}\n\n\t\tMemory valueMem = new Memory(JNANotesConstants.rangeSize + JNANotesConstants.timeDatePairSize + 2);\n\t\tvalueMem.setShort(0, ItemDataType.TYPE_TIME_RANGE.getValue().shortValue());\n\t\t\n\t\tPointer rangePtr = valueMem.share(2);\n\t\tNotesRangeStruct range = NotesRangeStruct.newInstance(rangePtr);\n\t\trange.ListEntries = 0;\n\t\trange.RangeEntries = 1;\n\t\trange.write();\n\t\t\n\t\tPointer pairPtr = rangePtr.share(JNANotesConstants.rangeSize);\n\t\tNotesTimeDatePairStruct pair = NotesTimeDatePairStruct.newInstance(pairPtr);\n\t\tpair.Lower = NotesTimeDateStruct.newInstance(new int[] {startInnard0, startInnard1});\n\t\tpair.Upper = NotesTimeDateStruct.newInstance(new int[] {endInnard0, endInnard1});\n\t\tpair.write();\n\t\t\n\t\tfor (int i=0; i<valueMem.size(); i++) {\n\t\t\tvalueDataOut.write(valueMem.getByte(i));\n\t\t}\n\t}", "title": "" }, { "docid": "5724a3556dbbdf12061bb0921ed8bf14", "score": "0.41121596", "text": "public void setBegin(String begin){\r\n if(begin == null){\r\n throw new IllegalArgumentException(\"InlineBlock begin required\");\r\n }\r\n this.begin = begin;\r\n }", "title": "" }, { "docid": "095248fbdeeb1b70a8422e6deda3472e", "score": "0.41113847", "text": "public TextCoord getBegin() { return begin; }", "title": "" }, { "docid": "34786f1676001e3fe7774e25b48f9797", "score": "0.4096362", "text": "private void addBeginsWith(RequestWrapper request, Field hashKey, FieldMapping fieldMapping) {\n FieldMapping fieldMappingForPrefix = new FieldMapping(new Field(null, S),\n new Field(null, hashKey.getType()),\n fieldMapping.getVirtualIndexName(),\n fieldMapping.getPhysicalIndexName(),\n fieldMapping.getIndexType(),\n fieldMapping.isContextAware());\n AttributeValue physicalValuePrefixAttribute = fieldMapper.apply(fieldMappingForPrefix, new AttributeValue(\"\"));\n request.putExpressionAttributeName(NAME_PLACEHOLDER, hashKey.getName());\n request.putExpressionAttributeValue(VALUE_PLACEHOLDER, physicalValuePrefixAttribute);\n request.setPrimaryExpression(\n (request.getPrimaryExpression() != null ? request.getPrimaryExpression() + \" and \" : \"\")\n + \"begins_with(\" + NAME_PLACEHOLDER + \", \" + VALUE_PLACEHOLDER + \")\");\n }", "title": "" }, { "docid": "329535fb343ca9e9d68e0a1cd6d9d41c", "score": "0.4096163", "text": "public void setBegin(Area begin) {\n\t\tthis.begin = begin;\n\t}", "title": "" }, { "docid": "a7bb0bb8ee4d4260545602d42a1c71ce", "score": "0.40953693", "text": "@Override\n public String toString() {\n return \"bytes=\" + strFromLongOrNull(start) + \"-\" + strFromLongOrNull(end);\n }", "title": "" }, { "docid": "072bb35b0424d3ff3588283c2f4132bd", "score": "0.4093681", "text": "@Override\n public String toString() {\n String res = \"[\";\n\n byte[] initialChunk = new byte[Math.min(16, sampleSize)];\n\n int oldpos = buffer.position();\n buffer.position(0);\n buffer.get(initialChunk);\n buffer.position(oldpos);\n res += new String(Hex.encodeHex(initialChunk));\n\n res += \"], size: \" + sampleSize + \", pt: \" + getPresentationTimeUs();\n return res;\n }", "title": "" }, { "docid": "6378cc3ee57e91f6e131c5e591a7f563", "score": "0.40931392", "text": "void setStart(float start);", "title": "" }, { "docid": "1fc4f48f184aeb0df4d7ed869a6b33f7", "score": "0.40923002", "text": "byte encodeDelta( int stepSize, int delta )\n {\n byte encodedSample = 0;\n\n if ( delta < 0 )\n {\n encodedSample = 8;\n delta = -delta;\n }\n if ( delta >= stepSize )\n {\n encodedSample |= 4;\n delta -= stepSize;\n }\n stepSize = stepSize >> 1;\n if ( delta >= stepSize )\n {\n encodedSample |= 2;\n delta -= stepSize;\n }\n stepSize = stepSize >> 1;\n if ( delta >= stepSize ) encodedSample |= 1;\n\n return encodedSample;\n }", "title": "" }, { "docid": "72bd0569acc77336ce138dc2599052a9", "score": "0.40867227", "text": "public native int getStartOffset() /*-{\n\t\treturn this.startOffset;\n }-*/;", "title": "" }, { "docid": "53512244ce5f6498b6950772872fd899", "score": "0.40850094", "text": "@Override\n public void encodeBegin(FacesContext context) throws IOException {\n }", "title": "" }, { "docid": "adf4116787403ae7311a02252e296b03", "score": "0.40826693", "text": "public void setDuration(int duration){this.duration = duration;}", "title": "" }, { "docid": "1a2a48cc359572511b446078ce0a5db9", "score": "0.40733135", "text": "protected void writeStartStreamResponse(String name, Request request, OutputStream out) throws IOException {\n StringBuilder response = new StringBuilder();\n if(request.isBrowserUserAgent()){\n response.append(\"HTTP/1.1 200 OK\\r\\n\");\n }else{\n response.append(\"ICY 200 OK\\r\\n\");\n }\n // add the stream name\n response.append(\"icy-notice1:<BR>This stream requires <a href=\\\"http://www.winamp.com/\\\">Winamp</a><BR>\\r\\n\");\n response.append(\"icy-notice2:SHOUTcast Distributed Network Audio Server/win32 v1.8.2<BR>\\r\\n\");\n response.append(\"icy-name:\").append(name).append(\"\\r\\n\");\n response.append(\"icy-genre:Grunge\\r\\n\");\n response.append(\"icy-url:http://overfitti.ng-dis.co/\\r\\n\");\n response.append(\"content-type:audio/mpeg\\r\\n\");\n // add metadata information\n response.append(\"icy-pub:1\\r\\n\");\n if(request.isMetadataRequested()){\n response.append(\"icy-metaint:\").append(METADATA_INTERVAL).append(\"\\r\\n\");\n }\n int bitrate = getBitrate();\n if(bitrate!=0){\n response.append(\"icy-br:\").append(bitrate).append(\"\\r\\n\");\n }\n response.append(\"\\r\\n\");\n out.write(response.toString().getBytes());\n }", "title": "" }, { "docid": "d34d14d4cf139c093017deb3fbcc46ae", "score": "0.40676805", "text": "Segment createSegment();", "title": "" }, { "docid": "0153f9891d895297d6b5257d91ab62de", "score": "0.40653235", "text": "public void encode(byte v, int offset) {\n mEncoderState.byteBuffer.put(mBaseOffset + offset, v);\n }", "title": "" }, { "docid": "0cce517982be83f7af133971298736cb", "score": "0.40611625", "text": "public void encode(short v, int offset) {\n mEncoderState.byteBuffer.putShort(mBaseOffset + offset, v);\n }", "title": "" }, { "docid": "bbc3f1796508e0b3fc438dd7956e3971", "score": "0.40608698", "text": "public void testMarkAtStart() throws IOException\n {\n final int len = 16;\n addChildStreams(2, true);\n stream.mark(TEST_LEN);\n read(len);\n checkOutput(0, len);\n stream.reset();\n read();\n checkOutput(0, 2 * TEST_LEN);\n }", "title": "" }, { "docid": "0b6e5ce1944f8a4c2f25f07da2407aee", "score": "0.4059527", "text": "public static void writeIOffset(ASMCodeFragment code, int offset) {\n\t\tcode.add(PushI, offset);\t// [datum base offset]\n\t\tcode.add(Add);\t\t\t\t// [datum base+off]\n\t\tcode.add(Exchange);\t\t\t// [base+off datum]\n\t\tcode.add(StoreI);\t\t\t// []\n\t}", "title": "" }, { "docid": "8a83d65832089771da94ee2c55bd28f8", "score": "0.40564287", "text": "void skipBlock(IndexInput in) throws IOException {\n final int numBits = in.readByte();\n if (numBits == ALL_VALUES_EQUAL) {\n in.readVInt();\n return;\n }\n assert numBits > 0 && numBits <= 32 : numBits;\n final int encodedSize = encodedSizes[numBits];\n in.seek(in.getFilePointer() + encodedSize);\n }", "title": "" }, { "docid": "b2ad7aaacbc281b641e74abdb57ef783", "score": "0.4056145", "text": "void encode(DataOutput outs) throws IOException;", "title": "" }, { "docid": "730e74f2ab7aafcb4b6351cbe43fcff2", "score": "0.40557155", "text": "public void set_offset(int offset) {_offset=offset;}", "title": "" }, { "docid": "512c445a53192ee347cbf9a231b82c9c", "score": "0.4053659", "text": "public abstract String fullToXML(int identation, double time);", "title": "" }, { "docid": "5389f9b40b05ad3295928b0556df51cd", "score": "0.40524933", "text": "public void addRawInputBegin(int x, int y, long t) {\n soup.call(\"addRawSequence\");\n soup.call(\"addRawPoint\", x, y, t);\n }", "title": "" }, { "docid": "dfbf00f3583692b96a6cff7a021a8163", "score": "0.404781", "text": "public int encode(int r19, int r20, int r21, boolean r22) {\n /*\n r18 = this;\n r1 = r18;\n r0 = r19;\n r2 = r20;\n r3 = r22;\n r4 = \"AVCEncoder\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r6 = \"encodeTexture::texID: \";\n r5.append(r6);\n r5.append(r0);\n r6 = \" pts: \";\n r5.append(r6);\n r5.append(r2);\n r6 = \" duration:\";\n r5.append(r6);\n r6 = r21;\n r5.append(r6);\n r7 = \" isEndStream = \";\n r5.append(r7);\n r5.append(r3);\n r5 = r5.toString();\n android.util.Log.d(r4, r5);\n monitor-enter(r18);\n r4 = r1.status;\t Catch:{ all -> 0x0240 }\n r5 = 2;\n r7 = -1;\n if (r4 != r5) goto L_0x0237;\n L_0x003f:\n r4 = r1.mMediaCodec;\t Catch:{ all -> 0x0240 }\n if (r4 != 0) goto L_0x0045;\n L_0x0043:\n goto L_0x0237;\n L_0x0045:\n if (r0 <= 0) goto L_0x0217;\n L_0x0047:\n if (r2 >= 0) goto L_0x004b;\n L_0x0049:\n goto L_0x0217;\n L_0x004b:\n r4 = r1.mTextureDrawer;\t Catch:{ all -> 0x0240 }\n if (r4 != 0) goto L_0x0057;\n L_0x004f:\n r4 = r18.initEGLCtx();\t Catch:{ all -> 0x0240 }\n if (r4 != 0) goto L_0x0057;\n L_0x0055:\n monitor-exit(r18);\t Catch:{ all -> 0x0240 }\n return r7;\n r4 = r1.mPTSQueue;\t Catch:{ all -> 0x0240 }\n r2 = java.lang.Integer.valueOf(r20);\t Catch:{ all -> 0x0240 }\n r6 = java.lang.Integer.valueOf(r21);\t Catch:{ all -> 0x0240 }\n r2 = android.util.Pair.create(r2, r6);\t Catch:{ all -> 0x0240 }\n r4.offer(r2);\t Catch:{ all -> 0x0240 }\n r2 = r1.mWidth;\t Catch:{ all -> 0x0240 }\n r4 = r1.mHeight;\t Catch:{ all -> 0x0240 }\n r6 = 0;\n android.opengl.GLES20.glViewport(r6, r6, r2, r4);\t Catch:{ all -> 0x0240 }\n r2 = \"AVCEncoder\";\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0240 }\n r4.<init>();\t Catch:{ all -> 0x0240 }\n r8 = \"encode: width = \";\n r4.append(r8);\t Catch:{ all -> 0x0240 }\n r8 = r1.mWidth;\t Catch:{ all -> 0x0240 }\n r4.append(r8);\t Catch:{ all -> 0x0240 }\n r8 = \" height = \";\n r4.append(r8);\t Catch:{ all -> 0x0240 }\n r8 = r1.mHeight;\t Catch:{ all -> 0x0240 }\n r4.append(r8);\t Catch:{ all -> 0x0240 }\n r4 = r4.toString();\t Catch:{ all -> 0x0240 }\n android.util.Log.v(r2, r4);\t Catch:{ all -> 0x0240 }\n r2 = r1.mTextureDrawer;\t Catch:{ all -> 0x0240 }\n r2.drawTexture(r0);\t Catch:{ all -> 0x0240 }\n android.opengl.GLES20.glFinish();\t Catch:{ all -> 0x0240 }\n r0 = r1.mDrawCount;\t Catch:{ all -> 0x0240 }\n r2 = 1;\n r0 = r0 + r2;\n r1.mDrawCount = r0;\t Catch:{ all -> 0x0240 }\n r0 = mEncoderCaller;\t Catch:{ all -> 0x0240 }\n r0.onSwapGlBuffers();\t Catch:{ all -> 0x0240 }\n r0 = r1.mFlag;\t Catch:{ all -> 0x0240 }\n if (r0 == 0) goto L_0x00af;\n L_0x00aa:\n r1.testCode(r3);\t Catch:{ all -> 0x0240 }\n r1.mFlag = r6;\t Catch:{ all -> 0x0240 }\n L_0x00af:\n if (r3 == 0) goto L_0x00b6;\n L_0x00b1:\n r0 = r1.mMediaCodec;\t Catch:{ all -> 0x0240 }\n r0.signalEndOfInputStream();\t Catch:{ all -> 0x0240 }\n L_0x00b6:\n r0 = r6;\n L_0x00b7:\n r0 = r0 + r2;\n r4 = android.os.Build.VERSION.SDK_INT;\t Catch:{ all -> 0x0240 }\n r8 = 21;\n if (r4 >= r8) goto L_0x00c6;\n L_0x00be:\n r4 = r1.mMediaCodec;\t Catch:{ all -> 0x0240 }\n r4 = r4.getOutputBuffers();\t Catch:{ all -> 0x0240 }\n r1.outputBuffers = r4;\t Catch:{ all -> 0x0240 }\n L_0x00c6:\n r4 = -2;\n r9 = r1.mMediaCodec;\t Catch:{ Throwable -> 0x0214 }\n r10 = r1.mBufferInfo;\t Catch:{ Throwable -> 0x0214 }\n r11 = TIMEOUT_USEC;\t Catch:{ Throwable -> 0x0214 }\n r11 = (long) r11;\t Catch:{ Throwable -> 0x0214 }\n r9 = r9.dequeueOutputBuffer(r10, r11);\t Catch:{ Throwable -> 0x0214 }\n r10 = \"AVCEncoder\";\n r11 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0240 }\n r11.<init>();\t Catch:{ all -> 0x0240 }\n r12 = \"outputBufferIndex = \";\n r11.append(r12);\t Catch:{ all -> 0x0240 }\n r11.append(r9);\t Catch:{ all -> 0x0240 }\n r11 = r11.toString();\t Catch:{ all -> 0x0240 }\n android.util.Log.v(r10, r11);\t Catch:{ all -> 0x0240 }\n r10 = \"AVCEncoder\";\n r11 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0240 }\n r11.<init>();\t Catch:{ all -> 0x0240 }\n r12 = \"mBufferInfo.flags = \";\n r11.append(r12);\t Catch:{ all -> 0x0240 }\n r12 = r1.mBufferInfo;\t Catch:{ all -> 0x0240 }\n r12 = r12.flags;\t Catch:{ all -> 0x0240 }\n r11.append(r12);\t Catch:{ all -> 0x0240 }\n r11 = r11.toString();\t Catch:{ all -> 0x0240 }\n android.util.Log.v(r10, r11);\t Catch:{ all -> 0x0240 }\n if (r9 != r7) goto L_0x011e;\n L_0x0105:\n if (r3 == 0) goto L_0x0111;\n L_0x0107:\n r4 = TIMEOUT_USEC;\t Catch:{ all -> 0x0240 }\n r8 = 5000; // 0x1388 float:7.006E-42 double:2.4703E-320;\n if (r4 >= r8) goto L_0x0111;\n L_0x010d:\n r4 = 10000; // 0x2710 float:1.4013E-41 double:4.9407E-320;\n TIMEOUT_USEC = r4;\t Catch:{ all -> 0x0240 }\n L_0x0111:\n if (r3 == 0) goto L_0x0140;\n L_0x0113:\n r4 = r1.mDrawCount;\t Catch:{ all -> 0x0240 }\n r8 = r1.mEncodeCount;\t Catch:{ all -> 0x0240 }\n if (r4 == r8) goto L_0x0140;\n L_0x0119:\n r4 = 10;\n if (r0 >= r4) goto L_0x0140;\n L_0x011d:\n goto L_0x00b7;\n L_0x011e:\n r10 = -3;\n if (r9 != r10) goto L_0x012b;\n L_0x0121:\n r4 = r1.mMediaCodec;\t Catch:{ all -> 0x0240 }\n r4 = r4.getOutputBuffers();\t Catch:{ all -> 0x0240 }\n r1.outputBuffers = r4;\t Catch:{ all -> 0x0240 }\n goto L_0x0212;\n L_0x012b:\n if (r9 != r4) goto L_0x0136;\n L_0x012d:\n r4 = \"AVCEncoder\";\n r8 = \"encode: output format change!\";\n android.util.Log.w(r4, r8);\t Catch:{ all -> 0x0240 }\n goto L_0x0212;\n L_0x0136:\n if (r9 >= 0) goto L_0x0147;\n L_0x0138:\n r0 = \"AVCEncoder\";\n r2 = \"encode: error.\";\n android.util.Log.w(r0, r2);\t Catch:{ all -> 0x0240 }\n L_0x0140:\n if (r3 == 0) goto L_0x0145;\n L_0x0142:\n r18.releaseEGLCtx();\t Catch:{ all -> 0x0240 }\n L_0x0145:\n monitor-exit(r18);\t Catch:{ all -> 0x0240 }\n return r6;\n r0 = android.os.Build.VERSION.SDK_INT;\t Catch:{ all -> 0x0240 }\n if (r0 < r8) goto L_0x0154;\n L_0x014c:\n r0 = r1.mMediaCodec;\t Catch:{ all -> 0x0240 }\n r0 = r0.getOutputBuffer(r9);\t Catch:{ all -> 0x0240 }\n L_0x0152:\n r11 = r0;\n goto L_0x0159;\n L_0x0154:\n r0 = r1.outputBuffers;\t Catch:{ all -> 0x0240 }\n r0 = r0[r9];\t Catch:{ all -> 0x0240 }\n goto L_0x0152;\n L_0x0159:\n r0 = r1.mBufferInfo;\t Catch:{ all -> 0x0240 }\n r0 = r0.offset;\t Catch:{ all -> 0x0240 }\n r11.position(r0);\t Catch:{ all -> 0x0240 }\n r0 = r1.mBufferInfo;\t Catch:{ all -> 0x0240 }\n r0 = r0.offset;\t Catch:{ all -> 0x0240 }\n r4 = r1.mBufferInfo;\t Catch:{ all -> 0x0240 }\n r4 = r4.size;\t Catch:{ all -> 0x0240 }\n r0 = r0 + r4;\n r11.limit(r0);\t Catch:{ all -> 0x0240 }\n r0 = r1.mBufferInfo;\t Catch:{ all -> 0x0240 }\n r0 = r0.flags;\t Catch:{ all -> 0x0240 }\n r0 = r0 & r5;\n if (r0 == 0) goto L_0x0189;\n L_0x0173:\n r0 = \"AVCEncoder\";\n r4 = \"mEncoderCaller.onSetCodecConfig\";\n android.util.Log.e(r0, r4);\t Catch:{ all -> 0x0240 }\n r0 = mEncoderCaller;\t Catch:{ all -> 0x0240 }\n if (r0 == 0) goto L_0x0183;\n L_0x017e:\n r0 = mEncoderCaller;\t Catch:{ all -> 0x0240 }\n r0.onSetCodecConfig(r11);\t Catch:{ all -> 0x0240 }\n L_0x0183:\n r0 = r1.mBufferInfo;\t Catch:{ all -> 0x0240 }\n r0.size = r6;\t Catch:{ all -> 0x0240 }\n goto L_0x020c;\n r0 = r1.mBufferInfo;\t Catch:{ all -> 0x0240 }\n r0 = r0.flags;\t Catch:{ all -> 0x0240 }\n r0 = r0 & r2;\n if (r0 == 0) goto L_0x0195;\n r17 = r2;\n goto L_0x0197;\n L_0x0195:\n r17 = r6;\n L_0x0197:\n r0 = \"AVCEncoder\";\n r4 = \"mEncoderCaller.onWriteFile\";\n android.util.Log.v(r0, r4);\t Catch:{ all -> 0x0240 }\n r0 = mEncoderCaller;\t Catch:{ all -> 0x0240 }\n if (r0 == 0) goto L_0x0205;\n L_0x01a2:\n r0 = \"AVCEncoder\";\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0240 }\n r4.<init>();\t Catch:{ all -> 0x0240 }\n r8 = \"encode: pts queue size = \";\n r4.append(r8);\t Catch:{ all -> 0x0240 }\n r8 = r1.mPTSQueue;\t Catch:{ all -> 0x0240 }\n r8 = r8.size();\t Catch:{ all -> 0x0240 }\n r4.append(r8);\t Catch:{ all -> 0x0240 }\n r4 = r4.toString();\t Catch:{ all -> 0x0240 }\n android.util.Log.d(r0, r4);\t Catch:{ all -> 0x0240 }\n r0 = r1.mPTSQueue;\t Catch:{ all -> 0x0240 }\n r0 = r0.size();\t Catch:{ all -> 0x0240 }\n if (r0 <= 0) goto L_0x01fd;\n L_0x01c6:\n r0 = r1.mEncodeCount;\t Catch:{ all -> 0x0240 }\n r0 = r0 + r2;\n r1.mEncodeCount = r0;\t Catch:{ all -> 0x0240 }\n r0 = r1.mPTSQueue;\t Catch:{ all -> 0x0240 }\n r0 = r0.poll();\t Catch:{ all -> 0x0240 }\n r0 = (android.util.Pair) r0;\t Catch:{ all -> 0x0240 }\n r4 = r1.mBufferInfo;\t Catch:{ all -> 0x0240 }\n r12 = r4.presentationTimeUs;\t Catch:{ all -> 0x0240 }\n r14 = 0;\n r4 = (r12 > r14 ? 1 : (r12 == r14 ? 0 : -1));\n if (r4 <= 0) goto L_0x01e2;\n L_0x01dd:\n r4 = r1.mBufferInfo;\t Catch:{ all -> 0x0240 }\n r14 = r4.presentationTimeUs;\t Catch:{ all -> 0x0240 }\n L_0x01e2:\n r10 = mEncoderCaller;\t Catch:{ all -> 0x0240 }\n r12 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;\n r12 = r14 / r12;\n r4 = r0.first;\t Catch:{ all -> 0x0240 }\n r4 = (java.lang.Integer) r4;\t Catch:{ all -> 0x0240 }\n r4 = r4.intValue();\t Catch:{ all -> 0x0240 }\n r14 = (long) r4;\t Catch:{ all -> 0x0240 }\n r0 = r0.second;\t Catch:{ all -> 0x0240 }\n r0 = (java.lang.Integer) r0;\t Catch:{ all -> 0x0240 }\n r16 = r0.intValue();\t Catch:{ all -> 0x0240 }\n r10.onWriteFile(r11, r12, r14, r16, r17);\t Catch:{ all -> 0x0240 }\n goto L_0x020c;\n L_0x01fd:\n r0 = \"AVCEncoder\";\n r4 = \"encode: no available pts!!!\";\n android.util.Log.w(r0, r4);\t Catch:{ all -> 0x0240 }\n goto L_0x020c;\n L_0x0205:\n r0 = \"AVCEncoder\";\n r4 = \"encode: no output.\";\n android.util.Log.i(r0, r4);\t Catch:{ all -> 0x0240 }\n L_0x020c:\n r0 = r1.mMediaCodec;\t Catch:{ all -> 0x0240 }\n r0.releaseOutputBuffer(r9, r6);\t Catch:{ all -> 0x0240 }\n r0 = r6;\n L_0x0212:\n goto L_0x00b7;\n L_0x0214:\n r0 = move-exception;\n monitor-exit(r18);\t Catch:{ all -> 0x0240 }\n return r4;\n L_0x0217:\n r3 = \"AVCEncoder\";\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0240 }\n r4.<init>();\t Catch:{ all -> 0x0240 }\n r5 = \"encode: invalidate params: texID = \";\n r4.append(r5);\t Catch:{ all -> 0x0240 }\n r4.append(r0);\t Catch:{ all -> 0x0240 }\n r0 = \", pts = \";\n r4.append(r0);\t Catch:{ all -> 0x0240 }\n r4.append(r2);\t Catch:{ all -> 0x0240 }\n r0 = r4.toString();\t Catch:{ all -> 0x0240 }\n android.util.Log.e(r3, r0);\t Catch:{ all -> 0x0240 }\n monitor-exit(r18);\t Catch:{ all -> 0x0240 }\n return r7;\n L_0x0237:\n r0 = \"AVCEncoder\";\n r2 = \"encode: codec is not reayd.\";\n android.util.Log.w(r0, r2);\t Catch:{ all -> 0x0240 }\n monitor-exit(r18);\t Catch:{ all -> 0x0240 }\n return r7;\n L_0x0240:\n r0 = move-exception;\n monitor-exit(r18);\t Catch:{ all -> 0x0240 }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.AVCEncoder.encode(int, int, int, boolean):int\");\n }", "title": "" }, { "docid": "f5b9bc222af75f502a2b70f6cd62b585", "score": "0.40464917", "text": "public abstract void substring(int id, int base, int start, int end);", "title": "" } ]
5f7b599625aca003bae210430c0f6809
Gets the request url. This is where the SOAP client sends the requests to.
[ { "docid": "d1086e45b1359bbf106340048bfc01a2", "score": "0.6979351", "text": "String requestUrl();", "title": "" } ]
[ { "docid": "be7e4017fb04ed140b3c629346fc297f", "score": "0.8198391", "text": "public String getRequestURL() {\n\t\treturn request_url;\n\t}", "title": "" }, { "docid": "e926111d368d20388a6d6d6fcd4329ea", "score": "0.8088265", "text": "public static String getRequestURL() {\n\t\tHttpServletRequest objHttpRequest = getHttpRequest();\n\t\treturn objHttpRequest.getRequestURL().toString();\n\t}", "title": "" }, { "docid": "20913fdaf036d86e6ef3fd7f114a0ed4", "score": "0.8025094", "text": "public String getRequestURL() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "90e6b6b3151bfd11e018d26468cd6a10", "score": "0.78551555", "text": "public URI getRequestUrl() {\n return this.requestUrl;\n }", "title": "" }, { "docid": "79331681a5073267cfb7768bef3ec335", "score": "0.7623063", "text": "public StringBuffer getRequestURL()\n {\n return getRequest().getRequestURL();\n }", "title": "" }, { "docid": "a7912f5ce7a44a3932addcf386d71416", "score": "0.7540487", "text": "public java.lang.StringBuffer getRequestURL() {\n\t\t\tint port = getServerPort();\n\t\t\treturn new StringBuffer().append(getScheme()).append(\"://\").append(getServerName()).append(\"https\".equals(getScheme()) && port == 443 || port == 80 ? \"\" : \":\" + String.valueOf(port)).append(getRequestURI());\n\t\t}", "title": "" }, { "docid": "be8fd4fac06a19d349f0da15e8ecf7d0", "score": "0.7335346", "text": "protected abstract String getRequestUrl();", "title": "" }, { "docid": "8adef28cb11c9c082d58cb3d27caac22", "score": "0.7224385", "text": "public String getRequestURI() {\n\t\t\treturn reqUriPathUn;\n\t\t}", "title": "" }, { "docid": "4417330435b1fe68354e62ccb0e64294", "score": "0.7179783", "text": "public String getRequestUrl() {\n StringBuffer request = getGroupUrl(REQ_POINTDATA, getGroup());\n appendKeyValue(request, PROP_DESCR, getDescriptor());\n appendRequestSelectClause(request);\n appendKeyValue(request, PROP_NUM, \"all\");\n //appendKeyValue(request, PROP_DEBUG, \"true\");\n appendKeyValue(request, PROP_POS, getDoRelativeTimes()\n ? \"ALL\"\n : \"0\");\n return request.toString();\n }", "title": "" }, { "docid": "c876ad8bc987d37323c5faf47457dbf9", "score": "0.71291304", "text": "public static String getWebServiceUrl() {\n return WEB_SERVICE_URL;\n }", "title": "" }, { "docid": "7525f286a3bc65df77f67c5b2ca6f812", "score": "0.7113027", "text": "public String getRequestURI() {\n return this.getContextPath() + this.getServletPath() + this.getPathInfo();\n }", "title": "" }, { "docid": "d46aa24d6f86657594d14feec942f3b1", "score": "0.704262", "text": "public String getRequestURI()\n {\n return getRequest().getRequestURI();\n }", "title": "" }, { "docid": "22d7e602e1d913857d0656dd7fdf33e0", "score": "0.69666773", "text": "@Override\n\t\tpublic StringBuffer getRequestURL() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "8d73450ff0d058ba0840f518597d7e96", "score": "0.6827358", "text": "@Override\n\tpublic StringBuffer getRequestURL() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0297e5475531242cb529ddb26c5cf181", "score": "0.68076456", "text": "public String getRequestPath() {\n return getExternalContext().getRequestContextPath();\n }", "title": "" }, { "docid": "380ab93e70114bba37f9e1190ee55a1b", "score": "0.6756946", "text": "public static String getRequestUrl(HttpServletRequest request) {\n\t\treturn request.getHeader(\"Referer\");\n\t}", "title": "" }, { "docid": "b442b5ca43469d3d5214969723de11cf", "score": "0.6518786", "text": "public String getEndpoint() {\n return URL_PATH;\n }", "title": "" }, { "docid": "b442b5ca43469d3d5214969723de11cf", "score": "0.6518786", "text": "public String getEndpoint() {\n return URL_PATH;\n }", "title": "" }, { "docid": "6ed80aa8fabb94f3f6b92d8ffdc1b0b4", "score": "0.65033215", "text": "private String getBaseUrl() {\n return getProtocol() + getAddress() + getPort();\n }", "title": "" }, { "docid": "de9609ce0769d9dc4284c3ada6086214", "score": "0.64940256", "text": "public String getEndpointUrl() {\n return this.endpointUrl;\n }", "title": "" }, { "docid": "94aeb42089596a138cbe2d66d1163b5c", "score": "0.64757746", "text": "public String getEndpointURL()\r\n {\r\n return endpointURL;\r\n }", "title": "" }, { "docid": "a714285fa22955276d8cd5f19b9bde36", "score": "0.645921", "text": "public String getURL() {\n return this.serviceURL;\n }", "title": "" }, { "docid": "b93596fb6a9826e4c155a99b2ff92dcd", "score": "0.6385101", "text": "public String getServiceUrl() {\n return serviceUrl;\n }", "title": "" }, { "docid": "b93596fb6a9826e4c155a99b2ff92dcd", "score": "0.6385101", "text": "public String getServiceUrl() {\n return serviceUrl;\n }", "title": "" }, { "docid": "5d460d54cbc2390ac0024e12fd9ec88f", "score": "0.6384707", "text": "public String GetURL()\n {\n return Pro.getProperty(\"URL\");\n }", "title": "" }, { "docid": "9db4573498abdc59dc2f2e2526aa4765", "score": "0.6371725", "text": "public static String getUrl() {\r\n\t\treturn URL;\r\n\t}", "title": "" }, { "docid": "e924d5848c63ffd5c4abffa640036141", "score": "0.63686866", "text": "public String getEndpointURL() {\n return endpointURL;\n }", "title": "" }, { "docid": "c96a9f53bb9f2a927880a8bbace12bf4", "score": "0.63570523", "text": "public String getURL()\n {\n int port = getPort();\n \n return (getScheme() + \"://\" + getHost() + \n \t (port == 80 ? \"\" : \":\" + getPort()) + \n \t getPath() + \n \t (_query == null ? \"\" : \"?\" + _query));\n }", "title": "" }, { "docid": "cfcff487637084f53c3873412a8e81ff", "score": "0.631806", "text": "public static String getTargetURL() {\r\n return getServerUrl();\r\n }", "title": "" }, { "docid": "06af7477e96ff842a1a39f98c2d2dfe8", "score": "0.6268076", "text": "@Override\n\t\tpublic String getRequestURI() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "64fb7475e319841e3f279a33eaebbb8d", "score": "0.6237639", "text": "protected String getRedirectUrl( HttpServletRequest req )\n {\n return getRedirectUrl(req, null, null, true, false);\n }", "title": "" }, { "docid": "f857d9fc16f780e41042b2d42386c51d", "score": "0.62214947", "text": "public String getURL() \n\t{ \n\t\t String url =pro.getProperty(\"baseURL\"); \n\t\t return url;\n\t}", "title": "" }, { "docid": "604a8fbbc111d96c68a1193da06a66ef", "score": "0.62167865", "text": "public static String getUrl() {\n return Url;\n }", "title": "" }, { "docid": "cb56ee99ab80e30ba80b8319875c1a79", "score": "0.62000525", "text": "java.lang.String getBaseUrl();", "title": "" }, { "docid": "88d6d3abaaeafc34f6c0a93828335e35", "score": "0.61980885", "text": "private String getCurrentUri(){\n\t\tHttpServletRequest req = servletVars.getHttpRequest();\n\t\treturn req.getRequestURI();\n\t}", "title": "" }, { "docid": "445a02c5ce7a9bfd4168e6991ed3bc1a", "score": "0.61878043", "text": "String restServerUrl();", "title": "" }, { "docid": "5430872b5f3a193349f7ca59558b35e1", "score": "0.61861485", "text": "private String getUrl() {\n final String url = loadProperties().node(\"servicelocator\").get(\"url\", \"jdbc:oracle:thin:@127.0.0.1:1521:OSS\");\n this.logger.log(Level.INFO, this.className + \".getUrl :: URL data is readed from preferences file.\");\n return url;\n }", "title": "" }, { "docid": "e529beff07b32248a8ac090eae573cea", "score": "0.61698323", "text": "public String getServiceUrl() {\n return mServiceUrl;\n }", "title": "" }, { "docid": "fcf05297ae11a368f507d06c705519c4", "score": "0.61625165", "text": "public String getUrl() {\n if (useMock) {\n return mockUrl;\n } else {\n return url;\n }\n }", "title": "" }, { "docid": "b41dafdbe501727665b6947ee39786bd", "score": "0.6158273", "text": "public String getUrl() {\n\t\t\n\t\treturn url;\n\t}", "title": "" }, { "docid": "b5d91c311015e83f3d3b7e4d443fd494", "score": "0.6157518", "text": "public String endPoint() {\n String endPoint = proto + \"://\"\n + host + \":\"\n + port + \"/?\";\n int i = 0;\n Set set = params.keySet();\n Iterator iter = set.iterator();\n while (iter.hasNext()) {\n Object o = iter.next();\n String paramName = o.toString();\n String param = paramName + \"=\" + params.get(paramName);\n if (i == 0 ) i++;\n else param = \"&\"+param;\n endPoint+=param;\n }\n return endPoint;\n }", "title": "" }, { "docid": "2326df620e0af92c4e55f30a7eb8fb6f", "score": "0.61446416", "text": "private String getRequestPath(HttpServletRequest request) {\n return request.getRequestURI().replaceFirst(request.getContextPath(), \"\");\n }", "title": "" }, { "docid": "932bddf2a28f6b1a5847a10e8e54f7b1", "score": "0.6138838", "text": "public String getServletUrl()\n {\n\t\treturn servletUrl;\n }", "title": "" }, { "docid": "3b5df4915be369c58aa16552767ca37c", "score": "0.6133631", "text": "public String getOperationUrl() {\n return operationUrl;\n }", "title": "" }, { "docid": "eb36a21abc4f029e35ff414df81d9c54", "score": "0.61206204", "text": "private String getOriginalURL(HttpServletRequest req) {\n String scheme = req.getScheme(); // http\n String serverName = req.getServerName(); // hostname.com\n int serverPort = req.getServerPort(); // 80\n String contextPath = req.getContextPath(); // /mywebapp\n String servletPath = req.getServletPath(); // /servlet/MyServlet\n String pathInfo = req.getPathInfo(); // /a/b;c=123\n String queryString = req.getQueryString(); // d=789\n \n // Reconstruct original requesting URL\n StringBuilder url = new StringBuilder();\n url.append(scheme).append(\"://\").append(serverName);\n if (serverPort != 80 && serverPort != 443) {\n url.append(\":\").append(serverPort);\n }\n url.append(contextPath).append(servletPath);\n if (pathInfo != null) {\n url.append(pathInfo);\n }\n if (queryString != null) {\n url.append(\"?\").append(queryString);\n }\n \n return url.toString();\n }", "title": "" }, { "docid": "0cab584440b9ab45d11ba11f4e921ce7", "score": "0.60996884", "text": "public final String getUrl() {\n return url;\n }", "title": "" }, { "docid": "3a9aed0071d07c673ba6e25f2dbd7dad", "score": "0.6096883", "text": "public String getForwardToClientUrl() {\n return forwardToClientUrl;\n }", "title": "" }, { "docid": "d5733e3565f56036d28c4741ee4bb15e", "score": "0.6077148", "text": "public String getUrl() {\n\t\tString section = getSection();\n\t\tif (!StringUtils.isEmpty(section)) {\n\t\t\tsetPage(section);\n\t\t\t//if (page != null)\n\t\t\t//\tString url = page.getUrl();\n\t\t\t//TODO shall we use this url for section below?\n\t\t\treturn getUrlContext() + \"?section=\" + section;\n\t\t}\n\t\treturn getUrlContext();\n\t}", "title": "" }, { "docid": "5cc0433293820f70917d711ba6802a21", "score": "0.6071892", "text": "String getBaseUrl();", "title": "" }, { "docid": "93286b6ff5667d1c27ebee75bc34b9e7", "score": "0.60635036", "text": "public HttpUriRequest getRequest(){\r\n return request;\r\n }", "title": "" }, { "docid": "7b225790964c7870fb52768059258b45", "score": "0.6062837", "text": "public String getUrl()\n\t{\n\t\treturn url;\n\t}", "title": "" }, { "docid": "055ef1d9d8dfd91058405be2e6d4b660", "score": "0.60536814", "text": "public static String getOmfUrl() {\r\n return getServerUrl();\r\n }", "title": "" }, { "docid": "760c3dd4ad72ab8bd469cc1d5a1dc81b", "score": "0.60533524", "text": "URL getEndpoint();", "title": "" }, { "docid": "ad4acdf3d2e33b7c55613cbae5338942", "score": "0.6049792", "text": "public String getUrl() {\n return impl.getUrl();\n }", "title": "" }, { "docid": "3b1b2d532419a2b9e3d99269d6a66a4e", "score": "0.60459334", "text": "@Schema(example = \"https://tikkie.me/pay/Tikkie/qzdnzr8hnVWTgXXcFRLUMc\", description = \"URL where the payment request can be paid.\")\n public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "f2f483f95dd9b312559df3188d2789cc", "score": "0.6042444", "text": "@Override\n\tpublic String getRequestURI() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f2f483f95dd9b312559df3188d2789cc", "score": "0.6042444", "text": "@Override\n\tpublic String getRequestURI() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "736069aa29df5b12e2e537cedd1ff86b", "score": "0.6037142", "text": "public java.lang.String getUrl() {\n return url;\n }", "title": "" }, { "docid": "da0de5e7acfa7b36ecc8a90c27bef70f", "score": "0.60170615", "text": "public java.lang.String getUrl() {\r\n return url;\r\n }", "title": "" }, { "docid": "da0de5e7acfa7b36ecc8a90c27bef70f", "score": "0.60170615", "text": "public java.lang.String getUrl() {\r\n return url;\r\n }", "title": "" }, { "docid": "a887a5a77ce8f61cab7038f65443a260", "score": "0.60168177", "text": "protected String getLinkedInEndpointUrl() {\n return LINKEDIN_API_ENDPOINT_URL + '/' + apiVersion.getUrlElement();\n }", "title": "" }, { "docid": "b09abb767bdca81ac0a2da52dc5b22e4", "score": "0.600926", "text": "String getWebUrl();", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.60040945", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.60040945", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.60040945", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.60040945", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.60040945", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "764f46d6aa6682873e8732e8606524b5", "score": "0.60040945", "text": "public String getUrl() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "7eb95d3298fd8b64b161ef84a1211f05", "score": "0.5997803", "text": "public String getServerUrl() {\n return getServerUrl(true);\n }", "title": "" }, { "docid": "9f4ff7d5c4fb5a32556b8012d6de78b1", "score": "0.59975415", "text": "public static String determinePathUrl(HttpServletRequest httpServletRequest) {\n return httpServletRequest.getPathInfo();\n }", "title": "" }, { "docid": "fcdd62aa2208c384b8531f87c57dd8c7", "score": "0.59923404", "text": "public String getRequest() {\n return request;\n }", "title": "" }, { "docid": "fcdd62aa2208c384b8531f87c57dd8c7", "score": "0.59923404", "text": "public String getRequest() {\n return request;\n }", "title": "" }, { "docid": "be3eaaecc9557a42d8ea24bdfe754f73", "score": "0.5984438", "text": "public String getAdserverURL() {\n if (adRequest != null) {\n return adRequest.getAdserverURL();\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "0e4aa59dd4f4b1dd27a2abf74d3a966f", "score": "0.59832567", "text": "public String getAbsoluteURI(HTTPRequest req) {\r\n\t\tString uri;\r\n\t\tif (req.isUsingSSL())\r\n\t\t\turi = \"https://\";\r\n\t\telse\r\n\t\t\turi = \"http://\";\r\n\r\n\t\turi += site + \"/\" + req.getPage();\r\n\t\treturn uri;\r\n\t}", "title": "" }, { "docid": "b430ce3381c0a92993ce8b28adf0565d", "score": "0.59592795", "text": "public java.lang.String getUrl() {\n return url;\n }", "title": "" }, { "docid": "84ba5e39f52a2165eac804d0478eb739", "score": "0.5957333", "text": "public String getXmlUrl() {\n\t\treturn xmlUrl;\n\t}", "title": "" }, { "docid": "fe46815fc5aebc6694d4ce538fb96126", "score": "0.59562653", "text": "public String getBaseUrl()\n {\n return this.url;\n }", "title": "" }, { "docid": "b46266b476d0550eb2edc562e3fe63d2", "score": "0.595188", "text": "@javax.annotation.Nullable\n \n @ApiModelProperty(value = \"The url of the return envelope\")\n \n public String getUrl() {\n return url;\n }", "title": "" }, { "docid": "b543cc4c4d82a209a0da23c2eb131968", "score": "0.59310746", "text": "public String getApplicationBaseUrl() {\n\t\tfinal Environment environment = ConfigurationHelper.INSTANCE.getEnvironment();\n\t\treturn EnvironmentHandler.INSTANCE.getWebUrlFor(environment);\n\t}", "title": "" }, { "docid": "a8511dfdb9f94902a893824b76af7bb1", "score": "0.59306526", "text": "public String getUrl() {\n return getString(\"url\");\n }", "title": "" }, { "docid": "a8511dfdb9f94902a893824b76af7bb1", "score": "0.59306526", "text": "public String getUrl() {\n return getString(\"url\");\n }", "title": "" }, { "docid": "ee60113ad091a2ad974654e94bae19c0", "score": "0.5927601", "text": "@java.lang.Override\n public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "2866d2dcd75561ed3acd8ef0172c0915", "score": "0.5916331", "text": "public String getURLString() {\n\t\treturn this.getUrlRedirect().toString();\n\t}", "title": "" }, { "docid": "bb24255c83ef63bdd64e1d6b72907ca1", "score": "0.59088606", "text": "@java.lang.Override\n public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "bb24255c83ef63bdd64e1d6b72907ca1", "score": "0.59088606", "text": "@java.lang.Override\n public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "bb24255c83ef63bdd64e1d6b72907ca1", "score": "0.59088606", "text": "@java.lang.Override\n public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "bb24255c83ef63bdd64e1d6b72907ca1", "score": "0.59088606", "text": "@java.lang.Override\n public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "bb24255c83ef63bdd64e1d6b72907ca1", "score": "0.59088606", "text": "@java.lang.Override\n public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "79e7a20c7184dd812653b33856760648", "score": "0.59038955", "text": "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "79e7a20c7184dd812653b33856760648", "score": "0.59038955", "text": "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "79e7a20c7184dd812653b33856760648", "score": "0.59038955", "text": "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "79e7a20c7184dd812653b33856760648", "score": "0.59038955", "text": "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "79e7a20c7184dd812653b33856760648", "score": "0.59038955", "text": "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "79e7a20c7184dd812653b33856760648", "score": "0.59038955", "text": "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "79e7a20c7184dd812653b33856760648", "score": "0.59038955", "text": "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "c5c7aba5163a284b6787b651d22ded02", "score": "0.590169", "text": "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "62f369dce181c4eb0d559352f874d61f", "score": "0.5894509", "text": "public String getRequestResource() {\r\n\t\treturn requestResource;\r\n\t}", "title": "" }, { "docid": "c18e116b00b4142e2a206cf536d7000b", "score": "0.58925605", "text": "public String getURL() {\n\t\treturn url;\n\t}", "title": "" }, { "docid": "4f48d47d58635b760c690516394f42f7", "score": "0.58903575", "text": "public String getUrl() {\r\n return url;\r\n }", "title": "" }, { "docid": "4f48d47d58635b760c690516394f42f7", "score": "0.58903575", "text": "public String getUrl() {\r\n return url;\r\n }", "title": "" } ]
aba84f8e74fabcbc28e06e49ac68f555
/Do nothing cause parameters aren't passed throw the FilterConfig instance
[ { "docid": "c8182434903ab076f15d09f2e9ce5dc1", "score": "0.7015356", "text": "@Override\n public void init(final FilterConfig filterConfig) {\n }", "title": "" } ]
[ { "docid": "15caf6fa6f465b1bd655cc71c2bf1174", "score": "0.7011556", "text": "protected AbstractConfigurationFilter() {\n this(true);\n }", "title": "" }, { "docid": "e418ae7becbaa624115731350124a3e7", "score": "0.7004501", "text": "@Override\n public void init(FilterConfig arg0) throws ServletException {\n \n }", "title": "" }, { "docid": "ebf8f7a6ab36325b9b71317ab4bebe47", "score": "0.6984527", "text": "public void init(FilterConfig filterConfig) {\n }", "title": "" }, { "docid": "613ec3317a6e2b3c0adc3233f91ac06f", "score": "0.6909832", "text": "@Override\r\n public void init(FilterConfig arg0) throws ServletException {\n \r\n }", "title": "" }, { "docid": "14a56982ca81f7e3f4840b7ebb4488a7", "score": "0.6869997", "text": "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "title": "" }, { "docid": "14a56982ca81f7e3f4840b7ebb4488a7", "score": "0.6869997", "text": "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "title": "" }, { "docid": "a5bcc9e43749a93d4a16cc7f0605a9c1", "score": "0.68694484", "text": "@Override\n public void init(FilterConfig filterConfig) {\n // This Method is Empty, needed for implementation\n }", "title": "" }, { "docid": "74fce6563993ded3260ddc75198d0c38", "score": "0.68525356", "text": "@Override\r\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\r\n\t}", "title": "" }, { "docid": "74fce6563993ded3260ddc75198d0c38", "score": "0.68525356", "text": "@Override\r\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\r\n\t}", "title": "" }, { "docid": "74fce6563993ded3260ddc75198d0c38", "score": "0.68525356", "text": "@Override\r\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\r\n\t}", "title": "" }, { "docid": "74fce6563993ded3260ddc75198d0c38", "score": "0.68525356", "text": "@Override\r\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\r\n\t}", "title": "" }, { "docid": "5095a75fa95e477fe0e41e307134bc60", "score": "0.6849846", "text": "public void init(FilterConfig fConfig) {\n }", "title": "" }, { "docid": "340da521d9fdda60dd54e8c1bd28ae9e", "score": "0.68199563", "text": "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "title": "" }, { "docid": "340da521d9fdda60dd54e8c1bd28ae9e", "score": "0.68199563", "text": "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "title": "" }, { "docid": "1a8ba219d8a86252b21502e4ec2c79d1", "score": "0.6819004", "text": "@Override\r\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t}", "title": "" }, { "docid": "ff0d889c1dc9ac4934a3e70573ecbd7d", "score": "0.68068486", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "ff0d889c1dc9ac4934a3e70573ecbd7d", "score": "0.68068486", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "ff0d889c1dc9ac4934a3e70573ecbd7d", "score": "0.68068486", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "ff0d889c1dc9ac4934a3e70573ecbd7d", "score": "0.68068486", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "ff0d889c1dc9ac4934a3e70573ecbd7d", "score": "0.68068486", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "ff0d889c1dc9ac4934a3e70573ecbd7d", "score": "0.68068486", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "ff0d889c1dc9ac4934a3e70573ecbd7d", "score": "0.68068486", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "ff0d889c1dc9ac4934a3e70573ecbd7d", "score": "0.68068486", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "1d48336946a3f944ef0ff062385bbcd5", "score": "0.680306", "text": "@Override\n public void init(FilterConfig config) throws ServletException {\n\n }", "title": "" }, { "docid": "dd648f32bd6869bfaab6794004ecc9f4", "score": "0.6802346", "text": "@Override\n\tprotected void injectFilterInvoke() {\n\n\t}", "title": "" }, { "docid": "244c3eaafa96ce2db8ab66b1c59f14db", "score": "0.6786414", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "244c3eaafa96ce2db8ab66b1c59f14db", "score": "0.6786414", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "775589e86acb759f4e83f266805ae7e2", "score": "0.6781925", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "775589e86acb759f4e83f266805ae7e2", "score": "0.6781925", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "efe22ab9f8dd70a1577897ec5916a929", "score": "0.6778782", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\n\t}", "title": "" }, { "docid": "efe22ab9f8dd70a1577897ec5916a929", "score": "0.6778782", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\n\t}", "title": "" }, { "docid": "efe22ab9f8dd70a1577897ec5916a929", "score": "0.6778782", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\n\t}", "title": "" }, { "docid": "efe22ab9f8dd70a1577897ec5916a929", "score": "0.6778782", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\n\t}", "title": "" }, { "docid": "efe22ab9f8dd70a1577897ec5916a929", "score": "0.6778782", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\n\t}", "title": "" }, { "docid": "efe22ab9f8dd70a1577897ec5916a929", "score": "0.6778782", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\n\t}", "title": "" }, { "docid": "efe22ab9f8dd70a1577897ec5916a929", "score": "0.6778782", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\n\t}", "title": "" }, { "docid": "efe22ab9f8dd70a1577897ec5916a929", "score": "0.6778782", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\n\t}", "title": "" }, { "docid": "feec463cbae2313d3da8616d8b000047", "score": "0.6771692", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "title": "" }, { "docid": "feec463cbae2313d3da8616d8b000047", "score": "0.6771692", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "title": "" }, { "docid": "feec463cbae2313d3da8616d8b000047", "score": "0.6771692", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "title": "" }, { "docid": "1ca3e4b0b936cb149f9b0b77a707fff2", "score": "0.6756126", "text": "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\r\n\t}", "title": "" }, { "docid": "2473be3ae114a844217f626eb0c807e7", "score": "0.67107326", "text": "@Override\n public void init(final FilterConfig config) throws ServletException {\n }", "title": "" }, { "docid": "6d44f3cd985c30027f7f7ae974fb6752", "score": "0.67031807", "text": "private Filters() {\r\n\t}", "title": "" }, { "docid": "7f3ebf886d47feae3439b5a2ed857b74", "score": "0.6690221", "text": "public void init(FilterConfig filterConfig) { \r\n this.filterConfig = filterConfig;\r\n }", "title": "" }, { "docid": "fa42b7080976feecd38eee7bf4a881cb", "score": "0.6682207", "text": "public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n \n }\n }", "title": "" }, { "docid": "a7db55eb8c4df05958f82227b32597a5", "score": "0.66627973", "text": "@Override\r\n public void init(FilterConfig arg0) throws ServletException {\n\r\n }", "title": "" }, { "docid": "0222b597cc8dc5aa064d706d7033cb6f", "score": "0.6622062", "text": "public void init(FilterConfig arg0) throws ServletException {\n \t\t\n \t}", "title": "" }, { "docid": "daacb823c13604e4dbfd7c7461905edf", "score": "0.6620746", "text": "public void init(FilterConfig arg0) throws ServletException {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "0cd762e74d3441882208cb541860879b", "score": "0.6620623", "text": "public void init(FilterConfig filterconfig) throws ServletException {\n }", "title": "" }, { "docid": "339eb68ef2a67953788db3351485ff22", "score": "0.65892124", "text": "@Override\n public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "title": "" }, { "docid": "220450212d16a2a289706608d77ff544", "score": "0.65716237", "text": "public void init(FilterConfig arg0) throws ServletException {\n\n }", "title": "" }, { "docid": "67fa7543a3ab9233577131e98ab8113f", "score": "0.6552553", "text": "public void init(FilterConfig arg0) throws ServletException {\n\n\t}", "title": "" }, { "docid": "67fa7543a3ab9233577131e98ab8113f", "score": "0.6552553", "text": "public void init(FilterConfig arg0) throws ServletException {\n\n\t}", "title": "" }, { "docid": "bf35aed0fb3658bc3eed54a64a59a4ff", "score": "0.654786", "text": "@Override\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tsuper.init(config);\n\t}", "title": "" }, { "docid": "0ed9cbe2dce959fd73759d421e530655", "score": "0.6541438", "text": "public void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4e4e86739ba0937f0baefc131a6880c", "score": "0.65372896", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tsuper.init(filterConfig);\n\t}", "title": "" }, { "docid": "26aa2944b00bb266016dcc40ae81940e", "score": "0.65332097", "text": "public void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "bb3202cd4d035c1c68a0ba8bf0821b02", "score": "0.6524349", "text": "public void init(FilterConfig arg0) throws ServletException {\n LOGGER.info(\"FilterConfig\", arg0);\n }", "title": "" }, { "docid": "cbc51cb4b98f63c33ba66b73276156a6", "score": "0.6521598", "text": "public void init(FilterConfig filterConfig) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "cbc51cb4b98f63c33ba66b73276156a6", "score": "0.6521598", "text": "public void init(FilterConfig filterConfig) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "dfc705091d9889901e782198db231609", "score": "0.6508279", "text": "public void init(FilterConfig config) throws ServletException {\n \n \t}", "title": "" }, { "docid": "e386efe62ce3c7e02d149c6121fe9816", "score": "0.64958894", "text": "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tlogger.info(\"Init\");\r\n\t}", "title": "" }, { "docid": "edb043c6270d803eb06fccc65ba8f287", "score": "0.64553905", "text": "public void init(FilterConfig filterConfig) { \n this.filterConfig = filterConfig;\n }", "title": "" }, { "docid": "0763058173d2f94a54d50faf2ef5f487", "score": "0.64521825", "text": "@Override\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tSystem.out.println(\"========初始化========\");\n\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.6437474", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.6437474", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.6437474", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.6437474", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.6437474", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.6437474", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.6437474", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.6437474", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "0fdcdeea4f7e20f20493d9ac129d245f", "score": "0.6437444", "text": "public void init(FilterConfig filterConfig) {\r\n this.filterConfig = filterConfig;\r\n }", "title": "" }, { "docid": "bcce96eae70fbd7b8dc86b7a7a3ae5c2", "score": "0.64231646", "text": "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n List<com.darren.center.springboot.filter.Filter> filters = new ArrayList<>();\n filters.add(contextFilter);\n filters.add(filter1);\n filters.add(filter2);\n webComponentFilterChain.setFilters(filters);\n }", "title": "" }, { "docid": "ee3e59e85444f3bece5f7e8f83d33871", "score": "0.6414628", "text": "protected void initParameters(FilterConfig fConfig) {\r\n\r\n\t\tthis.NoFilter_Pages = fConfig.getInitParameter(\"NoFilter_Pages\");\r\n\t}", "title": "" }, { "docid": "2ad196c173aec49916989402bf40ce83", "score": "0.63882655", "text": "public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n }\n }", "title": "" }, { "docid": "369164adcdd49eaf4eaebc67de8cce6c", "score": "0.6364472", "text": "public void init(FilterConfig fConfig) throws ServletException \n\t{\n\t}", "title": "" }, { "docid": "46148d693ec4b9b1f550f139ee8146c7", "score": "0.6360806", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) {\n\n\t\tthis.filterConfig = filterConfig;\n\n\t}", "title": "" }, { "docid": "6776e584b6a4c7a3475bf218c4c91550", "score": "0.6353578", "text": "public void init(FilterConfig config) throws ServletException {\n\t}", "title": "" }, { "docid": "d03b07d8341451c78acad4532d44a2ba", "score": "0.62977517", "text": "public void init(FilterConfig filterConfig) throws ServletException {\n this.filterConfig = filterConfig;\n }", "title": "" }, { "docid": "0d8f067fc534dead144fedbeb7866b75", "score": "0.6280217", "text": "public Filter()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "67a72309078d23e99b771e6b5e049402", "score": "0.62427664", "text": "@Override\n protected String customizeFilter(String filter, HttpServletRequest request, Class beanClass) {\n\n return super.customizeFilter(filter, request, beanClass);\n }", "title": "" }, { "docid": "f79a6152c28d444f92060271e7ceecd5", "score": "0.62374777", "text": "void addFilter(String name, String classname, Map<String, String> parameters);", "title": "" }, { "docid": "0f29fe8801ecd24629a1a3eed01b8b43", "score": "0.62372047", "text": "void addGlobalFilter(String name, String classname, Map<String, String> parameters);", "title": "" }, { "docid": "cac9ab1349adafafb70878f64556b6ac", "score": "0.62350965", "text": "public void init(FilterConfig filterConfig) { \n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n if (debug) { \n log(\"ControleFiltro:Initializing filter\");\n }\n }\n }", "title": "" }, { "docid": "4578614b8cbd0a7a87be3ed89446d988", "score": "0.62347823", "text": "public interface SimpleFilter extends Filter {\n\n @Override\n default void init(FilterConfig filterConfig) throws ServletException {\n // Tumbleweed\n }\n\n @Override\n default void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {\n // Tumbleweed\n }\n\n @Override\n default void destroy() {\n // Tumbleweed\n }\n}", "title": "" }, { "docid": "28ce4437cd4a15b51019c16c095857de", "score": "0.6234046", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tthis.excludedPage = filterConfig.getInitParameter(\"excludedPage\");\n\t}", "title": "" }, { "docid": "498521f426ce1ea7c712bb92c7e3cfb0", "score": "0.62110525", "text": "@Override\r\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tnewsMakerInSession = config.getInitParameter(\"newsMakerInSession\");\r\n\t\tloginPage = config.getInitParameter(\"loginPage\");\r\n\t\tunCheckUrls =config.getInitParameter(\"unCheckUrls\");\r\n\t}", "title": "" }, { "docid": "32cbc584b1048761189dd77a6b92e9ce", "score": "0.6194097", "text": "public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "title": "" }, { "docid": "32cbc584b1048761189dd77a6b92e9ce", "score": "0.6194097", "text": "public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "title": "" }, { "docid": "32cbc584b1048761189dd77a6b92e9ce", "score": "0.6194097", "text": "public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "title": "" }, { "docid": "6b894671aebe39fe9156ed7aacfddf3f", "score": "0.6167589", "text": "@Override\r\n\t public Filter getFilter() {\n\t return null;\r\n\t }", "title": "" }, { "docid": "b8d1e19061897cb885e7805533841052", "score": "0.6129689", "text": "@Override\r\n public void initFilter() {\r\n resetFilter();\r\n }", "title": "" }, { "docid": "a548582ecce8cfd59c2279c77aa8e388", "score": "0.61028755", "text": "@Override\r\n\tprotected void configureFilterRidgets() {\n\r\n\t}", "title": "" }, { "docid": "e7faac843bdcb177a41e8b785380f06c", "score": "0.6094869", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\tSystem.out.println(\"healthBureau过滤器开启\");\n\t}", "title": "" }, { "docid": "3ab58b33b37f414ede0429d2abb3c792", "score": "0.60642445", "text": "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "afe407f98a228671bc6e4a2fb5e2ec49", "score": "0.60543007", "text": "@Override\r\n\tpublic boolean shouldFilter() {\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "9cd6ef99cce6db4d706ca5d5afb44f3a", "score": "0.6053421", "text": "private void getDefaultFilter() throws MonitorTaskException\n {\n String[] appModuleFilters = possibleAppModuleFilters();\n String[] webModuleFilters = possibleWebModuleFilters(); \n \n if (webModuleFilters.length < 1 && appModuleFilters.length < 1)\n {\n throw new MonitorTaskException(\"No value to monitor.\");\n }\n else if (webModuleFilters.length == 1 && appModuleFilters.length < 1)\n {\n filter = webModuleFilters[0];\n final StringTokenizer st = new StringTokenizer(filter, \":\");\n webName = st.nextToken();\n servletName = st.nextToken();\n }\n else if (webModuleFilters.length < 1 && appModuleFilters.length == 1)\n {\n filter = appModuleFilters[0];\n final StringTokenizer st = new StringTokenizer(filter, \":\");\n appName = st.nextToken();\n webName = st.nextToken();\n servletName = st.nextToken(); \n }\n else\n {\n final String msg = getAvailableFilterMessage(appModuleFilters, webModuleFilters);\n throw new MonitorTaskException(msg);\n }\n }", "title": "" }, { "docid": "eb0cf6c68419ee23d8d11a48f905c5a4", "score": "0.6014989", "text": "public FilterFactory(){\n\t}", "title": "" } ]
aa5f29c9620afdb96fc60747e7db6a85
Add (set & commit) a CompanyAccountDO object that refers to this DO.
[ { "docid": "9aa1a827c889804c842a80e4516a8d08", "score": "0.72953063", "text": "public void addCompanyAccountDO( jobmatch.data.CompanyAccountDO referrer )\n throws SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException {\n addCompanyAccountDO( referrer, null );\n }", "title": "" } ]
[ { "docid": "b3b354622b15e5722c89a84fd5a011b7", "score": "0.77145684", "text": "public void addCompanyAccountDO( jobmatch.data.CompanyAccountDO referrer, DBTransaction tran )\n throws SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException {\n referrer.setCompany( this );\n referrer.commit( tran );\n }", "title": "" }, { "docid": "638159c7c0aea1b95e0e42db6e590e3b", "score": "0.61670214", "text": "public void addProfileDO( jobmatch.data.ProfileDO referrer, DBTransaction tran )\n throws SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException {\n referrer.setCompany( this );\n referrer.commit( tran );\n }", "title": "" }, { "docid": "83d58fbb04d7048389f2c4c7a9c05d71", "score": "0.609107", "text": "public Company addCompany(Company company);", "title": "" }, { "docid": "9fe8c0917d76750dd8c3556770ff731d", "score": "0.6000463", "text": "public jobmatch.data.CompanyAccountDO getCompanyAccountDO () \n throws DataObjectException, QueryException, NonUniqueQueryException {\n\tjobmatch.data.CompanyAccountQuery q = new jobmatch.data.CompanyAccountQuery();\n\tq.setQueryCompany( this );\n\tq.requireUniqueInstance();\n\treturn q.getNextDO();\n }", "title": "" }, { "docid": "2d386a7ee891f1a9faad69795510e127", "score": "0.5986184", "text": "void addCompany(Company company);", "title": "" }, { "docid": "8f5884cc7e598cfcfcb032728c42f608", "score": "0.5772022", "text": "@Override\n\tpublic void addCompany(Company c) {\n\t\t\n\t}", "title": "" }, { "docid": "3a012c4ee90baf5351bb374dbfb14cd7", "score": "0.5535325", "text": "void addAccount(Account account);", "title": "" }, { "docid": "6c47116277fd4ad69948cf83f47d8176", "score": "0.54786015", "text": "@Override\n public void add(Company c) {\n\n }", "title": "" }, { "docid": "ce45040d16d23e1b4a94b0e700057d05", "score": "0.5436424", "text": "public void addCompany(Company newCompany) throws MappingException;", "title": "" }, { "docid": "efc0e1d16896a676be5f83536107573c", "score": "0.5330567", "text": "@Override\n\tpublic void add(\n\t T obj)\n\t throws DatabaseException\n\t{\n\t\ttry\n\t\t{\n\t\t\tgetManager().persist(obj);\n\t\t\t// Generate IDs\n\t\t\tgetManager().flush();\n\t\t} catch (PersistenceException e)\n\t\t{\n\t\t\tthrow new DatabaseException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "694d4f0c9e60ceec6d28d2dbb6c81107", "score": "0.52807015", "text": "public abstract void addAccount(Account account);", "title": "" }, { "docid": "45e2a512a88b8bba4869e6483753a8d7", "score": "0.5259453", "text": "void addAccount(Account account) throws DuplicateAccountException;", "title": "" }, { "docid": "1abfd45d3d4e05eb57ecfd6ad9f10e7b", "score": "0.5255581", "text": "public void addAccount(Account anAcct){\n this.accounts.add(anAcct);\n\n }", "title": "" }, { "docid": "3feebf996ba40b2cdceae67fd91b0ce2", "score": "0.52365077", "text": "public void add(AccountDTO accountDTO) throws Exception {\n\t\tLOGGER.debug(\"Debug:Now In add()...AccountHibImpl\");\n\t\tAccountDTO dbDTO = findByPK(accountDTO.getId());\n\t\tif (dbDTO == null) {\n\t\t\ttry {\n\t\t\t\tsession = sessionFactory.openSession();\n\t\t\t\ttransaction = session.beginTransaction();\n\t\t\t\tsession.save(accountDTO);\n\t\t\t\ttransaction.commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\ttransaction.rollback();\n\t\t\t\tLOGGER.error(\"Error: In AccountDAOHibImpl add\", e);\n\t\t\t} finally {\n\t\t\t\tsession.close();\n\t\t\t\tLOGGER.debug(\"Debug:Exit-- Add(AccountDAOHibImpl)---\");\n\t\t\t}\n\t\t} else {\n\t\t\tLOGGER.error(\"Debug:Duplicate Record\");\n\t\t\tthrow new DuplicateRecordException(\n\t\t\t\t\t\"This is a Duplicate record for:\" + dbDTO.getId());\n\t\t}\n\n\t}", "title": "" }, { "docid": "cb0f6b4fd7f1be894473f16fb40409a4", "score": "0.5217967", "text": "public void addAccount(Account account) {\n\t\tthis.sessionFactory.getCurrentSession().save(account);\n\t}", "title": "" }, { "docid": "63000d8e0c0d5f1761f1aaa6dc5b34a2", "score": "0.5202923", "text": "void insertCompany(Company company){\r\n companies.add(company);\r\n }", "title": "" }, { "docid": "5e043ecfc1abe27817f10ab9a1dc37a6", "score": "0.51311904", "text": "public void addAccount() {\r\n\t\tAccount newAcct;\r\n\t\tdouble bal;\r\n\t\tString fName, lName, street, city, state, zip;\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.print(\"First name: \");\r\n\t\tfName = input.nextLine();\r\n\t\tSystem.out.print(\"Last name: \");\r\n\t\tlName = input.nextLine();\r\n\t\tSystem.out.print(\"Street: \");\r\n\t\tstreet = input.nextLine();\r\n\t\tSystem.out.print(\"City: \");\r\n\t\tcity = input.nextLine();\r\n\t\tSystem.out.print(\"State: \");\r\n\t\tstate = input.nextLine();\r\n\t\tSystem.out.print(\"Zip: \");\r\n\t\tzip = input.nextLine();\r\n\t\tSystem.out.print(\"Beginning balance: \");\r\n\t\tbal = input.nextDouble();\r\n\t\t\r\n\t\tnewAcct = new Account(bal, fName, lName, street, city, state, zip);\t//create account object\r\n\t\taccounts.add(newAcct);\t\t\t\t\t\t//add account to bank accounts\r\n\t\t\r\n\t\tSystem.out.println(\"Account created. Account ID is: \" + newAcct.getID());\r\n\t}", "title": "" }, { "docid": "305adbd6bda08b5b085ae7bedcc1e244", "score": "0.51158035", "text": "public void removeCompanyAccountDO( jobmatch.data.CompanyAccountDO referrer, DBTransaction tran )\n throws SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException {\n\tCompanyDO referred = referrer.getCompany();\n\tString referredHandle = referred.getHandle();\n\tString mydoHandle = this.getHandle();\n\tif ( null == referredHandle || null == mydoHandle || \n\t ( ! referredHandle.equals( mydoHandle ) ) ) {\n\t throw new DataObjectException( \"Object \" + referrer +\n\t\t\" does not refer to object \" + this +\n\t\t\", cannot be removed this way.\" );\n\t}\n referrer.delete( tran );\n }", "title": "" }, { "docid": "41e43523f8f159ccb23cde11cbf4bc5b", "score": "0.5115547", "text": "protected void createDebt(IORM orm) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\torm.beginTransaction();\n\t\t\t\n\t\t\tIDebtRepository repo = orm.getDebtRepository();\n\t\t\tsetId(repo.addDebt(DALDebtMapper.toDbo(this)));\n\t\t\t\n\t\t\torm.commit();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "e95f95431a72fd865b09dca0f32ab16b", "score": "0.5112602", "text": "@Override\n\tpublic void add(Employee employee) {\n\t\temployeerepository.save(employee);\n\t\t\n\t}", "title": "" }, { "docid": "05c391ae4b338fe546ffdb7b49ec5dbc", "score": "0.5111348", "text": "public void addAccount(Account anAcct){\n this.accounts.add(anAcct);\n }", "title": "" }, { "docid": "9e6a34576449fc3871ba516c7c322b81", "score": "0.50911", "text": "public void centralAddData(AccAccountsDto param)throws Exception{\n\t\t\n\t\ttry {\n\t\t\tthis.prepareToMapping();\n\t\t\tthis.insertToTableAccAccounts(param);\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t} finally {\n\t\t\tthis.clearGeneralObject();\n\t\t}\n\t}", "title": "" }, { "docid": "dbf09751863fdf358d2ae2f3d7dead24", "score": "0.5084112", "text": "@Transactional\n public Company addCompany(Company company, User loggedInUser) throws Exception {\n companyRepository.save(company);\n saveCompanyHistory(company.getId(), \"New company, \"+company.getCompanyName()+\", created\", loggedInUser);\n addStageStepsForCompany(company, loggedInUser);\n return company;\n }", "title": "" }, { "docid": "a693f30ca2b6f899cfbf81eb16ec06bd", "score": "0.5077212", "text": "public void agregarDocumentoComercial(DocumentoComercial documento) {\n\t\tdocumentosComerciales.add(documento);\n\t}", "title": "" }, { "docid": "e39d43726ac0d14b2939f4b7cdefaa33", "score": "0.50591785", "text": "protected static CompanyDO createExisting( ObjectId id )\n throws SQLException, ObjectIdException, DataObjectException, DatabaseManagerException\n {\n\tif ( null == id )\n\t return null;\n\tCompanyDO ret = null;\n\tret = new CompanyDO( id );\n\tret.setPersistent( true ); // mark DO as persistent (preexisting)\n\tif ( ! false ) // If not lazy-loading, fetch DO data now.\n\t ret.loadData();\n\t// unset the GenericDO.dirty flag.\n\tret.markClean();\n\treturn ret;\n }", "title": "" }, { "docid": "8cd3f844bdbf9e765ab7ecab2d1dd9b3", "score": "0.5036221", "text": "public void addAccount(Account newAccount) {\r\n this.accountList.add(newAccount);\r\n }", "title": "" }, { "docid": "d90a9d576aa288af74dba63c8f7356cb", "score": "0.5029746", "text": "public void removeCompanyAccountDO( jobmatch.data.CompanyAccountDO referrer )\n throws SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException {\n removeCompanyAccountDO( referrer, null );\n }", "title": "" }, { "docid": "b074a73b500b6166e320186a8787b799", "score": "0.50236404", "text": "x0101.oecdStandardAuditFileTaxPT1.OrderReferencesDocument.OrderReferences addNewOrderReferences();", "title": "" }, { "docid": "eebd72c773d624ca1a4e4c2d5d321664", "score": "0.50162655", "text": "public static CompanyDO createExisting( BigDecimal bd )\n throws SQLException, ObjectIdException, DataObjectException, DatabaseManagerException\n {\n\tif ( null == bd )\n\t return null;\n\treturn createExisting( new ObjectId( bd ) );\n }", "title": "" }, { "docid": "c139e1661dadf8a011a08bc9de3527b3", "score": "0.500663", "text": "public Address addAddress(Address address);", "title": "" }, { "docid": "98894554efa7e1f66e14d6702be2c4d7", "score": "0.5003651", "text": "public static com.liferay.sb.test.model.Todo addEntry(\n\t\t\tcom.liferay.sb.test.model.Todo orgEntry,\n\t\t\tcom.liferay.portal.kernel.service.ServiceContext serviceContext)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\t com.liferay.sb.test.exception.TodoValidateException {\n\n\t\treturn getService().addEntry(orgEntry, serviceContext);\n\t}", "title": "" }, { "docid": "74f37dca1bdfc3c90996c4d00bd40c99", "score": "0.50031257", "text": "@Override\r\n\t public Address addAddress(Address address) {\n\t if(address == null)\r\n\t throw new AddressNotFoundException(\"No Address Found\");\r\n\t else {\r\n\t \tiAddresRepo.save(address);\r\n\t return address;\r\n\t }\r\n\t }", "title": "" }, { "docid": "5aa5a67641d8775935508a88a46c7e9c", "score": "0.4945399", "text": "@Override\r\n\tpublic void addAddress(Address addr) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\r\n\t\tsession.saveOrUpdate(addr);\r\n\t}", "title": "" }, { "docid": "1982aeb9e4dc4ddcff853894c74a0e38", "score": "0.4942668", "text": "@Transactional\r\n\tpublic Person savePersonAccounts(Integer personId, Account related_accounts) {\r\n\t\tPerson person = personDAO.findPersonByPrimaryKey(personId, -1, -1);\r\n\t\tAccount existingaccounts = accountDAO.findAccountByPrimaryKey(related_accounts.getAccountId());\r\n\r\n\t\t// copy into the existing record to preserve existing relationships\r\n\t\tif (existingaccounts != null) {\r\n\t\t\texistingaccounts.setAccountId(related_accounts.getAccountId());\r\n\t\t\texistingaccounts.setAccountName(related_accounts.getAccountName());\r\n\t\t\texistingaccounts.setExpireDate(related_accounts.getExpireDate());\r\n\t\t\trelated_accounts = existingaccounts;\r\n\t\t}\r\n\r\n\t\trelated_accounts.setPerson(person);\r\n\t\tperson.getAccounts().add(related_accounts);\r\n\t\trelated_accounts = accountDAO.store(related_accounts);\r\n\t\taccountDAO.flush();\r\n\r\n\t\tperson = personDAO.store(person);\r\n\t\tpersonDAO.flush();\r\n\r\n\t\treturn person;\r\n\t}", "title": "" }, { "docid": "bbf799cb2aebc240d7fab51b88fa2a9a", "score": "0.49293017", "text": "public void addBranchEmployee(BranchEmployee employeeObj)\r\n {\r\n if (employeeNumber != 0) {\r\n BranchEmployee [] tempBranches = new BranchEmployee[employeeNumber];\r\n\r\n for (int i = 0; i < employeeNumber; ++i) {\r\n tempBranches[i] = branchEmployees[i];\r\n }\r\n\r\n branchEmployees = new BranchEmployee[employeeNumber + 1];\r\n\r\n for (int i = 0; i < employeeNumber; ++i) {\r\n branchEmployees[i] = tempBranches[i];\r\n }\r\n }\r\n branchEmployees[employeeNumber] = employeeObj;\r\n employeeNumber++;\r\n }", "title": "" }, { "docid": "4c088a0cebbad59568960ed3b0f94cd1", "score": "0.49266577", "text": "@Override\r\n\tpublic void addCompany(DeveloperCompany developerCompany) {\n\t\tcompany.addCompany(developerCompany);\r\n\t}", "title": "" }, { "docid": "d986f9531d96de31816138f3250dd7bc", "score": "0.49266154", "text": "public void addBank(Account A){\r\n\tBank.add(A);\r\n}", "title": "" }, { "docid": "d3f9c7f30e5cffa635f4aead4bcbcc92", "score": "0.4924036", "text": "void addToDeposit(Deposit deposit);", "title": "" }, { "docid": "9b4341fddd83f6afff365980c2a5395f", "score": "0.49196085", "text": "public void addAccount(Account anAccount) {\r\n\t\tthis.accounts.add(anAccount);\r\n\t}", "title": "" }, { "docid": "6a4958629e6de6c7530e25f623a06996", "score": "0.49192256", "text": "public void addEmployee(final Employee employee){\r\n\t\temployeeDao.addEmployee(employee);\r\n\t\t\r\n }", "title": "" }, { "docid": "e29da792d9eb141e9b49f853c5fff30b", "score": "0.4918242", "text": "public void addAsOwner(EditableDocument document){\n\t\tthis.ownedDocs.add(document);\n\t}", "title": "" }, { "docid": "b10c8bd7babf069b8eb0081077a01372", "score": "0.49095255", "text": "void addOrder(O order);", "title": "" }, { "docid": "c67e5cac674c6eec2ff6d5eb9794a612", "score": "0.49017358", "text": "public void addAddress(Address address) {\n\n if(this.address == null)\n this.address = new HashSet<Address>();\n this.address.add(address);\n apply(new SalesChannelAddressAddedEvent(id, address));\n }", "title": "" }, { "docid": "759e60c461ca9cab7d9b03bf16753c80", "score": "0.48931727", "text": "protected CompanyDO( ObjectId id )\n throws SQLException, ObjectIdException, DataObjectException, DatabaseManagerException\n {\n\tsuper( id );\n }", "title": "" }, { "docid": "9d7bae694a48c2f002957d0b7a16b5bc", "score": "0.48770463", "text": "@Override\r\n\tpublic Company insertCompany(Company company) throws SQLException {\n\t\tcompanyService.insertCompany(company);\r\n\t\t return null;\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "7e880e21baa9e15387d17da9c69312b1", "score": "0.48730633", "text": "@Override\n public void insert(OfficeAddressDetails oad) {\n this.officeAddressDetailsService.insert(oad);\n }", "title": "" }, { "docid": "62105b796cd80423f8f9b0f5b660f7a8", "score": "0.48676407", "text": "private void add() {\n\t\tPerson p = getInfor();\n\t\t\n\t\tclearInput();\n\t\tif(p!=null) {\n\t\t\ttry {\n\t\t\t\tdos.writeUTF(\"ADD\");\n\t\t\t\toos.writeObject(p);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\tsetVisible(false);\n\t\t\tp = new Person(p.getName(), p.getPhone(), p.getAddress(), p.getEmail(), p.getClassify().getName());\n\t\t}\n\t}", "title": "" }, { "docid": "ffcaab1ab286aa83bfdcffc9596e6218", "score": "0.48643714", "text": "public void credito(BigDecimal monto) {\n\t\t\n\t\tthis.saldo=this.saldo.add(monto);\n\t\t\n\t}", "title": "" }, { "docid": "6ce44962f98c1463e1cce630ac080b54", "score": "0.4859607", "text": "void saveAccount(AccountDTO accountDTO);", "title": "" }, { "docid": "ca950bde019ab95711e2ddb64c6b941f", "score": "0.48490793", "text": "public CompanyBuilder addDocument(Document document) {\n documents.add(document);\n return this;\n }", "title": "" }, { "docid": "6681cc10dcf37a75149290a70cc5aef2", "score": "0.48462644", "text": "public void addNewAccount(Account newAccount) {\r\n accounts.add(newAccount);\r\n DataManager.writeAccount(newAccount);\r\n }", "title": "" }, { "docid": "a75a7c209a3eaa331f640f0d24ed95dc", "score": "0.48380694", "text": "public void saveAccountData(){\n PersistentDataController.getPersistentDataCntl().getPersistentDataCollection().getUserDirectory().getDirectory().add(user);\n PersistentDataController.getPersistentDataCntl().writeJSONDataModel();\n }", "title": "" }, { "docid": "35b7486572ea900e412c791bacb9aa27", "score": "0.48361877", "text": "public void addAccount(Account a) {\n\t\taccounts.add(a);\n\t\tfor(Customer c: a.getCustomers()) {\n\t\t\tc.getAccounts().add(a); \n\t\t}\n\t\tfirePropertyChange(ID_ACCOUNTS, null, a);\n\t}", "title": "" }, { "docid": "e6377bf93e7c4caae1cef7d1592e69fa", "score": "0.48354423", "text": "public void addAccount(Account account) {\n \tList<Account> oldaccounts = getAccounts();\n \toldaccounts.add(accounts.size()-1, account);\n \tsetAccounts(oldaccounts);\n }", "title": "" }, { "docid": "e8a747a06484fa63f50d379bb249ddef", "score": "0.48345754", "text": "public void addEmployee() {\n\ted.addEmployee();\n\t}", "title": "" }, { "docid": "eb01eb4474511af7920bdf6c17217815", "score": "0.48341185", "text": "public void addOrder(Order o) {\n orderManager.addOrder(o);\n }", "title": "" }, { "docid": "cff7d578d7148aaff23e159905cb7636", "score": "0.48304808", "text": "protected static CompanyDO createExisting( RDBRow row )\n throws SQLException, ObjectIdException, DataObjectException\n\t\t, DatabaseManagerException\n {\n\tif ( null == row )\n\t return null;\n RDBColumnValue pk = null;\n try {\n\t pk = row.get( CompanyDO.PrimaryKey );\n\t return createExisting( pk );\n } catch ( Exception e ) {\n\t throw new DataObjectException(\n\t\t\"Cannot create CompanyDO, row does not \" +\n\t\t\"contain CompanyDO primary key.\" );\n }\n }", "title": "" }, { "docid": "5574394661d4df23b971f4919d0b0fb4", "score": "0.48303917", "text": "void createCompany(Company company);", "title": "" }, { "docid": "9ab42f687e352b3294cc68d3a579faa2", "score": "0.481287", "text": "@Override\r\n\tpublic void addBiaodoc(Biaodoc biaoDoc) {\n\t\tsave(biaoDoc);\r\n\t}", "title": "" }, { "docid": "46342ed2ec9642f0bd68f9b66e340132", "score": "0.47950286", "text": "au.gov.asic.types.fss.DebtorType addNewDebtor();", "title": "" }, { "docid": "4ad897aa9864427d8165c9d6057cd265", "score": "0.47947723", "text": "@Override\n\tpublic Address addAddress(Address address) {\n\t\treturn addRepo.save(address);\n\t}", "title": "" }, { "docid": "ce5a2e318919c98cb04317cf9431064b", "score": "0.47885206", "text": "@Transactional\n\tpublic void addEmployee(Employee emp) {\n\t\tempDAO.addEmployee(emp);\n\n\t}", "title": "" }, { "docid": "8b28e553bbb2ff70a96d60ac27d778cb", "score": "0.4787417", "text": "private void addContact(long user, long company, String title) throws Exception {\r\n PreparedStatement statement =\r\n connection.prepareStatement(\"INSERT INTO contact (contact_id, company_id, title) VALUES (?, ?, ?)\");\r\n\r\n statement.setLong(1, user);\r\n statement.setLong(2, company);\r\n statement.setString(3, title);\r\n\r\n statement.executeUpdate();\r\n statement.close();\r\n }", "title": "" }, { "docid": "fabbf6a13c86eb59bff154aecbe84ca4", "score": "0.47806552", "text": "@Transactional\r\n\tpublic Person savePersonAccount(Integer personId, Account related_account) {\r\n\t\tPerson person = personDAO.findPersonByPrimaryKey(personId, -1, -1);\r\n\t\tAccount existingaccount = accountDAO.findAccountByPrimaryKey(related_account.getAccountId());\r\n\r\n\t\t// copy into the existing record to preserve existing relationships\r\n\t\tif (existingaccount != null) {\r\n\t\t\texistingaccount.setAccountId(related_account.getAccountId());\r\n\t\t\texistingaccount.setAccountName(related_account.getAccountName());\r\n\t\t\texistingaccount.setExpireDate(related_account.getExpireDate());\r\n\t\t\trelated_account = existingaccount;\r\n\t\t} else {\r\n\t\t\trelated_account = accountDAO.store(related_account);\r\n\t\t\taccountDAO.flush();\r\n\t\t}\r\n\r\n\t\tperson.setAccount(related_account);\r\n\t\tperson = personDAO.store(person);\r\n\t\tpersonDAO.flush();\r\n\r\n\t\trelated_account = accountDAO.store(related_account);\r\n\t\taccountDAO.flush();\r\n\r\n\t\treturn person;\r\n\t}", "title": "" }, { "docid": "153e21822de83974cddb61d164d9fd8b", "score": "0.47802457", "text": "public synchronized void add(Address address) {\n\t\taddresses.put(Base64.encodeBase64String(address.getHash()), address);\n\t\ttry {\n\t\t\tthis.save();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to save addresses: \" + e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "3355ac9fe853286f53a8d695a1e635c7", "score": "0.47797224", "text": "@Override\r\n\tpublic OrderLine addOL(OrderLine ol) {\n\t\treturn olDao.addOL(ol);\r\n\t}", "title": "" }, { "docid": "7ccbcb4c28620934c21b87f0c23c40da", "score": "0.4777244", "text": "@Override\r\n\tpublic Pago add(Pago entidad) {// mejor hacemos todo de 0\r\n\t\t// iniciamos la transaccion\r\n\t\ttry {\r\n\t\t\tut.begin();\r\n\t\t\t// con esto guardamos el pago\r\n\t\t\tem.merge(entidad);\r\n\t\t\t//solo si fue exitoso el pago realizamos el descuento al cliente\r\n\t\t\t//retorna muy rapido, y todavia no guardo la entidad por eso no funcaba hace rato\r\n\t\t\tSystem.out.println(entidad.getEstado() + \"\");\r\n\t\t\tif (entidad.getEstado() != -1) {\r\n\t\t\t\t// obtenemos el cliente del pago\r\n\t\t\t\tCliente c = entidad.getCliente();\r\n\t\t\t\t// obtenemos el saldo del cliente\r\n\t\t\t\tDouble saldo = c.getSaldo();\r\n\t\t\t\t// sumamos el pago\r\n\t\t\t\tsaldo = saldo + entidad.getMonto();\r\n\t\t\t\t// seteamos el saldo\r\n\t\t\t\tc.setSaldo(saldo);\r\n\r\n\t\t\t\t// con esto se guarda el cliente con saldo actualizado\r\n\t\t\t\tem.merge(c);\r\n\t\t\t}\r\n\t\t\tut.commit();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn entidad;\r\n\t}", "title": "" }, { "docid": "25e2794d8a11628e4d93e6daf2615c2a", "score": "0.47583735", "text": "public Boolean addAccount(AccountDTO accountDto) throws CustomException {\n\t// TODO Auto-generated method stub\n\tif(accountrepo.existsById(accountDto.getAccountNumber())) {\n\t\tthrow new CustomException(\"Account already Exist\");\n\t}\n\tAccount acc = AccountDTO.valueOf(accountDto);\n\taccountrepo.saveAndFlush(acc);\n\treturn true;\n}", "title": "" }, { "docid": "e8f880b9e8848168e070109b6bb5aba0", "score": "0.47545615", "text": "@Override\r\n\tpublic void adicionar(Compromisso entidade) {\n\t\t\r\n\t\tEntityManager gerente = fab.createEntityManager();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tgerente.getTransaction().begin();\r\n\t\t\tgerente.persist(entidade);\r\n\t\t\tgerente.getTransaction().commit();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Erro ao salvar no banco: \\n\" + e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\tgerente.close();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "886a6b100e7f992516faaca8463fa931", "score": "0.47542676", "text": "@Override\n\tpublic void saveAccount(Account theAccount) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save/update the customer\n\t\tcurrentSession.saveOrUpdate(theAccount);\n\t\t\n\t}", "title": "" }, { "docid": "7f9fd26cd5f6ab65a61691d8b5a3ebf3", "score": "0.47497335", "text": "@Override\n\tpublic void add(Object object) throws Exception {\n\t\ttry {\n\t\t\tsetSession();\n\t\t\tsetTransaction();\n\t\t\ttelefonoDAO.persist((Telefono)object);\n\t\t\tsesionDeHilo.getTransaction().commit();\n\t\t} catch (Exception ex) {\n\t\t\tthrow new Exception(\"Ha ocurrido un problema al agregar el TELEFONO: \" + ex.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "a4140ecb2d90d614bf481a06efb8284c", "score": "0.4742257", "text": "@Override\n\tpublic long addAccount(Account account) {\n\t\tlong id = count.incrementAndGet();\n\t\taccount.setId(id);\n\t\taccounts.add(account);\n\t\treturn id;\n\t}", "title": "" }, { "docid": "294c93a453df049387a0fa4c403f0f51", "score": "0.4739506", "text": "void addEmployee(Employee employee) throws MortuaryServiceException;", "title": "" }, { "docid": "cbcc6b9d3aedf2e85665f1a659b8f201", "score": "0.47356346", "text": "public jobmatch.data.CompanyAccountDO[] getCompanyAccountDOArray () \n throws DataObjectException, QueryException {\n\tjobmatch.data.CompanyAccountDO[] ret = null;\n\ttry {\n\t jobmatch.data.CompanyAccountQuery q = new jobmatch.data.CompanyAccountQuery();\n\t q.setQueryCompany( this );\n\t ret = q.getDOArray();\n\t} catch ( NonUniqueQueryException e ) { \n\t throw new DataObjectException( \n\t\t\"INTERNAL ERROR: unexpected NonUniqueQueryException\" );\n\t} finally {\n\t if ( null == ret )\n\t\tret = new jobmatch.data.CompanyAccountDO[ 0 ];\n\t}\n\treturn ret;\n }", "title": "" }, { "docid": "02d8687a950aa339177caaabc453b06c", "score": "0.47338247", "text": "public void addCompanyToPhonebook(){\n\t\tSystem.out.println(\"Company Name: \");\n\t\tString name=Keyboard.readString();\n\t\tSystem.out.println(\"Company Address: \");\n\t\tString address=Keyboard.readString();\n\t\tSystem.out.println(\"Company Phone Number: \");\n\t\tString phoneNumber=Keyboard.readString();\n\t\tSystem.out.println(\"Company Email: \");\n\t\tString email=Keyboard.readString();\n\t\tSystem.out.println(\"Company Age: \");\n\t\tString age=Keyboard.readString();\n\t\tmyPhonebook.addItem(new CompanyExtended(name,address,phoneNumber,email,age));\n\t}", "title": "" }, { "docid": "5a5fff6cfbf576417911860716676c10", "score": "0.4730643", "text": "@PostMapping(\"/addlegalaccount\")\r\n\tpublic ResponseEntity<Account> addlegalaccount(@RequestBody AccountDTO accountdto){\r\n\t\t\r\n\t\tAccount account = accountService.addLegalAccount(accountdto);\r\n\r\n\t\tif(account!=null) {\r\n\t\t\treturn new ResponseEntity<>(account,HttpStatus.OK);\r\n\t\t}\r\n\t\t\r\n\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n\t}", "title": "" }, { "docid": "14f4ed50b94a141285cd0ecae690d468", "score": "0.47188768", "text": "private void addCompany(long id, String name) throws Exception {\r\n PreparedStatement statement =\r\n connection.prepareStatement(\"INSERT INTO company (company_id, company_name) VALUES (?, ?)\");\r\n\r\n statement.setLong(1, id);\r\n statement.setString(2, name);\r\n\r\n statement.executeUpdate();\r\n statement.close();\r\n }", "title": "" }, { "docid": "a902f60bac3331c25ad0c65dcb6a5021", "score": "0.4705232", "text": "public static CompanyDO createExisting( String handle ) {\n\tCompanyDO ret = null;\n try {\n BigDecimal bd = new BigDecimal( handle );\n\t ret = createExisting( bd );\n } catch ( Exception e ) {\n }\n\treturn ret;\n }", "title": "" }, { "docid": "c639804d232da06f8a9862bf7197dd7d", "score": "0.4691619", "text": "void addNewToDo(ToDo toDo);", "title": "" }, { "docid": "5b36ab3ab88b2fef770ffe107c39f483", "score": "0.46901563", "text": "protected void modifyDO( DBTransaction dbt, boolean delete )\n throws SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException {\n if ( delete )\n\tokToDelete();\n else\n\tokToCommit();\n boolean ownTransaction = false;\n try {\n if ( null == dbt ) {\n\tDatabaseManager dbm = Enhydra.getDatabaseManager();\n dbt = dbm.createTransaction(); // create a transaction\n\townTransaction = true;\n }\n if ( null == dbt )\n\tthrow new DatabaseManagerException(\n\t\t\"DatabaseManager.createTransaction returned null.\" );\n if ( delete ) {\n\t // Code to perform cascading deletes is generated here\n\t // if cascading deletes are not supported by the database. \n\t \t\n\t{\n\t // perform cascading delete on referring table\n\t jobmatch.data.CompanyAccountDO[] a = getCompanyAccountDOArray();\n\t for ( int i = 0; i < a.length; i++ ) {\n\t\ta[ i ].delete( dbt );\n\t }\n\t}\n\t\n\t\n\t{\n\t // perform cascading delete on referring table\n\t jobmatch.data.ProfileDO[] a = getProfileDOArray();\n\t for ( int i = 0; i < a.length; i++ ) {\n\t\ta[ i ].delete( dbt );\n\t }\n\t}\n\t\n\n\t // The following line keeps the compiler happy \n\t // when the CASCADING_DELETES tag is empty.\n if ( false )\n\t throw new QueryException(\"XXX\");\n } else {\n\t // commit referenced DOs.\n\t \tjobmatch.data.AdressDO Adress_DO = getAdress();\n\tif ( null != Adress_DO ) {\n\t if ( Adress_DO.isLoaded() ) {\n\t\tokToCommitAdress( Adress_DO );\n\t\tAdress_DO.commit( dbt );\n\t } else {\n\t\t// since the referenced DO is not loaded,\n\t\t// it cannot be dirty, so there is no need to commit it.\n\t }\n\t} else {\n\t if ( ! true )\n\t\tthrow new RefAssertionException(\n\t\t \"Cannot commit CompanyDO ( \" + toString() +\n\t\t \" ) because Adress is not allowed to be null.\" );\n\t}\n\tjobmatch.data.PersonDO Contact_DO = getContact();\n\tif ( null != Contact_DO ) {\n\t if ( Contact_DO.isLoaded() ) {\n\t\tokToCommitContact( Contact_DO );\n\t\tContact_DO.commit( dbt );\n\t } else {\n\t\t// since the referenced DO is not loaded,\n\t\t// it cannot be dirty, so there is no need to commit it.\n\t }\n\t} else {\n\t if ( ! true )\n\t\tthrow new RefAssertionException(\n\t\t \"Cannot commit CompanyDO ( \" + toString() +\n\t\t \" ) because Contact is not allowed to be null.\" );\n\t}\n\tjobmatch.data.IndustryDO Industry_DO = getIndustry();\n\tif ( null != Industry_DO ) {\n\t if ( Industry_DO.isLoaded() ) {\n\t\tokToCommitIndustry( Industry_DO );\n\t\tIndustry_DO.commit( dbt );\n\t } else {\n\t\t// since the referenced DO is not loaded,\n\t\t// it cannot be dirty, so there is no need to commit it.\n\t }\n\t} else {\n\t if ( ! true )\n\t\tthrow new RefAssertionException(\n\t\t \"Cannot commit CompanyDO ( \" + toString() +\n\t\t \" ) because Industry is not allowed to be null.\" );\n\t}\n\n }\n if ( false ) {\n\t // This throw is here to keep the compiler happy\n\t // in the case of a DO that does not refer to other DOs.\n\t // In that case, the above delete/commit code blocks will be empty\n\t // and throw nothing.\n\t throw new DataObjectException( \"foo\" );\t \n }\n if ( delete ) {\n dbt.delete( this );\n } else {\n\t if ( isLoaded() )\n\t dbt.insert( this ); // dbt.insert() handles insertions and updates\n }\n if (ownTransaction) {\n\t dbt.commit(); // commit the transaction\n }\n } catch (SQLException sqle) {\n StringBuffer message = new StringBuffer(\"Failed to insert/update DO: \");\n message.append(sqle.getMessage());\n\n // rollback, if necessary\n if (ownTransaction) {\n try {\n dbt.rollback();\n } catch (SQLException sqle2) {\n message.insert(0,\"\\n\");\n message.insert(0,sqle2.getMessage());\n message.insert(0,\"Rollback failed: \");\n }\n }\n throw new SQLException(message.toString());\n } finally {\n // release the transaction, if any\n if (ownTransaction) {\n dbt.release();\n }\n }\n }", "title": "" }, { "docid": "dee7161022ba2b544094dfd4e92c7f5a", "score": "0.46876222", "text": "protected static CompanyDO createExisting( RDBColumnValue pk )\n throws SQLException, ObjectIdException, DataObjectException\n\t\t, DatabaseManagerException\n {\n\tif ( null == pk )\n\t return null;\n\tif ( ! pk.equals( CompanyDO.PrimaryKey ) )\n\t throw new DataObjectException(\n\t\t\"Cannot create CompanyDO, \" +\n\t\t\"RDBColumnValue is not CompanyDO.PrimaryKey.\" );\n\tBigDecimal bd = null;\n try {\n\t bd = pk.getBigDecimal();\n } catch ( Exception e ) {\n\t throw new DataObjectException(\n\t\t\"Cannot create CompanyDO, bad primary key.\" );\n }\n\tif ( null == bd )\n return null;\n\treturn createExisting( bd );\n }", "title": "" }, { "docid": "069ac7ff7a066caceea4b48617a93f4c", "score": "0.46865812", "text": "public void addAccount(String accountName) {\n\t\trootAccount.add(new Account(accountName));\n\t}", "title": "" }, { "docid": "c3821785c436a141eb359c9671c5e21d", "score": "0.46831396", "text": "@Override\n\tpublic void registroComplemento(Detalle_complemento dc) {\n\t\tproductorepo.insertComplemento(dc);\n\t}", "title": "" }, { "docid": "de7565b473594bfaf0143a89eec9832f", "score": "0.46820182", "text": "@Override\n\tpublic int addAccount(Account account) {\n\t\tentityManager.persist(account);\n\t\tlogger.info(\"Account Created. Returning status to client\");\n\t\treturn account.getAccount_Number();\n\t}", "title": "" }, { "docid": "17a5b1d01ecc9d83ab590964f1782624", "score": "0.46812376", "text": "void addUserAddress(long id, Address newAddress);", "title": "" }, { "docid": "74cf464fc694190dc4058c423d7e50e5", "score": "0.46633822", "text": "public void setAccount(entity.Account value) {\n __getInternalInterface().setFieldValue(ACCOUNT_PROP.get(), value);\n }", "title": "" }, { "docid": "a370ed865af3f05196b320250e687cdc", "score": "0.46611848", "text": "public void setAccount(entity.Account value) {\n __getInternalInterface().setFieldValue(ACCOUNT_PROP.get(), value);\n }", "title": "" }, { "docid": "bf8250db3b9887be5c919555c3b6c444", "score": "0.46522206", "text": "@Override\r\n\tpublic Employee addEmployee(Employee employee) {\n\t\t\r\n\t\treturn er.save(employee);\r\n\t}", "title": "" }, { "docid": "f6161bfaa14c79ce56d716b1d327c835", "score": "0.4651972", "text": "public void agregarCuenta(Cuenta cuenta){\n getCuentas().add(cuenta);\n }", "title": "" }, { "docid": "cd7d268da44464c9e50fc99c45b968a8", "score": "0.4651337", "text": "UserAddresDO vo2do(UserAddressVO dateVO);", "title": "" }, { "docid": "ccdd9c44882c7b0931845efc7c660cd0", "score": "0.46431217", "text": "public void addEmployee(Employee e) {\n this.employees.add(e);\n }", "title": "" }, { "docid": "a85d76034224d3ef1805478321f69e56", "score": "0.46273455", "text": "public void addProfileDO( jobmatch.data.ProfileDO referrer )\n throws SQLException, DatabaseManagerException, DataObjectException, RefAssertionException, DBRowUpdateException, QueryException {\n addProfileDO( referrer, null );\n }", "title": "" }, { "docid": "b7c4e967ae23f63824a6cfd57104965c", "score": "0.46247306", "text": "boolean addAccount(String name, String accType, int accNumber);", "title": "" }, { "docid": "02641521c4b56840e4a5f1598bf324b3", "score": "0.46165565", "text": "@Override\r\n\tpublic int insertAddOrderData(OrdersVO orVO) {\n\t\treturn getSqlSession().insert(orderExcelNameSpace+\".insertAddOrderData\", orVO);\r\n\t}", "title": "" }, { "docid": "1af3669a41c4b46adbea18641c247fee", "score": "0.4607231", "text": "public void addPerson(String name, String surname, Date birthday, String address) {\n try {\n FacesContext context = FacesContext.getCurrentInstance();\n PersonManagementDAO personManagementDAO = new PersonManagementDAOImpl();\n personManagementDAO.addPerson(name, surname, birthday, address);\n context.isValidationFailed();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "aad483e9d58344c82fe2a148a1baeacd", "score": "0.4606344", "text": "Boolean create( AuditDO auditDO ) throws BusinessException;", "title": "" }, { "docid": "f4067cbe1449d5caf0657b0e54601e9d", "score": "0.46056506", "text": "public void addAccount(Account account) {\n ContentValues values = new ContentValues();\n values.put(COLUMN_USERNAME, account.get_username());\n values.put(COLUMN_EMAIL, account.get_email());\n values.put(COLUMN_PASSWORD, account.get_password());\n SQLiteDatabase db = getWritableDatabase();\n db.insert(TABLE_ACCOUNTS, null, values);\n db.close();\n }", "title": "" }, { "docid": "659cc86c3bfad64659b42d6f30b886a7", "score": "0.4605646", "text": "EmployeeAddresses saveEmployeeAddress(EmployeeAddresses addresses);", "title": "" }, { "docid": "234cde9c8457a7e3474fa8401e6c36cd", "score": "0.46035364", "text": "public void addObject(DigitalObject object) throws Exception;", "title": "" }, { "docid": "064c0a8c36f65fe3f90d11c0dad7bac8", "score": "0.46029422", "text": "@Override\n public SaveAccountResponse save(AccountDTO accountDTO) {\n logger.info(\"SERVICE: {}\", CLASSNAME);\n SaveAccountResponse response = new SaveAccountResponse();\n Account account = null;\n\n try {\n AddCustomerAccountRequest addCustomerAccountRequest = new AddCustomerAccountRequestImpl();\n account = buildAccount(accountDTO);\n addCustomerAccountRequest.buildAccount(account);\n addAccountCommand.setAccountRequest(addCustomerAccountRequest);\n addAccountCommand.execute();\n } catch (RazBankException e) {\n String method = AccountServiceImpl.class.getEnclosingMethod().getName();\n throw new RazBankException(e.getMessage(), ResponseInfo.SERVICE_ERROR, CLASSNAME + \":\" + method, account);\n }\n\n if (addAccountCommand.isSuccess()) {\n logger.error(\"SUCCESS\");\n buildSaveAccountResponse(response, account, ResponseInfo.OK.getValue());\n }\n\n return response;\n }", "title": "" } ]
245db69d593f3bcf85fceeb6db449975
Executes the default operation for this node.
[ { "docid": "40f7fb0ca8700452664b7748804dc3dd", "score": "0.0", "text": "public R executeAnnotationElementListNode(AnnotationElementListNode node, P p) throws X\n {\n return executeDefault(node, p);\n }", "title": "" } ]
[ { "docid": "86a1964f05874d9288c4da0d33386539", "score": "0.76386285", "text": "public abstract R executeDefault(Node node, P p) throws X;", "title": "" }, { "docid": "7aea0c9b1f5b343531e16e177a6eb283", "score": "0.6202571", "text": "default void defaultMethod(){\n System.out.println(\"Default method called\");\n }", "title": "" }, { "docid": "231464e487873306690885ba796cf1b1", "score": "0.6091116", "text": "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new JOperate(Robot.m_oi.driverController));\n }", "title": "" }, { "docid": "3c258709f3cdc5c5911f9790d6689c7c", "score": "0.6050142", "text": "@Override\n\t\tprotected void initDefaultCommand() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2684c28193d1e275dae35d778f06080e", "score": "0.6038863", "text": "public void initDefaultCommand() {\n \t\n }", "title": "" }, { "docid": "bc23eb6884ec517f1938b2c4877973d4", "score": "0.5989937", "text": "public void initDefaultCommand() {\n \n }", "title": "" }, { "docid": "bc23eb6884ec517f1938b2c4877973d4", "score": "0.5989937", "text": "public void initDefaultCommand() {\n \n }", "title": "" }, { "docid": "d12e264f19165f45f1816d25c06f0ef6", "score": "0.5989028", "text": "default void defaultMethod() {\n System.out.println(\"Default Method\");\n }", "title": "" }, { "docid": "4fb686c49201bd92e39ac7dff0deb0e1", "score": "0.59797996", "text": "public void initDefaultCommand() {}", "title": "" }, { "docid": "d7c9ad64846525d33174af38c1f68daa", "score": "0.5938899", "text": "public void initDefaultCommand() {\r\n\t}", "title": "" }, { "docid": "b4f1275db47341955617a3a834882cba", "score": "0.59370905", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "af42f55254b14446361bb9c82052db5b", "score": "0.5911911", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "28789e67793d80cf205e8fecff9ce3a4", "score": "0.5896233", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "28789e67793d80cf205e8fecff9ce3a4", "score": "0.5896233", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "28789e67793d80cf205e8fecff9ce3a4", "score": "0.5896233", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "28789e67793d80cf205e8fecff9ce3a4", "score": "0.5896233", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "878dbd064d25adcefc24c06a54e15018", "score": "0.5894441", "text": "public void initDefaultCommand()\n {\n }", "title": "" }, { "docid": "8a2c7b94fbc51ed1edc46764f5d983a5", "score": "0.5890612", "text": "public void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "8a2c7b94fbc51ed1edc46764f5d983a5", "score": "0.5890612", "text": "public void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "8a2c7b94fbc51ed1edc46764f5d983a5", "score": "0.5890612", "text": "public void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "8a2c7b94fbc51ed1edc46764f5d983a5", "score": "0.5890612", "text": "public void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "8a2c7b94fbc51ed1edc46764f5d983a5", "score": "0.5890612", "text": "public void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "8a2c7b94fbc51ed1edc46764f5d983a5", "score": "0.5890612", "text": "public void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "8a2c7b94fbc51ed1edc46764f5d983a5", "score": "0.5890612", "text": "public void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "db317ee6c715320fc03fbd6ef8a36d0b", "score": "0.5886185", "text": "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db317ee6c715320fc03fbd6ef8a36d0b", "score": "0.5886185", "text": "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "title": "" }, { "docid": "81ccc5912c37ded0aeac6c030ddec2e5", "score": "0.5885831", "text": "public void initDefaultCommand();", "title": "" }, { "docid": "ad9543c43d4377b109a68eca78e89a2a", "score": "0.5879093", "text": "public void initDefaultCommand()\n\t{\n\t}", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "391c05dcbdc92fd6bd93beb98b432d83", "score": "0.58709955", "text": "@Override\n public void initDefaultCommand() {\n }", "title": "" }, { "docid": "fe19ea8eb96b0fbbe8cc40406d1b93b9", "score": "0.58661693", "text": "@Override\n\tpublic void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "fe19ea8eb96b0fbbe8cc40406d1b93b9", "score": "0.58661693", "text": "@Override\n\tpublic void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "fe19ea8eb96b0fbbe8cc40406d1b93b9", "score": "0.58661693", "text": "@Override\n\tpublic void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "c69b485bba26c7453c4ec2a0b76bd253", "score": "0.5861954", "text": "public R executeNoOperationNode(NoOperationNode node, P p) throws X\n {\n return executeDefault(node, p);\n }", "title": "" }, { "docid": "1f44450bb0808c191f1af6c71c3ae3b1", "score": "0.5843885", "text": "public void initDefaultCommand() {\n\t\toperatorDrive = new OperatorDrive();\n\t\tsetDefaultCommand(operatorDrive);\n\t}", "title": "" }, { "docid": "a30fa7b9a42558edaee3bdfbf6293476", "score": "0.58375794", "text": "@Override\n protected void initDefaultCommand() {}", "title": "" }, { "docid": "e31fb14b6a2c885f6935fcfea58ff3a9", "score": "0.5830415", "text": "public void initDefaultCommand() {\n setDefaultCommand(new C_GearLightAlways());\n \t\n }", "title": "" }, { "docid": "154a01c5a35917bacd16ed127ae2a2dc", "score": "0.5829335", "text": "public void initDefaultCommand() {\n }", "title": "" }, { "docid": "88bd078ae20066c8a63d6ec43475d68c", "score": "0.5823421", "text": "public void initDefaultCommand() \n {\n }", "title": "" }, { "docid": "88bd078ae20066c8a63d6ec43475d68c", "score": "0.5823421", "text": "public void initDefaultCommand() \n {\n }", "title": "" }, { "docid": "c64e091f387df8f388019c5ef8c34587", "score": "0.5821663", "text": "public void initDefaultCommand() {\n \tsetDefaultCommand(new LEDTest(Robot.m_oi.driverXbox, 32));\n }", "title": "" }, { "docid": "77a6febf8d247baeae02b3ecbdcaf446", "score": "0.58046603", "text": "Object default_();", "title": "" }, { "docid": "6e915b8ae1d321456111c79bba30cb33", "score": "0.578917", "text": "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \t//setDefaultCommand(new FastClimb(0));\n \tsetDefaultCommand(new FastClimb());\n }", "title": "" }, { "docid": "6a3047be434a589fcc7ecc3abc746527", "score": "0.5780043", "text": "protected void initDefaultCommand() {\n\n\t}", "title": "" }, { "docid": "f77b7fbc30473bb075d248354c7ddf5a", "score": "0.57783645", "text": "@Override\n\tprotected void initDefaultCommand () {\n\t\t\n\t}", "title": "" }, { "docid": "f88080c21b9fa77544ed1378a7904252", "score": "0.57782024", "text": "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "title": "" }, { "docid": "f88080c21b9fa77544ed1378a7904252", "score": "0.57782024", "text": "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "title": "" }, { "docid": "f88080c21b9fa77544ed1378a7904252", "score": "0.57782024", "text": "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "title": "" }, { "docid": "f88080c21b9fa77544ed1378a7904252", "score": "0.57782024", "text": "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "title": "" }, { "docid": "f88080c21b9fa77544ed1378a7904252", "score": "0.57782024", "text": "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "title": "" }, { "docid": "f88080c21b9fa77544ed1378a7904252", "score": "0.57782024", "text": "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "title": "" }, { "docid": "620e68a36ed64da43a33141b241561fb", "score": "0.57765573", "text": "@Override\n\tprotected void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "868420832070fad1fa00e6deb9069ca3", "score": "0.5769995", "text": "@Override\r\n\tprotected void initDefaultCommand() {\n\t}", "title": "" }, { "docid": "6441a2b0841d11534f15f1ebcec49e0a", "score": "0.5751775", "text": "protected void performDefaults() {\n\t\tinitial();\n\t\tsuper.performDefaults();\n\t}", "title": "" }, { "docid": "c145ceca52a0ed7cd60c84ce50e0b2f6", "score": "0.5742834", "text": "@Override\n public void initDefaultCommand() {\n\n }", "title": "" }, { "docid": "c4446c06bd1cda0b30d67e601ebbd26d", "score": "0.5737193", "text": "public void initDefaultCommand() {\n \n \t\n // Set the default command for a subsystem here.\n //setDefaultCommand(new ControlledTurn(0));\n }", "title": "" }, { "docid": "0e92e807d50c500b7a8750318e2d2bef", "score": "0.57363516", "text": "@Override\n\tprotected void initDefaultCommand()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7b7b4ea71b5cd707dea81d1b58147e9b", "score": "0.5724015", "text": "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "title": "" }, { "docid": "7b7b4ea71b5cd707dea81d1b58147e9b", "score": "0.5724015", "text": "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "title": "" }, { "docid": "7b7b4ea71b5cd707dea81d1b58147e9b", "score": "0.5724015", "text": "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "3fad1f11b813764feac166844ef472c7", "score": "0.0", "text": "@Override\n\tpublic BackgroundUser findOne(Long userId) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6676429", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.6485175", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.6164056", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.61634105", "text": "@Override\n\tprotected void generateData() {\n\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": "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": "4e49f5db36ca664153e54380025b85d4", "score": "0.6095768", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6074471", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.6028443", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.60278815", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.60087883", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5988416", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5978686", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "9fe3f6ccb967a8bcee9106fbbd56b684", "score": "0.5974211", "text": "@Override\r\n\tpublic void properties() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "fcfbf321ff3e4c56b4e383ce15e49dbb", "score": "0.59429646", "text": "@Override\r\n\tpublic void obtersaida()\r\n\t{\n\t}", "title": "" }, { "docid": "482b1825ec60700f97ed42e420d69d99", "score": "0.59383935", "text": "@Override\n\tpublic void valide() {\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.59383595", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "4b7e3f693781babf82ed11447db2a554", "score": "0.5929242", "text": "@Override\n\tpublic void concentrarse() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.59280443", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\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": "9a0f5a503f38cb7c40d13ecc89073bd8", "score": "0.58973867", "text": "@Override\r\n\tpublic void getDuriation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5863205", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.58500654", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.58491904", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "b8d886581a76c72e11ab317e6cb6e2a8", "score": "0.58308905", "text": "@Override\r\n public void rechercher() {\n }", "title": "" }, { "docid": "80b5722cdc9efe11a305e92ea813ac0f", "score": "0.5827698", "text": "@Override\r\n\tpublic void inter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "947b4ee184fe32ab14b8c244b9461c7d", "score": "0.5807026", "text": "@Override\n\tpublic void vida() {\n\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c86f446a8bd6af19f88cc011fdf2ffd4", "score": "0.5802792", "text": "public void asustar() {\n // TODO implement here\n \n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.580217", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.57979786", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bb30a482e2236eb664f8d8fc23724b59", "score": "0.57915", "text": "@Override\n\tprotected void initActb() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\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": "0cc40600dd2e7cb9f56bd77995e01fc3", "score": "0.5780891", "text": "@Override\n\tpublic void Miow() {\n\t\t\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.57797045", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "0a14b2c4ac9647e6bc7077e1e653d540", "score": "0.57781726", "text": "@Override\n \tprotected int getSize() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "7d110d5ea1b4795727b052c3f897a146", "score": "0.5776224", "text": "public void ligar() {\n\t\t\r\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": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e022c47f335a39c6bdb94a0f49a4e940", "score": "0.5767807", "text": "@Override\r\n\tpublic void parar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "900d30c04323cde584c73c5ffa48d9cf", "score": "0.5757801", "text": "@Override\n\t\tpublic void visitEnd() {\n\n\t\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.57495934", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.57494617", "text": "private void Initalization() {\n\t\t\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": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\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": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5732932", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4da4d5cf96c032296a894fc6e8d76283", "score": "0.5718805", "text": "@Override\n\tpublic void beCagey() {\n\t\t\n\t}", "title": "" }, { "docid": "a8f4d3149e0f7a43b23b53ce69363fd6", "score": "0.57184815", "text": "public void mo5202b() {\n }", "title": "" }, { "docid": "c2a6308317d4e5fc230ea7d2fb55fc1b", "score": "0.5715011", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" } ]
eb42b223c9e4ac1a0126b3ee9911811c
Test given 'vms/123' returns a reference to the virtual machine service
[ { "docid": "cba41c0f92e2b8dcc8a8f56348407864", "score": "0.7888921", "text": "@Test\n public void testReturnVmService() {\n assertTrue(connection.systemService().service(\"vms/123\") instanceof VmService);\n }", "title": "" } ]
[ { "docid": "07f7946529b1d2819a4b82cf26899f2b", "score": "0.75129014", "text": "@Test\n public void testReturnVmsService() {\n assertTrue(connection.systemService().service(\"vms\") instanceof VmsService);\n }", "title": "" }, { "docid": "c732dbbf9cd39534e97965e29ab63629", "score": "0.66466796", "text": "@Path(\"/vms/{vmid}\")\n IVmResource findVm(@PathParam(\"vmid\") int vmId);", "title": "" }, { "docid": "c322542476a4b15e01b598666dae99c6", "score": "0.6159279", "text": "@Test\n public void getVirtualMachineTest()\n {\n // Create a virtual machine\n VirtualMachine vm = vmGenerator.createInstance(ent);\n VirtualMachine vm2 = vmGenerator.createInstance(ent);\n\n Machine machine = vm.getHypervisor().getMachine();\n machine.setDatacenter(vdc.getDatacenter());\n machine.setRack(null);\n\n Machine machine2 = vm2.getHypervisor().getMachine();\n machine2.setDatacenter(vdc.getDatacenter());\n machine2.setRack(null);\n\n // Asociate it to the created virtual appliance\n NodeVirtualImage nvi = nodeVirtualImageGenerator.createInstance(vapp, vm);\n NodeVirtualImage nvi2 = nodeVirtualImageGenerator.createInstance(vapp, vm2);\n\n List<Object> entitiesToSetup = new ArrayList<Object>();\n\n entitiesToSetup.add(ent);\n entitiesToSetup.add(datacenter);\n entitiesToSetup.add(vdc);\n entitiesToSetup.add(vapp);\n\n for (Privilege p : vm.getUser().getRole().getPrivileges())\n {\n entitiesToSetup.add(p);\n }\n\n entitiesToSetup.add(vm.getUser().getRole());\n entitiesToSetup.add(vm.getUser());\n entitiesToSetup.add(vm.getVirtualImage());\n entitiesToSetup.add(machine);\n entitiesToSetup.add(vm.getHypervisor());\n entitiesToSetup.add(vm);\n entitiesToSetup.add(nvi);\n\n for (Privilege p : vm2.getUser().getRole().getPrivileges())\n {\n entitiesToSetup.add(p);\n }\n\n entitiesToSetup.add(vm2.getUser().getRole());\n entitiesToSetup.add(vm2.getUser());\n entitiesToSetup.add(vm2.getVirtualImage());\n entitiesToSetup.add(machine2);\n entitiesToSetup.add(vm2.getHypervisor());\n entitiesToSetup.add(vm2);\n entitiesToSetup.add(nvi2);\n\n setup(entitiesToSetup.toArray());\n\n // Check for vm\n ClientResponse response =\n get(resolveVirtualMachineURI(vdc.getId(), vapp.getId(), vm.getId()));\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n VirtualMachineDto vmDto = response.getEntity(VirtualMachineDto.class);\n // assertLinkExist(vmDto,\n // resolveVirtualMachineActionGetIPsURI(vdc.getId(), vapp.getId(), vm.getId()), \"action\",\n // VirtualMachineNetworkConfigurationResource.NICS_PATH);\n // assertLinkExist(vmDto, resolveVirtualMachineURI(vdc.getId(), vapp.getId(), vm.getId()),\n // \"edit\");\n assertNotNull(vmDto);\n\n // Check for vm2\n response = get(resolveVirtualMachineURI(vdc.getId(), vapp.getId(), vm2.getId()));\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n vmDto = response.getEntity(VirtualMachineDto.class);\n // assertLinkExist(vmDto,\n // resolveVirtualMachineActionGetIPsURI(vdc.getId(), vapp.getId(), vm2.getId()), \"action\",\n // VirtualMachineNetworkConfigurationResource.NICS_PATH);\n // assertLinkExist(vmDto, resolveVirtualMachineURI(vdc.getId(), vapp.getId(), vm2.getId()),\n // \"edit\");\n assertNotNull(vmDto);\n }", "title": "" }, { "docid": "47cb6162dbb99ee80e5763613ef183e4", "score": "0.6015854", "text": "@Test\n public void testReturnVmDisksService() {\n assertTrue(connection.systemService().service(\"vms/123/diskattachments\") instanceof DiskAttachmentsService);\n }", "title": "" }, { "docid": "cd4fb151d6c84c5e8c04fbc46e2c0cdf", "score": "0.5940792", "text": "@GET\n @Path(\"/vms\")\n @Produces(\"application/json\")\n Response getVMs() throws Exception;", "title": "" }, { "docid": "0c0e53e07ac80c2a89df1a75ec8fdfd9", "score": "0.5844005", "text": "@Test\n public void getVirtualMachineRaises404WhenInvalidVirtualApplianceId()\n {\n VirtualMachine vm = vmGenerator.createInstance(ent);\n NodeVirtualImage nvi = nodeVirtualImageGenerator.createInstance(vapp, vm);\n\n Machine machine = vm.getHypervisor().getMachine();\n machine.setDatacenter(vdc.getDatacenter());\n machine.setRack(null);\n\n List<Object> entitiesToSetup = new ArrayList<Object>();\n\n entitiesToSetup.add(ent);\n entitiesToSetup.add(datacenter);\n entitiesToSetup.add(vdc);\n entitiesToSetup.add(vapp);\n\n for (Privilege p : vm.getUser().getRole().getPrivileges())\n {\n entitiesToSetup.add(p);\n }\n\n entitiesToSetup.add(vm.getUser().getRole());\n entitiesToSetup.add(vm.getUser());\n entitiesToSetup.add(vm.getVirtualImage());\n entitiesToSetup.add(machine);\n entitiesToSetup.add(vm.getHypervisor());\n entitiesToSetup.add(vm);\n entitiesToSetup.add(nvi);\n\n setup(entitiesToSetup.toArray());\n\n // Check the vm has been succesfully created\n ClientResponse response =\n get(resolveVirtualMachineURI(vdc.getId(), vapp.getId(), vm.getId()));\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n VirtualMachineDto vmDto = response.getEntity(VirtualMachineDto.class);\n assertNotNull(vmDto);\n\n // Check again the valid value of vm Id but with an invalid vapp Id\n response =\n get(resolveVirtualMachineURI(vdc.getId(), new Random().nextInt(1000), vm.getId()));\n assertEquals(response.getStatusCode(), Status.NOT_FOUND.getStatusCode());\n }", "title": "" }, { "docid": "4e6427c4418778d2dc197569071d2f58", "score": "0.57824224", "text": "VirtualMachinesDetails getDetails();", "title": "" }, { "docid": "6fdd02bd005bc7ed8d4e4a8a8375456b", "score": "0.57279783", "text": "@Test\n public void getVirtualMachineRaises404WhenInvalidVirtualMachineId()\n {\n setup(ent, datacenter, vdc, vapp);\n\n // Check a randomly value\n ClientResponse response =\n get(resolveVirtualMachineURI(vdc.getId(), vapp.getId(), new Random().nextInt(1000)));\n assertEquals(response.getStatusCode(), Status.NOT_FOUND.getStatusCode());\n }", "title": "" }, { "docid": "f2a1ea6fd615b5514991cb26b97da23c", "score": "0.570012", "text": "public MyVM( String vmname ) \n {\n // initialise instance variables\n try {\n this.vmname = vmname ;\n this.si = new ServiceInstance\n (new URL(Config.getVmwareHostURL()), Config.getVmwareLogin(), Config.getVmwarePassword(), true);\n Folder rootFolder = si.getRootFolder();\n this.vm = (VirtualMachine) new InventoryNavigator(rootFolder).searchManagedEntity(\"VirtualMachine\", this.vmname);\n showPowerState();\n } catch ( Exception e ) \n { System.out.println( e.toString() ) ; }\n\n if( this.vm==null)\n {\n System.out.println(\"No VM \" + vmname + \" found\");\n if ( this.si != null)\n this.si.getServerConnection().logout();\n }\n }", "title": "" }, { "docid": "285cf6788cdb337ee42f48ef7c06320a", "score": "0.5675982", "text": "@Test\n public void getVirtualMachineRaises404WhenInvalidVirtualDatacenterId()\n {\n VirtualMachine vm = vmGenerator.createInstance(ent);\n NodeVirtualImage nvi = nodeVirtualImageGenerator.createInstance(vapp, vm);\n\n Machine machine = vm.getHypervisor().getMachine();\n machine.setDatacenter(vdc.getDatacenter());\n machine.setRack(null);\n\n List<Object> entitiesToSetup = new ArrayList<Object>();\n\n entitiesToSetup.add(ent);\n entitiesToSetup.add(datacenter);\n entitiesToSetup.add(vdc);\n entitiesToSetup.add(vapp);\n\n for (Privilege p : vm.getUser().getRole().getPrivileges())\n {\n entitiesToSetup.add(p);\n }\n\n entitiesToSetup.add(vm.getUser().getRole());\n entitiesToSetup.add(vm.getUser());\n entitiesToSetup.add(vm.getVirtualImage());\n entitiesToSetup.add(machine);\n entitiesToSetup.add(vm.getHypervisor());\n entitiesToSetup.add(vm);\n entitiesToSetup.add(nvi);\n\n setup(entitiesToSetup.toArray());\n\n // Check the vm has been succesfully created\n ClientResponse response =\n get(resolveVirtualMachineURI(vdc.getId(), vapp.getId(), vm.getId()));\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n VirtualMachineDto vmDto = response.getEntity(VirtualMachineDto.class);\n assertNotNull(vmDto);\n\n // Check again the valid value of vm Id but with an invalid vdc Id\n response =\n get(resolveVirtualMachineURI(new Random().nextInt(1000), vapp.getId(), vm.getId()));\n assertEquals(response.getStatusCode(), Status.NOT_FOUND.getStatusCode());\n }", "title": "" }, { "docid": "8c0ded3c6198099d7179422f6f9b96ef", "score": "0.5585184", "text": "public void testGetServiceForSanity() {\n String service = myCommunicationRequest.getService();\n assertEquals(service, SERVICE);\n\n }", "title": "" }, { "docid": "7cd2d0bb7751689a36bbab745cc25368", "score": "0.5524236", "text": "@Test\n public void getVirtualMachineActionIPsRaises404WhenVMNotBelongsToVapp()\n {\n VirtualMachine vm = vmGenerator.createInstance(ent);\n NodeVirtualImage nvi = nodeVirtualImageGenerator.createInstance(vapp, vm);\n\n Machine machine = vm.getHypervisor().getMachine();\n machine.setDatacenter(vdc.getDatacenter());\n machine.setRack(null);\n\n List<Object> entitiesToSetup = new ArrayList<Object>();\n\n entitiesToSetup.add(ent);\n entitiesToSetup.add(datacenter);\n entitiesToSetup.add(vdc);\n entitiesToSetup.add(vapp);\n\n for (Privilege p : vm.getUser().getRole().getPrivileges())\n {\n entitiesToSetup.add(p);\n }\n\n entitiesToSetup.add(vm.getUser().getRole());\n entitiesToSetup.add(vm.getUser());\n entitiesToSetup.add(vm.getVirtualImage());\n entitiesToSetup.add(machine);\n entitiesToSetup.add(vm.getHypervisor());\n entitiesToSetup.add(vm);\n entitiesToSetup.add(nvi);\n\n setup(entitiesToSetup.toArray());\n\n ClientResponse response =\n get(resolveVirtualMachineActionGetIPsURI(vdc.getId(), new Random().nextInt(1000),\n vm.getId()));\n assertEquals(response.getStatusCode(), Status.NOT_FOUND.getStatusCode());\n }", "title": "" }, { "docid": "7932641ec1d3493fb0bafbf5cd7704cc", "score": "0.53225887", "text": "VmHealthCheckType getVmHealthCheck();", "title": "" }, { "docid": "d8bdf0681fc5e5f7513ac4f22ea77fa2", "score": "0.5298438", "text": "public static VirtualMachine getVM(String theVMArgs, String cmdLine, RunApp.OutputListener diagnostics)\n {\n VirtualMachineManager manager = Bootstrap.virtualMachineManager();\n LaunchingConnector connector = manager.defaultConnector();\n Map<String, Connector.Argument> args = connector.defaultArguments();\n args.get(\"options\").setValue(theVMArgs);\n args.get(\"main\").setValue(cmdLine); // Should probably figure out how to specify 'localhost'\n return generalGetVM(connector, args, diagnostics);\n }", "title": "" }, { "docid": "b05b9a3c504b1b9a57e9ed8784227d21", "score": "0.5295252", "text": "VirtualMachine getVirtualMachineByUID(String uid);", "title": "" }, { "docid": "a22b91bf04eb8c30a80d949c814a7825", "score": "0.5210979", "text": "@POST\n @Path(\"/vms\")\n @Consumes(\"application/json\")\n Response addVM(String requestBody) throws Exception;", "title": "" }, { "docid": "c659efd1a6b185882835c8ac0c46063f", "score": "0.52076", "text": "List<ServiceInstance> getInstancesByServiceId(String serviceId);", "title": "" }, { "docid": "97d361aa8972bc12892058e54f6122d6", "score": "0.51451284", "text": "VirtualMachine[] getVirtualMachines();", "title": "" }, { "docid": "d85f89ee4b1e12ae486606cd9b74455b", "score": "0.5116961", "text": "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getVirtualMachineActionIPsRaises404WhenVappNotBelongsToVDC()\n {\n VirtualMachine vm = vmGenerator.createInstance(ent);\n NodeVirtualImage nvi = nodeVirtualImageGenerator.createInstance(vapp, vm);\n\n Machine machine = vm.getHypervisor().getMachine();\n machine.setDatacenter(vdc.getDatacenter());\n machine.setRack(null);\n\n List<Object> entitiesToSetup = new ArrayList<Object>();\n\n entitiesToSetup.add(ent);\n entitiesToSetup.add(datacenter);\n entitiesToSetup.add(vdc);\n entitiesToSetup.add(vapp);\n\n for (Privilege p : vm.getUser().getRole().getPrivileges())\n {\n entitiesToSetup.add(p);\n }\n\n entitiesToSetup.add(vm.getUser().getRole());\n entitiesToSetup.add(vm.getUser());\n entitiesToSetup.add(vm.getVirtualImage());\n entitiesToSetup.add(machine);\n entitiesToSetup.add(vm.getHypervisor());\n entitiesToSetup.add(vm);\n entitiesToSetup.add(nvi);\n\n setup(entitiesToSetup.toArray());\n\n ClientResponse response =\n get(resolveVirtualMachineActionGetIPsURI(new Random().nextInt(1000), vapp.getId(),\n vm.getId()));\n assertEquals(response.getStatusCode(), Status.NOT_FOUND.getStatusCode());\n }", "title": "" }, { "docid": "1a7bd4d9ff0943345f448f1adc4a4bd3", "score": "0.510678", "text": "public abstract ResponseMessage start(VMModel vm);", "title": "" }, { "docid": "ea98bd4f66c75acf7f4cdb3ddadc83c5", "score": "0.51033586", "text": "@Path(\"/vos/{voId}\")\n IVirtualOrganizationResource findVO(@PathParam(\"voId\") int voId);", "title": "" }, { "docid": "0869b870ff5b1e468850b7da453ab81c", "score": "0.51022273", "text": "net.zyuiop.ovhapi.api.objects.overthebox.Service getServiceName(java.lang.String serviceName) throws java.io.IOException;", "title": "" }, { "docid": "8d9d477bee7c13b037db022b4b2e25f5", "score": "0.508087", "text": "public abstract String getMachineIPQueryingDSB(String serviceName, String serviceType, String serviceRole);", "title": "" }, { "docid": "d47407a175b513539396f855451bcf15", "score": "0.50733393", "text": "java.lang.String getService();", "title": "" }, { "docid": "812c9874d659b9c073a052d4711c4d68", "score": "0.5061798", "text": "Machine getHostMachine();", "title": "" }, { "docid": "1bf554c25bf6f988edce9c2cd808f239", "score": "0.505457", "text": "public Service getServiceInfo(Match match);", "title": "" }, { "docid": "387404dc880fc7e2e7e09a230e470387", "score": "0.5053381", "text": "@Test\n public void getServicesTest() {\n List<ServiceEntity> list = residentServiceLogic.getServices(residentData.get(0).getId(), neighborhood.getId());\n\n Assert.assertEquals(1, list.size());\n }", "title": "" }, { "docid": "024f10c9ccfe50a65bd7ce572b1c6059", "score": "0.5032967", "text": "public interface MachineServiceI {\n\tpublic List<Machine> listMachines();\n\tpublic Machine getMachine(String id);\n}", "title": "" }, { "docid": "903f74afa4528fff77323586339dec21", "score": "0.5030517", "text": "public String getVirtualHostName();", "title": "" }, { "docid": "215e27b10df92b28457647027b95951c", "score": "0.5023109", "text": "public abstract List<VMModel> getPendingVirtualMachines();", "title": "" }, { "docid": "b8b2119476ecc99adf15a2e6a30af121", "score": "0.50100994", "text": "public void testGetServiceForSuccess() {\n myCommunicationRequest.getService();\n }", "title": "" }, { "docid": "e0d92741b6c210fa9a986f2bdbe2daaa", "score": "0.49866614", "text": "public static £ openServices() {\r\n\t\tRuntime runtime = Runtime.getRuntime();\r\n\t\tProcess process = null;\r\n\t\ttry {\r\n\t\t\tprocess = runtime.exec(\"C:\\\\Windows\\\\System32\\\\cmd.exe\");\r\n\t\t} catch (IOException e1) {\r\n\t\t\t/*\r\n\t\t\t * \r\n\t\t\t * JGO Auto-generated catch block Author : £ wasp91 £ Date 06 gen 2018\r\n\t\t\t * \r\n\t\t\t */\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tbyte[] buffer = \"services.msc\\r\\n\".getBytes();\r\n\t\tOutputStream out = process.getOutputStream();\r\n\t\ttry {\r\n\t\t\tout.write(buffer);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t/*\r\n\t\t\t * \r\n\t\t\t * JGO Auto-generated catch block Author : £ wasp91 £ Date 06 gen 2018\r\n\t\t\t * \r\n\t\t\t */\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tout.flush();\r\n\t\t} catch (IOException e1) {\r\n\t\t\t/*\r\n\t\t\t * \r\n\t\t\t * JGO Auto-generated catch block Author : £ wasp91 £ Date 06 gen 2018\r\n\t\t\t * \r\n\t\t\t */\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tout.close();\r\n\t\t} catch (IOException e1) {\r\n\t\t\t/*\r\n\t\t\t * \r\n\t\t\t * JGO Auto-generated catch block Author : £ wasp91 £ Date 06 gen 2018\r\n\t\t\t * \r\n\t\t\t */\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tprocess.waitFor();\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\t/*\r\n\t\t\t * \r\n\t\t\t * JGO Auto-generated catch block Author : £ wasp91 £ Date 06 gen 2018\r\n\t\t\t * \r\n\t\t\t */\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "title": "" }, { "docid": "3a30b26f8ce7a70ec04d29522be26c4e", "score": "0.49556667", "text": "public interface MachineService extends Service<Inno72Machine> {\n\n\tResult<List<MachineNetInfo>> updateMachineListNetStatus(List<MachineNetInfo> list);\n\n\tResult<List<MachineListVo>> findMachines(String machineCode, String localCode, String startTime, String endTime,\n\t\t\tString machineType, String machineStatus, String localType);\n\n\tResult<String> updateLocale(String id, String localeId, String address);\n\n\tResult<List<ChannelListVo>> channelList(String id);\n\n\tResult<String> deleteChannel(List<UpdateMachineChannelVo> channels);\n\n\tResult<String> updateGoodsCount(List<UpdateMachineChannelVo> channels);\n\n\tResult<MachineStatusVo> machineStatus(String machineId);\n\n\tResult<MachineAppStatus> appStatus(String machineId);\n\n\tResult<String> updateInfo(String machineId, Integer updateStatus);\n\n\tResult<String> cutApp(String machineId, String appPackageName);\n\n\tResult<String> installApp(String machineId, String appPackageName, String url, Integer versionCode);\n\n\tResult<List<String>> findMachineByMachineStatus(int id);\n\n\tList<MachineListVo1> findMachinePlan(String machineCode, String state, String localCode, String startTime,\n\t\t\tString endTime);\n\n\tResult<MachinePortalVo> findMachinePortalData();\n\n\tResult<List<MachineExceptionVo>> findExceptionMachine(Integer type);\n\n\tResult<List<MachineStockOutInfo>> findMachineStockoutInfo(String machineId);\n\n\tResult<String> updateMachine(UpdateMachineVo vo);\n\n\tResult<String> updateMachineCode(String machineId, String machineCode);\n\n\tResult<Inno72Machine> findMachineInfoById(String machineId);\n\n\tResult<String> cutDesktop(String machineId, Integer status);\n\n\tResult<List<PointLog>> machinePointLog(String machineCode, String startTime, String endTime);\n\n\tResult<String> updateTemperature(String machineId, Integer temperature);\n\n\tResult<String> findTemperature(String machineId);\n\n\tResult<String> grabLog(String machineId, Integer logType, String startTime, String endTime);\n\n\tResult<List<Inno72AppLog>> getLogs(String machineId);\n\n\tResult<String> updateMachineType(String machineId, Integer machineType);\n}", "title": "" }, { "docid": "f419ea0a70b4dcc5edde45fa14fbd3bf", "score": "0.49329185", "text": "public VirtualMachine getVirtualMachine() { return this.vm; }", "title": "" }, { "docid": "4f8c50b09af0413da777f315b2977a24", "score": "0.49312606", "text": "Remote findService(String host, String port, String svcName) throws RMIHostException,\n RMIHostRuntimeException;", "title": "" }, { "docid": "25addc52e5362093ea0ad4919cbd305d", "score": "0.4927154", "text": "@Path(\"/system/services/{service-name}/instances\")\n @GET\n public void getServiceInstance(final HttpRequest request, final HttpResponder responder,\n @PathParam(\"service-name\") String serviceName) throws Exception {\n JsonObject reply = new JsonObject();\n if (!serviceManagementMap.containsKey(serviceName)) {\n responder.sendString(HttpResponseStatus.NOT_FOUND, String.format(\"Invalid service name %s\", serviceName));\n return;\n }\n MasterServiceManager serviceManager = serviceManagementMap.get(serviceName);\n if (serviceManager.isServiceEnabled()) {\n int actualInstance = serviceManagementMap.get(serviceName).getInstances();\n reply.addProperty(\"provisioned\", actualInstance);\n reply.addProperty(\"requested\", getSystemServiceInstanceCount(serviceName));\n responder.sendJson(HttpResponseStatus.OK, reply);\n } else {\n responder.sendString(HttpResponseStatus.FORBIDDEN, String.format(\"Service %s is not enabled\", serviceName));\n }\n }", "title": "" }, { "docid": "8096e19b4f27e756eed908ecd9116ec3", "score": "0.4920489", "text": "public VirtualMachine getVirtualMachine() {\n return virtualMachine;\n }", "title": "" }, { "docid": "db3cbdc09106920bc40c19a2370307c6", "score": "0.4918433", "text": "public interface MonService {\n public String select();\n}", "title": "" }, { "docid": "80b9bcd29b8fc6c02b2662152ac31350", "score": "0.48984626", "text": "VirtualApplianceSite get(String resourceGroupName, String networkVirtualApplianceName, String siteName);", "title": "" }, { "docid": "bab6a33c7fecbc35c4baf1d5aeb9a8d4", "score": "0.48847303", "text": "@Test\r\n public void shouldBeOkForVirtualTrees() {\r\n ResponseEntity<String> response = restTemplate.getForEntity(\"/api/virtualtrees\", String.class);\r\n HttpStatus status = response.getStatusCode();\r\n assertThat(status, is(HttpStatus.OK));\r\n }", "title": "" }, { "docid": "b576efbe2e5d3f5ac75bdbe7139c856c", "score": "0.48532084", "text": "public Service getService(String sName);", "title": "" }, { "docid": "d2b57b61e366ca2075e4965c8b81f650", "score": "0.48526812", "text": "Machine findById(Long machineId);", "title": "" }, { "docid": "6e8356094bd65498c5286e321e177879", "score": "0.485082", "text": "@GET\n\t@Path(\"{machineid}\")\n\t@Produces(\"application/json\")\n\tpublic Machine getCar(@PathParam(\"machineid\") int id) {\n\n\t\tMachine machine = service.get(id);\n\t\t// System.out.println(machine);\n\t\treturn machine;\n\t}", "title": "" }, { "docid": "81952825f3ae239e4a840b17508935aa", "score": "0.4844286", "text": "private Vm createVm(int id) {\n int mips = 1000;\n long size = 10000; // image size (Megabyte)\n int ram = 512; // vm memory (Megabyte)\n long bw = 1000;\n Vm vm = new VmSimple(id, mips, VM_PES_NUMBER)\n .setRam(ram).setBw(bw).setSize(size)\n .setCloudletScheduler(new CloudletSchedulerSpaceShared());\n\n return vm;\n }", "title": "" }, { "docid": "f5867db6a4f7f331029ef99f2516c931", "score": "0.48279306", "text": "String getVariableValue (String instanceId, long varId, String target) throws ManagementRemoteException;", "title": "" }, { "docid": "97cbd8032a685e08303487b0a355e8d9", "score": "0.48224467", "text": "java.lang.String getService(int index);", "title": "" }, { "docid": "79c9a1d2e84e24872249388642c59e31", "score": "0.48173252", "text": "@Test\n public void testGetServices() throws Exception{\n System.out.println(\"getServices\");\n List<Service> expResult = new ArrayList<>();\n expResult.add(new PhoneNumber(\"0499311921\"));\n Address address1 = new Address(new Street(\"name\",new City(\"Ghent\",\"9000\",\"BE\")),1,new Coordinate(50,50));\n Address address2 = new Address(new Street(\"name\",new City(\"Ghent\",\"9000\",\"BE\")),100,new Coordinate(50,50));\n Travel travel = new Travel(\"name\",LocalTime.MIDNIGHT,LocalTime.NOON,false,address1,address2,new ArrayList<>(),new HashMap<>(),new ArrayList<>());\n assertEquals(travel.getServices(),new ArrayList<Service>());\n }", "title": "" }, { "docid": "3b6950869666348bbf518e5d3829b7b3", "score": "0.48117632", "text": "String getServiceID();", "title": "" }, { "docid": "b6cdbf8d0a44f03e84c28efc35946627", "score": "0.48112082", "text": "Service getService( );", "title": "" }, { "docid": "baaf47fcd6659b6c4af41ea5cd62243b", "score": "0.4810757", "text": "@Test(expected=ServiceException.class)\n\tpublic void testServiceNotFound() {\n\t\tServiceUtil.getService(StringBuilder.class, 1);\n\t}", "title": "" }, { "docid": "4eb1db1360cf3b5fa37493c73ce79083", "score": "0.47976992", "text": "@Test\n public void testGetForVds() {\n storage_pool result = dao.getForVds(vds);\n\n assertNotNull(result);\n }", "title": "" }, { "docid": "2e54d5ce47ec7a514e32f178c7840bb7", "score": "0.47925693", "text": "public interface VirtualMachineGuru<T extends VirtualMachine> {\n /**\n * Find the virtual machine by name.\n * @param name\n * @return virtual machine.\n */\n T findByName(String name);\n \n T findById(long id);\n \n T persist(T vm);\n \n boolean finalizeVirtualMachineProfile(VirtualMachineProfile<T> profile, DeployDestination dest, ReservationContext context);\n \n /**\n * finalize the virtual machine deployment.\n * @param cmds commands that were created.\n * @param profile virtual machine profile.\n * @param dest destination to send the command.\n * @return true if everything checks out. false if not and we should try again.\n */\n boolean finalizeDeployment(Commands cmds, VirtualMachineProfile<T> profile, DeployDestination dest, ReservationContext context) throws ResourceUnavailableException;\n \n /**\n * Check the deployment results.\n * @param cmds commands and answers that were sent.\n * @param profile virtual machine profile.\n * @param dest destination it was sent to.\n * @return true if deployment was fine; false if it didn't go well.\n */\n boolean finalizeStart(VirtualMachineProfile<T> profile, long hostId, Commands cmds, ReservationContext context);\n \n boolean finalizeCommandsOnStart(Commands cmds, VirtualMachineProfile<T> profile);\n \n void finalizeStop(VirtualMachineProfile<T> profile, StopAnswer answer);\n \n void finalizeExpunge(T vm);\n \n /**\n * Returns the id parsed from the name. If it cannot parse the name,\n * then return null. This method is used to determine if this is\n * the right handler for this vm.\n * \n * @param vmName vm name coming form the agent.\n * @return id if the handler works for this vm and can parse id. null if not.\n */\n Long convertToId(String vmName);\n}", "title": "" }, { "docid": "2e54d5ce47ec7a514e32f178c7840bb7", "score": "0.47925693", "text": "public interface VirtualMachineGuru<T extends VirtualMachine> {\n /**\n * Find the virtual machine by name.\n * @param name\n * @return virtual machine.\n */\n T findByName(String name);\n \n T findById(long id);\n \n T persist(T vm);\n \n boolean finalizeVirtualMachineProfile(VirtualMachineProfile<T> profile, DeployDestination dest, ReservationContext context);\n \n /**\n * finalize the virtual machine deployment.\n * @param cmds commands that were created.\n * @param profile virtual machine profile.\n * @param dest destination to send the command.\n * @return true if everything checks out. false if not and we should try again.\n */\n boolean finalizeDeployment(Commands cmds, VirtualMachineProfile<T> profile, DeployDestination dest, ReservationContext context) throws ResourceUnavailableException;\n \n /**\n * Check the deployment results.\n * @param cmds commands and answers that were sent.\n * @param profile virtual machine profile.\n * @param dest destination it was sent to.\n * @return true if deployment was fine; false if it didn't go well.\n */\n boolean finalizeStart(VirtualMachineProfile<T> profile, long hostId, Commands cmds, ReservationContext context);\n \n boolean finalizeCommandsOnStart(Commands cmds, VirtualMachineProfile<T> profile);\n \n void finalizeStop(VirtualMachineProfile<T> profile, StopAnswer answer);\n \n void finalizeExpunge(T vm);\n \n /**\n * Returns the id parsed from the name. If it cannot parse the name,\n * then return null. This method is used to determine if this is\n * the right handler for this vm.\n * \n * @param vmName vm name coming form the agent.\n * @return id if the handler works for this vm and can parse id. null if not.\n */\n Long convertToId(String vmName);\n}", "title": "" }, { "docid": "6c2afad8aa0906d7ff66c0840d4a37fb", "score": "0.47825706", "text": "boolean isVm();", "title": "" }, { "docid": "5a73df5ca913609633fafaf3e50a488e", "score": "0.47821325", "text": "Provider lookup( Service service ) throws ServiceNotFoundException, RemoteException;", "title": "" }, { "docid": "84cea7145e774abe54f7a74db68d93e9", "score": "0.47771594", "text": "public static native boolean AFCheckRecoveryVMJobExist(String vmName,String esxServerName);", "title": "" }, { "docid": "5d6468ca12df246755eef18fc69fb131", "score": "0.47738227", "text": "public void testFindService() throws Exception\n {\n Service service = sList.findService(new OcapLocator(100));\n assertEquals(\"Service returned does not match expected service\", csidb.service15, service);\n service = sList.findService(new OcapLocator(110));\n assertEquals(\"Service returned does not match expected service\", csidb.service25, service);\n\n assertNull(\"Expected null with OcapLocator pointing to non-existent Service\",\n sList.findService(new OcapLocator(999)));\n\n try\n {\n sList.findService(new NetworkLocator(\"network://0x1.0x345\"));\n }\n catch (InvalidLocatorException expected)\n {\n // We want this to happen\n }\n }", "title": "" }, { "docid": "27624322ccc453a8ec5f3deafd848b36", "score": "0.47720483", "text": "public static CaseService caseService() {\n return processEngine().getCaseService();\n }", "title": "" }, { "docid": "b5c815f6d73ab80ead8cad46a5ca713a", "score": "0.47658333", "text": "Service createService();", "title": "" }, { "docid": "b5c815f6d73ab80ead8cad46a5ca713a", "score": "0.47658333", "text": "Service createService();", "title": "" }, { "docid": "e0f25738654d276ba53d2dc15209554f", "score": "0.47654793", "text": "String getLookupService();", "title": "" }, { "docid": "33a0d85891bd9bf0575fc2281bd3827c", "score": "0.47452986", "text": "@Deprecated\n public static void MockGetVceById(WireMockServer wireMockServer) {\n wireMockServer.stubFor(get(urlMatching(\"/aai/v[0-9]+/network/vces/vce/testVnfId123?depth=1\"))\n .willReturn(aResponse().withStatus(200).withHeader(\"Content-Type\", \"text/xml\")\n .withBodyFile(\"GenericFlows/getVceResponse.xml\")));\n }", "title": "" }, { "docid": "f7e6fde7f1333fbb1ca7e1e5898ef29f", "score": "0.47374246", "text": "@RequestMapping(value = \"/restore/version/test\", method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\tpublic String restoreVersionVmTest(@RequestParam(value = \"vm\", required = true) String vm,\r\n\t\t\t@RequestParam(value = \"vmid\", required = true) String vmid,\r\n\t\t\t@RequestBody String version) throws Exception {\r\n\t\tString vmRestore = _sppService.restoreVersionVmTest(vm, vmid, version);\r\n\t\treturn vmRestore;\r\n\t}", "title": "" }, { "docid": "bd682a6982850f82c625a17f55747872", "score": "0.4729302", "text": "net.zyuiop.ovhapi.api.objects.overthebox.Device getServiceNameDevice(java.lang.String serviceName) throws java.io.IOException;", "title": "" }, { "docid": "67b734e9e709fa882e3d54d3f55ca470", "score": "0.47291422", "text": "@Override public void setVmsPublisherService(android.os.IBinder token, android.car.vms.IVmsPublisherService service) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeStrongBinder(token);\n_data.writeStrongBinder((((service!=null))?(service.asBinder()):(null)));\nmRemote.transact(Stub.TRANSACTION_setVmsPublisherService, _data, null, android.os.IBinder.FLAG_ONEWAY);\n}\nfinally {\n_data.recycle();\n}\n}", "title": "" }, { "docid": "ab67b179e19c19e62f7547dbf32a84ae", "score": "0.4714754", "text": "java.lang.String getMachineID();", "title": "" }, { "docid": "3a43f2536cb1f31e707f0f1590fb295c", "score": "0.47094092", "text": "public static List<VirtualMachine> getVMList(Server server){\n\t\t\t\n\t\tif (server.getNativeHypervisor() != null)\n\t\t\treturn server.getNativeHypervisor().getVirtualMachine();\n\t\t\n\t\telse if (server.getNativeOperatingSystem() != null &&\n\t\t\t\tserver.getNativeOperatingSystem().getHostedHypervisor().size() != 0) \n\t\t\treturn server.getNativeOperatingSystem().getHostedHypervisor().get(0).getVirtualMachine();\n\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "ff90c19e83fcb9edee222678c2eb7326", "score": "0.47025073", "text": "public VMAttestationResponse getVMAttestationStatus(String vmInstanceId) { \n VMAttestationRequest vmAttestationRequest = new VMAttestationRequest();\n vmAttestationRequest.setVmInstanceId(vmInstanceId);\n log.debug(\"target: {}\", getTarget().getUri().toString());\n\n VMAttestationResponse vmAttestationResponse = getTarget()\n .path(\"/vrtm/status\")\n .request()\n .accept(MediaType.APPLICATION_JSON)\n .post(Entity.json(vmAttestationRequest), VMAttestationResponse.class);\n return vmAttestationResponse;\n }", "title": "" }, { "docid": "0c621424614f227765436235016d80b9", "score": "0.4699327", "text": "public void testGetServiceMethodForSanity() {\n String serviceMethod = myCommunicationRequest.getServiceMethod();\n assertEquals(serviceMethod, METHOD);\n }", "title": "" }, { "docid": "4156c16e22317b8b70f94807adedb8a7", "score": "0.4697156", "text": "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getVirtualMachineActionIPsRaises404WhenVmIsARandomValue()\n {\n setup(ent, datacenter, vdc, vapp);\n ClientResponse response =\n get(resolveVirtualMachineActionGetIPsURI(vdc.getId(), vapp.getId(),\n new Random().nextInt(1000)));\n assertEquals(response.getStatusCode(), Status.NOT_FOUND.getStatusCode());\n }", "title": "" }, { "docid": "d373f31c2b91c05f8e0c20a5e6e9bac4", "score": "0.4696978", "text": "public void testGetInstance () {\r\n System.out.println (\"getInstance\");\r\n \r\n ro.egmar.couchdb.rest.RESTService result = ro.egmar.couchdb.rest.RESTService.getInstance ();\r\n }", "title": "" }, { "docid": "dacdb40f30daec1e8681208363337c99", "score": "0.468466", "text": "String targetComputer();", "title": "" }, { "docid": "2195df2a9ab86a57d674098f5e9b08a1", "score": "0.4680316", "text": "List<Product> getServicesOfTariff(Integer tariffId);", "title": "" }, { "docid": "9f421cf47a08210da935fded06089c51", "score": "0.46716353", "text": "public String getVmId() {\n return this.vmId;\n }", "title": "" }, { "docid": "c805b4b4a62b133a0eae25fd360991d7", "score": "0.4669696", "text": "@Test\r\n public void testGetBootProperties() {\r\n System.out.println(\"getBootProperties\");\r\n String expResult = \"uk.nhs.digital.mait.tkwx.tk.internalservices.SpineSenderService\";\r\n Properties result = instance.getBootProperties();\r\n assertEquals(expResult, result.get(\"tks.classname.SpineSender\"));\r\n }", "title": "" }, { "docid": "b5aab2a513291b2208021f088a137f4a", "score": "0.4669288", "text": "@Host(\"{$host}\")\n @ServiceInterface(name = \"ConnectedVMwareClien\")\n private interface GuestAgentsService {\n @Headers({\"Content-Type: application/json\"})\n @Put(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers\"\n + \"/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}\")\n @ExpectedResponses({200, 201})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> create(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"virtualMachineName\") String virtualMachineName,\n @PathParam(\"name\") String name,\n @QueryParam(\"api-version\") String apiVersion,\n @BodyParam(\"application/json\") GuestAgentInner body,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Get(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers\"\n + \"/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<GuestAgentInner>> get(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"virtualMachineName\") String virtualMachineName,\n @PathParam(\"name\") String name,\n @QueryParam(\"api-version\") String apiVersion,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Delete(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers\"\n + \"/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}\")\n @ExpectedResponses({200, 202, 204})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> delete(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"virtualMachineName\") String virtualMachineName,\n @PathParam(\"name\") String name,\n @QueryParam(\"api-version\") String apiVersion,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Get(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers\"\n + \"/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<GuestAgentList>> listByVm(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"virtualMachineName\") String virtualMachineName,\n @QueryParam(\"api-version\") String apiVersion,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Get(\"{nextLink}\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<GuestAgentList>> listByVmNext(\n @PathParam(value = \"nextLink\", encoded = true) String nextLink,\n @HostParam(\"$host\") String endpoint,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n }", "title": "" }, { "docid": "86aae45e24e61cf8ee736f0fb77637ea", "score": "0.46682525", "text": "java.lang.String getServiceName();", "title": "" }, { "docid": "86aae45e24e61cf8ee736f0fb77637ea", "score": "0.46682525", "text": "java.lang.String getServiceName();", "title": "" }, { "docid": "d96b853febef3df916228052e27471ec", "score": "0.46543148", "text": "@Test\n public void testGetEndpointURLInvalidService() {\n log.debug(\"testGetEndpointURLInvalidService\");\n \n String homeCommunityId = \"2.16.840.1.113883.3.200\";\n String service = \"Invalid\";\n String result = SamlTokenExtractorHelper.getEndpointURL(homeCommunityId, service);\n assertNull(result); \n }", "title": "" }, { "docid": "aa643df3c40fa6fb3255033345fe6804", "score": "0.46519017", "text": "@DISPID(4) //= 0x4. The runtime will prefer the VTID if present\n @VTID(10)\n ISystemFieldService systemFieldService();", "title": "" }, { "docid": "01db3e3d218e5001551b4e50612798bd", "score": "0.46515852", "text": "private ITaskManagementService getTMS(HttpServletRequest request, String participantToken) throws RemoteException {\n String endpoint = \"http://localhost:8080/axis2/services/TaskManagementServices\";\n return new RemoteTMSFactory(resoleUrl(request, endpoint), participantToken).getService();\n }", "title": "" }, { "docid": "41089b4dcaf3c95443c5aea83b937c52", "score": "0.46482262", "text": "@Test\n public void testInterfaceMarkedServices() throws UnsupportedEncodingException, MethodNotFoundException, ExecutionException, MissingParameterException, SerializationException {\n Optional<ServiceRegistry.MethodContext> opt4 = registry.getMethodContext(new Request.RequestHeader(null, new Uri(\"/com/acme/synapse/testdata/services/DummyMarkedEndpoint/\"), RequestMethod.GET));\n Assert.assertTrue(!opt4.isPresent());\n\n Optional<ServiceRegistry.MethodContext> opt5 = registry.getMethodContext(new Request.RequestHeader(null, new Uri(\"/com/acme/synapse/testdata/services/DummyMarkedEndpoint/echo\"), RequestMethod.GET));\n Assert.assertTrue(opt5.isPresent());\n\n Response<String> rsp1 = registry.invokeWithObject(new Request.RequestHeader(null, new Uri(\"/com/acme/synapse/testdata/services/DummyMarkedEndpoint/echo\"), RequestMethod.GET), ParameterWrapper.create().add(\"arg0\", String.class, \"\\\"something in the rain\\\"\"));\n Assert.assertTrue(rsp1.getHeader().getResponseCode() == HttpResponseStatus.OK);\n Assert.assertTrue(rsp1.getBody().equalsIgnoreCase(\"Greetings earthlings: \" + \"\\\"something in the rain\\\"\"));\n\n Response<String> rsp2 = registry.invokeWithObject(new Request.RequestHeader(null, new Uri(\"/com/acme/synapse/testdata/services/DummyMarkedEndpoint/echo\"), RequestMethod.GET), ParameterWrapper.create().add(\"arg0\", String.class, \"something in the rain\"));\n Assert.assertTrue(rsp2.getHeader().getResponseCode() == HttpResponseStatus.OK);\n Assert.assertTrue(rsp2.getBody().equalsIgnoreCase(\"Greetings earthlings: \" + \"something in the rain\"));\n ///----------------------------\n }", "title": "" }, { "docid": "1ba65c99f68d92da12a5e2215db2bc90", "score": "0.4642939", "text": "@POST\n @Path(\"/migrateVMs/\")\n @Consumes(\"application/json\")\n public Response migrateVMs(String jsonInput)\n {\n //String vm,String tenant,String userFederation,String vmTwin,String pswFederation,String region\n String vm=\"\";\n String tenant=\"\";\n String userFederation=\"\";\n String vmTwin=\"\";\n String pswFederation=\"\";\n String region=\"\";\n JSONObject input=new JSONObject();\n org.json.simple.JSONObject reply=new org.json.simple.JSONObject();\n JSONParser jp=new JSONParser();\n try{\n input=(JSONObject)jp.parse(jsonInput);\n vm=(String)input.get(\"vm\");\n if(vm==null){\n LOGGER.error(\"parameter vm cannot be a null\");\n return this.createErrorAnswer(\"parameter vm cannot be a null\");\n }\n userFederation=(String)input.get(\"userFederation\");\n pswFederation=(String)input.get(\"pswFederation\");\n tenant=(String)input.get(\"tenant\");\n vmTwin=(String)input.get(\"vmTwin\");\n if(vmTwin==null){\n LOGGER.error(\"parameter vmTwin cannot be a null\");\n return this.createErrorAnswer(\"parameter vmTwin cannot be a null\");\n }\n \n }catch(Exception e){\n LOGGER.error(\"JSON input received for web service startTemplates is not parsable.\\n\"+e.getMessage());\n return this.createErrorAnswer(\"INPUT_JSON_UNPARSABLE: OPERATION ABORTED \"+e.getMessage());\n }\n ///spegnimento vm\n ////recupero runtimeinfo\n String runTime=this.m.getRunTimeInfo(tenant, vm);\n String idClo=\"\",endpoint=\"\",cred=\"\", twinUUID=\"\";\n OpenstackInfoContainer credential=null,credential2=null;\n JSONObject credJobj=null,runJobj=null;\n try{\n runJobj=new JSONObject(runTime);\n ////recupero idCloud\n idClo=runJobj.getString(\"idCloud\");\n ////recupero le credenziali passando da quelle di federazione\n cred=this.m.getFederatedCredential(tenant, userFederation, pswFederation,idClo);\n credJobj=new JSONObject(cred);\n try {\n endpoint=(new JSONObject(this.m.getDatacenter(tenant, idClo))).getString(\"idmEndpoint\");\n } catch (MDBIException ex) {\n LOGGER.error( ex);\n }\n credential=new OpenstackInfoContainer(idClo,endpoint,tenant,credJobj.getString(\"federatedUser\"),credJobj.getString(\"federatedPassword\"),region);\n }\n catch(JSONException je){\n LOGGER.error(\"An error is occourred in JSON crederntial manipulation.\"+je.getMessage());\n return this.createErrorAnswer(\"An error is occourred in JSON crederntial manipulation.\"+je.getMessage());\n }\n ////spengo la vm\n NovaTest nova=new NovaTest(credential.getEndpoint(),credential.getTenant(), credential.getUser(),credential.getPassword(),credential.getRegion());\n nova.stopVm(vm);\n // identificazione nuova vm\n try{\n twinUUID=vmTwin;\n ////recupero runtimeinfo\n runTime=this.m.getRunTimeInfo(tenant, twinUUID);\n runJobj=new JSONObject(runTime);\n ////recupero idCloud\n idClo=runJobj.getString(\"idCloud\");\n ////recupero le credenziali passando da quelle di federazione\n cred=this.m.getFederatedCredential(tenant, userFederation, pswFederation,idClo);\n credJobj=new JSONObject(cred);\n try {\n endpoint=(new JSONObject(this.m.getDatacenter(tenant, idClo))).getString(\"idmEndpoint\");\n } catch (MDBIException ex) {\n LOGGER.error(ex);\n }\n credential2=new OpenstackInfoContainer(idClo,endpoint,tenant,credJobj.getString(\"federatedUser\"),credJobj.getString(\"federatedPassword\"),region);\n }\n catch(JSONException je){\n LOGGER.error(\"An error is occourred in JSON crederntial manipulation.\");\n return this.createErrorAnswer(\"An error is occourred in JSON crederntial manipulation.\"+je.getMessage());\n }\n //accensione vm idenitificata\n nova=new NovaTest(credential2.getEndpoint(),credential2.getTenant(), credential2.getUser(),credential2.getPassword(),credential2.getRegion());\n nova.startVm(twinUUID);\n //restituzione dettagli vm spenta- rete, vm accesa- rete\n /*LOGGER.debug(\"Network infoes of the shutted down VM(identified by UUID:\"+vm+\"):\");\n Iterator it_tmpar=this.m.getportinfoes(tenant, vm).iterator();\n while(it_tmpar.hasNext())\n LOGGER.debug((String)it_tmpar.next());\n LOGGER.debug(\"Network infoes of the twin VM started(identified by UUID:\"+twinUUID+\"):\");\n it_tmpar=this.m.getportinfoes(tenant, twinUUID).iterator();\n while(it_tmpar.hasNext())\n LOGGER.debug((String)it_tmpar.next());\n */\n return this.createValidAnswer();\n }", "title": "" }, { "docid": "28ff9576d22a1121ec92abd39130a964", "score": "0.46384537", "text": "public void testGetService()\n {\n ServiceList newList = sList.sortByName();\n assertEquals(\"First service found is not the service expected\", csidb.jmfService1, newList.getService(0));\n assertEquals(\"Last service found is not the service expected\", csidb.service23, newList.getService(22));\n // Now we'll try to throw an exception\n try\n {\n newList.getService(-1);\n fail(\"IndexOutOfBoundsException should have been thrown with -1 as index\");\n }\n catch (IndexOutOfBoundsException expected)\n {\n // We want this to happen\n }\n }", "title": "" }, { "docid": "8c76cd303a9f9350b2cfad91b18855f7", "score": "0.4633267", "text": "@Test\n public void termOfServiceTest() {\n // TODO: test termOfService\n }", "title": "" }, { "docid": "773f30f9ea6d5672e82745828978fb80", "score": "0.46274987", "text": "EvmFactory getEvmFactory();", "title": "" }, { "docid": "8ca119c7799f3795c907d89b24dd0cef", "score": "0.46274132", "text": "String getMachineName();", "title": "" }, { "docid": "dea4fdc8a0aa3db24edebd55c77436ff", "score": "0.4625567", "text": "public void run() {\r\n\t\tfinal Vector result = new Vector();\r\n\t\ttry {\r\n\t\t\tmanager.run(new IRunnableWithProgress() {\r\n\t\t\t\tpublic void run(IProgressMonitor monitor) {\r\n\t\t\t\t\tmonitor.beginTask(\"Searching ...\", 2);\r\n\t\t\t\t\tmonitor.worked(1);\r\n\t\t\t\t\tServiceRegistry registry = ServiceRegistry.getInstance();\r\n\t\t\t\t\tServiceDescriptor[] descriptors = registry.lookup(\"SunSpot\", ServiceRegistry.LOOKUP_BOTH);\r\n\t\t\t\t\tfor (int i = 0; i < descriptors.length; i++) {\r\n\t\t\t\t\t\tresult.addElement(descriptors[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmonitor.done();\r\n\t\t\t\t\tLogging.log(getClass(), \"Found \" + descriptors.length + \" SunSpot services.\");\r\n\t\t\t\t}\r\n\t\t\t}, false);\t\t\t\r\n\t\t} catch (Throwable t) {\r\n\t\t\tLogging.error(getClass(), \"Could not search for services.\", t);\r\n\t\t}\r\n\t\tdescriptor: for (int i = 0; i < result.size(); i++) {\r\n\t\t\tServiceDescriptor descriptor = (ServiceDescriptor)result.elementAt(i);\r\n\t\t\t// check whether the control is available already\r\n\t\t\tAbstractElementControl[] controls = manager.getElements();\r\n\t\t\tfor (int j = 0; j < controls.length; j++) {\r\n\t\t\t\tif (controls[j] instanceof SunspotControl) {\r\n\t\t\t\t\tServiceDescriptor d = ((SunspotControl)controls[j]).getDescriptor();\r\n\t\t\t\t\tif (d.getIdentifier().equals(descriptor.getIdentifier())) {\r\n\t\t\t\t\t\tmanager.focusElement(controls[j]);\r\n\t\t\t\t\t\tcontinue descriptor;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// add new control since it does not exist, yet\r\n\t\t\tSunspotControl control = new SunspotControl(manager, descriptor);\r\n\t\t\tmanager.addElement(control);\r\n\t\t\tmanager.focusElement(control);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f156232f1e3ec8bdc1b3c998e09e1e65", "score": "0.4624356", "text": "private Instance startInstance(Compute compute, VirtualMachineInstance virtualMachineInstance) throws Exception {\n Instance instance = new Instance();\n instance.setName(virtualMachineInstance.getGoogleName());\n instance.setMachineType(\"https://www.googleapis.com/compute/v1/projects/\" + gcloudProjectId + \"/zones/\" + gcloudDefaultRegion + \"/machineTypes/\" + virtualMachineInstance.getVmType().getFlavorName());\n\n // Add Network Interface to be used by VM Instance.\n NetworkInterface ifc = new NetworkInterface();\n ifc.setNetwork(\"https://www.googleapis.com/compute/v1/projects/\" + gcloudProjectId + \"/global/networks/default\");\n List<AccessConfig> configs = new ArrayList<>();\n if (gcloudUsePublicIp) {\n AccessConfig config = new AccessConfig();\n config.setType(\"ONE_TO_ONE_NAT\");\n config.setName(\"External NAT\");\n configs.add(config);\n }\n ifc.setAccessConfigs(configs);\n instance.setNetworkInterfaces(Collections.singletonList(ifc));\n\n Tags tags = new Tags();\n List<String> tagStrings = new ArrayList<>();\n tagStrings.add(\"viepep-c-service\");\n tags.setItems(tagStrings);\n instance.setTags(tags);\n\n // Add attached Persistent Disk to be used by VM Instance.\n AttachedDisk disk = new AttachedDisk();\n disk.setBoot(true);\n disk.setAutoDelete(true);\n disk.setType(\"PERSISTENT\");\n AttachedDiskInitializeParams params = new AttachedDiskInitializeParams();\n // Assign the Persistent Disk the same name as the VM Instance.\n params.setDiskName(virtualMachineInstance.getGoogleName());\n // Specify the source operating system machine image to be used by the VM Instance.\n params.setSourceImage(\"projects/\" + gcloudImageProject + \"/global/images/\" + gcloudImageId);\n // Specify the disk type as Standard Persistent Disk\n params.setDiskType(\"https://www.googleapis.com/compute/v1/projects/\" + gcloudProjectId + \"/zones/\" + gcloudDefaultRegion + \"/diskTypes/pd-standard\");\n disk.setInitializeParams(params);\n instance.setDisks(Collections.singletonList(disk));\n\n // Initialize the service account to be used by the VM Instance and set the API access scopes.\n ServiceAccount account = new ServiceAccount();\n account.setEmail(\"default\");\n List<String> scopes = new ArrayList<>();\n scopes.add(\"https://www.googleapis.com/auth/devstorage.full_control\");\n scopes.add(\"https://www.googleapis.com/auth/compute\");\n account.setScopes(scopes);\n instance.setServiceAccounts(Collections.singletonList(account));\n\n // Optional - Add a startup script to be used by the VM Instance.\n Metadata meta = new Metadata();\n Metadata.Items item = new Metadata.Items();\n item.setKey(\"user-data\");\n\n String cloudInit = \"\";\n try {\n cloudInit = IOUtils.toString(getClass().getClassLoader().getResourceAsStream(\"docker-config/cloud-init.ign\"), \"UTF-8\");\n } catch (IOException e) {\n log.error(\"Could not load cloud init file\");\n }\n\n item.setValue(cloudInit);\n meta.setItems(Collections.singletonList(item));\n\n Metadata.Items itemEnvironmentVariables_1 = new Metadata.Items();\n itemEnvironmentVariables_1.setKey(\"SPRING_RABBITMQ_HOST\");\n itemEnvironmentVariables_1.setValue(this.rabbitMQHost);\n meta.getItems().add(itemEnvironmentVariables_1);\n\n Metadata.Items itemEnvironmentVariables_2 = new Metadata.Items();\n itemEnvironmentVariables_2.setKey(\"VIEPEPC_MONITOR_QUEUE_NAME\");\n itemEnvironmentVariables_2.setValue(this.monitorQueueName);\n meta.getItems().add(itemEnvironmentVariables_2);\n\n Metadata.Items itemEnvironmentVariables_3 = new Metadata.Items();\n itemEnvironmentVariables_3.setKey(\"VIEPEPC_VM_INTERN_ID\");\n itemEnvironmentVariables_3.setValue(virtualMachineInstance.getInstanceId());\n meta.getItems().add(itemEnvironmentVariables_3);\n\n instance.setMetadata(meta);\n\n log.debug(instance.toPrettyString());\n Compute.Instances.Insert insert = compute.instances().insert(gcloudProjectId, gcloudDefaultRegion, instance);\n Operation operation = insert.execute();\n\n\n log.debug(\"Waiting for operation completion...\");\n Operation.Error error = blockUntilComplete(compute, operation, 60 * 1000);\n if (error == null) {\n log.debug(\"Success!\");\n } else {\n log.error(error.toPrettyString());\n }\n return instance;\n }", "title": "" }, { "docid": "31e51b07a446ff6b1dcd28136e2a5257", "score": "0.46240613", "text": "List<SysVer> selectByExample(SysVerExample example);", "title": "" }, { "docid": "d03dcc0bdbf1a5ef7a8a318300325c9d", "score": "0.4623798", "text": "public static String getVCServer(Context context, String[] args) throws Exception {\n HashMap programMap = (HashMap) JPO.unpackArgs(args);\n HashMap paramMap = (HashMap) programMap.get(\"paramMap\");\n String objectId = (String) paramMap.get(OBJECT_ID);\n DomainObject dObject = new DomainObject(objectId);\n StringList selectList = new StringList(2);\n selectList.add(\"vcfile\");\n selectList.add(\"vcfolder\");\n selectList.add(\"vcfile.store\");\n selectList.add(\"vcfolder.store\");\n Map objectDetailsMap = dObject.getInfo(context, selectList);\n String vcfile = (String) objectDetailsMap.get(\"vcfile\");\n String vcfolder = (String) objectDetailsMap.get(\"vcfolder\");\n return (\"true\".equalsIgnoreCase(vcfile) ? (String) objectDetailsMap.get(\"vcfile[1].store\") : (String) objectDetailsMap.get(\"vcfolder[1].store\"));\n }", "title": "" }, { "docid": "9b1a4bdc13f560a17e63932f1ebdfe19", "score": "0.46200937", "text": "public void testGetServiceMethodForSuccess() {\n myCommunicationRequest.getServiceMethod();\n }", "title": "" }, { "docid": "ddac8e80e93c9b33874d18503906d9e7", "score": "0.46191496", "text": "public void setOpsService(java.lang.String param){\n localOpsServiceTracker = true;\n \n this.localOpsService=param;\n \n\n }", "title": "" }, { "docid": "a53b1227651362da5c24af1e4b928082", "score": "0.46159747", "text": "java.lang.String getMachineName();", "title": "" }, { "docid": "3a90906e2b340e4f88f55674a035e9d3", "score": "0.4615605", "text": "public X getVM()\r\n\t{\r\n\t\treturn vm;\r\n\t}", "title": "" }, { "docid": "99bbd62ba4faf190f9bb8f57cfc5ad63", "score": "0.46151474", "text": "@Test\n public void testService() throws InvalidSyntaxException {\n Collection<ServiceReference<LogService>> logServiceReferences = bundleContext.getServiceReferences(\n LogService.class, FILTER);\n assertNotNull(\"service references is null\", logServiceReferences);\n\n // We should have only one reference matching this filter\n assertEquals(1, logServiceReferences.size());\n\n // takes the first element\n ServiceReference<LogService> logServiceReference = logServiceReferences.iterator().next();\n\n // check service property\n String nature = (String) logServiceReference.getProperty(\"nature\");\n assertNotNull(\"No nature property on the service reference\", nature);\n assertEquals(\"basic\", nature);\n\n // Check that the service is here\n LogService logService = bundleContext.getService(logServiceReference);\n assertNotNull(\"Log service not Found\", logService);\n\n // use it\n logService.log(LogService.LOG_DEBUG, \"test\");\n\n }", "title": "" }, { "docid": "5cac68d32501d8c2beee3052ecfee296", "score": "0.4612338", "text": "public VodServiceSpec() {\n }", "title": "" }, { "docid": "ba67ce6e3343b703b508448d3370a3f8", "score": "0.46100685", "text": "public ArrayList<ObjectName> getServersOfMachine(String machineName) throws WLSAutomationException\r\n {\r\n\t ArrayList<ObjectName> resultList = new ArrayList<ObjectName>();\r\n\t\ttry\r\n\t\t{ \r\n\t\t\t // e.g.: com.bea:Name=TestDomain,Type=Domain\r\n\t\t ObjectName myDomainMBean = myJMXWrapper.getDomainConfigRoot(); // new ObjectName(\"com.bea:Name=\" + domainName +\",Type=Domain\");\r\n\r\n\t\t ObjectName[] serverRuntimes = (ObjectName[])myJMXWrapper.getAttribute(myDomainMBean,\"Servers\");\r\n\t\t for (int i = 0; i < serverRuntimes.length; i++)\r\n\t\t {\r\n\t\t ObjectName server_machine_object = (ObjectName)myJMXWrapper.getAttribute(serverRuntimes[i],\"Machine\");\r\n\t\t if (server_machine_object!=null) // machine found for Server\r\n\t\t {\r\n\t\t String server_machine_name = (String)myJMXWrapper.getAttribute(server_machine_object,\"Name\");\r\n\t\t \r\n\t\t if (machineName.equals(server_machine_name))\r\n\t\t \t resultList.add(serverRuntimes[i]);\r\n\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t return resultList;\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error while machineHostsManagedServer (\"+machineName+\"): \"+ ex.getMessage());\r\n\t\t\tthrow new WLSAutomationException(ex.getMessage());\r\n\t\t}\r\n }", "title": "" }, { "docid": "4eeb1d7b27e4633154dc1c9c6aafe12f", "score": "0.46089357", "text": "default void checkInOk(String serviceId) {\n\n }", "title": "" }, { "docid": "fd1d1765632da80ae27080cec2566671", "score": "0.4608745", "text": "String getServiceName();", "title": "" } ]
592d1f0ef418405482944c72e94e3123
/ Called when a dispatched thread is no longer handling the endpoint. The selection key operations are updated.
[ { "docid": "4b571ce33d794054b43662e5ec8c6256", "score": "0.7581139", "text": "public void undispatch()\n {\n synchronized (this)\n {\n try\n {\n _dispatched = false;\n\n if (getChannel().isOpen())\n {\n updateKey();\n if (_connection.isIdle())\n _selectSet.scheduleIdle(_timeoutTask, true);\n }\n }\n catch (Exception e)\n {\n // TODO investigate if this actually is a problem?\n Log.ignore(e);\n _interestOps = -1;\n _selectSet.addChange(this);\n }\n }\n }", "title": "" } ]
[ { "docid": "882c409ad06917c157f12f7271fc6460", "score": "0.7616218", "text": "public void undispatch()\n {\n synchronized (this)\n {\n try\n {\n _dispatched = false;\n updateKey();\n }\n catch (Exception e)\n {\n // TODO investigate if this actually is a problem?\n Log.ignore(e);\n _interestOps = -1;\n _selectSet.addChange(this);\n }\n }\n }", "title": "" }, { "docid": "76c72e48697bc50dc2dff502732154fd", "score": "0.64900374", "text": "private void handleUnselection() {\n \n \t\thandleGateUnselection();\n \t\thandleNANUnselection();\n \t\tif (set.isSetHomogeneous())\n \t\t\thandleMasterGateUnselection();\n \n \t\t// HashMap<Integer, Boolean> hashDeselectedPolylines = new\n \t\t// HashMap<Integer, Boolean>();\n \n \t\tpolylineSelectionManager.clearSelection(ESelectionType.DESELECTED);\n \n \t\tfor (ArrayList<Integer> alCurrent : hashIsGateBlocking.values()) {\n \t\t\tpolylineSelectionManager.addToType(ESelectionType.DESELECTED, alCurrent);\n \t\t\t// for (Integer iCurrent : alCurrent)\n \t\t\t// {\n \t\t\t// hashDeselectedPolylines.put(iCurrent, null);\n \t\t\t// }\n \t\t}\n \n \t\tfor (ArrayList<Integer> alCurrent : alIsAngleBlocking) {\n \t\t\tpolylineSelectionManager.addToType(ESelectionType.DESELECTED, alCurrent);\n \t\t\t// for (Integer iCurrent : alCurrent)\n \t\t\t// {\n \t\t\t// hashDeselectedPolylines.put(iCurrent, null);\n \t\t\t// }\n \t\t}\n \n \t\tfor (ArrayList<Integer> alCurrent : hashIsNANBlocking.values()) {\n \t\t\tpolylineSelectionManager.addToType(ESelectionType.DESELECTED, alCurrent);\n \t\t\t// for (Integer iCurrent : alCurrent)\n \t\t\t// {\n \t\t\t// hashDeselectedPolylines.put(iCurrent, null);\n \t\t\t// }\n \t\t}\n \t\tif (bIsDraggingActive || bIsAngularBrushingActive) {\n \t\t\ttriggerSelectionUpdate();\n \t\t}\n \n \t\t// for (int iCurrent : hashDeselectedPolylines.keySet())\n \t\t// {\n \t\t// polylineSelectionManager.addToType(ESelectionType.DESELECTED,\n \t\t// alCurrent);\n \t\t// polylineSelectionManager.addToType(ESelectionType.DESELECTED,\n \t\t// iCurrent);\n \t\t// }\n \t}", "title": "" }, { "docid": "1c59cc728fa6f55a8120195367c3d902", "score": "0.63144517", "text": "public void selectorCanceled() {\n\t\t\t\t\t}", "title": "" }, { "docid": "0d41a7055cc890032b7ab2b417c0819f", "score": "0.60544515", "text": "void deSelect();", "title": "" }, { "docid": "9f3adf992cc6783125de89fa2a8988ad", "score": "0.5995798", "text": "public void deselect();", "title": "" }, { "docid": "5cc936dbaf2133c5f4c4b24d395b6385", "score": "0.59905857", "text": "public void unSelect(){\n accessIter = null;\n if (highlighted != null) highlighted.setUnselected();\n highlighted = null;\n if (! timer.isRunning()) repaint();\n }", "title": "" }, { "docid": "5d9e7dfbf9771fcfa8ad12b43a0d05ef", "score": "0.59300554", "text": "public void deselect()\n {\n\n // <PUT YOUR DESELECTION ACTION HERE>\n //Clean data\n\n return;\n }", "title": "" }, { "docid": "448c68aaaca80b1a37f35887b7f86125", "score": "0.5868086", "text": "void doUpdateKey()\n {\n synchronized (this)\n {\n if (getChannel().isOpen())\n {\n if (_interestOps>0)\n {\n if (_key==null || !_key.isValid())\n {\n SelectableChannel sc = (SelectableChannel)getChannel();\n if (sc.isRegistered())\n {\n updateKey(); \n }\n else\n {\n try\n {\n _key=((SelectableChannel)getChannel()).register(_selectSet.getSelector(),_interestOps,this);\n }\n catch (Exception e)\n {\n Log.ignore(e);\n if (_key!=null && _key.isValid())\n {\n _key.cancel();\n }\n cancelIdle();\n _manager.endPointClosed(this);\n _key = null;\n }\n }\n }\n else\n {\n _key.interestOps(_interestOps);\n }\n }\n else\n {\n if (_key!=null && _key.isValid())\n _key.interestOps(0);\n else\n _key=null;\n }\n }\n else \n {\n if (_key!=null && _key.isValid())\n {\n _key.interestOps(0);\n _key.cancel(); \n }\n cancelIdle();\n _manager.endPointClosed(this);\n _key = null;\n }\n }\n }", "title": "" }, { "docid": "5fd0c3df877135ab87ee41723a090918", "score": "0.58030844", "text": "private void rmTypeSelectionChanged() {\n \t\tstopController(fLaunchControl);\n \t\tfLaunchControl = null;\n \t}", "title": "" }, { "docid": "f2b2549364cba114ec57ef2378b0cead", "score": "0.5703253", "text": "private void disconnect() {\n clientReceiver = null;\n clientDispatcher.stop();\n }", "title": "" }, { "docid": "bd849e2e1d95ccc34f834c30fab1f311", "score": "0.5666182", "text": "private void handleRemove() {\n collectionLock.notifyAll();\n }", "title": "" }, { "docid": "aa8722d2778da35754abc82388944152", "score": "0.5657292", "text": "protected void implCloseSelectableChannel() {\n // STUB\n }", "title": "" }, { "docid": "331d08e89d2b5728c50cced31cedcda3", "score": "0.56435907", "text": "@Override\r\n\tpublic void internalFrameDeactivated(InternalFrameEvent arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "93b637deace78b18209119f93aeecb10", "score": "0.5635612", "text": "@Override\n public void internalFrameDeactivated(InternalFrameEvent e) {\n\n }", "title": "" }, { "docid": "5ac53160d3f014ea2985db856bf7c4c0", "score": "0.5616759", "text": "public void remove_selected() {\r\n\t\tget( _currentLayer).remove_selected();\r\n\r\n\t\tStateManager.get_instance().refresh();\r\n\r\n\t\tObserver.get_instance().on_update_agent_object( \"probability\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"collection\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"list\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"map\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"keyword\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"number object\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"role variable\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"time variable\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"spot variable\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"class variable\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"file\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"exchange algebra\");\r\n\t\tObserver.get_instance().on_update_agent_object( \"extransfer\");\r\n\r\n\t\tObserver.get_instance().on_update_spot_object( \"probability\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"collection\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"list\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"map\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"keyword\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"number object\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"role variable\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"time variable\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"spot variable\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"class variable\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"file\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"exchange algebra\");\r\n\t\tObserver.get_instance().on_update_spot_object( \"extransfer\");\r\n\r\n\t\tObserver.get_instance().on_update_object( \"probability\");\r\n\t\tObserver.get_instance().on_update_object( \"collection\");\r\n\t\tObserver.get_instance().on_update_object( \"list\");\r\n\t\tObserver.get_instance().on_update_object( \"map\");\r\n\t\tObserver.get_instance().on_update_object( \"keyword\");\r\n\t\tObserver.get_instance().on_update_object( \"number object\");\r\n\t\tObserver.get_instance().on_update_object( \"role variable\");\r\n\t\tObserver.get_instance().on_update_object( \"time variable\");\r\n\t\tObserver.get_instance().on_update_object( \"spot variable\");\r\n\t\tObserver.get_instance().on_update_object( \"class variable\");\r\n\t\tObserver.get_instance().on_update_object( \"file\");\r\n\t\tObserver.get_instance().on_update_object( \"exchange algebra\");\r\n\t\tObserver.get_instance().on_update_object( \"extransfer\");\r\n\r\n\t\tObserver.get_instance().on_update_entityBase( true);\r\n\r\n\t\tObserver.get_instance().on_update_role( true);\r\n\r\n\t\tObserver.get_instance().on_update_chartObject();\r\n\r\n\t\tObserver.get_instance().modified();\r\n\t}", "title": "" }, { "docid": "0f7aec36d1298b677220ad8500b4c784", "score": "0.56129", "text": "@Override\n public void internalFrameDeiconified(InternalFrameEvent e) {\n\n }", "title": "" }, { "docid": "67c20b278461782903d21636017925c5", "score": "0.5603267", "text": "void selectionCleared();", "title": "" }, { "docid": "54922765056a2b793dcea716407c9fd4", "score": "0.5583508", "text": "@Override\n\t\t\t\tpublic void unblock() {\n\t\t\t\t}", "title": "" }, { "docid": "adf081973b78223476e841d202d7501d", "score": "0.557152", "text": "@Override\r\n public void removeNotify() {\r\n // stop thread\r\n this.thread = null;\r\n \r\n super.removeNotify();\r\n }", "title": "" }, { "docid": "adf081973b78223476e841d202d7501d", "score": "0.557152", "text": "@Override\r\n public void removeNotify() {\r\n // stop thread\r\n this.thread = null;\r\n \r\n super.removeNotify();\r\n }", "title": "" }, { "docid": "09127f98e145f661357cd278b083a47e", "score": "0.5493657", "text": "@Override\r\n\tpublic void internalFrameDeiconified(InternalFrameEvent arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "fd33b52e359caeddbb86d5d73c940de6", "score": "0.54931164", "text": "public WOComponent doClearSelection() {\n\t\trecordSelected = null;\n\t\tficheDePosteList = new NSArray();\n\t\tevaluationList = new NSArray();\n\t\treturn null;\n\t}", "title": "" }, { "docid": "05104bded053c40e1a0c34be1d7383e5", "score": "0.54878503", "text": "private void wakeUpSelector() {\n\t}", "title": "" }, { "docid": "0daf4d41f74ae8b11d73091b3c4e1fac", "score": "0.54628503", "text": "protected void onIndividualSelected() {\n\t\tunselectUniverse();\r\n unselectWorld();\r\n\t}", "title": "" }, { "docid": "652b1f10a64274abfe5abf56827ae791", "score": "0.5456155", "text": "private void flushCurrent() {\n keyPairGuiList = null;\n currentCryptoToken = null;\n }", "title": "" }, { "docid": "1af5a72ffa967fa1b7acc49c90ce5d28", "score": "0.54196346", "text": "public void clearRequested() {\n requested = false;\n }", "title": "" }, { "docid": "1dff27e8501441f182951ed853c95c82", "score": "0.5409021", "text": "public void clearSelector() {\n this.selector_ = getDefaultInstance().getSelector();\n }", "title": "" }, { "docid": "2c8d4eb1f30b5a73a19c56a62dd52329", "score": "0.5404181", "text": "public void clear() {\n\t\t__eventHandler.clear();\n\t}", "title": "" }, { "docid": "58503f1ced543734aac715ef1937dea7", "score": "0.5392603", "text": "void ungrabInputImpl() {\n/* 396 */ selectItem((XMenuItemPeer)null, false);\n/* 397 */ super.ungrabInputImpl();\n/* 398 */ postPaintEvent();\n/* */ }", "title": "" }, { "docid": "ad31de28329be9ef2f4100b43839e2c4", "score": "0.5390216", "text": "@Override\n public void onValueDeselected() {\n\n }", "title": "" }, { "docid": "53d34caa1422865d64b6feb4e491c8ce", "score": "0.5365074", "text": "protected void reset() {\n synchronized (this) {\n m_exception = null;\n if (m_asynchOp) {\n m_requestList.clear();\n }\n m_messageQueue.clear();\n currentWaitRequest = null;\n if (hasListener) {\n notified = true;\n notify();\n }\n }\n }", "title": "" }, { "docid": "3f9a3298a28cfed771be3ad89155558f", "score": "0.5364338", "text": "@Override\n\tpublic void unexecute() {\n\t\t\n\t}", "title": "" }, { "docid": "3f9a3298a28cfed771be3ad89155558f", "score": "0.5364338", "text": "@Override\n\tpublic void unexecute() {\n\t\t\n\t}", "title": "" }, { "docid": "3ac0ece6af3d98c725635b83ae363950", "score": "0.5359477", "text": "protected void connectionRemoved () {\n // noop\n }", "title": "" }, { "docid": "30458b7534e1b7f0034dbb5a56490655", "score": "0.53313166", "text": "public void endAtomicEvent() {\r\n\t\tfireAtomicEventListener();\r\n\t\tevents.clear();\r\n\t\tdispatching = true;\r\n\t}", "title": "" }, { "docid": "56793adb8c65d991f86b62d011fcf03e", "score": "0.532662", "text": "public void onRemove() {\n\t\tsynchronized(this) {\n\t\t\tremoved = true;\n\t\t}\n\t\tnode.getTicker().removeQueuedJob(checkStatusAfterBackoff);\n\t\tdisconnected(true, true);\n\t\tstopARKFetcher();\n\t}", "title": "" }, { "docid": "71d49d3c7536188b92908093a7b7c668", "score": "0.53216714", "text": "public void mapDiscoveryClearSelection() {\n\t\t// clear selection of services\n\t\ttableViewerWmsServices.setSelection(new StructuredSelection());\n\n\t\t// clear selection of layers from previously selected service\n\t\ttreeViewerWmsLayers.setInput(new Object[0]);\n\t}", "title": "" }, { "docid": "9c3e4eba98f559dfcb7828ea7e43ffeb", "score": "0.532068", "text": "public void onCleared() {\n super.onCleared();\n com.iqoption.chat.c.a.aVS.b(this);\n }", "title": "" }, { "docid": "ca5b23d311ed8f232adde9011e770ea9", "score": "0.53120893", "text": "protected void cancelPollState() {\n // This will effectively cancel the rest of the poll requests.\n mPollingContext = new int[1];\n }", "title": "" }, { "docid": "9df9329c27c985a8d1af53f98a6611d6", "score": "0.5308652", "text": "@Override\r\n\tpublic ChannelFuture unbind() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e91f53f6a2320e7bdb98a514e4f0ad42", "score": "0.53084546", "text": "@Override\n public void stop() {\n scheduler.shutdownNow();\n threadExecutor.shutdownNow();\n bounded.clear();\n\n }", "title": "" }, { "docid": "fb1de1a31a920176a961e1d1c29ceddd", "score": "0.5307872", "text": "public void invalidateHandler() {\n mWeakCapture.clear();\n }", "title": "" }, { "docid": "afde6b031fdd1b630663f4362a950e2b", "score": "0.53010803", "text": "@Override\n public void run(){\n try {\n initialiseConnection();\n initSelector();\n while(true){\n getInterestOPs();\n selector.select();\n Iterator selectedKeys = selector.selectedKeys().iterator();\n while (selectedKeys.hasNext()){\n SelectionKey key = (SelectionKey) selectedKeys.next();\n selectedKeys.remove();\n\n if(!key.isValid()){\n continue;\n }\n if(key.isConnectable()){\n finishConnection(key);\n\n }else if(key.isReadable()){\n receiveMsg(key);\n\n }else if(key.isWritable()){\n sendMsg(key);\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }catch (Throwable connectionFailure){\n }\n }", "title": "" }, { "docid": "33abc012702b704aa9b429301af99c66", "score": "0.5293812", "text": "void stopCollection() throws DeviceException;", "title": "" }, { "docid": "7aebc618fd67aed1c06e53d62291bc50", "score": "0.5293595", "text": "synchronized void cancelMoveRequestThread() {\n if( clientThread != null ) {\n moveNeeded = false;\n clientThread.interrupt();\n }\n }", "title": "" }, { "docid": "6db23f1cde8fc3a3be83f6e95b50f628", "score": "0.5291834", "text": "@Override\r\n\tpublic void menuDeselected(MenuEvent arg0) {\n\r\n\t}", "title": "" }, { "docid": "bef25042e6366c80eb21a4ee2b77f386", "score": "0.5287033", "text": "public void clearSelection()\n\t{\n\t\tEnumeration e = ((Hashtable)select.clone()).keys();\n\t\tselect.clear();\n\t\twhile (e.hasMoreElements())\n\t\t{\n\t\t\trepaint((CCFChild)e.nextElement());\n\t\t}\n\t}", "title": "" }, { "docid": "8617745c7a0307b96daf19188f41e579", "score": "0.5286689", "text": "private void clearEndActive() {\n \n endActive_ = 0;\n }", "title": "" }, { "docid": "e4c79e2d36f5beb6da498236cc2c4f84", "score": "0.52743953", "text": "void unsubscribeSmokeDetectedState();", "title": "" }, { "docid": "9b0cebdf77aeb03283bdc732f9720fef", "score": "0.527065", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n events.clear();\n }", "title": "" }, { "docid": "827e40013df23ae7b699e58c438ef972", "score": "0.52661145", "text": "private void handleGateUnselection() {\n \n \t\tfloat fCurrentValue = -1;\n \t\tfor (Integer iGateID : hashGates.keySet()) {\n \t\t\tint iAxisID = iGateID / 1000;\n \t\t\tArrayList<Integer> alCurrentGateBlocks = hashIsGateBlocking.get(iGateID);\n \t\t\tif (alCurrentGateBlocks == null)\n \t\t\t\treturn;\n \t\t\talCurrentGateBlocks.clear();\n \t\t\tAGate gate = hashGates.get(iGateID);\n \n \t\t\tfor (int iPolylineIndex : polylineVA) {\n \t\t\t\tEDataRepresentation usedDataRepresentation = EDataRepresentation.RAW;\n \t\t\t\tif (!set.isSetHomogeneous())\n \t\t\t\t\tusedDataRepresentation = EDataRepresentation.NORMALIZED;\n \t\t\t\tif (bRenderStorageHorizontally) {\n \t\t\t\t\tfCurrentValue = set.get(iPolylineIndex).getFloat(usedDataRepresentation, iAxisID);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tfCurrentValue = set.get(iAxisID).getFloat(usedDataRepresentation, iPolylineIndex);\n \t\t\t\t}\n \n \t\t\t\tif (Float.isNaN(fCurrentValue)) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \n \t\t\t\tif (fCurrentValue <= gate.getUpperValue() && fCurrentValue >= gate.getLowerValue()) {\n \t\t\t\t\talCurrentGateBlocks.add(iPolylineIndex);\n \t\t\t\t}\n \n \t\t\t\t// if (fCurrentValue <= (gate.getSecond() - 0.0000000001f) / renderStyle.getAxisHeight()\n \t\t\t\t// && fCurrentValue >= gate.getFirst() / renderStyle.getAxisHeight()) {\n \t\t\t\t// alCurrentGateBlocks.add(iPolylineIndex);\n \t\t\t\t// }\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "872bbd44a784059d08980b7963a8dd43", "score": "0.52624357", "text": "void unsetRequestRejected();", "title": "" }, { "docid": "843901a1026c1957d0270c99ac2e23e0", "score": "0.52615094", "text": "public void menuDeselected(MenuEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0feab16f6f7e6874082c35d783a30a35", "score": "0.5252358", "text": "@Override\n\tpublic void channelUnregistered(ChannelHandlerContext ctx) throws Exception {\n\t\tsuper.channelUnregistered(ctx);\n\t\tSystem.out.println(\"NettyHandler.channelUnregistered()\");\n\t\t\n\t}", "title": "" }, { "docid": "b729c243859faf32d17fe0b5da883acd", "score": "0.52493984", "text": "public void unchoke() {\n\t\tisChoked = false;\n\t}", "title": "" }, { "docid": "93c556e788ab51ca6bc3b3fdeb261bcc", "score": "0.524133", "text": "public void cancelSelectionMode() {\n if (null != mSelectedEvent) {\n mSelectedEvent = null;\n notifyDataSetChanged();\n\n if (mVectorMessagesAdapterEventsListener != null) {\n mVectorMessagesAdapterEventsListener.onSelectedEventChange(mSelectedEvent);\n }\n }\n }", "title": "" }, { "docid": "5aa59e89dc01d7a70506ca2e62c5bc0d", "score": "0.52270323", "text": "void stopUpdateThread() {\n\t\tthis.isFlushingStop = true;\n\t}", "title": "" }, { "docid": "32b35df00c98420e0fb050f2f230a44a", "score": "0.52213776", "text": "@Override\n\tpublic void unexecute() {\n\t\t\n\t\toldState = original.clone(oldState);\n\t}", "title": "" }, { "docid": "25d3580e6180f4b93da77caacbc26578", "score": "0.5221028", "text": "public void cancel() {\r\n if (this.isReserved && this.subscriber != null) {\r\n this.isReserved = false;\r\n this.subscriber = null;\r\n }\r\n }", "title": "" }, { "docid": "b9dc90c6fa29446b5da26a99d8460f25", "score": "0.52123296", "text": "@Override \r\n public void channelInactive(ChannelHandlerContext ctx) {\n\t\tif (SocketClient.f != null) {\r\n\t\t\tSocketClient.f = null;\r\n\t\t}\r\n\t\t\r\n\t\tif (SocketClient.group != null) {\r\n\t\t\tSocketClient.group.shutdownGracefully();\r\n\t\t\tSocketClient.group.terminationFuture();\r\n\t\t}\r\n\r\n }", "title": "" }, { "docid": "cf2febee58ee513ecfecadcdc14096ca", "score": "0.5206319", "text": "private void endConnection(){\n\t\t\tremoveClientHandlerFromHashMap(emailAddress);\n\t\t}", "title": "" }, { "docid": "cc07ccdbfb28b572d20f7e0e8dbf36d0", "score": "0.5204749", "text": "public void dereferenceInvokeActivity() {\r\n setInvokeActivity(null);\r\n }", "title": "" }, { "docid": "ac43bab0c91148284d1115644302e728", "score": "0.52005607", "text": "private void finishDrawing() {\n // let everybody else know about the current selection\n //\n Main.main.getCurrentDataSet().fireSelectionChanged();\n lastUsedNode = null;\n wayIsFinished = true;\n Main.map.selectSelectTool(true);\n \n // Redraw to remove the helper line stub\n computeHelperLine();\n removeHighlighting();\n redrawIfRequired();\n }", "title": "" }, { "docid": "6658091680f2c46780bf193109d0c8b6", "score": "0.5199115", "text": "public void deselectSegment(RouteSegment selected_segment){\n selected_segments.removeRouteSegment(selected_segment); //convey that the segment is deselected\n\n determinePotentialRoutes();\n\n this.notifyObservers(); // tell all observers to update\n notifyListeners();\n }", "title": "" }, { "docid": "84a24d21f2f0dd46ec9bf63fd37532b9", "score": "0.5198599", "text": "public void deselectAction() {\r\n\t\tsynchronized (manager) {\r\n\t\t\tselectedAction = null;\r\n\t\t\tgui.deselectAction();\r\n\t\t\trenderer.hideAttackOptions();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "71ca4129bc780c070f72eb3ebb22c80d", "score": "0.5193062", "text": "public void nuke() {\n consumerThread.interrupt();\n\n }", "title": "" }, { "docid": "d6087d9de15b59b3a06050268d2f15e8", "score": "0.5189758", "text": "public void deleteEvent(int selectTick) {\r\n\t\t//TODO\r\n\t}", "title": "" }, { "docid": "4f3f121dac0d50e32950842a6f418024", "score": "0.5184225", "text": "public void removeSelected() {\n }", "title": "" }, { "docid": "6efb2b6c1f3d258dd0ef5630651816c6", "score": "0.51839703", "text": "private void clearState() {\n clearActiveNetwork();\n availableNetworks.clear();\n mainHandler.post(() -> listener.onNetworkUnavailable(NetworkUnavailableReason.UNKNOWN));\n }", "title": "" }, { "docid": "aa3dde7ce2153dc7827572a797ce1300", "score": "0.51832294", "text": "public abstract void clearSelection();", "title": "" }, { "docid": "c1b128f5dd0b3491f71fa737aa892adc", "score": "0.5175752", "text": "public void cancelSmartKeyLongPressed() {\n this.mHandler.removeCallbacks(this.mSmartKeyLongPressed);\n }", "title": "" }, { "docid": "b3c2a0145cc14ec99094dbc86796e626", "score": "0.5174552", "text": "@Override\r\n\tpublic void stopRefresh() {\n\t\thotList.onRefreshComplete();\r\n\t}", "title": "" }, { "docid": "2e0d7ab5c4d443a37702c9e11dc3e8e3", "score": "0.5172066", "text": "private void handleServiceDisconnected() {\n synchronized (LOCK) {\n this.mRemoteService.setService(null);\n this.mIsBindingService = false;\n }\n }", "title": "" }, { "docid": "7db2a015390cc3f878a92a7a6d62c129", "score": "0.5169453", "text": "@Override\n\tpublic void onMachineDeactivated() {\n\t\t\n\t}", "title": "" }, { "docid": "2971d18e8b5eaa402de7d721e8c221fe", "score": "0.5167183", "text": "protected abstract void onStopServicingRequests() throws UnifyException;", "title": "" }, { "docid": "495724d8d1e8959af30a946dc03b3a04", "score": "0.51563954", "text": "void layerDeselected(MapLayerEvent event);", "title": "" }, { "docid": "d530cc041b2e8a948aaa290974fc89dc", "score": "0.515105", "text": "private void postSelect(SelectionKey key) {\n if (key.isValid() && key.isAcceptable()) {\n try {\n ServerSocketChannel server = (ServerSocketChannel) key.channel();\n SocketChannel connection = server.accept();\n connection.configureBlocking(false);\n\n String ip = connection.socket().getInetAddress().getHostAddress();\n int port = connection.socket().getPort();\n\n TcpConn conn = new TcpConn(ip, port, connection);\n mRecvWorker.putNewConnection(conn);\n\n mConnPool.add(conn);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n\n return;\n }\n\n // read data\n if (key.isValid() && key.isReadable()) {\n SocketChannel channel = (SocketChannel) key.channel();\n\n ByteBuffer buf = ByteBuffer.allocateDirect(1024);\n int numBytesRead = 0;\n try {\n numBytesRead = channel.read(buf);\n } catch (IOException e) {\n TcpConn conn = mConnPool.getConn(channel);\n mRecvWorker.putClosedConnection(conn);\n mConnPool.remove(conn);\n return;\n }\n\n if (numBytesRead > 0) {\n buf.flip();\n\n byte[] data = new byte[numBytesRead];\n buf.get(data, 0, numBytesRead);\n\n TcpConn conn = mConnPool.getConn(channel);\n mRecvWorker.putData(conn, data);\n\n buf.clear();\n }\n else {\n try {\n channel.close();\n } catch (IOException e) {\n }\n\n TcpConn conn = mConnPool.getConn(channel);\n mRecvWorker.putClosedConnection(conn);\n mConnPool.remove(conn);\n }\n }\n }", "title": "" }, { "docid": "228ed4176dace4eb16ef67f0aa7478da", "score": "0.5147271", "text": "@Override\n\tpublic void secondaryReleased() {\n\n\t}", "title": "" }, { "docid": "1add1807e85c3e92aae49bb5618ec213", "score": "0.5138059", "text": "public synchronized void stopRequestProcessing() {\r\n // Remove any pending requests to start the processing thread.\r\n mHandler.removeMessages(START_THREAD);\r\n if (mCallerIdThread != null) {\r\n // Stop the thread; we are finished with it.\r\n mCallerIdThread.stopProcessing();\r\n mCallerIdThread.interrupt();\r\n mCallerIdThread = null;\r\n }\r\n }", "title": "" }, { "docid": "c3e7f1fa96aa1dd1d96a833a3ae24c60", "score": "0.5137918", "text": "public void deactivateTaskHandler(){\n }", "title": "" }, { "docid": "75a1fd19e3254de344099d4820109355", "score": "0.5135122", "text": "public /* synthetic */ void lambda$performRelease$1() {\n this.mTaskOrganizer.removeListener(this);\n resetTaskInfo();\n }", "title": "" }, { "docid": "4a2414805658b54b76ab1da7fc93ea0a", "score": "0.5132908", "text": "public void clearSelection() {\n this.lbxDevs.setSelectedIndex(-1);\n }", "title": "" }, { "docid": "cdf486b8b34ebb456222e07cb7a2f43e", "score": "0.51321036", "text": "public synchronized void recycle()\n/* */ {\n/* 475 */ if (this.lastAsyncStart == 0L) {\n/* 476 */ return;\n/* */ }\n/* */ \n/* */ \n/* 480 */ notifyAll();\n/* 481 */ this.asyncCtxt = null;\n/* 482 */ this.state = AsyncState.DISPATCHED;\n/* 483 */ this.lastAsyncStart = 0L;\n/* */ }", "title": "" }, { "docid": "9abe43363188f9f823ba3659a4249dd0", "score": "0.51253", "text": "@Override\r\n public void run() {\n finalLast.setSelection(finalLast.getItemCount() - 1);\r\n current.deselectAll();\r\n }", "title": "" }, { "docid": "cf3e510184be2b228004b4e03300af25", "score": "0.5124056", "text": "public void unexecute() {\n\t\tif (_selector != null) {\n\t\t\t_selector.selectController(_selectShapeController.getButton());\n\t\t}\n\t\t\n\t\t// Cancel all previous transforms and reselect the shapes\n\t\tTransformMatrix mTmp = new TransformMatrix();\n\t\tTransformMatrix tInv = new TransformMatrix();\n\t\tTransformMatrix mInv = new TransformMatrix();\n\t\t_t.invert(tInv);\n\t\t_mSelection.invert(mInv);\n\t\ttInv.preMultiply(mInv);\n\t\tfor (int i = 0, size = _shapes.size(); i < size; i++) {\n\t\t\tShape shape = _shapes.get(i);\n\t\t\tshape.setTransform(shape.getTransform().preMultiply(tInv, mTmp));\n\t\t}\n\t\t\n\t\t// Select the shapes\n\t\t_app.getSelection().select(_shapes);\t\t\t\n\t\t\n\t\tfor (int i = 0, size = _shapes.size(); i < size; i++) {\n\t\t\tShape shape = _shapes.get(i);\n\t\t\tshape.setTransform(shape.getTransform().preMultiply(_mSelection));\n\t\t}\n\n\t\t_app.getSelection().getRootShape().setTransform(_mSelection);\n\t}", "title": "" }, { "docid": "72b1d4882af6ee95324c212833c54f7d", "score": "0.51219", "text": "public void unsubscribe();", "title": "" }, { "docid": "606b4ccf330577ed4cb164294e2288c1", "score": "0.51210505", "text": "public void unhold() throws InvalidStateException, MethodNotSupportedException, PrivilegeViolationException, ResourceUnavailableException {\n\t// check the state first\n\t\n\t// initiate action\n\tTerminal t = this.getTerminal();\n\ttry {\n\t\t((GenericProvider)t.getProvider()).getRaw().unHold(((FreeCall)this.getConnection().getCall()).getCallID(),\n\t\t\tthis.getConnection().getAddress().getName(),\n\t\t\tt.getName());\n\t} catch (RawStateException re) {\n\t\tthrow re.morph((FreeTerminal)this.getTerminal());\n\t}\n}", "title": "" }, { "docid": "a7d1c6a5f883e7521037a1481e3763c5", "score": "0.51197433", "text": "public void takeOff() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b84e6a246cbe2d8e65df7906b83d3b05", "score": "0.51158416", "text": "@Override\r\n public void cancel() {\r\n mInternalState = InternalState.IDLE;\r\n }", "title": "" }, { "docid": "b4620688df91651a65ca9db091d011e7", "score": "0.51048267", "text": "public void handleOperationData(){\t\t\r\n\t\t// do nothing\r\n\t}", "title": "" }, { "docid": "87df995e5b8220b8aa4345eba45b2d5f", "score": "0.51018804", "text": "@Override\r\n\tpublic void nodeUnSelected(Object tag) {\n\r\n\t}", "title": "" }, { "docid": "aeaa978373a57b91c55692efafcbd523", "score": "0.5097843", "text": "public void deselectArea(){\n selectOverlay.getOverlay().clear();\n selectOverlay.getOldOverlay().clear();\n activeLayer.setSelection(false);\n updateRenderedImage();\n }", "title": "" }, { "docid": "1ac399838202c83a0e6526f7dd0c59fa", "score": "0.5095504", "text": "void cancelSelection();", "title": "" }, { "docid": "6c54a65f9461580e4e11f52a59282491", "score": "0.508254", "text": "@Override\r\n public void run() {\n current.setSelection(0);\r\n finalLast.deselectAll();\r\n }", "title": "" }, { "docid": "4165e61a077f04fea552fb31abe88175", "score": "0.508049", "text": "public void connectionToContextLost()\n {\n this.viewPanel.pleaseClose();\n }", "title": "" }, { "docid": "ab39eab53258d37dfcfe6961cec2a826", "score": "0.50776625", "text": "public void cancelSmartKeyClick() {\n this.mHandler.removeCallbacks(this.mSmartKeyClick);\n }", "title": "" }, { "docid": "84e17c14dbda83e45eac435c4e699154", "score": "0.50753605", "text": "public void unsubscribe() {\n }", "title": "" }, { "docid": "cda4e857d408f65bf6c848ad078b7acb", "score": "0.5074402", "text": "public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent e) {\n\tdeActivateFrame((DrawingFrame)e.getSource());\n}", "title": "" }, { "docid": "6aa778ca962630186a692d9657af3834", "score": "0.50739723", "text": "@Override\r\n\tpublic void off() {\n\t\t\r\n\t}", "title": "" }, { "docid": "20bdab5fe5b55bd478af35dfc8cbfe04", "score": "0.50733364", "text": "public void onRowPisoUnselect(UnselectEvent event) {\n }", "title": "" } ]
b927f9f9e8a6f518bcaf851a1843f4be
Creates an instance of WebSiteInstanceStatusInner class.
[ { "docid": "f6aadc4213919ed7ad3a01214b0ec4c5", "score": "0.7966966", "text": "public WebSiteInstanceStatusInner() {\n }", "title": "" } ]
[ { "docid": "b51e893a2efb09b720d266fc7fcb39f8", "score": "0.6518122", "text": "public WebSiteInstanceStatusInner withState(SiteRuntimeState state) {\n if (this.innerProperties() == null) {\n this.innerProperties = new WebSiteInstanceStatusProperties();\n }\n this.innerProperties().withState(state);\n return this;\n }", "title": "" }, { "docid": "d4733ad4cedbad2fd20ebeb5b1231e1d", "score": "0.624495", "text": "public WebSiteInstanceStatusInner withStatusUrl(String statusUrl) {\n if (this.innerProperties() == null) {\n this.innerProperties = new WebSiteInstanceStatusProperties();\n }\n this.innerProperties().withStatusUrl(statusUrl);\n return this;\n }", "title": "" }, { "docid": "2baff97f7d8c5576d24681c7e2d22a98", "score": "0.6229174", "text": "private WebSiteInstanceStatusProperties innerProperties() {\n return this.innerProperties;\n }", "title": "" }, { "docid": "3a06d2afa0b4b8bbc147cecd570b7620", "score": "0.593786", "text": "MSDeployStatusInner innerModel();", "title": "" }, { "docid": "82283e82ed0ef314d1cac97c2cb61b2c", "score": "0.54200876", "text": "public SelfHostedIntegrationRuntimeStatus() {\n }", "title": "" }, { "docid": "979600dda4c73f7939d92fd255b2f25d", "score": "0.5407799", "text": "RasaStatusDTO checkStatus(String instanceName) throws NLUException;", "title": "" }, { "docid": "5fab7b87e8fe5d97d55a1fef327087fe", "score": "0.53784406", "text": "public Status() {\n }", "title": "" }, { "docid": "4767bf1ea9b44a535b9046e579cb50e8", "score": "0.53179866", "text": "public WebSiteInstanceStatusInner withConsoleUrl(String consoleUrl) {\n if (this.innerProperties() == null) {\n this.innerProperties = new WebSiteInstanceStatusProperties();\n }\n this.innerProperties().withConsoleUrl(consoleUrl);\n return this;\n }", "title": "" }, { "docid": "651353b12c02cbb5ef99706ac84ae11d", "score": "0.52533555", "text": "public Status() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7fb6b5fe55ee1d8424f961a57a45125c", "score": "0.5199664", "text": "public WebSiteInstanceStatusInner withContainers(Map<String, ContainerInfo> containers) {\n if (this.innerProperties() == null) {\n this.innerProperties = new WebSiteInstanceStatusProperties();\n }\n this.innerProperties().withContainers(containers);\n return this;\n }", "title": "" }, { "docid": "9328585f8c0e7b3d5812b00fe4ba8342", "score": "0.518599", "text": "public StatusImplHiber() {\r\n\t\tsuper(Status.class, HibernateUtil.getSessionFactory());\r\n\t}", "title": "" }, { "docid": "390fe03fc0b8faa067c190666e7e1a19", "score": "0.51845753", "text": "public WebSiteInstanceStatusInner withHealthCheckUrl(String healthCheckUrl) {\n if (this.innerProperties() == null) {\n this.innerProperties = new WebSiteInstanceStatusProperties();\n }\n this.innerProperties().withHealthCheckUrl(healthCheckUrl);\n return this;\n }", "title": "" }, { "docid": "4a852c6353bc3dd4794790130d933e11", "score": "0.51808804", "text": "public WebSiteInstanceStatusInner withDetectorUrl(String detectorUrl) {\n if (this.innerProperties() == null) {\n this.innerProperties = new WebSiteInstanceStatusProperties();\n }\n this.innerProperties().withDetectorUrl(detectorUrl);\n return this;\n }", "title": "" }, { "docid": "f09106b1111da4ccba9546a7869f75e6", "score": "0.51753104", "text": "public Status() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "title": "" }, { "docid": "3ebc10edb70f027c100d17741eaf558b", "score": "0.5076967", "text": "public com.google.cloud.batch.v1.JobStatus.Builder getStatusBuilder() {\n bitField0_ |= 0x00000040;\n onChanged();\n return getStatusFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "b9e99d60b49a017729039f645790f7ae", "score": "0.49731797", "text": "private Push_Status(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "fe3a3b71c19d48d452b70e16ca1dc1db", "score": "0.49247348", "text": "public MigrationStatus() {\n }", "title": "" }, { "docid": "9589a16353025c8620f2c42cf853862e", "score": "0.49165222", "text": "private com.google.protobuf.SingleFieldBuilder<\n Twitter.Tweet, Twitter.Tweet.Builder, Twitter.TweetOrBuilder> \n getStatusFieldBuilder() {\n if (statusBuilder_ == null) {\n statusBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Twitter.Tweet, Twitter.Tweet.Builder, Twitter.TweetOrBuilder>(\n getStatus(),\n getParentForChildren(),\n isClean());\n status_ = null;\n }\n return statusBuilder_;\n }", "title": "" }, { "docid": "5e67f5327d4731d0ff07526579140642", "score": "0.4916074", "text": "GetInstanceOnboardingJobStatusResult getInstanceOnboardingJobStatus(GetInstanceOnboardingJobStatusRequest getInstanceOnboardingJobStatusRequest);", "title": "" }, { "docid": "daf21f257ae9623c35aa6dbe4fe74bb2", "score": "0.4914185", "text": "private com.google.protobuf.SingleFieldBuilder<\n SteamMsgRemoteClient.CMsgRemoteClientBroadcastStatus, SteamMsgRemoteClient.CMsgRemoteClientBroadcastStatus.Builder, SteamMsgRemoteClient.CMsgRemoteClientBroadcastStatusOrBuilder>\n getStatusFieldBuilder() {\n if (statusBuilder_ == null) {\n statusBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n SteamMsgRemoteClient.CMsgRemoteClientBroadcastStatus, SteamMsgRemoteClient.CMsgRemoteClientBroadcastStatus.Builder, SteamMsgRemoteClient.CMsgRemoteClientBroadcastStatusOrBuilder>(\n status_,\n getParentForChildren(),\n isClean());\n status_ = null;\n }\n return statusBuilder_;\n }", "title": "" }, { "docid": "ee3a1040262f25db0ff2a17656ff0231", "score": "0.49062386", "text": "public Twitter.Tweet.Builder getStatusBuilder() {\n \n onChanged();\n return getStatusFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "b65f7e586286a15c7f5b4ffcee28f036", "score": "0.48889476", "text": "public void create() {\n\t\tlogger.debug(\"Entering WKF Status creation method...\");\n\t\ttry {\n\t\t\tWkfStatus entry = new WkfStatus();\n\t\t\tentry.setStatusId(statusId);\n\t\t\tentry.setStatusName(statusName);\n\t\t\tentry.setStatusDescription(statusDescription);\n\t\t\tentry.setStatusUpdateDate(new Date());\n\t\t\twkfStatusDao.save(entry);\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"The data been created successfully.\", \"Information\"));\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"Failed to insert the data into db, Cause: \"+ex.getMessage(), ex);\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Failed to insert the data into db, Cause: \"+ex.getMessage(), \"Information\"));\n\t\t}\n\t}", "title": "" }, { "docid": "4639eea5bc829af517c07d0221b39f08", "score": "0.4883533", "text": "HealthStatusObservation createHealthStatusObservation();", "title": "" }, { "docid": "07d0c4b4e20ba98df4798f2c0c51005f", "score": "0.4855194", "text": "public interface MSDeployStatus {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the kind property: Kind of resource.\n *\n * @return the kind value.\n */\n String kind();\n\n /**\n * Gets the deployer property: Username of deployer.\n *\n * @return the deployer value.\n */\n String deployer();\n\n /**\n * Gets the provisioningState property: Provisioning state.\n *\n * @return the provisioningState value.\n */\n MSDeployProvisioningState provisioningState();\n\n /**\n * Gets the startTime property: Start time of deploy operation.\n *\n * @return the startTime value.\n */\n OffsetDateTime startTime();\n\n /**\n * Gets the endTime property: End time of deploy operation.\n *\n * @return the endTime value.\n */\n OffsetDateTime endTime();\n\n /**\n * Gets the complete property: Whether the deployment operation has completed.\n *\n * @return the complete value.\n */\n Boolean complete();\n\n /**\n * Gets the inner com.azure.resourcemanager.azurestack.web.fluent.models.MSDeployStatusInner object.\n *\n * @return the inner object.\n */\n MSDeployStatusInner innerModel();\n}", "title": "" }, { "docid": "6938f25231feca114f7969cbd8b9fff3", "score": "0.4846171", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.batch.v1.JobStatus,\n com.google.cloud.batch.v1.JobStatus.Builder,\n com.google.cloud.batch.v1.JobStatusOrBuilder>\n getStatusFieldBuilder() {\n if (statusBuilder_ == null) {\n statusBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.batch.v1.JobStatus,\n com.google.cloud.batch.v1.JobStatus.Builder,\n com.google.cloud.batch.v1.JobStatusOrBuilder>(\n getStatus(), getParentForChildren(), isClean());\n status_ = null;\n }\n return statusBuilder_;\n }", "title": "" }, { "docid": "043a2d34cb057f81661ec67777ef0ea3", "score": "0.4841224", "text": "StatusItem getVerifStatus();", "title": "" }, { "docid": "40e98507e92cf0ac74acb685d57cba92", "score": "0.48355258", "text": "public String getServicingEventLogInstanceStatus() {\n return servicingEventLogInstanceStatus;\n }", "title": "" }, { "docid": "7b1b648e2e42864cec96814938ce7475", "score": "0.4833155", "text": "public static IStatus createOK() {\n\t\treturn Status.OK_STATUS;\n\t}", "title": "" }, { "docid": "87099684e673d84c49fc9da266e4ee8b", "score": "0.48117128", "text": "private Component createStatusPanel() {\n JPanel statusPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));\n statusPanel.setOpaque(false);\n statusPanel.add(new JLabel(\"status: \"));\n statusPanel.add(statusBar);\n return statusPanel;\n }", "title": "" }, { "docid": "f9e5bca75664e604fdf3124ebdd81f74", "score": "0.47897243", "text": "protected StatusBarGraphListener createStatusBar() {\n\t\treturn new EdStatusBar();\n\t}", "title": "" }, { "docid": "7488de44a8798554770e66b923eee2a5", "score": "0.47766775", "text": "StatusItem getStatus();", "title": "" }, { "docid": "ff761d96c6bb55b5050a5c81e5f0991b", "score": "0.4769931", "text": "public hpdIncidentInterfaceWS.StatusType xgetStatus()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n hpdIncidentInterfaceWS.StatusType target = null;\r\n target = (hpdIncidentInterfaceWS.StatusType)get_store().find_element_user(STATUS$52, 0);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "99ef033398dec3f00c26e63e8f4810fb", "score": "0.476988", "text": "public static WebElement dd_newTimeSheetStatus(WebDriver driver) {\r\n\t\telement = CommonMethods.waitForElement(driver.findElement(By.xpath(\".//*[@id='newTimeSheetStatus']\")), driver);\r\n\t\treturn element;\r\n\t}", "title": "" }, { "docid": "ef13e5ba71812f89eb8f809f3f590680", "score": "0.47603363", "text": "private static Label createStatusBar(Composite parent) {\n\t\tstatusBar = new Label(parent, SWT.NONE);\n\t\tstatusBar.setText(\"--\");\n\t\tstatusBar.setForeground(display.getSystemColor(SWT.COLOR_CYAN));\n\t\tstatusBar.setBackground(new Color(display, 56, 56, 56));\n\t\tGridData layoutData = new GridData(SWT.FILL, SWT.CENTER, true, false);\n\t\tlayoutData.horizontalSpan = 2;\n\t\tstatusBar.setLayoutData(layoutData);\n\t\treturn statusBar;\n\t}", "title": "" }, { "docid": "a10bf281e87387aeccc9b0e0789d60de", "score": "0.4746501", "text": "public BoundCodeDt<ConformanceStatementStatusEnum> getStatusElement() { \n\t\tif (myStatus == null) {\n\t\t\tmyStatus = new BoundCodeDt<ConformanceStatementStatusEnum>(ConformanceStatementStatusEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myStatus;\n\t}", "title": "" }, { "docid": "1012f3fa5fd28f4cd2662e3290922cab", "score": "0.47424912", "text": "public RobotStatus(){\n\n }", "title": "" }, { "docid": "c40852916879294cb0310efdd4c115dc", "score": "0.47416738", "text": "public SteamMsgRemoteClient.CMsgRemoteClientBroadcastStatus.Builder getStatusBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getStatusFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "0e2fd81f44a555d0bbd5dd1b0202e4a1", "score": "0.4732596", "text": "WithCreate withStatus(PolicyStatus status);", "title": "" }, { "docid": "49a54c9c653a414ac9cc43a2ff47bffe", "score": "0.46856955", "text": "public static ClientStatusPojo createStatus(@NonNull ClientStatusPojo currentStatus, @NonNull SecurityConstants newSecurity) {\n return new ClientStatusPojo(currentStatus.getProfile(), currentStatus.getAuthStatus(), newSecurity,\n currentStatus.getAccessToken(), currentStatus.getPhoneNumber(), currentStatus.getGoogleAuthKey(),\n System.currentTimeMillis());\n }", "title": "" }, { "docid": "cbc38175ed0a275780d9dfd777fbe397", "score": "0.46791956", "text": "public JsonStatusResource() {\n }", "title": "" }, { "docid": "a84b6dc90b1506a0ab3736027fd86475", "score": "0.46744767", "text": "ApplicationStatusVO getApplicationStatus();", "title": "" }, { "docid": "d3dc3092151d1d6a85e6ead962402ba3", "score": "0.4669785", "text": "public ContainerInstance withStatus(String status) {\n this.status = status;\n return this;\n }", "title": "" }, { "docid": "d1c4e05592af23b5bc20759056511de2", "score": "0.46614677", "text": "public InPostStatusy() {\n\t}", "title": "" }, { "docid": "9f139b3598c5786f966b304d97d01aac", "score": "0.46474296", "text": "public Status getStatus() {return status;}", "title": "" }, { "docid": "852c23daad26a8aea86a44cdf2cbd467", "score": "0.4646815", "text": "private void createStatusBox() {\n \t\tstatusTextRenderer = new TextRenderer(ViewResources.getFont().deriveFont(screenArea.getHeight()/30.0f));\n \t\tstatusBackground = new GLSprite(\"wide_button\", 128, 32);\n \t\tint width = screenArea.getWidth()/4;\n \t\tint height = width/4;\n \t\tint x = screenArea.getWidth() / 2 - width / 2;\n \t\tint y = screenArea.getHeight() / 2 - height / 2;\n \t\tstatusBackground.setBounds(new Rectangle(x, y, width, height));\n \t}", "title": "" }, { "docid": "2ec74fcdb6ae14cbb0ba5a5b6696800e", "score": "0.46457833", "text": "public Status getStatus();", "title": "" }, { "docid": "d331da1a36e405f63b92233f31b0b93a", "score": "0.46445984", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> \n getStatusFieldBuilder() {\n if (statusBuilder_ == null) {\n statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>(\n getStatus(),\n getParentForChildren(),\n isClean());\n status_ = null;\n }\n return statusBuilder_;\n }", "title": "" }, { "docid": "152d666617bc42462af82345e8ad3dea", "score": "0.4638195", "text": "public Status(int i) {\r\n }", "title": "" }, { "docid": "dd7a96664e17356d06d391c309d7d215", "score": "0.4636287", "text": "public Builder setServerStatus(iteasyquerysrv.Iteasyquerysrv.PkgUIWorkStatusPush.WorkStatus value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n serverStatus_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c5179126b72605075264b8308b662783", "score": "0.46326154", "text": "Status getStatus();", "title": "" }, { "docid": "c5179126b72605075264b8308b662783", "score": "0.46326154", "text": "Status getStatus();", "title": "" }, { "docid": "c5179126b72605075264b8308b662783", "score": "0.46326154", "text": "Status getStatus();", "title": "" }, { "docid": "23584ee95f0a0d477e0d46c8becaab99", "score": "0.46321943", "text": "public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() {\n \n onChanged();\n return getStatusFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "bac2280504ca7ecb746bff23960973be", "score": "0.4629321", "text": "public StockStatus(){}", "title": "" }, { "docid": "2495454789d15ec9d1390767814b5f41", "score": "0.46291107", "text": "public BuildStatus() {\n\t\tthis.stateLock = new ReentrantReadWriteLock(); \n\t\tthis.buildState = BuildState.NOT_STARTED;\n\t\tthis.buildLogs = new StringBuffer();\n\t}", "title": "" }, { "docid": "88180d312a4c809c68bf52d1b2647b46", "score": "0.46176964", "text": "private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties() {\n return this.innerTypeProperties;\n }", "title": "" }, { "docid": "502c99b8862613aec379efb85d921539", "score": "0.46052307", "text": "public static EEHADBHealthChecker createInstance(WebContainer webContainer) {\n if (_soleInstance == null) {\n _soleInstance = new EEHADBHealthChecker(webContainer);\n }\n return _soleInstance;\n }", "title": "" }, { "docid": "486bf8a421717363fff77dcf317f7138", "score": "0.45984757", "text": "public Status getStatus()\r\n {\r\n return status;\r\n }", "title": "" }, { "docid": "a215a4caedc59114502bb200131422b4", "score": "0.45965454", "text": "public Status getStatus()\n {\n return status;\n }", "title": "" }, { "docid": "2484cd25c1b7239aece96700393233b0", "score": "0.4595829", "text": "public static int runningInstancesInResult(ProcessInstancesResult r,\n ProcessInstancesResult.WorkflowStatus ws) {\n ProcessInstancesResult.ProcessInstance[] pArray = r.getInstances();\n int runningCount = 0;\n logger.info(\"pArray: \" + Arrays.toString(pArray));\n for (int instanceIndex = 0; instanceIndex < pArray.length; instanceIndex++) {\n logger.info(\n \"pArray[\" + instanceIndex + \"]: \" + pArray[instanceIndex].getStatus() + \" , \" +\n pArray[instanceIndex].getInstance()\n );\n\n if (pArray[instanceIndex].getStatus().equals(ws)) {\n runningCount++;\n }\n }\n return runningCount;\n }", "title": "" }, { "docid": "548f79f44797afbc130d28620f0d310d", "score": "0.45950803", "text": "public ZWaveApplicationStatusCommandClass(ZWaveNode node, ZWaveController controller, ZWaveEndpoint endpoint) {\n super(node, controller, endpoint);\n }", "title": "" }, { "docid": "97f7daa825986f41bb12fa8b4ccd2d15", "score": "0.45849842", "text": "public ImmuMemberStatus newEntity() { return new ImmuMemberStatus(); }", "title": "" }, { "docid": "8a65b062d75f1fdaa9fd114ff7ed0493", "score": "0.45782945", "text": "@java.lang.Override\n public boolean hasStatus() {\n return instance.hasStatus();\n }", "title": "" }, { "docid": "5e619c1ac2a113ab8dd3a1789467e2d5", "score": "0.45511833", "text": "public Builder status(PublicationStatus status) {\n this.status = status;\n return this;\n }", "title": "" }, { "docid": "787d48f45a0940aac7847b0e0a563393", "score": "0.45406795", "text": "List<InstanceViewStatus> value();", "title": "" }, { "docid": "ba592fef7b77fa0d5df3e7b71f054606", "score": "0.45327884", "text": "public WaitStatisticInner() {\n }", "title": "" }, { "docid": "521dc6ff1156cbc0f769af0a79d8a5d4", "score": "0.4531021", "text": "public hpdIncidentInterfaceWS.StatusType.Enum getStatus()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$52, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return (hpdIncidentInterfaceWS.StatusType.Enum)target.getEnumValue();\r\n }\r\n }", "title": "" }, { "docid": "b54dc3b12c1f0aceb155af2205c9d1d3", "score": "0.45305344", "text": "com.google.cloud.compute.v1.InstanceGroupManagerStatus getStatus();", "title": "" }, { "docid": "fdffc36bddf3560668cb41c0e1b28dba", "score": "0.45273352", "text": "Instance createInstance();", "title": "" }, { "docid": "1e73800e2317bffc06dfcdbf00aafd0f", "score": "0.4525702", "text": "public Status getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "69f170d912e8ab511956d0ec1010856d", "score": "0.45185372", "text": "public Byte getWsStatus() {\n return wsStatus;\n }", "title": "" }, { "docid": "3474a3ecd48ce8d53d6364c2efafee08", "score": "0.45119986", "text": "public Status getStatus(){\n return localStatus;\n }", "title": "" }, { "docid": "3474a3ecd48ce8d53d6364c2efafee08", "score": "0.45119986", "text": "public Status getStatus(){\n return localStatus;\n }", "title": "" }, { "docid": "3474a3ecd48ce8d53d6364c2efafee08", "score": "0.45119986", "text": "public Status getStatus(){\n return localStatus;\n }", "title": "" }, { "docid": "c7b0dd3b9027ad5af8ea967a76caa966", "score": "0.4510127", "text": "public static ClientStatusPojo createStatus(@NonNull ClientStatusPojo currentStatus, @NonNull AuthConstants newAuth) {\n return new ClientStatusPojo(currentStatus.getProfile(), newAuth, currentStatus.getSecurityStatus(),\n currentStatus.getAccessToken(), currentStatus.getPhoneNumber(), currentStatus.getGoogleAuthKey(),\n System.currentTimeMillis());\n }", "title": "" }, { "docid": "4ad5c31aedcd21a5e07daff2eeac6715", "score": "0.45095915", "text": "public Status getStatus()\n {\n return _status;\n }", "title": "" }, { "docid": "307adf4bcddeee1389789314efdc6714", "score": "0.45081025", "text": "public Status getStatus() {\n return status;\n }", "title": "" }, { "docid": "307adf4bcddeee1389789314efdc6714", "score": "0.45081025", "text": "public Status getStatus() {\n return status;\n }", "title": "" }, { "docid": "307adf4bcddeee1389789314efdc6714", "score": "0.45081025", "text": "public Status getStatus() {\n return status;\n }", "title": "" }, { "docid": "307adf4bcddeee1389789314efdc6714", "score": "0.45081025", "text": "public Status getStatus() {\n return status;\n }", "title": "" }, { "docid": "a7c858f295a0193560fcc1a10e0d2903", "score": "0.45026144", "text": "private void createStatus()\n {\n eaten = false;\n hidingBehindBrick = true;\n elapsedTime = 0f;\n frames = 0;\n }", "title": "" }, { "docid": "c2cc613b1166f9268ba77e6b2ea3744c", "score": "0.4499212", "text": "public static Status parse(javax.xml.stream.XMLStreamReader reader)\r\n\t\t\t\t\tthrows java.lang.Exception {\r\n\t\t\t\tStatus object = new Status();\r\n\r\n\t\t\t\tint event;\r\n\t\t\t\tjava.lang.String nillableValue = null;\r\n\t\t\t\tjava.lang.String prefix = \"\";\r\n\t\t\t\tjava.lang.String namespaceuri = \"\";\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\twhile (!reader.isStartElement() && !reader.isEndElement())\r\n\t\t\t\t\t\treader.next();\r\n\r\n\t\t\t\t\tif (reader\r\n\t\t\t\t\t\t\t.getAttributeValue(\r\n\t\t\t\t\t\t\t\t\t\"http://www.w3.org/2001/XMLSchema-instance\",\r\n\t\t\t\t\t\t\t\t\t\"type\") != null) {\r\n\t\t\t\t\t\tjava.lang.String fullTypeName = reader\r\n\t\t\t\t\t\t\t\t.getAttributeValue(\r\n\t\t\t\t\t\t\t\t\t\t\"http://www.w3.org/2001/XMLSchema-instance\",\r\n\t\t\t\t\t\t\t\t\t\t\"type\");\r\n\t\t\t\t\t\tif (fullTypeName != null) {\r\n\t\t\t\t\t\t\tjava.lang.String nsPrefix = null;\r\n\t\t\t\t\t\t\tif (fullTypeName.indexOf(\":\") > -1) {\r\n\t\t\t\t\t\t\t\tnsPrefix = fullTypeName.substring(0,\r\n\t\t\t\t\t\t\t\t\t\tfullTypeName.indexOf(\":\"));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tnsPrefix = nsPrefix == null ? \"\" : nsPrefix;\r\n\r\n\t\t\t\t\t\t\tjava.lang.String type = fullTypeName\r\n\t\t\t\t\t\t\t\t\t.substring(fullTypeName.indexOf(\":\") + 1);\r\n\r\n\t\t\t\t\t\t\tif (!\"Status\".equals(type)) {\r\n\t\t\t\t\t\t\t\t//find namespace for the prefix\r\n\t\t\t\t\t\t\t\tjava.lang.String nsUri = reader\r\n\t\t\t\t\t\t\t\t\t\t.getNamespaceContext().getNamespaceURI(\r\n\t\t\t\t\t\t\t\t\t\t\t\tnsPrefix);\r\n\t\t\t\t\t\t\t\treturn (Status) ExtensionMapper.getTypeObject(\r\n\t\t\t\t\t\t\t\t\t\tnsUri, type, reader);\r\n\t\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}\r\n\r\n\t\t\t\t\t// Note all attributes that were handled. Used to differ normal attributes\r\n\t\t\t\t\t// from anyAttributes.\r\n\t\t\t\t\tjava.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n\t\t\t\t\treader.next();\r\n\r\n\t\t\t\t\twhile (!reader.isStartElement() && !reader.isEndElement())\r\n\t\t\t\t\t\treader.next();\r\n\r\n\t\t\t\t\tif (reader.isStartElement()\r\n\t\t\t\t\t\t\t&& new javax.xml.namespace.QName(\"\", \"code\")\r\n\t\t\t\t\t\t\t\t\t.equals(reader.getName())) {\r\n\r\n\t\t\t\t\t\tjava.lang.String content = reader.getElementText();\r\n\r\n\t\t\t\t\t\tobject\r\n\t\t\t\t\t\t\t\t.setCode(org.apache.axis2.databinding.utils.ConverterUtil\r\n\t\t\t\t\t\t\t\t\t\t.convertToString(content));\r\n\r\n\t\t\t\t\t\treader.next();\r\n\r\n\t\t\t\t\t} // End of if for expected property start element\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// A start element we are not expecting indicates an invalid parameter was passed\r\n\t\t\t\t\t\tthrow new org.apache.axis2.databinding.ADBException(\r\n\t\t\t\t\t\t\t\t\"Unexpected subelement \"\r\n\t\t\t\t\t\t\t\t\t\t+ reader.getLocalName());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\twhile (!reader.isStartElement() && !reader.isEndElement())\r\n\t\t\t\t\t\treader.next();\r\n\r\n\t\t\t\t\tif (reader.isStartElement()\r\n\t\t\t\t\t\t\t&& new javax.xml.namespace.QName(\"\", \"text\")\r\n\t\t\t\t\t\t\t\t\t.equals(reader.getName())) {\r\n\r\n\t\t\t\t\t\tobject.setText(ExceptionType.Factory.parse(reader));\r\n\r\n\t\t\t\t\t\treader.next();\r\n\r\n\t\t\t\t\t} // End of if for expected property start element\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// A start element we are not expecting indicates an invalid parameter was passed\r\n\t\t\t\t\t\tthrow new org.apache.axis2.databinding.ADBException(\r\n\t\t\t\t\t\t\t\t\"Unexpected subelement \"\r\n\t\t\t\t\t\t\t\t\t\t+ reader.getLocalName());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\twhile (!reader.isStartElement() && !reader.isEndElement())\r\n\t\t\t\t\t\treader.next();\r\n\r\n\t\t\t\t\tif (reader.isStartElement()\r\n\t\t\t\t\t\t\t&& new javax.xml.namespace.QName(\"\", \"details\")\r\n\t\t\t\t\t\t\t\t\t.equals(reader.getName())) {\r\n\r\n\t\t\t\t\t\tjava.lang.String content = reader.getElementText();\r\n\r\n\t\t\t\t\t\tobject\r\n\t\t\t\t\t\t\t\t.setDetails(org.apache.axis2.databinding.utils.ConverterUtil\r\n\t\t\t\t\t\t\t\t\t\t.convertToString(content));\r\n\r\n\t\t\t\t\t\treader.next();\r\n\r\n\t\t\t\t\t} // End of if for expected property start element\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// A start element we are not expecting indicates an invalid parameter was passed\r\n\t\t\t\t\t\tthrow new org.apache.axis2.databinding.ADBException(\r\n\t\t\t\t\t\t\t\t\"Unexpected subelement \"\r\n\t\t\t\t\t\t\t\t\t\t+ reader.getLocalName());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\twhile (!reader.isStartElement() && !reader.isEndElement())\r\n\t\t\t\t\t\treader.next();\r\n\r\n\t\t\t\t\tif (reader.isStartElement())\r\n\t\t\t\t\t\t// A start element we are not expecting indicates a trailing invalid property\r\n\t\t\t\t\t\tthrow new org.apache.axis2.databinding.ADBException(\r\n\t\t\t\t\t\t\t\t\"Unexpected subelement \"\r\n\t\t\t\t\t\t\t\t\t\t+ reader.getLocalName());\r\n\r\n\t\t\t\t} catch (javax.xml.stream.XMLStreamException e) {\r\n\t\t\t\t\tthrow new java.lang.Exception(e);\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn object;\r\n\t\t\t}", "title": "" }, { "docid": "e67b2049501be9fdd5a7098605182b5d", "score": "0.44987777", "text": "protected ContestStatusManagerImpl createContestStatusManagerImpl() {\r\n ContestStatusManagerImpl pastContestsManager = new ContestStatusManagerImpl();\r\n pastContestsManager.setOpenPhaseStatusId(1);\r\n // ProjectPhase table\r\n pastContestsManager.setRegistrationPhaseTypeId(1);\r\n pastContestsManager.setSubmissionPhaseTypeId(11);\r\n pastContestsManager.setFinalReviewPhaseTypeId(3);\r\n // ProjectInfo table\r\n pastContestsManager.setProjectNameInfoId(1);\r\n pastContestsManager.setWinnerIdInfoId(7);\r\n pastContestsManager.setExternalReferenceIdInfoId(2);\r\n pastContestsManager.setHandleInfoId(3);\r\n pastContestsManager.setFirstPlaceCostInfoId(2);\r\n pastContestsManager.setSecondPlaceIdInfoId(8);\r\n // Submission table\r\n pastContestsManager.setHibernateTemplate(getHibernateTemplate());\r\n return pastContestsManager;\r\n }", "title": "" }, { "docid": "cc3154bc9fd2ad694a879c7e9f80c536", "score": "0.44912407", "text": "private Component createStatusLabel(Classification classif) {\r\n\t\tString textColor;\r\n\t\tif(classif.getStatus().equals(Status.CARENZA.getName())) textColor = TextColor.ERROR.getValue();\r\n\t\telse if(classif.getStatus().equals(Status.ECCESSO.getName())) textColor = TextColor.PRIMARY.getValue();\r\n\t\telse if(classif.getStatus().equals(Status.NORMALE.getName())) textColor = TextColor.SUCCESS.getValue();\r\n\t\telse if(classif.getStatus().equals(Status.INFESTANTI.getName())) textColor = TextColor.ORANGE.getValue();\r\n\t\telse textColor = TextColor.GREY.getValue();\r\n\t\t\t\r\n\t\tFlexBoxLayout status = new FlexBoxLayout(\r\n\t\t\t\tUIUtils.createIcon(IconSize.S, textColor, VaadinIcon.CIRCLE),\r\n\t\t\t\tUIUtils.createLabel(FontSize.S, classif.getStatus()));\r\n\t\tstatus.setSpacing(Right.L);\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "afada51d09e24200700e1c2e8685b894", "score": "0.44724602", "text": "public STATUS getStatus() {\n return status;\n }", "title": "" }, { "docid": "a085a6adedbf2203680dc547e6569635", "score": "0.44715458", "text": "public TestJobInner withStatus(String status) {\n this.status = status;\n return this;\n }", "title": "" }, { "docid": "ad269822bc3d7e0bec95a16f49cc207b", "score": "0.44565168", "text": "com.google.cloud.compute.v1.InstanceGroupManagerStatusOrBuilder getStatusOrBuilder();", "title": "" }, { "docid": "d243288be749462e66b8445cdbb78763", "score": "0.44522083", "text": "public static VersionCheck getInstance() {\r\n\t\treturn instance;\r\n\t}", "title": "" }, { "docid": "c87e0417e36ee81ee65ad45223612d9d", "score": "0.44510674", "text": "public org.apache.nutch.storage.WebPage.Builder setStatus(int value) {\n validate(fields()[1], value);\n this.status = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "title": "" }, { "docid": "3d31672de8c4b9e7bc0d34d0a7a9c516", "score": "0.44509432", "text": "@Field(7) \n\tpublic UA_DataValue status(IntValuedEnum<UA_StatusCode > status) {\n\t\tthis.io.setEnumField(this, 7, status);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "e464eadbd6ca55bd86392403ca1481d7", "score": "0.44475445", "text": "public StatusWrapper(String version, String applicationServerName) {\n\t\t\tthis.version = version;\n\t\t\tthis.applicationServerName = applicationServerName;\n\t\t}", "title": "" }, { "docid": "6790fe9bc15772006664260ce452de60", "score": "0.4444569", "text": "public String getStatusClassOfSite(){\r\n\t\tString xpath = \"//div[contains(@class,'admsettings-modulesettings')]//div[contains(@class,'mcsspaceexplorer')]//div[text()='Status Class']/../following-sibling::td\";\r\n\t\treturn driver.findElement(By.xpath(xpath)).getText();\r\n\t}", "title": "" }, { "docid": "1e6bc7396aefe465a8cf5888936a509a", "score": "0.44440413", "text": "PolicyStatus status();", "title": "" }, { "docid": "195802f44a29222707416a70ab441dd9", "score": "0.44419244", "text": "public BurdenEstimateSetStatus() {\n this(DSL.name(\"burden_estimate_set_status\"), null);\n }", "title": "" }, { "docid": "d7fc09ec2605ac4d20bb8c3ec03db75d", "score": "0.44381252", "text": "Status getStatus() {\n return status;\n }", "title": "" }, { "docid": "605c290bce24dc49b16ddce5927e917f", "score": "0.4431044", "text": "public static void StatusInstance(List<Reservation> reservations)\n\t{\n\t\t//Returns the status of an instance with then given id\n\t\tInstanceState instanceState = reservations.get(0).getInstances().get(0).getState();\n\t\tSystem.out.println(\"Instance State = \" + instanceState.getName());\n\t}", "title": "" }, { "docid": "f84a5cc3ec6aed4aadc8f238b142c274", "score": "0.44293672", "text": "CreatureStatus() {}", "title": "" }, { "docid": "fdcaa68981deeb68440bb0b02d9cb239", "score": "0.44239175", "text": "private static Status createStatus(int severity, Object message) {\n return new Status(\n severity,\n ModelPreferences.PLUGIN_ID,\n message == null ? null : message.toString());\n }", "title": "" }, { "docid": "4c9d0d6f10408f3ac490d36961edc204", "score": "0.442117", "text": "SampleitemstatushistoryBean()\n {\n }", "title": "" }, { "docid": "bda18dc69aec1e0609505fc99fd63647", "score": "0.44201443", "text": "public InstanceInformation withPingStatus(String pingStatus) {\n setPingStatus(pingStatus);\n return this;\n }", "title": "" } ]
636b48e2dd028e97812364b0a97519c7
Performs no deleting. Deleting will however occur in any AnalyticFunctions on which this AbstractDependentAnalyticFunction depends.
[ { "docid": "7ab0799e6cedd0fd55f36414505d3ad0", "score": "0.0", "text": "public final void delete(Object value) { }", "title": "" } ]
[ { "docid": "12ce4c2239f1a837669a478c4746b7dd", "score": "0.5819261", "text": "@Override\r\n\tpublic void softDelete(WtHitungLembur arg0) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "3f181af9bbea8418324eb450324dc470", "score": "0.574761", "text": "public void eliminarDependencia(){\n controller.deleteDependency(selectedDependency);\n selectedDependency = null;\n }", "title": "" }, { "docid": "af0570c1364f2dc7b540821492538bb0", "score": "0.5673817", "text": "@Override\n protected void handleDependenciesBeforeDelete(TbPERFILCARGOSEntity tbPERFILCARGOS) {\n \n }", "title": "" }, { "docid": "4ff0940c84295487a02833a266f110cd", "score": "0.56169224", "text": "@Override\r\n\tpublic void softDelete(JabatanProfesi arg0) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "74a09bf166ac876a4dfac974b49198ee", "score": "0.5585842", "text": "@Override\n\tpublic void deleteInter() {\n\t\t\n\t}", "title": "" }, { "docid": "76686a286acc546df15922f9c217bb3c", "score": "0.5579254", "text": "public abstract void onDeletion();", "title": "" }, { "docid": "534275ef0cb3cd99014c8abd4677b9e9", "score": "0.548714", "text": "@Override\n public void removeDependent(final Dependent dependent) {\n assert ! holdsLock(this);\n assert ! holdsLock(dependent);\n synchronized (dependents) {\n dependents.remove(dependent);\n }\n }", "title": "" }, { "docid": "7f33a8ab0ca04de6b837c97e8ccaa1be", "score": "0.5475924", "text": "protected abstract void doMarkDeleted();", "title": "" }, { "docid": "00c40c2f75861600108bd6b3320d3ae5", "score": "0.546209", "text": "boolean hasDeleteCondition();", "title": "" }, { "docid": "fcf2f3ad20256f2c6c39b5dae323df28", "score": "0.5432793", "text": "public void removeDependable(Cell temp) {\r\n\t\tmy_dependables.remove(temp);\r\n\t}", "title": "" }, { "docid": "8cba644b123fc81a436a4bb4a285d4fe", "score": "0.54225457", "text": "@Override\r\n\tpublic void deleteGeneralForecast() {\n\t\tString sql = \"delete from GENERAL_FORECAST where auto_model = '1'\";\r\n \tString[] parameters = {};\r\n \tsqlHelper.executeUpdate(sql, parameters);\r\n\t}", "title": "" }, { "docid": "0456b1ac46a723dbe58df9fdc49fb6fa", "score": "0.5336257", "text": "public abstract void delete() throws FeatureStoreException, IOException;", "title": "" }, { "docid": "acdebf9935579ea44a63ac92c32e7fa2", "score": "0.53150016", "text": "public SimpleResult deleteProcess(String depId);", "title": "" }, { "docid": "312b104516b9b07d51d7a198384b7c6c", "score": "0.53115135", "text": "private void delete() {\n\t\t\n\t}", "title": "" }, { "docid": "398079957bb704534ab678ce54509165", "score": "0.52698994", "text": "@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"ms-sql Delete\");\n\t}", "title": "" }, { "docid": "0b42347a5cd9f6e40b4f0e97d8924bfa", "score": "0.5240314", "text": "public void doDelete() throws Exception\r\n\t\t{\r\n\t\tmyCalledPartyTransformationPattern.delete();\r\n\t\t}", "title": "" }, { "docid": "bea00bb3f53e15c3f1f4b293e994b8a0", "score": "0.52335715", "text": "public abstract void clearCustomerTaxExemption();", "title": "" }, { "docid": "4fbfd0ee7da07cfe857769f1b55241c0", "score": "0.52233714", "text": "int deleteBySqlConditions(CalFaultSolveTaskProcess record);", "title": "" }, { "docid": "103c8df58c616d21129ef501efbde36d", "score": "0.5219064", "text": "public void beforeDelete() {\n\t\t\n\t}", "title": "" }, { "docid": "d285672c84a1ffa5d48c17e54dcd873c", "score": "0.5207455", "text": "@Override\n\tpublic void onDelete() {\n\t\tsuper.onDelete();\n\t\t// Evenetually - unload the data - with the intention of possible recovery, but not saving...\n\t\tqueueEvent(HDWEvent.UnloadTMP);\n\t}", "title": "" }, { "docid": "d730789761455739566c4077655516cf", "score": "0.51975936", "text": "public void afterDelete() {\n\t\t\n\t}", "title": "" }, { "docid": "64813e91de9c53ddd640082f716f2e1d", "score": "0.51918775", "text": "void deleteAll() throws DependencyException, InvalidStateException, ProvisionedThroughputException;", "title": "" }, { "docid": "d5f9f0bbd96a3a970be83113a676642d", "score": "0.51856136", "text": "@Override\n\tpublic void deleteFonction(Fonction fonction) {\n\t\tfonctionDao.delete(fonction);\n\t}", "title": "" }, { "docid": "36ad58cdc292dd6409676f4002112831", "score": "0.5184231", "text": "public void doDelete() {\n\t\tSystem.out.println(\"Delete\");\t\n\t\t\n\t}", "title": "" }, { "docid": "2f14ee53d8458c2fbdef5b54aa181784", "score": "0.51834106", "text": "@Override\n\tpublic int o3Delete(int qNo) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d0b500cfd3cb9ef5720765231564c71e", "score": "0.5175407", "text": "@Override\r\n\tpublic void deleteByCriteria(OperateLogCriteria operateLogCriteria) {\n\t\t\r\n\t}", "title": "" }, { "docid": "ca14ded4894cd0035ba6de5da89c7440", "score": "0.51752996", "text": "protected void delete()\n {\n }", "title": "" }, { "docid": "9b7609dcb7809f2551b71bac98471452", "score": "0.5174219", "text": "public abstract void delete(ResidualRiskLikelihood residualRiskLikelihood);", "title": "" }, { "docid": "4fc23fc1fcb114027b63c12b44022d81", "score": "0.51498437", "text": "public abstract void delete(Constant key, RecordId dataRecordId, boolean doLogicalLogging);", "title": "" }, { "docid": "4bb861feb17f82f08b1f28b51fa0a693", "score": "0.51432616", "text": "public static void purgeDeletedRuns()\r\n {\r\n // Delete from FoldChange\r\n deleteRunDependent(getTableInfoFoldChange());\r\n // Delete from CalibrationCurve\r\n deleteRunDependent(getTableInfoCalibrationCurve());\r\n\r\n // Delete from TransitionChromInfoAnnotation\r\n deleteTransitionChromInfoDependent(getTableInfoTransitionChromInfoAnnotation());\r\n // Delete from TransitionAreaRatio\r\n deleteTransitionChromInfoDependent(getTableInfoTransitionAreaRatio());\r\n\r\n // Delete from PrecursorChromInfoAnnotation\r\n deletePrecursorChromInfoDependent(getTableInfoPrecursorChromInfoAnnotation());\r\n // Delete from PrecursorAreaRatio\r\n deletePrecursorChromInfoDependent(getTableInfoPrecursorAreaRatio());\r\n\r\n // Delete from PeptideAreaRatio\r\n deleteGeneralMoleculeChromInfoDependent(getTableInfoPeptideAreaRatio());\r\n\r\n // Delete from TransitionChromInfo\r\n deleteGeneralTransitionDependent(getTableInfoTransitionChromInfo(), \"TransitionId\");\r\n // Delete from TransitionAnnotation\r\n deleteGeneralTransitionDependent(getTableInfoTransitionAnnotation(), \"TransitionId\");\r\n // Delete from TransitionLoss\r\n deleteGeneralTransitionDependent(getTableInfoTransitionLoss(), \"TransitionId\");\r\n // Delete from TransitionOptimization\r\n deleteGeneralTransitionDependent(getTableInfoTransitionOptimization(), \"TransitionId\");\r\n // Delete from MoleculeTransition\r\n deleteGeneralTransitionDependent(getTableInfoMoleculeTransition(), \"TransitionId\");\r\n // Delete from Transition\r\n deleteGeneralTransitionDependent(getTableInfoTransition(), \"Id\");\r\n\r\n //Delete GeneralTransition\r\n deleteGeneralPrecursorDependent(getTableInfoGeneralTransition(), \"GeneralPrecursorId\");\r\n // Delete from PrecursorChromInfo\r\n deleteGeneralPrecursorDependent(getTableInfoPrecursorChromInfo(), \"PrecursorId\");\r\n // Delete from PrecursorAnnotation\r\n deleteGeneralPrecursorDependent(getTableInfoPrecursorAnnotation(), \"PrecursorId\");\r\n // Delete from PrecursorLibInfo\r\n deleteGeneralPrecursorDependent(getTableInfoPrecursorLibInfo(), \"PrecursorId\");\r\n // Delete from Precursor\r\n deleteGeneralPrecursorDependent(getTableInfoPrecursor(), \"Id\");\r\n //Delete from MoleculePrecursor\r\n deleteGeneralPrecursorDependent(getTableInfoMoleculePrecursor(), \"Id\");\r\n\r\n //Delete GeneralPrecursor\r\n deleteGeneralMoleculeDependent(getTableInfoGeneralPrecursor(), \"GeneralMoleculeId\");\r\n // Delete from GeneralMoleculeAnnotation\r\n deleteGeneralMoleculeDependent(getTableInfoGeneralMoleculeAnnotation(), \"GeneralMoleculeId\");\r\n // Delete from GeneralMoleculeChromInfo\r\n deleteGeneralMoleculeDependent(getTableInfoGeneralMoleculeChromInfo(), \"GeneralMoleculeId\");\r\n\r\n // Delete from PeptideStructuralModification\r\n deleteGeneralMoleculeDependent(getTableInfoPeptideStructuralModification(), \"PeptideId\");\r\n // Delete from PeptideIsotopeModification\r\n deleteGeneralMoleculeDependent(getTableInfoPeptideIsotopeModification(), \"PeptideId\");\r\n // Delete from Molecule\r\n deleteGeneralMoleculeDependent(getTableInfoMolecule(), \"Id\");\r\n // Delete from Peptide\r\n deleteGeneralMoleculeDependent(getTableInfoPeptide(), \"Id\");\r\n\r\n //Delete from GeneralMolecule\r\n deletePeptideGroupDependent(getTableInfoGeneralMolecule());\r\n // Delete from Protein\r\n deletePeptideGroupDependent(getTableInfoProtein());\r\n // Delete from PeptideGroupAnnotation\r\n deletePeptideGroupDependent(getTableInfoPeptideGroupAnnotation());\r\n\r\n // Delete from sampleFile\r\n deleteReplicateDependent(getTableInfoSampleFile());\r\n // Delete from ReplicateAnnotation\r\n deleteReplicateDependent(getTableInfoReplicateAnnotation());\r\n // Delete from QCMetricExclusion\r\n deleteReplicateDependent(getTableInfoQCMetricExclusion());\r\n\r\n // Delete from IsolationWindow\r\n deleteIsolationSchemeDependent(getTableInfoIsolationWindow());\r\n\r\n // Delete from MeasuredDriftTime\r\n deleteDriftTimePredictionSettingsDependent(getTableInfoMeasuredDriftTime());\r\n\r\n // Delete from PeptideGroup\r\n deleteRunDependent(getTableInfoPeptideGroup());\r\n // Delete from Replicate\r\n deleteRunDependent(getTableInfoReplicate());\r\n // Delete from TransitionInstrumentSettings\r\n deleteRunDependent(getTableInfoTransInstrumentSettings());\r\n // Delete from Instrument\r\n deleteRunDependent(getTableInfoInstrument());\r\n // Delete from RetentionTimePredictionSettings\r\n deleteRunDependent(getTableInfoRetentionTimePredictionSettings());\r\n // Delete from DriftTimePredictionSettings\r\n deleteRunDependent(getTableInfoDriftTimePredictionSettings());\r\n\r\n // Delete from PredictorSettings and Predictor\r\n // This has to be done BEFORE deleting from TransitionPredictionSettings and\r\n // AFTER deleting from Replicate (\r\n deleteTransitionPredictionSettingsDependent();\r\n // Delete from TransitionPredictionSettings\r\n deleteRunDependent(getTableInfoTransitionPredictionSettings());\r\n\r\n // Delete from TransitionFullScanSettings\r\n deleteRunDependent(getTableInfoTransitionFullScanSettings());\r\n // Delete from IsotopeEnrichment (part of Full Scan settings)\r\n deleteRunDependent(getTableInfoIsotopeEnrichment());\r\n // Delete from ModificationSettings\r\n deleteRunDependent(getTableInfoModificationSettings());\r\n // Delete from RunStructuralModification\r\n deleteRunDependent(getTableInfoRunStructuralModification());\r\n // Delete from RunIsotopeModification\r\n deleteRunDependent(getTableInfoRunIsotopeModification());\r\n // Delete from IsotopeLabel\r\n deleteRunDependent(getTableInfoIsotopeLabel());\r\n // Delete from LibrarySettings\r\n deleteRunDependent(getTableInfoLibrarySettings());\r\n // Delete from SpectrumLibrary\r\n deleteRunDependent(getTableInfoSpectrumLibrary());\r\n // Delete from RunEnzyme\r\n deleteRunDependent(getTableInfoRunEnzyme());\r\n // Delete from AnnotationSettings\r\n deleteRunDependent(getTableInfoAnnotationSettings());\r\n // Delete from GroupComparisons\r\n deleteRunDependent(getTableInfoGroupComparisonSettings());\r\n // Delete from CalibrationCurve\r\n deleteRunDependent(getTableInfoQuantificationSettings());\r\n // Delete from IsolationScheme\r\n deleteRunDependent(getTableInfoIsolationScheme());\r\n\r\n // Delete from runs\r\n execute(\"DELETE FROM \" + getTableInfoRuns() + \" WHERE Deleted = ?\", true);\r\n\r\n // Remove any cached results for the deleted runs\r\n removeCachedResults();\r\n }", "title": "" }, { "docid": "983c6f7705e8d60fcc825c73d607493c", "score": "0.5130289", "text": "@DELETE\r\n public void delete() {\r\n }", "title": "" }, { "docid": "e95324290aab463096be4c81c02a3c58", "score": "0.512311", "text": "@Override\r\n\tpublic void delete() {\n\t\t\r\n\t}", "title": "" }, { "docid": "88fd8eb9e29201a5d22e3ba33696de70", "score": "0.51177007", "text": "@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"delete method\");\n\t}", "title": "" }, { "docid": "568bf5738cad1336f15fff0f3568d940", "score": "0.51160157", "text": "public void navigationEntriesDeleted() {}", "title": "" }, { "docid": "78c47710f02bc34844ced880a53435aa", "score": "0.51151115", "text": "@Override\n\tpublic boolean delete(Order order) throws DataAccessException {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2952d36b6c5726721963b84e32242307", "score": "0.5093364", "text": "public void delete() {\n\t\tgetPurchaseorder().updateAmountTotal(getAmount().negate());\n\t\tgetPurchaseorder().getBean().getLineitems().remove(getBean());\n\t\tHibernateFactory.session.delete(lineitem);\n\t}", "title": "" }, { "docid": "8843e3ae4fe4322806d9a2bdec1a71e6", "score": "0.5092888", "text": "public void delete() {\n \r\n }", "title": "" }, { "docid": "b0c394765310fbebb17745d35168cfd2", "score": "0.5091938", "text": "@Override\r\n\tpublic void delete() {\n\t}", "title": "" }, { "docid": "96a20a28cb85c50e1995d855d96e266f", "score": "0.5089438", "text": "@Override\n\tpublic void delete() {\n\n\t}", "title": "" }, { "docid": "2336f94ca313a872056332f280e4d972", "score": "0.50870925", "text": "public void delete()\n\t{\n\n\t}", "title": "" }, { "docid": "ed05192c211bae09377cd688ed050981", "score": "0.5086234", "text": "public void delete()\n\t{\n\t}", "title": "" }, { "docid": "f2a3a37b46b26bf32a87ab350eaf38b3", "score": "0.50851166", "text": "@Override\r\n\tpublic void deleteCases(Collection<CBRCase> arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "9799fcabd23ff05d960d5e8bec4d261d", "score": "0.50850374", "text": "@Override\n\tpublic void deleteCustomer(Customer c) {\n\n\t}", "title": "" }, { "docid": "0e255f7cf21c31148dd874271976ab07", "score": "0.5081274", "text": "@Override\r\n\tpublic boolean deleteSpecific(String clause) throws Exception {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "924c3cbd687ff3e8b98f22a4261415c2", "score": "0.5077607", "text": "@Override\r\n\tpublic boolean delete(OrderVO no) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "aacd7723cfa952fdf4ca1ac081d3a374", "score": "0.50678945", "text": "@Override\n\tpublic void delete() {\n\t\t\n\t}", "title": "" }, { "docid": "aacd7723cfa952fdf4ca1ac081d3a374", "score": "0.50678945", "text": "@Override\n\tpublic void delete() {\n\t\t\n\t}", "title": "" }, { "docid": "aacd7723cfa952fdf4ca1ac081d3a374", "score": "0.50678945", "text": "@Override\n\tpublic void delete() {\n\t\t\n\t}", "title": "" }, { "docid": "aacd7723cfa952fdf4ca1ac081d3a374", "score": "0.50678945", "text": "@Override\n\tpublic void delete() {\n\t\t\n\t}", "title": "" }, { "docid": "aacd7723cfa952fdf4ca1ac081d3a374", "score": "0.50678945", "text": "@Override\n\tpublic void delete() {\n\t\t\n\t}", "title": "" }, { "docid": "23e0be62d19a17c7cee0565946b3c06a", "score": "0.50671375", "text": "public void markZeroRelCapCongTriggerDelete() throws JNCException {\n markLeafDelete(\"zeroRelCapCongTrigger\");\n }", "title": "" }, { "docid": "62c6c0f3084c419f583a06e4fbb29942", "score": "0.5065745", "text": "@Override\n\tpublic void delete() {\n\t}", "title": "" }, { "docid": "9ebf66829582edb28089bf95d4aa3dc2", "score": "0.5061963", "text": "@Override\n\tpublic void delete(Compte o) {\n\t\t\n\t}", "title": "" }, { "docid": "6ade3dd5ffe4070815a9f8d4b98d063a", "score": "0.5051561", "text": "@Override\n\tpublic boolean delete(PlanningSalle obj) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7a299ba22f3c7fb10a8a01ff64333559", "score": "0.50479245", "text": "public void delete() {\n }", "title": "" }, { "docid": "22b0562db764fa32a3ae22239ac68a65", "score": "0.5045027", "text": "public boolean hasDependentCriterion(final int index) {\n return false;\n }", "title": "" }, { "docid": "60c4561819ebf12891320eb61a6139f1", "score": "0.5042195", "text": "@Override\n\tpublic Integer logicDelete(Serializable id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cf6a3b9fc733fbc01a337f3fcad14104", "score": "0.5041251", "text": "@Override\n\tpublic void transaccion_eliminar(Tratamiento trat) {\n\t\t\n\t}", "title": "" }, { "docid": "2d6cbc98e56e17f2633c6ddab5c7ef44", "score": "0.50305945", "text": "@Override\n public abstract void doDelete(PersistentImpl persistent) throws Exception;", "title": "" }, { "docid": "67c4846e63ba08d4596b50f0a4f8d032", "score": "0.50248665", "text": "@DELETE\n public void delete() {\n stop();\n }", "title": "" }, { "docid": "92926cd9749a0e25b8d3391183a59d37", "score": "0.50204676", "text": "int deleteByExample(DistributionProductExample example);", "title": "" }, { "docid": "550ee2ee84ee78a5123014f2a89b49cd", "score": "0.5011054", "text": "void deleteFiles() {\n boolean needsDestroy = deleted.compareAndSet(false, true);\n if (needsDestroy) {\n getOplogSet().removeOverflow(this);\n deleteFile();\n }\n }", "title": "" }, { "docid": "014445283566775885ebb1425c2159b0", "score": "0.49926558", "text": "@Override\n\tpublic void deleteSeries(Series series) {\n\t\t\n\t}", "title": "" }, { "docid": "bc319b9d88f650626dd186eb40d26e32", "score": "0.498052", "text": "public void removed() {\n\t\t\n\t}", "title": "" }, { "docid": "05aa79eaf43d754c56689aec2db34588", "score": "0.49769488", "text": "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del resultado del partido\");\r\n\t}", "title": "" }, { "docid": "a089994168be01b1ecf71eb1e76f2e07", "score": "0.49769458", "text": "@Override\n\tpublic void delOrderSon(OrderSon orderSon) {\n\t\t\n\t}", "title": "" }, { "docid": "c004085ec8d2b9215a823c84f75e1ee4", "score": "0.4972602", "text": "@Override\n\tpublic int deleteById(int personEvaluation_ID) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "0a6d3be740d0edd19ac4f4aac952eb8a", "score": "0.49700326", "text": "protected abstract void onElementDeleted(EObject element);", "title": "" }, { "docid": "513bfc5b0f10ed83d1dcb50f0bed2840", "score": "0.4967244", "text": "public DeleteAction(IWorkbenchPart part) {\n super(part);\n setLazyEnablementCalculation(false);\n }", "title": "" }, { "docid": "397b3ae084ca2f8313de1fae99989ed0", "score": "0.49672312", "text": "@Override\n\tpublic void delete(final boolean arg0, final IProgressMonitor arg1) throws JavaModelException {\n\n\t}", "title": "" }, { "docid": "ea33e087258ca518b6258c4f896efcac", "score": "0.4965851", "text": "public boolean dependsOn(Variable x) {\r\n return false;\r\n }", "title": "" }, { "docid": "a38488a4433e5e0948ace5b12f6396a7", "score": "0.49648568", "text": "@Override\r\n\tpublic void deleteAllOrders() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0594ed9685670e66a8b82a66b4584c83", "score": "0.49626762", "text": "abstract boolean supportsDirectColumnDeletion();", "title": "" }, { "docid": "a8e13ab10fba6b04a3be33f8790c665f", "score": "0.49576405", "text": "@Override\r\n\tpublic void delete(PessoaFisica t) {\n\t\t\r\n\t}", "title": "" }, { "docid": "91643133d284520d8cfd8610603f63c5", "score": "0.4957486", "text": "public void delete()\n {\n }", "title": "" }, { "docid": "d38aae6e947b448cff8d434d340ce77a", "score": "0.49507838", "text": "@Override\n\tpublic void deleteProcess(String[] chk) {\n\t\tdao.delete(chk);\n\t}", "title": "" }, { "docid": "72d3a524b7e36e00fa3ea505cff91fef", "score": "0.49492982", "text": "public final void do_delete () throws Exception {\n\t\t\tif (oafProducts != null) {\n\t\t\t\tdeleteOafProducts (oafProducts, keep, eventNetwork, eventCode, isReviewed);\n\t\t\t}\n\t\t\treturn;\n\t\t}", "title": "" }, { "docid": "5ae0e34303ee7a1e9f77d8d279f27495", "score": "0.49490693", "text": "abstract public boolean delete();", "title": "" }, { "docid": "37e5729d3c5f9d9f62b3d5c8b3e5ee52", "score": "0.49451151", "text": "boolean getDeleteConditionNull();", "title": "" }, { "docid": "b6ef7620256041fca45a9090d18abc0f", "score": "0.4937142", "text": "public void deleteBudget(Budget budget_1);", "title": "" }, { "docid": "f78c1919381cef944c953c2a871fafc8", "score": "0.4933988", "text": "default void deleteAll() {\n return;\n }", "title": "" }, { "docid": "c06b38410323079a0a3d6e3ae052f331", "score": "0.49282077", "text": "protected void deleteWithoutCommit(int activationDepth) {\n \t\ttry {\n \t\t\t// 1 is the maximal depth of all getter functions. You have to adjust this when introducing new member variables.\n \t\t\tcheckedActivate(activationDepth);\n \t\t\tcheckedDelete(this);\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\trollbackAndThrow(e);\n \t\t}\n \t}", "title": "" }, { "docid": "c2c35d56c993bcec6995fd059788947e", "score": "0.49280977", "text": "@Override\n\tpublic String deleteByCondition(FamilytraceabilityExample con, Model m) throws Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3b6967d69aeb6a0e149c9a85215ddd61", "score": "0.49249604", "text": "@Override\n\tpublic void delete(Formation arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "ea1924010b0f5458032208675f79dda2", "score": "0.49244547", "text": "@Override\n protected void handleDependenciesBeforeDelete(EnderecoEntity endereco) {\n \n }", "title": "" }, { "docid": "1195f36d797d56f6d5d92cefc9fe5971", "score": "0.49190775", "text": "@Override\n\tpublic void deleteCustomer(Customer customer) {\n\t\t\n\t}", "title": "" }, { "docid": "060402de60ca0279531b7e6f9e47c737", "score": "0.4915616", "text": "void markSupplierAsDeletedPerSolId(long solId);", "title": "" }, { "docid": "6862457ec943a7cca4ee4c26ad7f3c7f", "score": "0.49144948", "text": "@Override public void delete() {\n\ttry {\n\t deleter.deleteData();\n\t deleter.deleteIndex();\n\t deleter.deleteBloomFilter();\n\t} catch(IOException e) {\n\t e.printStackTrace();\n\t}\n }", "title": "" }, { "docid": "df13876cfc2dd3cf0fde4dcafc2c6413", "score": "0.49039745", "text": "public void processDeleteCompany_notRestricted( Company company );", "title": "" }, { "docid": "8bdcf611aca4b90576351183ca869f01", "score": "0.48998952", "text": "void markDeleted();", "title": "" }, { "docid": "5994c2b9024bc7e66ce118728e46b480", "score": "0.48967814", "text": "default void doPreDeleteWorkflows(int tenantId) throws WorkflowException {\n\n }", "title": "" }, { "docid": "1786a29d06a275afe36ca7834b61c448", "score": "0.48964936", "text": "public void delete(){\n }", "title": "" }, { "docid": "371c5fea46e305b3df5b3c426b4b65cb", "score": "0.48962492", "text": "public void prepareForDeletion() \n\t\t\t\tthrows model.ConsistencyException, PersistenceException{\n\n\t}", "title": "" }, { "docid": "14d15fe52bbb877577538c1bf1e57d8e", "score": "0.48954985", "text": "@Override\n\tpublic Long delete() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bde651468d4217900eb9d77281e07504", "score": "0.48920652", "text": "public void delete() \n\t\t\t\tthrows model.ConsistencyException, PersistenceException{\n\n\t}", "title": "" }, { "docid": "a217c4c64de17ceea56a546268e228ca", "score": "0.48898298", "text": "@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}", "title": "" }, { "docid": "ea52cb599e66e9e89eb6e1fc131adf52", "score": "0.48891106", "text": "public void markOperDelete() throws JNCException {\n markLeafDelete(\"oper\");\n }", "title": "" }, { "docid": "087e743ce571889ce11962b2546c7409", "score": "0.48858646", "text": "@Override\n\tpublic void delete(Serializable id) {\n\t\tupdateDelFlag(id, DataEntity.DEL_FLAG_DELETE);\n\t}", "title": "" }, { "docid": "a3e69f3e27dc6ac11fb1926a3d713c31", "score": "0.4885268", "text": "@Override\r\n\tpublic void delete(WtHitungLembur arg0) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "053442cc0905a73943a22519bcf57a92", "score": "0.48820448", "text": "@Override\r\n\tpublic void excluir() {\n\r\n\t}", "title": "" }, { "docid": "ea726ad9b8c8af474048564be1ebfb79", "score": "0.48815334", "text": "boolean hasDeleteCriteria();", "title": "" } ]
c3eae6810817f8e4a50f9495659d1a72
Constructs a binary member.
[ { "docid": "523854d2a9b8fbf442c85b21bb844382", "score": "0.71664685", "text": "protected BinaryMember(int type, IJavaElement parent, String name) {\r\n\tsuper(type, parent, name);\r\n}", "title": "" } ]
[ { "docid": "242509d15101e8fe8ba14c2bee53de69", "score": "0.6420714", "text": "public Member() {\r\n\t\tthis(\"\", \"\", \"\", \"\", \"\", \"\", \"\");\r\n\t}", "title": "" }, { "docid": "4e1a0776da2a01b6372783494b0229a7", "score": "0.62575465", "text": "public Member() {\n\t\tthis(\"Member\", null);\n\t}", "title": "" }, { "docid": "e2abdddb03fe44a2ed764357ff987aa2", "score": "0.60910845", "text": "public Builder setMemberBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n member_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d6a92ed5b6fab5320a574d59a80570c3", "score": "0.6072567", "text": "public Member(){\n internalID++;\n this.internalID = internalCount;\n this.name = DEFAULT_NAME;\n this.taxPayerID = DEFAULT_TAX_PAYER_ID;\n this.dateOfBirth = DEFAULT_DATE_OF_BIRTH;\n }", "title": "" }, { "docid": "5c46f8452af4f60543f7b4cdffdf3b0b", "score": "0.60240555", "text": "public Member() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "119130bc5f6917b8ff854d651b1d0a6d", "score": "0.5923495", "text": "JvmMember createJvmMember();", "title": "" }, { "docid": "4d9b35b6bb57515fac55aaf47a0d77d3", "score": "0.58951735", "text": "private SignedBinary () {}", "title": "" }, { "docid": "ee78886f89c0faa726d0d23203c1fea1", "score": "0.57419884", "text": "public BitField(){\n\t\tthis(0);\n\t}", "title": "" }, { "docid": "9d0bbc008628c573a655a75a8c1b0b0c", "score": "0.5698378", "text": "public MemberName(Field fld) {\n this(fld, false);\n }", "title": "" }, { "docid": "fcd0433749633d5a734ef1599fe46e6a", "score": "0.5692982", "text": "public MemberRecord ()\n {\n }", "title": "" }, { "docid": "c6d86875b41e90464402a72d56bc1612", "score": "0.56376547", "text": "public com.google.protobuf.ByteString\n getMemberBytes() {\n Object ref = member_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n member_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "17fd020f5c5e357c2474fa7a9ba0a92a", "score": "0.56262326", "text": "public com.google.protobuf.ByteString\n getMemberBytes() {\n Object ref = member_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n member_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "78eaaa4f4df8b245a83f0f2ca29f0bfc", "score": "0.5613163", "text": "private Member(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "e8ec2ea465c62cc54de85eeab7f70401", "score": "0.55771744", "text": "public Member create() {\n\n\t\tfinal Authority authority = new Authority();\n\t\tauthority.setAuthority(\"MEMBER\");\n\t\tMember res = new Member();\n\n\t\tUserAccount userAccount = this.userAccountService.create(\"MEMBER\");\n\n\t\tres.setUserAccount(userAccount);\n\n\t\treturn res;\n\t}", "title": "" }, { "docid": "cae339c02b67fb69cd8c76bd98470e28", "score": "0.55114114", "text": "public MemberGenerator ()\n {\n }", "title": "" }, { "docid": "708b5fa232f4ecc0e08fff37c6a3b4a7", "score": "0.5505874", "text": "public protobuf.clazz.ClubMsgProto.ClubAccountProto.Builder getMemberBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getMemberFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "dff23610ac1f735cb55502b080c039e8", "score": "0.5498192", "text": "MemberBuilder(CharSequence name, T type, PoolHelper<S, T, E> poolHelper, TypeHelper<S, T> typeHelper) {\n super(poolHelper, typeHelper);\n this.name = name;\n this.desc = type;\n }", "title": "" }, { "docid": "248906ab6ea33f683a713cccc300fc5b", "score": "0.54726267", "text": "private PBDptMember(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "90bc5cb85ff8e4e148c2d51fb057be74", "score": "0.54694664", "text": "private MemberIdentity(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "3cb6db2f0a247cf0c17f93ab6a0099da", "score": "0.5415128", "text": "public com.yc.inter.websocket.protobuf.WwCmdPb.Conversation.Member.Builder getMemberBuilder(\n int index) {\n return getMemberFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "79ed09b2659836f217fed21c4ebe3f08", "score": "0.541064", "text": "public com.yc.inter.websocket.protobuf.WwCmdPb.Conversation.Member.Builder addMemberBuilder() {\n return getMemberFieldBuilder().addBuilder(\n com.yc.inter.websocket.protobuf.WwCmdPb.Conversation.Member.getDefaultInstance());\n }", "title": "" }, { "docid": "e44d3ca31fc9502be188415c564d47c2", "score": "0.5402735", "text": "public Member(String name, String taxPayerID, String dateOfBirth){\n internalCount++;\n this.internalID = internalCount;\n this.name = name;\n this.taxPayerID = taxPayerID;\n this.dateOfBirth = dateOfBirth;\n }", "title": "" }, { "docid": "b5601ec7adf48c2615981b27eaead04d", "score": "0.5349647", "text": "SimpleType createSimpleType();", "title": "" }, { "docid": "b5601ec7adf48c2615981b27eaead04d", "score": "0.5349647", "text": "SimpleType createSimpleType();", "title": "" }, { "docid": "9e366dbe3296ba9f24b4d74150d48b8f", "score": "0.5334704", "text": "public Builder setMember(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n member_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6ae6ebce14d2a765b3d73a256f72f99d", "score": "0.53173554", "text": "public ByteWrapper() {\n\n\t}", "title": "" }, { "docid": "43c4d4c3cef4a873fa06e864f7e0f9a7", "score": "0.52850634", "text": "public ClypeData() { this(\"Anon\", 0); }", "title": "" }, { "docid": "6a36d17ee8d63f020d284a1430933114", "score": "0.5281638", "text": "@Override\n\tpublic DatagramPacket generateMsg() {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tDataOutputStream dos = new DataOutputStream(baos);\n\n\t\ttry {\n\t\t\tdos.writeInt(MessageType.BOMBINIT.ordinal());\n\t\t\tdos.writeInt(b.getId());\n\t\t\tdos.writeInt(b.getPosX());\n\t\t\tdos.writeInt(b.getPosY());\n\t\t\tdos.writeBoolean(b.isGood());\n\t\t\tdos.writeInt(b.getDir().ordinal());\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\tbyte[] buf = baos.toByteArray();\n\t\tDatagramPacket dp = new DatagramPacket(buf, buf.length, new InetSocketAddress(NetServer.IP_ADDRESS, NetServer.UDP_PORT));\n\t\treturn dp;\n\t}", "title": "" }, { "docid": "cca36ddadeb56dea068ff65f6739e780", "score": "0.52648854", "text": "public Builder addMember(\n com.yc.inter.websocket.protobuf.WwCmdPb.Conversation.Member.Builder builderForValue) {\n if (memberBuilder_ == null) {\n ensureMemberIsMutable();\n member_.add(builderForValue.build());\n onChanged();\n } else {\n memberBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "697240c12c7f8f37163b5297a2dd185a", "score": "0.52369", "text": "@Override\n public String toString() {\n return \"VersionMember: version=\" + version + \", member=\" + member;\n }", "title": "" }, { "docid": "1dfed3b18a0e9d4de743776310b4bc4d", "score": "0.52344704", "text": "private Member() {\r\n initFields();\r\n }", "title": "" }, { "docid": "4e48117278ee34e149e21ff63ae83e37", "score": "0.5232936", "text": "public ToBinary() {\n initComponents();\n }", "title": "" }, { "docid": "b77c4dc5821551b9a21745ee7caa14f4", "score": "0.52186954", "text": "private ClubMemberRecord(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "1fbd5ba65528b059941996051a08c5f8", "score": "0.52185506", "text": "public XSHexBinary(String x) {\n \t\t_value = x;\n \t}", "title": "" }, { "docid": "33e57d456d51bfbcc1fad602f3b8fdce", "score": "0.5199851", "text": "public Byte getMemberType() {\n return memberType;\n }", "title": "" }, { "docid": "4f36d93965108538e97b5a9da0091f5f", "score": "0.51892865", "text": "protected PSBinaryValue()\n { \n }", "title": "" }, { "docid": "737b42711e92deb4782e4773274e0a08", "score": "0.51869696", "text": "public Builder setRoomMemberVersionBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n roomMemberVersion_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "867b44922cc45526129c0a25383200a4", "score": "0.5181066", "text": "SimpleAttribute createSimpleAttribute();", "title": "" }, { "docid": "050a9303ac462bd5aad8fdf3db41a67e", "score": "0.51556957", "text": "public Builder addMember(\n int index, com.yc.inter.websocket.protobuf.WwCmdPb.Conversation.Member.Builder builderForValue) {\n if (memberBuilder_ == null) {\n ensureMemberIsMutable();\n member_.add(index, builderForValue.build());\n onChanged();\n } else {\n memberBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "1cbbb533090f219ae7875e00d4dc58a0", "score": "0.5140144", "text": "public Member(String first, String last)\n {\n firstName = first;\n lastName = last; \n }", "title": "" }, { "docid": "747fa18c2b904db5f7192511630d5726", "score": "0.513976", "text": "public SimpleCodeGenerator() {\r\n this(DEFAULT_LENGTH);\r\n }", "title": "" }, { "docid": "8d6fe440d1ca7f4416708711036cf616", "score": "0.51341647", "text": "public abstract String binaryName();", "title": "" }, { "docid": "ccc7bc371a8c0ae1f06fe0d71ec51902", "score": "0.51170427", "text": "public Builder setMember(\n protobuf.clazz.ClubMsgProto.ClubAccountProto.Builder builderForValue) {\n if (memberBuilder_ == null) {\n member_ = builderForValue.build();\n onChanged();\n } else {\n memberBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "title": "" }, { "docid": "fe26a33770b31cf26d9a12fb676ae554", "score": "0.50995356", "text": "public BasePacket() {}", "title": "" }, { "docid": "db7b304d89f7915de07ee35e13126959", "score": "0.5090029", "text": "public Builder setMember(\n int index, com.yc.inter.websocket.protobuf.WwCmdPb.Conversation.Member.Builder builderForValue) {\n if (memberBuilder_ == null) {\n ensureMemberIsMutable();\n member_.set(index, builderForValue.build());\n onChanged();\n } else {\n memberBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "474b0ec8324faab5d4add0d0a6a8559a", "score": "0.50867456", "text": "public Builder addMember(\n int index, com.yc.inter.websocket.protobuf.WwCmdPb.Conversation.Member value) {\n if (memberBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureMemberIsMutable();\n member_.add(index, value);\n onChanged();\n } else {\n memberBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "5dd2e918be8afd3f790088666e310eef", "score": "0.5086107", "text": "public @NonNull VerificationToken build() {\n checkNotUsed();\n mBuilderFieldsSet |= 0x80; // Mark builder used\n\n VerificationToken o = new VerificationToken(\n mAttestationProfile,\n mLocalBindingType,\n mRequirements,\n mVerificationResult,\n mVerificationTime,\n mHmac,\n mUid);\n return o;\n }", "title": "" }, { "docid": "72e011e2fe34ffce342ed5978f1cb58e", "score": "0.5083066", "text": "private Packet() {\n\n\t}", "title": "" }, { "docid": "000bfa866fe5ddd0152fb9f68ece18d9", "score": "0.50777614", "text": "@Test\n public void createFamilyMember() throws Exception {\n\t\tFamilyMember familiar = new FamilyMember(GC.FM_BLACK);\n\t\tassertTrue(familiar.getColor().equals(GC.FM_BLACK));\n\t\tassertTrue(familiar.getOwner() == null);\n\t\tassertTrue(familiar.getValue() == 0);\n }", "title": "" }, { "docid": "5344f302d1ed3a60b7234fc7999a4663", "score": "0.50758505", "text": "public com.yc.inter.websocket.protobuf.WwCmdPb.Conversation.Member.Builder addMemberBuilder(\n int index) {\n return getMemberFieldBuilder().addBuilder(\n index, com.yc.inter.websocket.protobuf.WwCmdPb.Conversation.Member.getDefaultInstance());\n }", "title": "" }, { "docid": "0dcc141f256393a5e6f49306cac8e6bb", "score": "0.5072353", "text": "public MemberStatisticsMessage() {\n super(true);\n }", "title": "" }, { "docid": "167defc37e7675306051e1bdd1fb4556", "score": "0.5061816", "text": "public com.mogujie.tt.proto.BBProtocol.PBDptMember.Builder addMembersBuilder() {\n return getMembersFieldBuilder().addBuilder(\n com.mogujie.tt.proto.BBProtocol.PBDptMember.getDefaultInstance());\n }", "title": "" }, { "docid": "9bdcbbf7829a405c38176675ffe9d2fd", "score": "0.50503796", "text": "protected IBinaryMethod getBinaryMethod(TypeStructureEntry tsEntry) throws NotPresentException {\r\n\tIBinaryType t = fState.getBinaryType(getTypeStructureEntry());\r\n\tIBinaryMethod m = BinaryStructure.getConstructor(t, fHandle.fSignature);\r\n\tif (m == null) {\r\n\t\tthrow new NotPresentException();\r\n\t} else {\r\n\t\treturn m;\r\n\t}\r\n}", "title": "" }, { "docid": "beff955e550058dd5f82cc73b0b0de13", "score": "0.5049519", "text": "public Member(java.lang.String alias) {\n\t\tthis(alias, com.clicdirectory.tables.Member.MEMBER);\n\t}", "title": "" }, { "docid": "34768902674025b0f052ccbf71c02521", "score": "0.50421077", "text": "public BM() {}", "title": "" }, { "docid": "340383a75f538c586e5af8ef81b30629", "score": "0.50375706", "text": "public ClypeData( int type ) { this(\"Anon\", type); }", "title": "" }, { "docid": "ecd768ef4ff9c537848b29c848754728", "score": "0.50347537", "text": "public io.dstore.values.StringValue.Builder getFromCommunityMemberBuilder() {\n \n onChanged();\n return getFromCommunityMemberFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "b3fbd90e2a3b4bf2130150d0e9db6566", "score": "0.5023928", "text": "public Object newInstance() {\n int n = extra_genes.newInt();\n return new BitArray(length + n * delta_length, true);\n }", "title": "" }, { "docid": "4411cd730d985404276f366fc30adf70", "score": "0.50203556", "text": "public interface NetMember extends Comparable<NetMember> {\n\n void setAttributes(MemberAttributes args);\n\n MemberAttributes getAttributes();\n\n InetAddress getInetAddress();\n\n int getPort();\n\n void setPort(int p);\n\n boolean isMulticastAddress();\n\n short getVersionOrdinal();\n\n /**\n * return a flag stating whether the member has network partition detection enabled\n *\n * @since GemFire 5.6\n */\n boolean isNetworkPartitionDetectionEnabled();\n\n void setNetworkPartitionDetectionEnabled(boolean enabled);\n\n /**\n * return a flag stating whether the member can be the membership coordinator\n *\n * @since GemFire 5.6\n */\n boolean preferredForCoordinator();\n\n /**\n * Set whether this member ID is preferred for coordinator. This is mostly useful for unit tests\n * because it does not distribute this status to other members in the distributed system.\n *\n */\n void setPreferredForCoordinator(boolean preferred);\n\n byte getMemberWeight();\n\n void setVersion(Version v);\n\n int getProcessId();\n\n void setProcessId(int id);\n\n byte getVmKind();\n\n void setVmKind(int kind);\n\n int getVmViewId();\n\n void setVmViewId(int id);\n\n int getDirectPort();\n\n void setDirectPort(int port);\n\n String getName();\n\n void setName(String name);\n\n DurableClientAttributes getDurableClientAttributes();\n\n void setDurableClientAttributes(DurableClientAttributes attributes);\n\n String[] getGroups();\n\n void setGroups(String[] groups);\n\n /** whether this NetMember has additional data to be serialized as part of a DistributedMember */\n boolean hasAdditionalData();\n\n /** write identity information not known by DistributedMember instances */\n void writeAdditionalData(DataOutput out) throws IOException;\n\n /** read identity information not known by DistributedMember instances */\n void readAdditionalData(DataInput in) throws ClassNotFoundException, IOException;\n\n /** compare data that is not known to DistributedMember instances */\n int compareAdditionalData(NetMember other);\n\n /**\n * Return a unique string id for this member which is immutable and will not change during the\n * life of this member.\n */\n String getUniqueId();\n}", "title": "" }, { "docid": "bfec57af495a17852334e548b9141f98", "score": "0.5019587", "text": "@Deprecated\n public StructureMembers makeStructureMembers() {\n StructureMembers.Builder builder = StructureMembers.builder().setName(getShortName());\n for (Variable v2 : this.getVariables()) {\n StructureMembers.MemberBuilder m = builder.addMember(v2.getShortName(), v2.getDescription(), v2.getUnitsString(),\n v2.getDataType(), v2.getShape());\n if (v2 instanceof Structure) {\n m.setStructureMembers(((Structure) v2).makeStructureMembers());\n }\n }\n return builder.build();\n }", "title": "" }, { "docid": "6234f02e33815af2113348cf48248673", "score": "0.5019262", "text": "public CastMember(String name, String street, String city, String state, int zip, boolean director)\r\n\t{\r\n\t\tconnect= new Connect();\r\n\t\t\r\n\t\tthis.name = name;\r\n\t\tthis.address = street + \" \" + city + \" \" + state + \" \" + zip;\r\n\t\tthis.addressToAddToDB = street + \"$\" + city + \"$\" + state + \"$\" + zip;\r\n\t\tthis.director = director;\r\n\t}", "title": "" }, { "docid": "59cc3b066c210103d9e60254cd9cb014", "score": "0.5014532", "text": "public MemBNode(Object creator, String id) {\n\t\tsuper(id);\n\t\tthis.creator = creator;\n\t}", "title": "" }, { "docid": "e67e8a6dbaa5d54bc6424f4a6802467e", "score": "0.5007305", "text": "MemberName() { }", "title": "" }, { "docid": "f87a476d59d7812d71249d606714a0c4", "score": "0.5003641", "text": "public BinaryStrings(int n) {\n this.n = n;\n }", "title": "" }, { "docid": "0e59f34e72ee8addc3a048f1494acf8a", "score": "0.5002707", "text": "public Builder addMember(com.yc.inter.websocket.protobuf.WwCmdPb.Conversation.Member value) {\n if (memberBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureMemberIsMutable();\n member_.add(value);\n onChanged();\n } else {\n memberBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "1ed13e4e52eb5ca17fe807daa7ddd6b1", "score": "0.49986374", "text": "private Bits64() {\r\n }", "title": "" }, { "docid": "10740414e06b35b1952735f15d43359e", "score": "0.499803", "text": "public BasicUNode genNode()\n {\n if (nodeCap <= nodeTop + 1) {\n growNodes(nodeCap * 2);\n }\n BasicUNode n = new BasicUNode(this, nodeTop);\n nSlots.set(nodeTop, true);\n nodeCount++;\n nodes[nodeTop++] = n;\n nMods++;\n return n;\n }", "title": "" }, { "docid": "129e8a3c2ef8605d484654e6d4fe4a1b", "score": "0.49912426", "text": "private com.google.protobuf.SingleFieldBuilder<\n protobuf.clazz.ClubMsgProto.ClubAccountProto, protobuf.clazz.ClubMsgProto.ClubAccountProto.Builder, protobuf.clazz.ClubMsgProto.ClubAccountProtoOrBuilder> \n getMemberFieldBuilder() {\n if (memberBuilder_ == null) {\n memberBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n protobuf.clazz.ClubMsgProto.ClubAccountProto, protobuf.clazz.ClubMsgProto.ClubAccountProto.Builder, protobuf.clazz.ClubMsgProto.ClubAccountProtoOrBuilder>(\n member_,\n getParentForChildren(),\n isClean());\n member_ = null;\n }\n return memberBuilder_;\n }", "title": "" }, { "docid": "065504f83c60e30794251cf7b6e3b980", "score": "0.4984358", "text": "TPubType createTPubType(TPubType tPubType);", "title": "" }, { "docid": "1ea0f357088c00e92c92bb9e8b780c00", "score": "0.49797", "text": "public SmallPacket() {\n\n }", "title": "" }, { "docid": "0521f211ac6ef78300d8db58bae2f0ae", "score": "0.49741068", "text": "public ByteCodeOneParameter(){}", "title": "" }, { "docid": "2fbb8007579a71b655f67868c7a82466", "score": "0.49571773", "text": "Booleen createBooleen();", "title": "" }, { "docid": "25130fb22f9697fd5d6e3d485b583850", "score": "0.49532577", "text": "private BinaryKey(String name, BinaryMarshaller<T> marshaller) {\n super(name);\n checkArgument(name.endsWith(BINARY_HEADER_SUFFIX),\n \"Binary header is named %s. It must end with %s\",\n name, BINARY_HEADER_SUFFIX);\n checkArgument(name.length() > BINARY_HEADER_SUFFIX.length(), \"empty key name\");\n this.marshaller = checkNotNull(marshaller, \"marshaller is null\");\n }", "title": "" }, { "docid": "4f7fd9e030b1b5c4259a994c8d51a7a3", "score": "0.49473527", "text": "public String getMember() {\n Object ref = member_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n member_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "9046df1e17709fc96b07bddc2a68cce7", "score": "0.49459308", "text": "public com.mogujie.tt.proto.BBProtocol.PBDptMember.Builder getMembersBuilder(\n int index) {\n return getMembersFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "dfd84300b10479cc8318ab5fb2c874a2", "score": "0.49446413", "text": "public BasicBinaryTree(V val){\n //TODO implement this\n }", "title": "" }, { "docid": "92d32fd52310981b805c8f57a421e7b7", "score": "0.49438253", "text": "public Builder setMember(\n int index, com.yc.inter.websocket.protobuf.WwCmdPb.Conversation.Member value) {\n if (memberBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureMemberIsMutable();\n member_.set(index, value);\n onChanged();\n } else {\n memberBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "7613bdab9fc962624356a8464b496e19", "score": "0.49288452", "text": "Field createField();", "title": "" }, { "docid": "f78a152035e5fb6d31d3ac2913dbec6b", "score": "0.492593", "text": "protobuf.clazz.ClubMsgProto.ClubAccountProto getMember();", "title": "" }, { "docid": "9d07ed8ecdbc5261f481846cc529fa2b", "score": "0.4925598", "text": "public Builder setMemberIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n memberId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3c4b9c4c27ad61590b2e4b21154e0a8d", "score": "0.4925206", "text": "@Override\n public RegisterNamespaceTransaction build() {\n BigInteger maxFee = getMaxFee().orElseGet(\n () -> getMaxFeeCalculation(RegisterNamespaceTransaction.calculatePayloadSize(getNamespaceName().length())));\n // create transaction instance\n return new RegisterNamespaceTransaction(getNetworkType(), getVersion(), getDeadline(), maxFee, getSignature(),\n getSigner(), getTransactionInfo(), getNamespaceName(), getNamespaceId(), getDuration(), getParentId(),\n getNamespaceType());\n }", "title": "" }, { "docid": "66b37eb73f9c58d78c33c21f7d4e0eb7", "score": "0.49187398", "text": "public Member(String name, String phone, String email, int indexNumber, String role) {\n this.name = name;\n this.phone = phone;\n this.email = email;\n this.indexNumber = indexNumber;\n this.role = role;\n this.memberID = UUID.randomUUID().toString();\n }", "title": "" }, { "docid": "edf261eb812ea0904dd75b4d024dc576", "score": "0.49150643", "text": "public MemberName asConstructor() {\n switch (getReferenceKind()) {\n case REF_invokeSpecial: return clone().changeReferenceKind(REF_newInvokeSpecial, REF_invokeSpecial);\n case REF_newInvokeSpecial: return this;\n }\n throw new IllegalArgumentException(this.toString());\n }", "title": "" }, { "docid": "cfe2b022b8731a4f507e1137f760ef26", "score": "0.4912061", "text": "public Individual (Type type, Bit ... bits) {\n\t\tthis.type = type;\n\t\tthis.bits = bits;\n\t}", "title": "" }, { "docid": "c4b909e4dc662025920da04f202cf011", "score": "0.48996037", "text": "public MemberName(Method m) {\n this(m, false);\n }", "title": "" }, { "docid": "89ad4765792fb3ec635323f2a2dce671", "score": "0.48896763", "text": "private static SimpleMagicWordType createSimpleType(@Nonnull String name) {\r\n return new SimpleMagicWordType(name);\r\n }", "title": "" }, { "docid": "4c6a66a2c018520414a0faaee80f5f72", "score": "0.488283", "text": "private RaftMember nextMember(RaftMember.Type type) {\n return new TestMember(nextMemberId(), type);\n }", "title": "" }, { "docid": "d2cb42b792046c5f9b5c76eb5cec9e43", "score": "0.4881475", "text": "public Bin(String name)\n {\n myName = name;\n myContents = new ArrayList<BinItem>();\n }", "title": "" }, { "docid": "a8682c54a6528d74e29b530cd49a585c", "score": "0.48795047", "text": "public BasicBinaryTree(V val, BasicBinaryTree<V> child){\n //TODO implement this\n }", "title": "" }, { "docid": "b3869ec656a677c96d9fe1979577dd72", "score": "0.48788083", "text": "public void create(MemberVO bag) throws Exception {\n\t\tmy.insert(\"member.insert\", bag);\n\t}", "title": "" }, { "docid": "8d26e0216342b70a64f7304e18ef72da", "score": "0.48779663", "text": "public BFLogicalUnit() {\n \n }", "title": "" }, { "docid": "584b466878f4b9946a911cbb40b29ab4", "score": "0.48766568", "text": "public PBinarySerializer() {\n this(true);\n }", "title": "" }, { "docid": "9ccdca41a8f80b57fe4ff1fc8f02b228", "score": "0.48762602", "text": "protected BitSetUnifier createBitSetOfPieces() {\n\t\treturn getBitBoard().getBitSet();\n\t}", "title": "" }, { "docid": "ad3e7643143947ae31658e23879296b3", "score": "0.48696008", "text": "public ID(long lsb) {\n\tuuid = new UUID(0, lsb);\n }", "title": "" }, { "docid": "2cbdb258e91b7d0b37d82f837f2a619c", "score": "0.48663574", "text": "public Uint64()\n {\n super(LOWERBOUND, UPPERBOUND);\n }", "title": "" }, { "docid": "6d1aafebef6572b4d09a728c1ef76d6e", "score": "0.48656717", "text": "public void addMember(int memberID);", "title": "" }, { "docid": "b984905bb37eb898f08134bcfa4e0cd3", "score": "0.48655412", "text": "private SimpleMagicWordType(\r\n @Nonnull String name) {\r\n super(name, false, false, false, false);\r\n }", "title": "" }, { "docid": "9297bb046864b3af6d0e8bd697a89a1d", "score": "0.48651412", "text": "public Buns createRegularBun();", "title": "" }, { "docid": "24ed08541102276448057d8877f12f21", "score": "0.48633727", "text": "public WasmTask() {\n setFormat( OutputFormat.Binary );\n }", "title": "" }, { "docid": "321b14f37a4fa73c868117da39a02395", "score": "0.48582852", "text": "public io.dstore.values.StringValue.Builder getToCommunityMemberBuilder() {\n \n onChanged();\n return getToCommunityMemberFieldBuilder().getBuilder();\n }", "title": "" } ]
75ed92e3d241ee25442cb594b59d6fae
This method was generated by Abator for iBATIS. This method corresponds to the database table TB_VEHICLE_LABLE
[ { "docid": "2249eb8e33163d6aafa79ef569d75d2b", "score": "0.0", "text": "public static String fieldVId() {\n\t\treturn \"V_ID\";\n\t}", "title": "" } ]
[ { "docid": "491fde55878cecdac6baf2b82fd27c8f", "score": "0.71700716", "text": "public static String tableName() {\n\t\treturn \"TB_VEHICLE_LABLE\";\n\t}", "title": "" }, { "docid": "479c64f26a3c307450bb53390bfa84ca", "score": "0.61894643", "text": "public VehicleLable() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "67adb1d651fae421ef9202eedf61839f", "score": "0.58734787", "text": "@Override\n public List<Vehicle> listVehicles() {\n List<Vehicle> vehicles = new ArrayList<>();\n\n try {\n String sql = \"SELECT Plate, Type From Vehicle\";\n\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql);\n while (rs.next()) {\n Vehicle newVehicle = new Vehicle();\n newVehicle.setPlate(rs.getString(\"Plate\"));\n newVehicle.setType(TypeEnum.valueOf(rs.getString(\"Type\")));\n\n vehicles.add(newVehicle);\n }\n\n } catch (SQLException ex) {\n Logger.getLogger(Service.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return vehicles;\n }", "title": "" }, { "docid": "a42733567339afcc45f1166ae85fee47", "score": "0.55437124", "text": "public List<Vehicle> getVehicleData();", "title": "" }, { "docid": "950b6cd94e154a76c1225f0a0d4f7176", "score": "0.5476112", "text": "List<VehicleTripInfo> getVehicleList(long vehicleId);", "title": "" }, { "docid": "89b7bed0418cb9c9de5c98aa607bc65e", "score": "0.5471854", "text": "void createVehicle(BEVehicle vehicle) throws SQLException;", "title": "" }, { "docid": "de51fd17aa4294f96a2b31e963533ad2", "score": "0.5469142", "text": "public ArrayList<VehicleLane> getVehicleLanes() {\n\t\treturn vLanes;\n\t}", "title": "" }, { "docid": "02839f40890a4db6826d5c105f94f99c", "score": "0.5418268", "text": "public List<List<String>> findAllVehicle() {\n List<List<String>> allVehicleList = this.parkingLotList.stream()\n .map(parkingLot -> parkingLot.findAllVehicle())\n .collect(Collectors.toList());\n return allVehicleList;\n }", "title": "" }, { "docid": "f34e1bc8e9d6cb2a3bffa4f25d98efce", "score": "0.54122657", "text": "@Override\r\n\tpublic void assignVehicleToLane() {\r\n\t\tSystem.out.println(\"Parking a Bus\");\r\n\t\tif (capacityOfParkingLot() == 0){\r\n\t\t\t\t\tSystem.out.println(\"There isn't enough space for your vehicle. \\nParking Failed. Final State: \");\r\n\t\t\t\t}\r\n\t\telse{\r\n\t\tfor (int i = 0; i < getParkLot().length; i++) {\r\n\t\t\tfor (int j = 0; j < getParkLot()[i].length; j++) {\r\n\t\t\t\tif (numberToPark!=0 && !isOccupied(getParkLot()[i][j])\r\n\t\t\t\t\t\t&& !isOccupied(getParkLot()[i][j + 1])\r\n\t\t\t\t\t\t&& !isOccupied(getParkLot()[i][j + 2])\r\n\t\t\t\t\t\t&& !isOccupied(getParkLot()[i][j + 3])\r\n\t\t\t\t\t\t&& !isOccupied(getParkLot()[i][j + 4])) {\r\n\t\t\t\t\tgetParkLot()[i][j] = 'B';\r\n\t\t\t\t\tgetParkLot()[i][j + 1] = 'B';\r\n\t\t\t\t\tgetParkLot()[i][j + 2] = 'B';\r\n\t\t\t\t\tgetParkLot()[i][j + 3] = 'B';\r\n\t\t\t\t\tgetParkLot()[i][j + 4] = 'B';\r\n\t\t\t\t\tnumberToPark--;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "4d8198117ecf7f9ea88c6c3dad0e8922", "score": "0.5362171", "text": "public Cgg_veh_cilindraje(){}", "title": "" }, { "docid": "ecc75e028ba0343d501fe215b788285e", "score": "0.5258214", "text": "public List<String> getVehicleDetailByLotNumber() {\n List<String> vehicleList = new ArrayList();\n vehicleList = this.vehicles.stream()\n .filter(parkingTimeSlot -> parkingTimeSlot.getVehicle() != null)\n .filter((parkingTimeSlot -> (parkingTimeSlot.getDriverType() == DriverType.HANDICAP_DRIVER) ||\n (parkingTimeSlot.getDriverType() == VehicleType.SMALL_VEHICLE)))\n .map (parkingTimeSlot -> (parkingTimeSlot.getVehicle().getModelName()) + \" \" +\n (parkingTimeSlot.getVehicle().getNumberPlate()))\n .collect(Collectors.toList());\n return vehicleList;\n }", "title": "" }, { "docid": "e40dd3b12c6b50dfeff6572fb4060a97", "score": "0.5180093", "text": "public void setVehicle(Vehicle value) {\n this.vehicle = value;\n }", "title": "" }, { "docid": "5aa4cadbc67f55100efb84a4cc62123c", "score": "0.51530564", "text": "VehicleParkingLocation parkVehicle(final Vehicle vehicle) throws DbValidationException;", "title": "" }, { "docid": "53498055c9ce2c3a4bcef4372f325ca1", "score": "0.5105038", "text": "public void addVehicle(Vehicle vehicle) {\n // Tambahkan kendaraan ke list\n list.add(vehicle);\n }", "title": "" }, { "docid": "bf423702475a9e811fdf43e3f67b7412", "score": "0.5100524", "text": "@Override\n\tpublic List<TypesOfVehicle> listAlltypeOfVehicle() {\n\t\t\n\t\tList<TypesOfVehicle> vehicle_type = new ArrayList<>();\n\t\t\n\t\tString jpql = \"select v from TypesOfVehicle v\";\n\t\t\n\t\tvehicle_type=sf.getCurrentSession().createQuery(jpql, TypesOfVehicle.class).getResultList();\n\t\t\n\t\treturn vehicle_type;\n\t}", "title": "" }, { "docid": "9b758c74bb15473d6e9011e99b3a330e", "score": "0.50397813", "text": "public Vehicle(String plate) {\n this.plate = plate;\n this.id = -1;\n }", "title": "" }, { "docid": "c7a81eb480358cbbfd2bb8a340319cfe", "score": "0.5026343", "text": "long getVehicleId();", "title": "" }, { "docid": "30abf80ab1d0f3fe4a6c44ef6a9bd26b", "score": "0.5025933", "text": "public ArrayList<Vehicle> getVehicles() { return vehicles; }", "title": "" }, { "docid": "0f41a913a52a98688cca0bc954844898", "score": "0.50050217", "text": "google.maps.fleetengine.v1.Vehicle getVehicle();", "title": "" }, { "docid": "51fefdbc6b3aea1738330dd8488b24c0", "score": "0.49952284", "text": "private void loadtbl() throws SQLException {\n Mannager.MangerLevelEdu mn = new MangerLevelEdu();\n Vector<LevelEdu> ls = new Vector<>();\n ls = mn.getAllEdu();\n for (int i = 0; i < ls.size(); i++) {\n Vector row = new Vector<>();\n LevelEdu elementAt = ls.elementAt(i);\n row.add(elementAt.getId());\n row.add(elementAt.getName());\n model.addRow(row);\n }\n\n }", "title": "" }, { "docid": "4498c640b9269d4fe1095369cc0bcf90", "score": "0.49796724", "text": "Vehicles(){\n number_of_tires=4;\n }", "title": "" }, { "docid": "458a10b8d5f2e25b03896555dd29a256", "score": "0.49743822", "text": "@GetMapping(path = \"/vehicles\")\n public List<Vehicle> getVehicleList() {\n\n return vehicleService.getVehicles();\n }", "title": "" }, { "docid": "762f02deb5792be2b14ffd33130db618", "score": "0.49499717", "text": "public Vehicle getVehicle() {\n return vehicle;\n }", "title": "" }, { "docid": "74aca8337b9787baea8fe60971e34987", "score": "0.4947982", "text": "static ArrayList<String> getAllBusStops() throws SQLException {\n preparedStatement = connection.prepareStatement(\"select * from BusStops\");\n\n ArrayList<String> busStops = new ArrayList<>();\n ResultSet resultSet = preparedStatement.executeQuery();\n\n while(resultSet.next()) {\n busStops.add(resultSet.getString(2));\n }\n\n return busStops;\n }", "title": "" }, { "docid": "dc31e26d8f4e7b531a74c24cc3b11586", "score": "0.49192214", "text": "List<ParkingLevel> getParkingLotStatus() throws DbValidationException;", "title": "" }, { "docid": "ab91afa16993b35c02513b8db5b39849", "score": "0.49163544", "text": "public Vehicle getVehicle() {\n return vehicle;\n }", "title": "" }, { "docid": "a0f0dcd6f33b70ed6f06a853b3715ee9", "score": "0.49161115", "text": "public Vehicle(String plate, int id) {\n this.plate = plate;\n this.id = id;\n }", "title": "" }, { "docid": "e8b4ddcbda915b024d8f9b95276575f7", "score": "0.49068365", "text": "public LOV() {\n\t\tAppLog.begin();\n\t\ttry {\n\t\t\tAppLog.info(\"START::Loading LOV\");\n\t\t\tthis.zoneListMap = GetterDAO.getZoneListMap();\n\t\t\tthis.zoneList = GetterDAO.getZoneList();\n\t\t\tthis.mrNoList = GetterDAO.getMRNoList();\n\t\t\tthis.areaList = GetterDAO.getAreaList();\n\t\t\tthis.billWindowList = GetterDAO.getBillWIndowList();\n\t\t\tthis.meterReadStatusList = GetterDAO.getMeterReadStatusList();\n\t\t\tthis.mrdReadTypeLookup = GetterDAO.getMRDReadTypeList();\n\t\t\tthis.waterConnectionSizeList = GetterDAO\n\t\t\t\t\t.getWaterConnectionSizeList();\n\t\t\tthis.waterConnectionUseList = GetterDAO.getWaterConnectionUseList();\n\t\t\tthis.saTypeList = GetterDAO.getSATypeList();\n\t\t\tthis.DJBMeterTypeList = GetterDAO.getDJBMeterTypeList();\n\t\t\tthis.manufacturerDetailsList = GetterDAO\n\t\t\t\t\t.getManufacturerDetailsList();\n\t\t\tthis.modelDetailsList = GetterDAO.getModelDetailsList();\n\t\t\t// START: On 20-JAN-2015 Rajib added below lines to populate Area\n\t\t\t// Details (PIN code, Locality and SubLocality meeting)\n\t\t\tthis.areaDetails = getLocalityDetails();\n\t\t\tthis.proofOfIdTypeListMap = (HashMap<String, String>) NewConnFileEntryDAO\n\t\t\t\t\t.getDocAttchList(DJBConstants.PROOF_OF_ID_DOC_TYPE);\n\t\t\tthis.propertyOwnDocListMap = (HashMap<String, String>) NewConnFileEntryDAO\n\t\t\t\t\t.getDocAttchList(DJBConstants.PROPERTY_OWNERSHIP_DOC_TYPE);\n\t\t\tthis.proofOfResListMap = (HashMap<String, String>) NewConnFileEntryDAO\n\t\t\t\t\t.getDocAttchList(DJBConstants.PROOF_OF_RES_DOC_TYPE);\n\t\t\t// END: On 20-JAN-2015 Rajib added below lines to populate Area\n\t\t\t// Details (PIN code, Locality and SubLocality meeting)\n\t\t\t// START: Added by Rajib as per Jtrac DJB-4313 on 13--2016\n\t\t\tthis.yesNoCharValListMap = GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_YES_NO);\n\t\t\tthis.unAuthUsgCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_CM_UNUSE);\n\t\t\tthis.prefModeOfPmntCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_PREFMOP);\n\t\t\tthis.watFeasCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_WATFEAS);\n\t\t\tthis.sewFeasCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_SEWFEAS);\n\t\t\tthis.isDocVerifiedCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_DOCVAR);\n\t\t\tthis.djbEmpCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_DJB_EMP);\n\t\t\tthis.wconSizeCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_WCONSIZE);\n\t\t\tthis.occupSecurityCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_OSAPP);\n\t\t\tthis.sewDevChrgApplCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_APLY_SWR);\n\t\t\tthis.sewDevChrgColCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_CM_SW_CL);\n\t\t\tthis.watDevChrgApplCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_APLY_WTR);\n\t\t\tthis.watDevChrgColCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_CM_WT_CL);\n\t\t\tthis.zroLocCharValListMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t.getPreDefChrValListMap(DJBConstants.CHAR_TYPE_CD_ZRO_LOC);\n\t\t\t// END: Added by Rajib as per Jtrac DJB-4313 on 13-JAN-2016\n\t\t\t//Added by Madhuri as per Jtrac DJB-4464 on 14-JUNE-2016\n\t\t\tthis.openBillWindowList = GetterDAO.getOpenBillWIndowList();\n\t\t\tAppLog.info(\"END::Loading LOV\");\n\t\t} catch (Exception e) {\n\t\t\tAppLog.error(e);\n\t\t}\n\t\tAppLog.end();\n\t}", "title": "" }, { "docid": "c88af7313655230cef481e7bac8bb3f1", "score": "0.48898688", "text": "List<ParkingLot> getAllLots();", "title": "" }, { "docid": "d25c8c70e8a6423ca3f8007aa104a468", "score": "0.488654", "text": "public ArrayList\n getBBlockTable();", "title": "" }, { "docid": "99309e8beb2fe5ef833b87fd931384aa", "score": "0.48760206", "text": "public List<String> getVehicleList() {\n List<String> vehicleList = this.vehicles.stream()\n .filter(parkingTimeSlot -> parkingTimeSlot.getVehicle() != null)\n .map(parkingTimeSlot -> (parkingTimeSlot.getSlot()) + \" \" + (parkingTimeSlot.getVehicle().getModelName())\n + \" \" + (parkingTimeSlot.getVehicle().getNumberPlate()))\n .collect(Collectors.toList());\n return vehicleList;\n }", "title": "" }, { "docid": "9776e9ba4854cc76217751c0205cbdfb", "score": "0.48698115", "text": "public String toString() {\n return \"Vehicle:'NO VEHICLE IFNO IMPLEMENTED YET'\";\n }", "title": "" }, { "docid": "d3e45663760f888cc9991d7d56f55345", "score": "0.48643988", "text": "public Llegada(String stopId, String lineId, String isHead, String destination, String busId, String busTimeLeft, String busDistance, String longitude, String latitude, String busPositionType) {\n this.stopId = stopId;\n this.lineId = lineId;\n this.isHead = isHead;\n this.destination = destination;\n this.busId = busId;\n this.busTimeLeft = busTimeLeft;\n this.busDistance = busDistance;\n this.longitude = longitude;\n this.latitude = latitude;\n this.busPositionType = busPositionType;\n }", "title": "" }, { "docid": "77bec12f211d8e56fb2e66927272b607", "score": "0.48476037", "text": "Vehicle createVehicle();", "title": "" }, { "docid": "820003146c5464ddf4eaac99a8dcc51c", "score": "0.48271137", "text": "public void getVehicleParkingTime(Vehicle vehicle) {\n for (ParkingLot parkingLot : this.parkingLotList)\n if (parkingLot.isVehicleParked(vehicle)) {\n informObserver.setParkingTime(parkingLot.getVehicleParkingTime(vehicle));\n return;\n }\n throw new ParkingLotSystemException(\"Vehicle Is Not Available\", ParkingLotSystemException.ExceptionType.VEHICLE_NOT_FOUND);\n }", "title": "" }, { "docid": "a5b6ccd3658cb4054840d5a3a37edc37", "score": "0.4825658", "text": "public DeleteOffersFromVehicle() {\n\t\tsuper(\"DELETE_OFFERS_FROM_VEHICLE\", Wetrn.WETRN, PaCube.PA_CUBE);\n\n\t\taddInParameter(P_MRKT_ID);\n\t\taddInParameter(P_VEH_ID);\n\t\taddInParameter(P_OFFR_PERD_ID);\n\t\taddOutParameter(P_RETURN_STATUS);\n\t}", "title": "" }, { "docid": "fc8012a59729d73f488c18868911d24d", "score": "0.48236814", "text": "public void setVehicle(Vehicle vehicle) {\n this.vehicle = vehicle;\n }", "title": "" }, { "docid": "b215326a0b7d5099c397a7c6c1397c9f", "score": "0.48218173", "text": "Vehicle(long vN, long rT, String vS, String vD){\n vNo = vN;\n remTime = rT;\n vSrc = vS;\n vDest = vD;\n vStatus = \"Wait\";\n }", "title": "" }, { "docid": "0d07fd88c653c9465561dece4561d87f", "score": "0.4808355", "text": "Vehicle getVehicle(Integer vehicleId) throws InvalidInputException;", "title": "" }, { "docid": "ac68dacd8893344c051caa20104d091c", "score": "0.47994754", "text": "LgVehicleinspection selectByPrimaryKey(Integer vehicleoperationid);", "title": "" }, { "docid": "e71ce9a97d43166cb69277cb03c1bb3f", "score": "0.47889948", "text": "java.util.List<com.google.cloud.baremetalsolution.v2.Lun> getLunsList();", "title": "" }, { "docid": "df06892341b7b2f1bcb9e2427dd578a1", "score": "0.47805545", "text": "public String getVehicleId() {\n return null;\n }", "title": "" }, { "docid": "d0538cca8bb58c2af96a42efdffeb813", "score": "0.47631845", "text": "public String getVehicleId() {\r\n\t\treturn vehicleId;\r\n\t}", "title": "" }, { "docid": "0e240fee6d81c875adce39c91516d8b1", "score": "0.47618973", "text": "public void setVehicleId(String vehicleId) {\r\n\t\tthis.vehicleId = vehicleId;\r\n\t}", "title": "" }, { "docid": "fcef45257028ba0a47bb31c1337d3036", "score": "0.47482127", "text": "private VlunResponse getVlun() throws Exception {\n\t\treturn new HP3ParVlunList(this.getStore().getVlunListJson()).getVlun();\n\t}", "title": "" }, { "docid": "c01b08e0cb347ee9b6ce9ab086c17b5a", "score": "0.47444198", "text": "google.maps.fleetengine.v1.VehicleOrBuilder getVehicleOrBuilder();", "title": "" }, { "docid": "9cdfbb6fe43945691a3b04eaf40d8a22", "score": "0.4714994", "text": "public interface VehicleParkingDaoProxy {\n\n /**\n * Creates Parking lot with given levels data.\n *\n * @param levels List of levels populated with slots.\n */\n void createPartkingLot(final List<ParkingLevel> levels) throws DbValidationException;\n\n /**\n * Method to park a vehicle.\n *\n * @param vehicle vehicle object\n * @return parking location of vehicle\n */\n VehicleParkingLocation parkVehicle(final Vehicle vehicle) throws DbValidationException;\n\n /**\n * Method to unpark a vehicle.\n *\n * @param level level of the vehicle\n * @param slotNumber slot of the vehicle\n * @return true/false\n */\n boolean leaveSlot(final int level, final int slotNumber) throws DbValidationException;\n\n /**\n * Returns current status of the parking lot.\n *\n * @return all occupied slot list\n */\n List<ParkingLevel> getParkingLotStatus() throws DbValidationException;\n\n /**\n * Returns all vehicle's registration number according to color.\n *\n * @param color input color\n * @returnlist list of regNo\n */\n List<String> getRegistrationNumbersWithColor(final String color) throws DbValidationException;\n\n /**\n * Returns all vehicle's slot number according to color.\n *\n * @param color input color\n * @returnlist list of slot number\n */\n List<Integer> getSlotNumbersWithColor(final String color) throws DbValidationException;\n\n /**\n * Returns vehicle's slot number according to regNumber.\n *\n * @param registrationNumber input regNumber\n * @returnlist list of regNo\n */\n int getSlotNumberWithRegNumber(final String registrationNumber) throws DbValidationException;\n\n}", "title": "" }, { "docid": "6bcd1fb46789e92c9df4538528232abc", "score": "0.4695867", "text": "public String getLane(){\n return lane;\n }", "title": "" }, { "docid": "c7cbeffc70b8a8683fbe5436945207e6", "score": "0.46944225", "text": "@OneToMany\n @JoinColumn(name = \"ID_KhoiLop\")\n public Set<Lop> getLops() {\n return lops;\n }", "title": "" }, { "docid": "1fbd4b443db5ceb332db2413fae9764b", "score": "0.46921018", "text": "void displayAllVehicles();", "title": "" }, { "docid": "0bc92462374da7d22a8472fd99f74c13", "score": "0.46812898", "text": "public List<Vehicle> getList() {\n\t\treturn vehicleRepository.getList();\n\t}", "title": "" }, { "docid": "8bfcf1ab874514d5f07b0e5e88637c28", "score": "0.46670592", "text": "public String getVehicleNo() {\n return vehicleNo;\n }", "title": "" }, { "docid": "412ceabcd16207cb28a6080341a1a926", "score": "0.4661121", "text": "@Override\n\tpublic Vehicle getVehicle(int vehicleId) {\n\t\tVehicle vehicle = new Vehicle();\n\t\tConnectionUtility connectionUtility = new ConnectionUtility();\n\t\tConnection connection = connectionUtility.createConnection();\n\t\ttry {\n\t\t\tPreparedStatement st = connection.prepareStatement(selectVehicle);\n\t\t\tst.setInt(1, vehicleId);\n\t\t\tResultSet rs = st.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tvehicle.setVehicleId(vehicleId);\n\t\t\t\tvehicle.setEmpId(rs.getInt(\"empId\"));\n\t\t\t\tvehicle.setVehicleName(rs.getString(\"vehicleName\"));\n\t\t\t\tvehicle.setType(rs.getString(\"type\"));\n\t\t\t\tvehicle.setVehicleNumber(rs.getString(\"vehicleNumber\"));\n\t\t\t\tvehicle.setIdentification(rs.getString(\"identification\"));\n\t\t\t\tvehicle.setPassId(rs.getInt(\"passId\"));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Vehicle could not be fetched...\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tconnectionUtility.closeConnection(connection);\n\t\t}\n\t\treturn vehicle;\n\t}", "title": "" }, { "docid": "c549bc6852d87c0d89126f0672b9447b", "score": "0.46567225", "text": "public BlocService getBloc(int ligne, int colonne);", "title": "" }, { "docid": "c85a7cecf121f6dbc07829244ca78d53", "score": "0.46553382", "text": "public Vehicle(int vehicleArrivalTime, int vehicleTollBoothTime, int vehicleLeaveTime) {\r\n SYSTEMID += i; //increases the id by one everytime a new object is made so each object has a unique id\r\n\t\ti++; //the value of i is increased by 1 so that the next vehicl object will have a different system ID\r\n this.vehicleArrivalTime = vehicleArrivalTime; //sets the vehicle arrival time\r\n this.vehicleTollBoothTime = vehicleTollBoothTime; //sets the vehicleTollBoothTime\r\n this.vehicleLeaveTime = vehicleLeaveTime; //sets the vehicleLeaveTime\r\n System.out.println(\"system ID is:\" + SYSTEMID);\r\n }", "title": "" }, { "docid": "ddf3dfda703e556d4df23d2dba27eafc", "score": "0.46539325", "text": "public static void listarRangoHorasPlantilla(ArrayList vLista) throws SQLException {\r\n ArrayList parametros = new ArrayList();\r\n parametros.add(FarmaVariables.vCodGrupoCia);\r\n parametros.add(FarmaVariables.vCodLocal);\r\n ArrayList vDatos = new ArrayList();\r\n FarmaDBUtility.executeSQLStoredProcedureArrayList(vDatos,\r\n \"PTOVENTA_CONTROL_ASISTENCIA.CTRL_F_GET_SELEC_RANGO_HORAS(?,?)\",\r\n parametros);\r\n //System.out.println(\">> vDatos <<\"+vDatos);\r\n for (int i = 0; i < vDatos.size(); i++) {\r\n ObjTimes bean = new ObjTimes();\r\n //System.out. println(\">> v <<\"+FarmaUtility.getValueFieldArrayList(vDatos, i, 2));\r\n bean.setPCodhora(FarmaUtility.getValueFieldArrayList(vDatos, i, 0));\r\n bean.setPDesHora(FarmaUtility.getValueFieldArrayList(vDatos, i, 1));\r\n bean.setPMinTrans(Double.parseDouble(FarmaUtility.getValueFieldArrayList(vDatos, i, 2)));\r\n bean.setPIndLista((FarmaUtility.getValueFieldArrayList(vDatos, i, 3).trim()));\r\n vLista.add(bean);\r\n }\r\n }", "title": "" }, { "docid": "f83a4d52f0f327171b32b81038079eb7", "score": "0.4653093", "text": "public static ArrayList<Vehicle> getVehiclesFromDB() throws SQLException {\n ArrayList<Vehicle> vehicles = new ArrayList<>();\n\n //connecting to the DB\n Connection conn = null;\n Statement statement = null;\n ResultSet resultSet = null;\n\n try{\n //connect to the Database\n conn = DriverManager.getConnection(connString, user, password);\n\n statement = conn.createStatement();\n\n //run the query on the DB\n resultSet = statement.executeQuery(\"SELECT * FROM cars\");\n\n //loop over the resultset and create Vehicle objects\n while (resultSet.next()){\n String make = resultSet.getString(\"make\");\n Vehicle newVehicle = new Vehicle(resultSet.getString(\"make\"),\n resultSet.getString(\"model\"),\n resultSet.getInt(\"year\"),\n resultSet.getInt(\"mileage\"),\n resultSet.getDouble(\"price\"));\n vehicles.add(newVehicle);\n }\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n finally {\n if (conn != null)\n conn.close();\n if (statement != null)\n statement.close();\n if (resultSet != null)\n resultSet.close();\n }\n return vehicles;\n }", "title": "" }, { "docid": "dbf1601cccf06e4e6774c1e915292252", "score": "0.4652608", "text": "@Override\r\n\tpublic List<TrainingVO> getAvailableTrainingsByCompany(String comp_code) {\r\n\t\tString methodname = \"getAvailableTrainingsByCompany\" ;\r\n\t\tlogger.info(\"ENTRY---> methodname : \"+methodname);\r\n\t\t\r\n\t\tArrayList<TrainingVO> alTraining = new ArrayList<TrainingVO>() ;\r\n\t\tTrainingVO voObj = null;\r\n\t\tConnection con = null;\r\n\t\tStatement st = null ;\r\n\t\tResultSet rs = null ;\r\n\t\t/*SELECT slno, training_code, training_desc, \r\n\t mth1_stipen_amt, mth2_stipen_amt, mth3_stipen_amt, mth4_stipen_amt, \r\n\t mth5_stipen_amt, mth6_stipen_amt, created_on, created_by,comp_code\r\n\t FROM bitp_training WHERE ACTIVE = 'Y' and comp_code = '%s'*/\r\n\t\tString query = String.format(ProjectConstants.QUERY_GET_TRAININGS_BY_COMPANY, comp_code);\r\n\t\ttry{\r\n\t\t\tcon = ConnectionFactory.getConnection();\r\n\t\t\tif (con != null) {\r\n\t\t\t\tlogger.info(\"query:\"+query);\r\n\t\t\t\tst = con.createStatement() ;\r\n\t\t\t\t\r\n\t\t\t\trs = st.executeQuery(query) ;\r\n\t\t\t\twhile(rs.next()){//member is valid\r\n\t\t\t\t\tvoObj = new TrainingVO() ;\r\n\t\t\t\t\t\r\n\t\t\t\t\tvoObj.setSlno(rs.getInt(1));\r\n\t\t\t\t\tvoObj.setTraining_code(rs.getString(2));\r\n\t\t\t\t\tvoObj.setTraining_desc(rs.getString(3));\r\n\t\t\t\t\tvoObj.setMth1_stipen_amt(rs.getDouble(4));\r\n\t\t\t\t\tvoObj.setMth2_stipen_amt(rs.getDouble(5));\r\n\t\t\t\t\tvoObj.setMth3_stipen_amt(rs.getDouble(6));\r\n\t\t\t\t\tvoObj.setMth4_stipen_amt(rs.getDouble(7));\r\n\t\t\t\t\tvoObj.setMth5_stipen_amt(rs.getDouble(8));\r\n\t\t\t\t\tvoObj.setMth6_stipen_amt(rs.getDouble(9));\r\n\t\t\t\t\tvoObj.setCreated_on(rs.getString(10));\r\n\t\t\t\t\tvoObj.setCreated_by(rs.getString(11));\r\n\t\t\t\t\tvoObj.setComp_code(rs.getString(12));\r\n\t\t\t\t\tvoObj.setActive(\"Y\");\r\n\t\t\t\t\t\r\n\t\t\t\t\talTraining.add(voObj) ;\r\n\t\t\t\t}\r\n\t\t\t}//end of If\r\n\t\t \r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tUtils.closeDB(rs,st,con);\r\n\t\t}//end of try / catch\r\n\t\t//System.out.println(alModuleDtos);\r\n\t\tlogger.info(\"EXIT---> methodname : \"+methodname);\r\n\t\treturn alTraining;\r\n\t}", "title": "" }, { "docid": "d14deac1699cb815ee760b7e3d8b2c8c", "score": "0.4650646", "text": "public ArrayList<Vehicle> getVehicles_off_road() {\n return vehiclesOffRoad;\n }", "title": "" }, { "docid": "575d0abbb7fc22bddb6eec8c0ec0b890", "score": "0.46436867", "text": "public void LlenarTabla() {\n List<Tiposcomercio> ltipos = null;\n Tiposcomercio tmptipo = new Tiposcomercio();\n vtc = new VerTiposComercio();\n try {\n ltipos = daogiro.findAll(Tiposcomercio.class);\n if (ltipos.size() > 0 && !ltipos.isEmpty()) {\n otls = new ArrayList();\n Iterator it = ltipos.iterator();\n while (it.hasNext()) {\n tmptipo = (Tiposcomercio) it.next();\n vtc = new VerTiposComercio();\n vtc.setACTIVIDAD_ECONOMICA(tmptipo.getActividadeconomica());\n vtc.setESTADO(tmptipo.getEstados().getEstado());\n vtc.setGIRO(tmptipo.getGiros().getDescripcion());\n otls.add(vtc);\n }\n }\n } catch (Exception e) {\n System.out.println(e.toString());\n }\n tablam = componentes.limpiartabla(tablam);\n tablam = componentes.llenartabla(tablam, otls, VerTiposComercio.class);\n jttiposcomercio.setModel(tablam);\n componentes.centrarcabeceras(jttiposcomercio);\n }", "title": "" }, { "docid": "9a63519032aba4731eb73beecdebb4ec", "score": "0.46389872", "text": "public int findVehicle(Vehicle vehicle) {\n for (ParkingLot parkingLot : parkingLotList)\n if (parkingLot.isVehicleParked(vehicle))\n return parkingLot.findVehicle(vehicle);\n throw new ParkingLotSystemException(\"Vehicle Is Not Available\", ParkingLotSystemException.ExceptionType.VEHICLE_NOT_FOUND);\n }", "title": "" }, { "docid": "1baaf10fda0d9bfe99b219290b30fa00", "score": "0.4608616", "text": "public String getID()\n\t{\n\t\treturn \"LT\";\n\t}", "title": "" }, { "docid": "0fb509510491c833477cf5faa849e0b0", "score": "0.46082458", "text": "void AddVehicles() {\n Vehicle v1 = new Vehicle(VehicleType.MOTOR, \"12M345\");\n System.out.println(\"Added new vehicle\");\n Vehicle v2 = new Vehicle(VehicleType.CAR, \"89D3673\");\n System.out.println(\"Added new vehicle\");\n Vehicle v3 = new Vehicle(VehicleType.TRUCK, \"34A300\");\n System.out.println(\"Added new vehicle\");\n }", "title": "" }, { "docid": "540897d4bca3d831078514e314f676f5", "score": "0.46075958", "text": "public interface RaceBidderTendererService {\n /**\n * 查询全部投标人表(原数据表)数据\n * @return 实体集合\n */\n List<tblBbgsTendererRaceModel> queryList();\n}", "title": "" }, { "docid": "00bf799dfa11a1d5fcd90dd61e9095db", "score": "0.46050832", "text": "public List<LVCPatient> lvcReport() {\n\t\tString sql = \"select top 6 * from dbo.og_icu_levelofcare where StartDateTime > '05/18/2013' \";\n\t\t// Maps a SQL result to a Java object\n\t\tRowMapper<LVCPatient> mapper = new RowMapper<LVCPatient>() {\n\t\t\tpublic LVCPatient mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tLVCPatient lvp = new LVCPatient();\n\n//\t\t\t\tSimpleDateFormat sf = new SimpleDateFormat(\n//\t\t\t\t\t\t\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tlvp.setClinicNumber(rs.getString(\"ClinicNo\"));\n\t\t\t\tlvp.setmDT(rs.getString(\"MessageDateTime\"));\n\t\t\t\tlvp.setLevelOfCare(rs.getString(\"LevelOfCareMessage\"));\n\t\t\t\treturn lvp;\n\t\t\t}\n\t\t};\n\t\treturn jdbcTemplate.query(sql, mapper);\n\t}", "title": "" }, { "docid": "f585f17ef95178605b2f9f091e896c30", "score": "0.46039188", "text": "void addMotorbike(int speed) {\n switch (direction) {\n case \"North\":\n vehicles.add(new Motorbike(\"North\", speed, xwest + width / 2, ysouth));\n break;\n case \"South\":\n vehicles.add(new Motorbike(\"South\", speed, xwest + width / 2, ynorth));\n break;\n case \"East\":\n vehicles.add(new Motorbike(\"East\", speed, xwest, ysouth + width / 2));\n break;\n case \"West\":\n vehicles.add(new Motorbike(\"West\", speed, xeast, ysouth + width / 2));\n break;\n }\n vehicles.get(vehicles.size() - 1).intiDir();\n vehiclesOnRoad++;\n }", "title": "" }, { "docid": "52c0c7dee6e2d2083d86882a0645e05b", "score": "0.4602567", "text": "@Override\r\n\tpublic List<VilleFranceBLO> lister() throws SQLException {\n\t\tconnection = this.creerConnexion();\r\n\t\tpreparedStatement = connection.prepareStatement(SQL_SELECT_VILLE_FRANCE);\r\n\t\treturn this.executeQuery(preparedStatement);\r\n\r\n\t}", "title": "" }, { "docid": "f2d3a6802fdf4ea51c2713643b82ed54", "score": "0.46012697", "text": "private VehicleData getVehicleData() {\r\n return new VehicleData();\r\n }", "title": "" }, { "docid": "c48672dce7987f5f322311a48b923446", "score": "0.45914894", "text": "public void setLotID(String id)\n {\n lotID = id;\n }", "title": "" }, { "docid": "4b3be533dd4052df556c63f589ab6e3d", "score": "0.45913061", "text": "public BookingsLedger(ArrayList<Lot> aLot, ArrayList<Reservation> aReservation, ArrayList<Customer> aCustomer, ArrayList<Manager> aManager) {\n this.aLot = aLot;\n this.aManager = null;\n this.aCustomer = null;\n this.aReservation = aReservation;\n }", "title": "" }, { "docid": "90ab90a5e354679882b7d3f0c0479ea6", "score": "0.45826054", "text": "public interface BusLane {\n\n String getName();\n\n String getAddress();\n\n String getAddressStart();\n\n String getAddressEnd();\n\n String getHeading();\n\n String getDistrict();\n\n String getImplantationDate();\n\n String getStartWorkingTime();\n\n String getEndWorkingTime();\n\n String getStreetSide();\n\n int getAmountWorkingHours();\n\n int getRegionCode();\n\n double getSizeInMeters();\n\n Shape getShape();\n}", "title": "" }, { "docid": "1c5a27b30debcc076cbfa5c849411fb9", "score": "0.45795545", "text": "public String[][] getLodgeModeItems(TmsTravelPolicy tp) {\r\n\r\n\t\t/*\r\n\t\t * String query1=\" SELECT '200000'||''||HOTEL_TYPE_ID, ''||''||0 AS\r\n\t\t * PARENT, HOTEL_TYPE_NAME,HOTEL_TYPE_ID \" +\" FROM HRMS_TMS_HOTEL_TYPE\r\n\t\t * ORDER BY HRMS_TMS_HOTEL_TYPE.HOTEL_LEVEL\";\r\n\t\t */\r\n\r\n\t\tString query1 = \"SELECT distinct '200000'||''||HOTEL_TYPE_ID, ''||''||0 AS PARENT, HOTEL_TYPE_NAME,HOTEL_TYPE_ID ,HRMS_TMS_HOTEL_TYPE.HOTEL_LEVEL \"\r\n\r\n\t\t\t\t+ \" FROM HRMS_TMS_HOTEL_TYPE \"\r\n\t\t\t\t+ \" left join HRMS_TMS_ROOM_TYPE on(HRMS_TMS_HOTEL_TYPE.HOTEL_TYPE_ID = HRMS_TMS_ROOM_TYPE.ROOM_HOTEL_TYPE)\"\r\n\t\t\t\t+ \" where HRMS_TMS_HOTEL_TYPE.HOTEL_TYPE_ID in (HRMS_TMS_ROOM_TYPE.ROOM_HOTEL_TYPE) AND HOTEL_TYPE_STATUS='A'\"\r\n\t\t\t\t+ \"ORDER BY HRMS_TMS_HOTEL_TYPE.HOTEL_LEVEL \";\r\n\t\tObject[][] parentObj = getSqlModel().getSingleResult(query1);\r\n\t\t/*\r\n\t\t * String query2=\"SELECT TO_CHAR(CLASS_ID),\r\n\t\t * '100000'||''||CLASS_JOURNEY_ID,CLASS_NAME,CLASS_LEVEL \" +\" FROM\r\n\t\t * HRMS_TMS_JOURNEY_CLASS WHERE CLASS_JOURNEY_Id=\r\n\t\t * ?\"//+String.valueOf(parentObj[0][3]) +\" ORDER BY CLASS_LEVEL \";\r\n\t\t */\r\n\t\tString query2 = \"SELECT TO_CHAR(ROOM_TYPE_ID), '200000'||''||ROOM_HOTEL_TYPE,ROOM_TYPE_NAME,ROOM_LEVEL \"\r\n\t\t\t\t+ \" FROM HRMS_TMS_ROOM_TYPE WHERE ROOM_HOTEL_TYPE=?\"\r\n\t\t\t\t+ \" ORDER BY ROOM_LEVEL \";\r\n\r\n\t\tVector vect = new Vector();\r\n\t\tfor (int i = 0; i < parentObj.length; i++) {\r\n\t\t\tvect.add(String.valueOf(parentObj[i][0]));\r\n\t\t\tvect.add(String.valueOf(parentObj[i][1]));\r\n\t\t\tvect.add(String.valueOf(parentObj[i][2]));\r\n\t\t\tObject[] obj = new Object[1];\r\n\t\t\tobj[0] = String.valueOf(parentObj[i][3]);\r\n\t\t\tObject[][] childObj = getSqlModel().getSingleResult(query2, obj);\r\n\t\t\tfor (int j = 0; j < childObj.length; j++) {\r\n\t\t\t\tvect.add(String.valueOf(childObj[j][0]));\r\n\t\t\t\tvect.add(String.valueOf(childObj[j][1]));\r\n\t\t\t\tvect.add(String.valueOf(childObj[j][2]));\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tint counter = 0;\r\n\t\tString[][] strObj = new String[vect.size() / 3][3];\r\n\t\tfor (int i = 0; i < vect.size() / 3; i++) {\r\n\t\t\tstrObj[i][0] = (String) vect.get(counter++);\r\n\t\t\tstrObj[i][1] = (String) vect.get(counter++);\r\n\t\t\tstrObj[i][2] = (String) vect.get(counter++);\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * String[][] strObj = null; if (obj.length > 0) { strObj = new\r\n\t\t * String[obj.length][3]; int counter=1; for (int i = 0; i <\r\n\t\t * strObj.length; i++) {// no.of rows for (int j = 0; j <\r\n\t\t * strObj[0].length; j++) {// no.of columns\r\n\t\t * \r\n\t\t * strObj[i][j] = String.valueOf(obj[i][j]);\r\n\t\t * \r\n\t\t * }// end of j loop }// end of i loop }// end of if else { strObj = new\r\n\t\t * String[0][0]; }// end of else\r\n\t\t */\r\n\r\n\t\t//\r\n\t\treturn strObj;\r\n\t}", "title": "" }, { "docid": "8cdb22ef03c7df5c0c8bf148439e3ceb", "score": "0.45772755", "text": "public ArrayList<Lot> getLotList() {\n return aLot;\n }", "title": "" }, { "docid": "635358cd8ac5f3b90f128d2d2a1f00e2", "score": "0.45751464", "text": "public List<ArrayList<String>> getBookingRoomDetails(String synchId,String serverIP,String database,String pass) throws Exception {\n\tOpenERP\topenerp = new OpenERP(serverIP,database,\"admin\",pass);\r\n\r\n\tObject id =synchId;\r\n\tSystem.out.println(\"id in object form booking stay \"+id);\r\n\r\n\t//System.out.println(\"package size \"+packageValues.size());\r\n\r\n\tObject[] result_ids;\r\n\tif(id == null){\r\n\t\tresult_ids = openerp.search(\"room.type\");\r\n\t}\r\n\t\r\n\telse{ \r\n\tresult_ids = openerp.search(\"room.type\",\"id\",\">\",id);\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\tOpenERPRecordSet results = openerp.readRecords(\"room.type\", result_ids, \r\n\t\t\tnew String[] {\"id\",\"roomtype_id\",\"roomtype_name\",\"price\"});\r\n\r\n\tLog.d(\"traveller details\", results.toString());\r\n\r\n\t\r\n\t\r\n\tVector<Object> synch_Id = new Vector<Object>();\r\n\tVector<Object> room_id = new Vector<Object>();\r\n\tVector<Object> room_name = new Vector<Object>();\r\n\tVector<Object> room_price = new Vector<Object>();\r\n\t\r\n\t//vactorPackageId=results.getFieldContents(\"package_id\");\r\n\r\n synch_Id=results.getFieldContents(\"id\");\r\n\troom_id=results.getFieldContents(\"roomtype_id\");\r\n\troom_name=results.getFieldContents(\"roomtype_name\");\r\n room_price=results.getFieldContents(\"price\");\r\n\t//vactorPackageStay=results.getFieldContents(\"travel_hotel_rel\");\r\n\t\r\n\t\r\n\t//System.out.println(\"package stay field \"+vactorPackageStay);\r\n\t\r\n\t\r\n\tList<ArrayList<String>> total = new ArrayList<ArrayList<String>>();\r\n\t\r\n\tSystem.out.println(\"outside of loop\");\r\n\t//System.out.println(\" total package ids \"+vactorId.size());\r\n\t\r\n\t\r\n\tfor(int i=0;i<synch_Id.size();i++)\r\n\t{\r\n\t\tSystem.out.println(\"inside of loop\");\r\n\t\tArrayList<String> packageId = new ArrayList<String>();\r\n\t\tSystem.out.println(\" more inside of loop\");\r\n\t\tpackageId.add(synch_Id.get(i).toString());\r\n\t\tpackageId.add(room_id.get(i).toString());\r\n\t\tpackageId.add(room_name.get(i).toString());\r\n\t\tpackageId.add(room_price.get(i).toString());\r\n\t\ttotal.add(packageId);\r\n\t}\r\n\t\r\nreturn total;\t\r\n}", "title": "" }, { "docid": "2365e784765723a908cf054ec29b3697", "score": "0.4573955", "text": "ParkingLot getByName(String name);", "title": "" }, { "docid": "d17ecdb8704f1e5bc41bd591d0cc459f", "score": "0.45707887", "text": "@Override\n\t\t\tpublic Id<Vehicle> getId() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "82b80bca28a3dabd955a34ea8ccc27e8", "score": "0.45692873", "text": "public List<ArrayList<String>> getBookingTravelDetails(String synchId,String serverIP,String database,String pass) throws Exception {\n\tOpenERP\topenerp = new OpenERP(serverIP,database,\"admin\",pass);\r\n\r\n\tObject id =synchId;\r\n\tSystem.out.println(\"id in object form booking stay \"+id);\r\n\r\n\t//System.out.println(\"package size \"+packageValues.size());\r\n\r\n\tObject[] result_ids;\r\n\tif(id == null){\r\n\t\tresult_ids = openerp.search(\"travel.line\");\r\n\t}\r\n\t\r\n\telse{ \r\n\tresult_ids = openerp.search(\"travel.line\",\"id\",\">\",id);\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\tOpenERPRecordSet results = openerp.readRecords(\"travel.line\", result_ids, \r\n\t\t\tnew String[] {\"id\",\"day_seq\",\"mode\",\"source\",\"destination\",\"itinerary_id\"});\r\n\r\n\tLog.d(\"booking travel details\", results.toString());\r\n\r\n\t\r\n\t\r\n\tVector<Object> normalId = new Vector<Object>();\r\n\tVector<Object> day_seq = new Vector<Object>();\r\n\tVector<Object> mode = new Vector<Object>();\r\n\tVector<Object> source = new Vector<Object>();\r\n\tVector<Object> destination = new Vector<Object>();\r\n\tVector<Object> itinerary_id = new Vector<Object>();\r\n\t\r\n\t\r\n\t//vactorPackageId=results.getFieldContents(\"package_id\");\r\n\r\n normalId=results.getFieldContents(\"id\");\r\n\tday_seq=results.getFieldContents(\"day_seq\");\r\n\tmode=results.getFieldContents(\"mode\");\r\n source=results.getFieldContents(\"source\");\r\n\tdestination=results.getFieldContents(\"destination\");\r\n\titinerary_id=results.getFieldContents(\"itinerary_id\");\r\n\t\r\n\t//vactorPackageStay=results.getFieldContents(\"travel_hotel_rel\");\r\n\t\r\n\t\r\n\tSystem.out.println(\"booking stay travel id \"+normalId);\r\n\tSystem.out.println(\"booking day_seq \"+day_seq);\r\n\tSystem.out.println(\"booking travel mode \"+mode);\r\n\tSystem.out.println(\"booking travel source \"+source);\r\n\tSystem.out.println(\"booking travel destination \"+destination);\r\n\tSystem.out.println(\"booking travel connection id \"+itinerary_id);\r\n\t\r\n\t//System.out.println(\"package stay field \"+vactorPackageStay);\r\n\t\r\n\t\r\n\tList<ArrayList<String>> total = new ArrayList<ArrayList<String>>();\r\n\t\r\n\tSystem.out.println(\"outside of loop\");\r\n\t//System.out.println(\" total package ids \"+vactorId.size());\r\n\t\r\n\t\r\n\tfor(int i=0;i<normalId.size();i++)\r\n\t{\r\n\t\tSystem.out.println(\"inside of loop\");\r\n\t\tArrayList<String> packageId = new ArrayList<String>();\r\n\t\tSystem.out.println(\" more inside of loop\");\r\n\t\tpackageId.add(normalId.get(i).toString());\r\n\t\tpackageId.add(day_seq.get(i).toString());\r\n\t\tpackageId.add(mode.get(i).toString());\r\n\t\tpackageId.add(source.get(i).toString());\r\n\t\tpackageId.add(destination.get(i).toString());\r\n\t\tpackageId.add(itinerary_id.get(i).toString());\r\n\r\n\t\ttotal.add(packageId);\r\n\t}\r\n\t\r\nreturn total;\t\r\n}", "title": "" }, { "docid": "b389475f72a0214bd7bc6825d5964236", "score": "0.4568169", "text": "List<LgVehicleinspection> selectAll();", "title": "" }, { "docid": "9bd7a0c6fa73eba7ae35f0ae7531607b", "score": "0.4566678", "text": "Iterable<Vehicle> findAllById(Booking booking);", "title": "" }, { "docid": "24c6f96cd4c557fd38d6318098a6064b", "score": "0.45572254", "text": "@Override\r\n public String vratiUpitZaSve() {\r\n return \"SELECT * FROM ARANZMAN A JOIN VODIC V ON (A.VODICID = V.VODICID) \"\r\n + \"JOIN HOTEL H ON (H.HOTELID = A.HOTELID)\";\r\n }", "title": "" }, { "docid": "5ac557a26cb5e17db571bc6f743a7e48", "score": "0.455552", "text": "public List<ArrayList<String>> getBookingStayDetails(String synchId,String serverIP,String database,String pass) throws Exception {\n\tOpenERP\topenerp = new OpenERP(serverIP,database,\"admin\",pass);\r\n\r\n\tObject id =synchId;\r\n\tSystem.out.println(\"id in object form booking stay \"+id);\r\n\r\n\t//System.out.println(\"package size \"+packageValues.size());\r\n\r\n\tObject[] result_ids;\r\n\tif(id == null){\r\n\t\tresult_ids = openerp.search(\"travel.stay.line\");\r\n\t}\r\n\t\r\n\telse{ \r\n\tresult_ids = openerp.search(\"travel.stay.line\",\"id\",\">\",id);\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\tOpenERPRecordSet results = openerp.readRecords(\"travel.stay.line\", result_ids, \r\n\t\t\tnew String[] {\"id\",\"stay_id\",\"day_seq\",\"name\",\"city\",\"desc\",\"stay\"});\r\n\r\n\tLog.d(\"traveller details\", results.toString());\r\n\r\n\t\r\n\t\r\n\tVector<Object> stay_Id = new Vector<Object>();\r\n\tVector<Object> day_seq = new Vector<Object>();\r\n\tVector<Object> name = new Vector<Object>();\r\n\tVector<Object> city = new Vector<Object>();\r\n\tVector<Object> desc = new Vector<Object>();\r\n\tVector<Object> stay = new Vector<Object>();\r\n\tVector<Object> syncId = new Vector<Object>();\r\n\t\r\n\t//vactorPackageId=results.getFieldContents(\"package_id\");\r\n\r\n stay_Id=results.getFieldContents(\"stay_id\");\r\n\tday_seq=results.getFieldContents(\"day_seq\");\r\n\tname=results.getFieldContents(\"name\");\r\n city=results.getFieldContents(\"city\");\r\n\tdesc=results.getFieldContents(\"desc\");\r\n\tstay=results.getFieldContents(\"stay\");\r\n\tsyncId=results.getFieldContents(\"id\");\r\n\t//vactorPackageStay=results.getFieldContents(\"travel_hotel_rel\");\r\n\t\r\n\t\r\n\tSystem.out.println(\"stay travel connection field \"+stay_Id);\r\n\tSystem.out.println(\"travel id \"+day_seq);\r\n\tSystem.out.println(\"travel mode \"+name);\r\n\tSystem.out.println(\"travel source \"+city);\r\n\tSystem.out.println(\"travel destination \"+desc);\r\n\t\r\n\t//System.out.println(\"package stay field \"+vactorPackageStay);\r\n\t\r\n\t\r\n\tList<ArrayList<String>> total = new ArrayList<ArrayList<String>>();\r\n\t\r\n\tSystem.out.println(\"outside of loop\");\r\n\t//System.out.println(\" total package ids \"+vactorId.size());\r\n\t\r\n\t\r\n\tfor(int i=0;i<stay_Id.size();i++)\r\n\t{\r\n\t\tSystem.out.println(\"inside of loop\");\r\n\t\tArrayList<String> packageId = new ArrayList<String>();\r\n\t\tSystem.out.println(\" more inside of loop\");\r\n\t\tpackageId.add(stay_Id.get(i).toString());\r\n\t\tpackageId.add(day_seq.get(i).toString());\r\n\t\tpackageId.add(name.get(i).toString());\r\n\t\tpackageId.add(city.get(i).toString());\r\n\t\tpackageId.add(desc.get(i).toString());\r\n\t\tpackageId.add(stay.get(i).toString());\r\n\t\tpackageId.add(syncId.get(i).toString());\r\n\t\ttotal.add(packageId);\r\n\t}\r\n\t\r\nreturn total;\t\r\n}", "title": "" }, { "docid": "e3d42a1a5fd1172fd0d277e151eecc1e", "score": "0.45507184", "text": "void addVehicle(Vehicle vehicle);", "title": "" }, { "docid": "d0e18d54f0781e6d1b6dad622b22de76", "score": "0.45482627", "text": "public motor() {\n initComponents();\n tampil_pemilik(); \n \n model = new DefaultTableModel();\n \n //memberi nama header pada tabel\n tblmotor.setModel(model);\n model.addColumn(\"Plat Nomor\");\n model.addColumn(\"NIK\"); \n model.addColumn(\"Merk\");\n model.addColumn(\"Tahun\");\n model.addColumn(\"No Rangka\");\n model.addColumn(\"No Mesin\");\n model.addColumn(\"Asal\");\n \n //fungsi ambil data\n getDataMotor();\n }", "title": "" }, { "docid": "26dc7b92badb56eb868c5f57bdbab6bc", "score": "0.45482463", "text": "public void setBLART(String BLART) {\n this.BLART = BLART;\n }", "title": "" }, { "docid": "5eff8637e350177fb0f0b4f99630237a", "score": "0.45451143", "text": "private void loadData(Timetable tm, PhysicianList phyList, RoomsList rooms, PatientList patient) {\n //String name, Room room, String appointmentTime, Physician physician, Patient patient\n// ArrayList<Room> ro = rooms.getRoomList();\n// rooms.getRoomList();\n// \n// Patient pat1 = new Patient(\"201\", \"Arbaaz Zakir\", \"TestData: Address\", \"0102030\");\n// DateTime dt8 = new DateTime(tm.getDay(0), Timetable.TWOOCLOCK);\n// //phys8.addAppointmentHours(dt8);\n// //Treatment treat1 = new Treatment(\"name\", room1, phys8.getDateTimeAppointment(1), phys8, pat1);\n// //Booking book1 = new Booking(treat1);\n// //addBooking(book1);\n\n// for (Room room : ro) {\n// Treatment tr = new Treatment(phyList.getAPhysicianByName(\"bob\").getExpertise(0), room, dt8, phyList.getAPhysicianByName(\"bob\"), patient.getPatientByID(\"201\"));\n// Booking book = new Booking(tr);\n// String result = this.bookings.add(book);\n// if (result.equalsIgnoreCase(\"Booking complete\")) {\n// System.out.println(result);\n// break;\n// } else if (result.equalsIgnoreCase(\"You already have a booking at this time\")) {\n// System.out.println(result);\n// break;\n// } else {\n// System.out.println(room.getRoom() + \" : \" + result + \" BOOKING FAILED\");\n// }\n// }\n// \n// Room room1 = new Room(\"placeholder1\");\n// Physician phys8 = new Physician(\"008\", \"mary\", \"26 dorset park\", \"5476468\");\n// Patient pat1 = new Patient(\"201\", \"Arbaaz Zakir\", \"TestData: Address\", \"0102030\");\n// DateTime dt8 = new DateTime(tm.getDay(0), Timetable.TWOOCLOCK);\n// phys8.addAppointmentHours(dt8);\n// Treatment treat1 = new Treatment(\"name\", room1, phys8.getDateTimeAppointment(1), phys8, pat1);\n// Booking book1 = new Booking(treat1);\n// addBooking(book1);\n// \n// Room room1 = new Room(\"placeholder1\");\n// Physician phys8 = new Physician(\"008\", \"mary\", \"26 dorset park\", \"5476468\");\n// Patient pat1 = new Patient(\"201\", \"Arbaaz Zakir\", \"TestData: Address\", \"0102030\");\n// DateTime dt8 = new DateTime(tm.getDay(0), Timetable.TWOOCLOCK);\n// phys8.addAppointmentHours(dt8);\n// Treatment treat1 = new Treatment(\"name\", room1, phys8.getDateTimeAppointment(1), phys8, pat1);\n// Booking book1 = new Booking(treat1);\n// addBooking(book1);\n// \n// Room room1 = new Room(\"placeholder1\");\n// Physician phys8 = new Physician(\"008\", \"mary\", \"26 dorset park\", \"5476468\");\n// Patient pat1 = new Patient(\"201\", \"Arbaaz Zakir\", \"TestData: Address\", \"0102030\");\n// DateTime dt8 = new DateTime(tm.getDay(0), Timetable.TWOOCLOCK);\n// phys8.addAppointmentHours(dt8);\n// Treatment treat1 = new Treatment(\"name\", room1, phys8.getDateTimeAppointment(1), phys8, pat1);\n// Booking book1 = new Booking(treat1);\n// addBooking(book1);\n// \n// Room room1 = new Room(\"placeholder1\");\n// Physician phys8 = new Physician(\"008\", \"mary\", \"26 dorset park\", \"5476468\");\n// Patient pat1 = new Patient(\"201\", \"Arbaaz Zakir\", \"TestData: Address\", \"0102030\");\n// DateTime dt8 = new DateTime(tm.getDay(0), Timetable.TWOOCLOCK);\n// phys8.addAppointmentHours(dt8);\n// Treatment treat1 = new Treatment(\"name\", room1, phys8.getDateTimeAppointment(1), phys8, pat1);\n// Booking book1 = new Booking(treat1);\n// addBooking(book1);\n// \n// Room room1 = new Room(\"placeholder1\");\n// Physician phys8 = new Physician(\"008\", \"mary\", \"26 dorset park\", \"5476468\");\n// Patient pat1 = new Patient(\"201\", \"Arbaaz Zakir\", \"TestData: Address\", \"0102030\");\n// DateTime dt8 = new DateTime(tm.getDay(0), Timetable.TWOOCLOCK);\n// phys8.addAppointmentHours(dt8);\n// Treatment treat1 = new Treatment(\"name\", room1, phys8.getDateTimeAppointment(1), phys8, pat1);\n// Booking book1 = new Booking(treat1);\n// addBooking(book1);\n\n }", "title": "" }, { "docid": "193f1f949a5cbddb81dab4b1ed826aae", "score": "0.45444047", "text": "com.google.protobuf.Timestamp getVehicleDropoffEta();", "title": "" }, { "docid": "1dbb432097fae982f9ae7d50448047a2", "score": "0.45399508", "text": "public I_Carrier getVehicle() {\n\t\treturn vehicle;\n\t}", "title": "" }, { "docid": "d6f984a741b03f7937645e2c002e888d", "score": "0.45364594", "text": "public void setAdjacentLanes()\n\t{\n\t\t//if we have 1 left, 2 straight 1 right on 1 side of the road.\n\t\t//we have 12 lanes + 2 right lanes\n\t\t//14 lanes in total\n\t\t//n/2 = 7\n\t\t//if we have only 1 straight lane\n\t\t//10 lanes in total\n\t\t//n/2 = 5\n\t\t\n\t\t\n\t\t//let n = number of lanes on the road\n\t\t//for the first n/2 lanes\n\t\t//the right lane is the lane at n+2\n\t\t//the left lane is the lane at n-2.\n\t\t//if ( n + 2 > n/2 ) set the right lane to null\n\t\t//if (n -2 < 0 ) set the left lane to null\n\t\t\n\t\t//for lanes n/2 -> n \n\t\t//the left lane is at n+2\n\t\t//the right lane is at n-2\n\t\t//if n-2 < n/2 set right Lane to null\n\t\t//if n+2 > n set left lane to null\n\t\t\n\t\tint n = vLanes.size();\n\t\tfor( int i = 0 ; i < n/2 ; i++ ) {\n\t\t\tVehicleLane lane = vLanes.get(i);\n\t\t\tif( i -2 < 0 ) {\n\t\t\t\tlane.setLeftLane(null);\n\t\t\t} else {\n\t\t\t\tlane.setLeftLane(vLanes.get(i-2));\n\t\t\t}\n\t\t\tif( i + 2 > n/2 ) {\n\t\t\t\tlane.setRightLane(null);\n\t\t\t} else {\n\t\t\t\tlane.setRightLane(vLanes.get(i+2));\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor( int i = n/2 ; i < n ; i++ ) {\n\t\t\tVehicleLane lane = vLanes.get(i);\n\t\t\tif( i -2 < n/2 ) {\n\t\t\t\tlane.setRightLane(null) ;\n\t\t\t} else {\n\t\t\t\tlane.setRightLane(vLanes.get(i-2));\n\t\t\t}\n\t\t\tif( i + 2 >= n ) {\n\t\t\t\tlane.setLeftLane(null);\n\t\t\t} else {\n\t\t\t\tlane.setLeftLane(vLanes.get(i+2));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "48a18226e2db34edc5cf5a7047e35604", "score": "0.45279557", "text": "public void createRoomBooking() {\n \n try{\n // Queries database for existing table name and stores within result set\n DatabaseMetaData dbmd = conn.getMetaData();\n rs = dbmd.getTables(null, \"APP\", \"ROOM_BOOKING\", null);\n \n // If table does not exist, proceed to create \n if (!rs.next()) {\n //If the ROOM_BOOKING table does not already exist we create it\n createRoomBookingTable = conn.prepareStatement(\n \"CREATE TABLE APP.ROOM_BOOKING (\"\n + \"\\\"ROOM_BOOKING_ID\\\" INT NOT NULL PRIMARY KEY \"\n + \"GENERATED ALWAYS AS IDENTITY \"\n + \"(START WITH 300100, INCREMENT BY 1), \"\n + \"\\\"BOOKINGS_REFERENCE_CODE\\\" INT NOT NULL \"\n + \"FOREIGN KEY(BOOKING_REFERENCE_CODE)\"\n + \"REFERENCE BOOKING (BOOKING_REFERENCE_CODE)\"\n + \"\\\"ROOM_NUMBER\\\" VARCHAR(10)\"\n + \"FOREIGN KEY(ROOM_NUMBER) \"\n + \"REFERENCE ROOM (ROOM_NUMBER), \"\n + \"\\\"START_DATE\\\" DATE, \"\n + \"\\\"END_DATE\\\" DATE, \"\n \n );\n createRoomBookingTable.execute();\n \n // indicate successful creation of ROOM_BOOKING table\n System.out.println(\"ROOM_BOOKING table successfully created\");\n }\n else {\n // if table already exists, indicate preexistence of ROOM_BOOKING table\n System.out.println(\"ROOM_BOOKING table already created previously\");\n }\n } catch (SQLException ex) {\n Logger.getLogger(DatabaseTables.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "aa57f11decb506056f43c64491f003be", "score": "0.4527095", "text": "public List<ArrayList<String>> getBookingTravellerDetails(String synchId,String serverIP,String database,String pass) throws Exception {\n\tOpenERP\topenerp = new OpenERP(serverIP,database,\"admin\",pass);\r\n\r\n\tObject synchTravellerId=synchId;\r\n\tSystem.out.println(\"id in object form traveller \"+synchTravellerId);\r\n\t\r\n\tObject[] result_ids;\r\n\tif(synchTravellerId == null){\r\n\t\tresult_ids = openerp.search(\"traveller.details\");\r\n\t}\r\n\t\r\n\telse{ \r\n\tresult_ids = openerp.search(\"traveller.details\",\"id\",\">\",synchTravellerId);\r\n\t}\r\n\t//System.out.println(\"package size \"+packageValues.size());\r\n\r\n\t\r\n\tOpenERPRecordSet results = openerp.readRecords(\"traveller.details\", result_ids, \r\n\t\t\tnew String[] {\"traveller_id\",\"t_salutation\",\"t_gender\",\"t_address\",\"t_country\",\r\n\t\t\t \"t_m_no\",\"t_id_type\",\"t_city_name\",\"t_zipcode\",\"traveller_name\",\"t_email\",\"t_id_num\",\r\n\t\t\t \"t_state_name\",\"id\",\"traveller\"});\r\n\r\n\tLog.d(\"traveller details\", results.toString());\r\n\r\n\r\n\t\r\n\t\r\n\tVector<Object> traveller_Id = new Vector<Object>();\r\n\tVector<Object> t_salutation = new Vector<Object>();\r\n\tVector<Object> t_gender = new Vector<Object>();\r\n\tVector<Object> t_address = new Vector<Object>();\r\n\tVector<Object> t_country = new Vector<Object>();\r\n\tVector<Object> t_m_no = new Vector<Object>();\r\n\tVector<Object> t_id_type = new Vector<Object>();\r\n\tVector<Object> t_city_name = new Vector<Object>();\r\n\tVector<Object> t_zipcode = new Vector<Object>();\r\n\tVector<Object> traveller_name = new Vector<Object>();\r\n\tVector<Object> t_email = new Vector<Object>();\r\n\tVector<Object> t_id_num = new Vector<Object>();\r\n\tVector<Object> t_state_name = new Vector<Object>();\r\n Vector<Object> traveller = new Vector<Object>();\r\n\tVector<Object> id = new Vector<Object>();\r\n\t\r\n\t//vactorPackageId=results.getFieldContents(\"package_id\");\r\n\r\n\ttraveller_Id=results.getFieldContents(\"traveller_id\");\r\n\tt_salutation=results.getFieldContents(\"t_salutation\");\r\n\tt_gender=results.getFieldContents(\"t_gender\");\r\n\tt_address=results.getFieldContents(\"t_address\");\r\n\tt_country=results.getFieldContents(\"t_country\");\r\n\tt_m_no=results.getFieldContents(\"t_m_no\");\r\n\tt_id_type=results.getFieldContents(\"t_id_type\");\r\n\tt_city_name=results.getFieldContents(\"t_city_name\");\r\n\tt_zipcode=results.getFieldContents(\"t_zipcode\");\r\n\ttraveller_name=results.getFieldContents(\"traveller_name\");\r\n\tt_email=results.getFieldContents(\"t_email\");\r\n\tt_id_num=results.getFieldContents(\"t_id_num\");\r\n\tt_state_name=results.getFieldContents(\"t_state_name\");\r\n id=results.getFieldContents(\"id\");\r\n\ttraveller=results.getFieldContents(\"traveller\"); \r\n\t//vactorPackageStay=results.getFieldContents(\"travel_hotel_rel\");\r\n\t\r\n\t\r\n\tSystem.out.println(\"stay travel connection field \"+traveller_Id);\r\n\tSystem.out.println(\"travel id \"+t_salutation);\r\n\tSystem.out.println(\"travel mode \"+t_gender);\r\n\tSystem.out.println(\"travel source \"+t_address);\r\n\tSystem.out.println(\"travel destination \"+t_country);\r\n\tSystem.out.println(\"stay travel connection field \"+t_m_no);\r\n\tSystem.out.println(\"travel id \"+t_id_type);\r\n\tSystem.out.println(\"travel mode \"+t_city_name);\r\n\tSystem.out.println(\"travel source \"+t_zipcode);\r\n\tSystem.out.println(\"travel destination \"+traveller_name);\r\n\tSystem.out.println(\"stay travel connection field \"+t_email);\r\n\tSystem.out.println(\"travel id \"+t_id_num);\r\n\tSystem.out.println(\"travel mode \"+t_state_name);\r\n\t\r\n\t//System.out.println(\"package stay field \"+vactorPackageStay);\r\n\t\r\n\t\r\n\tList<ArrayList<String>> total = new ArrayList<ArrayList<String>>();\r\n\t\r\n\tSystem.out.println(\"outside of loop\");\r\n\t//System.out.println(\" total package ids \"+vactorId.size());\r\n\t\r\n\t\r\n\tfor(int i=0;i<traveller_Id.size();i++)\r\n\t{\r\n\t\tSystem.out.println(\"inside of loop\");\r\n\t\tArrayList<String> packageId = new ArrayList<String>();\r\n\t\tSystem.out.println(\" more inside of loop\");\r\n\t\tpackageId.add(traveller_Id.get(i).toString());\r\n\t\tpackageId.add(t_salutation.get(i).toString());\r\n\t\tpackageId.add(t_gender.get(i).toString());\r\n\t\tpackageId.add(t_address.get(i).toString());\r\n\t\tpackageId.add(t_country.get(i).toString());\r\n\t\tpackageId.add(t_m_no.get(i).toString());\r\n\t\tpackageId.add(t_id_type.get(i).toString());\r\n\t\tpackageId.add(t_city_name.get(i).toString());\r\n\t\tpackageId.add(t_zipcode.get(i).toString());\r\n\t\tpackageId.add(traveller_name.get(i).toString());\r\n\t\tpackageId.add(t_email.get(i).toString());\r\n\t\tpackageId.add(t_id_num.get(i).toString());\r\n\t\tpackageId.add(t_state_name.get(i).toString());\r\n\t\tpackageId.add(id.get(i).toString());\r\n\t\tpackageId.add(traveller.get(i).toString());\r\n\t\ttotal.add(packageId);\r\n\t}\r\n\t\r\nreturn total;\t\r\n}", "title": "" }, { "docid": "117b25ada289524f4d59a7ac4bb64926", "score": "0.45267615", "text": "com.google.protobuf.TimestampOrBuilder getVehicleDropoffEtaOrBuilder();", "title": "" }, { "docid": "3e44f035e64bac93f7176d5bcdc087b5", "score": "0.45267594", "text": "public List<VehicleInfo> getVehicleInfoList() {\n\t\treturn this.vehicleInfoList;\n\t}", "title": "" }, { "docid": "fdbcaf63827acbc15ce2063442fe1653", "score": "0.4526312", "text": "@Override\n public boolean insertVehicle(Vehicle vehicle) {\n HeavyMachinary heavyMachinary = (HeavyMachinary) vehicle;\n//si la maquinaria pesada es una vagoneta\n if (heavyMachinary.getType() == 1) {\n heavyMachinary.setName(\"Vagoneta\");\n //le ponemos el nombre\n for (int i = 0; i < MainWindow.vectorVehicle.length; i++) {\n //ifque controla que vectorVehicle no este vacio o que el vehiculo no haya sido registrado\n if (MainWindow.vectorVehicle[i] == null || heavyMachinary.getLicensePlate() != MainWindow.vectorVehicle[i].getLicensePlate()) {\n if (MainWindow.vectorVehicle[i] == null && i != 31) {\n //es insertado en el vetorVehicle\n MainWindow.vectorVehicle[i] = heavyMachinary;\n JOptionPane.showMessageDialog(null, \"El vehiculo registrado\");\n return true;\n }//if\n } else {\n //no se inserta nada\n JOptionPane.showMessageDialog(null, \"El Vehiculo ya existe\");\n return false;\n }//else \n }//for\n }//if\n //lo mismo de vagoneta solo que con grua\n if (heavyMachinary.getType() == 2) {\n\n heavyMachinary.setName(\"Grua\");\n for (int i = 0; i < MainWindow.vectorVehicle.length; i++) {\n if (MainWindow.vectorVehicle[i] == null || heavyMachinary.getLicensePlate() != MainWindow.vectorVehicle[i].getLicensePlate()) {\n if (MainWindow.vectorVehicle[i] == null && i != 31) {\n MainWindow.vectorVehicle[i] = heavyMachinary;\n JOptionPane.showMessageDialog(null, \"El vehiculo registrado\");\n return true;\n }\n } else {\n JOptionPane.showMessageDialog(null, \"El Vehiculo ya existe\");\n return false;\n }//else \n }//for \n }//if\n //lo mismo de vagoneta solo que con Montacargas\n if (heavyMachinary.getType() == 3) {\n heavyMachinary.setName(\"Montacargas\");\n for (int i = 0; i < MainWindow.vectorVehicle.length; i++) {\n if (MainWindow.vectorVehicle[i] == null || heavyMachinary.getLicensePlate() != MainWindow.vectorVehicle[i].getLicensePlate()) {\n if (MainWindow.vectorVehicle[i] == null && i != 31) {\n MainWindow.vectorVehicle[i] = heavyMachinary;\n JOptionPane.showMessageDialog(null, \"El vehiculo registrado\");\n return true;\n }\n } else {\n JOptionPane.showMessageDialog(null, \"El Vehiculo ya existe\");\n return false;\n }//else \n }//for\n }//if\n\n return false;\n }", "title": "" }, { "docid": "bf96f691487837890c6e6ab885f80326", "score": "0.45231792", "text": "public void addVehicle( Vehicles vehicles) {\n vehiclesList.add(vehicles);\n }", "title": "" }, { "docid": "e996a77ef07dbaad2302fa25d0e2abac", "score": "0.45191932", "text": "TypeDataTypeDuree getIntervalleEntreMissions();", "title": "" }, { "docid": "9a133c1ebb168a66ea849589f6f8a682", "score": "0.45185542", "text": "public Vehicle( String i ){\n\t\tid = i;\n\t}", "title": "" }, { "docid": "35c4c044c25dcc6f1c4a57c08009605a", "score": "0.45174122", "text": "public void refreshVehicleData()\n {\n //refresh the array:\n theVehicles = AutoLotSystem.theInventory.getVehicles();\n }", "title": "" }, { "docid": "f5c21f814b6020d40659069136473d82", "score": "0.45164245", "text": "public List<Llave> getListaLlaves() {\r\n return listaLlaves;\r\n }", "title": "" }, { "docid": "b6c46651d061dca42744208ddb2f8a82", "score": "0.45154923", "text": "public List<LocDeVeci> getLocuriDeVeciPlatiteInAnulInCurs() throws BusinessException;", "title": "" }, { "docid": "b56342d00929e2f66bc8c053e987c997", "score": "0.45135748", "text": "@Override\r\n public String getTruckName() {\n return \"Truck19059\";\r\n }", "title": "" }, { "docid": "f3527e79e7e052d9f3818b5a067396e0", "score": "0.4507735", "text": "public static void lstHorariohorariolocal(FarmaTableModel lstCabPlantilla) throws SQLException {\r\n parametros = new ArrayList();\r\n parametros.add(FarmaVariables.vCodGrupoCia);\r\n parametros.add(FarmaVariables.vCodLocal);\r\n FarmaDBUtility.executeSQLStoredProcedure(lstCabPlantilla,\r\n \"PTOVENTA_CONTROL_ASISTENCIA.CTRL_F_GET_LISTA_HORARIO_CAB(?,?)\", parametros,\r\n false);\r\n }", "title": "" } ]
da3b54a11322396d430b4349bf97e2ad
Methode, um alle ListItem Objekte einer ShoppingList auszugeben.
[ { "docid": "1fecebd80dee3db6a381c5a39b3f7537", "score": "0.0", "text": "public ArrayList<ListItem> getAllCheckedItemsBySL(ShoppingList sl) throws IllegalArgumentException {\r\n\r\n\t\tArrayList<ListItem> allCheckedItems = listItemMapper.findAllCheckedListItems(sl);\r\n\r\n\t\treturn allCheckedItems;\r\n\t}", "title": "" } ]
[ { "docid": "b39db128e9207215752cd88020be4fa2", "score": "0.6592248", "text": "void updateList(ShoppingList _ShoppingList);", "title": "" }, { "docid": "318b55a70123b7b6255f6f4b650232ce", "score": "0.6571991", "text": "public ShopList(MainForm mf) {\n super(mf);\n ItemList = recordSeeker.getShopList();\n setTable();\n }", "title": "" }, { "docid": "20ce219455631d19521aa83ea9e611d9", "score": "0.65586615", "text": "public ShoppingListItem() {}", "title": "" }, { "docid": "43d2c9529fa8dad4fdc5b09c9fd731ae", "score": "0.63906896", "text": "void selectList(ShoppingList _ShoppingList);", "title": "" }, { "docid": "a11f3e1a35a7c1ea244da7d7a83a8df3", "score": "0.636049", "text": "void addList(ShoppingList _ShoppingList);", "title": "" }, { "docid": "4b0d264e7596acc0561ea3f80a203cf5", "score": "0.623284", "text": "public ShoppingListItem(String product, String amount) {\r\n this.product = product;\r\n this.amount = amount;\r\n }", "title": "" }, { "docid": "d2acd0ccb8f1aa470c2765ca93ba49e9", "score": "0.62227863", "text": "@Override\r\n\tpublic ArrayList<ListItem> getAllListItemsByShoppingLists(ShoppingList sl) {\r\n\t\treturn this.listItemMapper.findAllListItemsby(sl);\r\n\t}", "title": "" }, { "docid": "a290ef327c086411f4d3a086aeb5858b", "score": "0.6192594", "text": "private void setInfo() {\n\n //init data and navigation controllers\n dataController = new DataController();\n navigationController = new NavigationController();\n\n //hide fab\n ((HomeActivity)getActivity()).hideFAB();\n\n //init utils\n utils = new Utils();\n\n //position selected, saved in session\n position = Session.getInstance().getPosition();\n\n //user\n user = Session.getInstance().getUser();\n\n //users shopping lists\n shoppingLists = Session.getInstance().getUser().getShoppingLists();\n shoppingList = shoppingLists.get(position);\n\n //selected shopping list\n productList = shoppingLists.get(position).getProducts();\n\n //Create Swipe Menu\n createSwipeMenu();\n listView.setMenuCreator(creator);\n\n //Set swipe direction\n listView.setSwipeDirection(SwipeMenuListView.DIRECTION_LEFT);\n\n\n //set action bar tittle\n ((HomeActivity)getActivity()).setToolbarTitle(shoppingList.getName());\n\n totalPriceTextView.setText(utils.calculateTotalPrice(productList));\n\n adapter = new DetailedShoppingListAdapter(getActivity(), productList, false, new AppInterfaces.IEditItem() {\n @Override\n public void deleteItem(int position) {\n }\n\n @Override\n public void changeQuantity(Product product, int position) {\n changeProductQuantity(product, position);\n }\n\n @Override\n public void changePrice(Product product, int position) {\n changeProductPrice(product, position);\n }\n\n @Override\n public void changeQuantityType(Product product, int productPosition, int spinnerPosition) {\n changeProductQuantityType(product, productPosition, spinnerPosition);\n }\n }, new AppInterfaces.IPickItem() {\n @Override\n public void pickItem(int position) {\n if(productList.get(position).isPicked()) {\n productList.get(position).setPicked(false);\n\n } else {\n //set product picked\n productList.get(position).setPicked(true);\n }\n //refresh list\n adapter.notifyDataSetChanged();\n }\n });\n listView.setAdapter(adapter);\n }", "title": "" }, { "docid": "9bbcaf9a08bbd9b98a6499641bb56463", "score": "0.60819566", "text": "protected void populateItem(ListItem<T> item) {\n }", "title": "" }, { "docid": "90e523b58bfed418304cd9b9d963d1e5", "score": "0.60717237", "text": "public void listProductList(List<Item> productList) {\n\t\tIterator<Item> iterator = productList.listIterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tItem item = (Item) iterator.next();\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Item id: \" + item.getId());\n\t\t\tSystem.out.println(\"Name: \" + item.getName());\n\t\t\tSystem.out.println(\"Description: \" + item.getDescription());\n\t\t\tif(item.getQuantity() <= 0)\n\t\t\t\tSystem.out.println(\"Quantity: \"+ \"Out of Stock!! (You cannot buy this item right now)\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Quantity: \" + item.getQuantity());\n\t\t\tSystem.out.println(\"Price per item: \" + item.getPrice());\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "d11621baaa7d2db9255defa436fe3c46", "score": "0.6047597", "text": "public List<Item> getItemList();", "title": "" }, { "docid": "6be605d561cbde07d5d1fcf2c90ddf94", "score": "0.6043584", "text": "@Override\r\n\tpublic void getGroup(ShoppingList sl) {\r\n\r\n\t}", "title": "" }, { "docid": "8e7e4c8b3a7b9ec862458eec1da7780a", "score": "0.60303175", "text": "public void lokaleLijst(){\n // haal boodschappenlijst op uit Shared Preferences en voeg toe aan shoppingList\n shoppingList = getArrayVal(getApplicationContext());\n // sorteer de lijst en set de adapter en view\n Collections.sort(shoppingList);\n adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, shoppingList);\n lv = (ListView) findViewById(R.id.listView);\n lv.setAdapter(adapter);\n\n // set variable tedoen gelijk aan totaal aantal producten in de lijst\n tedoen = shoppingList.size();\n\n // set klik listener op items in de lijst\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n public void onItemClick(AdapterView parent, View view, int position, long id) {\n String selectedItem = ((TextView) view).getText().toString();\n // vink het aangeklikte product af of zet het terug\n switchElement(selectedItem, position);\n }\n });\n }", "title": "" }, { "docid": "951ffa52752f12b8f7821d5d38a3aa5e", "score": "0.6022345", "text": "public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }", "title": "" }, { "docid": "732119303e1019c7c45bda105adff8a0", "score": "0.6015297", "text": "public abstract String getListItem (Object obj, int i, String itemProp) \n throws SAFSException;", "title": "" }, { "docid": "4f382593738a917a0dd40db5c7df1f26", "score": "0.60079384", "text": "public ListItems() {\n itemList = new ArrayList();\n }", "title": "" }, { "docid": "d0f912a8e522e7fbf571f5175ba44351", "score": "0.59730935", "text": "java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> \n getItemList();", "title": "" }, { "docid": "9ec3705612f935dcf14226e783837d3f", "score": "0.5964882", "text": "public List<Item> getItemsFor(ShoppingList list) {\r\n \t\tList<Item>\titems = persistenceManager.getItems(list);\r\n \t\tCollections.sort(items, Comparators.ITEM_COMPARATOR);\r\n \t\treturn Collections.unmodifiableList(items);\r\n \t}", "title": "" }, { "docid": "a167d07832105f3e174815f6ce6ea6f0", "score": "0.5964671", "text": "public interface IShoppingListAdapter {\n /**\n * Adds the given ShoppingList to the adapter.\n * @param _ShoppingList the ShoppingList to be added.\n */\n void addList(ShoppingList _ShoppingList);\n\n /**\n * Updates the given ShoppingList in Adapter.\n * @param _ShoppingList the ShoppingList to be updated.\n */\n void updateList(ShoppingList _ShoppingList);\n\n /**\n * Removes the given ShoppingList from the adapter.\n * @param _ShoppingList The ShoppingList to remove.\n */\n void removeList(ShoppingList _ShoppingList);\n}", "title": "" }, { "docid": "6ace734cdf07e575a0a117bd47890532", "score": "0.59394264", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"ListItem \" + item;\n\t\t}", "title": "" }, { "docid": "b553632248c4a76ef53dbf12e9a8d5d4", "score": "0.5920988", "text": "@Override\n\tpublic void onSelectionChanged(ListSelectionEvent e, List<ShoppingListObject> values) {\n\n\t}", "title": "" }, { "docid": "99bf2643c327eea1db2321ff3e8a824d", "score": "0.59196645", "text": "@Override\n public void onClick(View view) {\n String name = getResources().getString(R.string.stock_shopping_list) + \": \" + productList.getName();\n StockShoppingList stockShoppingList = ((Stock)productList).generateShoppingList(name);\n StockShoppingListDao dao = new StockShoppingListDao(getDaoProductList().getBDConnection());\n if(((Stock)productList).getAssociatedListId() != -1) {\n // Si ya tiene una lista de la compra asociada la eliminamos para crear la nueva\n stockShoppingList.setID(((Stock) productList).getAssociatedListId());\n dao.remove(stockShoppingList);\n }\n int shoppingListId = dao.insert(stockShoppingList);\n\n // Actualizamos el id del stock\n ((Stock) productList).setAssociatedListId(shoppingListId);\n getDaoProductList().update((Stock)productList);\n\n // Mostramos un mensaje de exito\n Toast.makeText(getContext(),String.format(getResources().getString(R.string.info_msg_stock_shopping_list_created),name),Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "c4c9d555e71ef02860a6d8ed5e3a4b88", "score": "0.5915002", "text": "private void customSellerItemsListLoadAdapter(){\n CustomItemsListViewAdapter adapter = new CustomItemsListViewAdapter(this, itemName,\n imageURL, originalPrice, discountPrice, expiryDate);\n list = (ListView) findViewById(R.id.seller_items_listview);\n list.setAdapter(adapter);\n\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.d(\"On Item Click\", \"sdcscs\");\n if ( p!= null ){\n showPopup(SellerItemsListActivity.this, p);\n }\n }\n });\n }", "title": "" }, { "docid": "05dbd05c68d000ead592c9ff78b407ed", "score": "0.58345336", "text": "public void list(){\n //loop through all inventory items\n for(int i=0; i<this.items.size(); i++){\n //print listing of each item\n System.out.printf(this.items.get(i).getListing()+\"\\n\");\n }\n }", "title": "" }, { "docid": "b310c02ec105cd3d2107bcf6fc8423ce", "score": "0.5822278", "text": "public void loadShoppingList(){\n try{\n //load the shopping list from the external file\n List<Ingredient> returnedList = Data.<Ingredient>loadList(shoppingListFile);\n if (returnedList != null){\n //convert list to an observableList\n shoppingListIngredients = FXCollections.observableList(returnedList);\n //set to the shopping list\n shoppingList.setItems(shoppingListIngredients);\n } else {\n System.out.println(\"No Shopping List Loaded \");\n }\n } catch (Exception e){\n System.out.println(\"Unable to load shopping list from file \" + shoppingListFile +\n \", the file may not exist\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d010ccdbac57f0ace0c3a2f27734792e", "score": "0.58201385", "text": "void removeList(ShoppingList _ShoppingList);", "title": "" }, { "docid": "bd8af098f804880e416ccd7605b28a96", "score": "0.580871", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Intent intent = new Intent(this, RedyListproducts.class);\n intent.putExtra(\"LIST_NAME\",alSavedLists.get(position));\n startActivity(intent);\n\n }", "title": "" }, { "docid": "52f4746ecc0f5f6317c3771acf780948", "score": "0.5789715", "text": "@Override\n public void onListItemClicked(int position) {\n\n }", "title": "" }, { "docid": "61b55fce0b4dfb400379fad932441364", "score": "0.5788827", "text": "public ArrayList<Item> getItemList(){\r\n\t\treturn itemList;\r\n\t}", "title": "" }, { "docid": "e107a1d3050388cf38cb65912d74c210", "score": "0.5784029", "text": "@Override\r\n\tpublic void updateShoppingList(ShoppingList sl) throws IllegalArgumentException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tshoppingListMapper.update(sl);\r\n\t}", "title": "" }, { "docid": "13ca5de3cdbdeed2bb20992d58a8cda1", "score": "0.5726322", "text": "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tquyuID=list.get(arg2).getId();\n\t\t\t\tpage=1;\n\t\t\t\tmList.clear();\n\t\t\t\tloadGoodsList(typeID, quyuID, PriceID);\n\t\t\t\tmTbQuyu.setTextOff(list.get(arg2).getName());\n\t\t\t\tmTbQuyu.setTextOn(list.get(arg2).getName());\n\t\t\t\tmTbQuyu.setChecked(false);\n\t\t\t}", "title": "" }, { "docid": "a2862221d8553c720d2c1d1829400fc2", "score": "0.57145995", "text": "public List<ShopItem> getShopItems() {\n\t\treturn myItems;\n\t}", "title": "" }, { "docid": "327b532412ddb178f8079e355780ba85", "score": "0.5705425", "text": "public RecyclerViewProductos( List<Producto> lista) {\n this.productoList=lista;\n }", "title": "" }, { "docid": "4e37901b0e2ddac0ecdad843d5b2e70f", "score": "0.5700418", "text": "@Override\n public Object getItem(int position) {\n return itemList.get(position);\n }", "title": "" }, { "docid": "bbe2d52a4e135634beddf94307ab171f", "score": "0.5686988", "text": "@Override\r\n public void onListItemClick(ListView l, View v, int position, long id) {\n }", "title": "" }, { "docid": "e4a1caf3fcd24cfd1b73b3616dd999dd", "score": "0.56860465", "text": "@Override\n public Object getItem(int item) {\n return dataList.get(item);\n }", "title": "" }, { "docid": "54386e8ee48abf9854dd7ac59a1ae874", "score": "0.56850106", "text": "private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }", "title": "" }, { "docid": "edb288950a5ce50db5dfc3150f0d6d2d", "score": "0.5679047", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void set_List_Of_Product_Type_Of_Store_One()\n\t{\n\t\tArrayList<Product> Product_Of_Store_One = new ArrayList<Product>(); /* ArrayList Of Product */\n\t\tArrayList<String> String_Product_Of_Store_One = new ArrayList<String>(); /* ArrayList Of The String Of The Product */\n\t\tArrayList<Product> temp_Product_Of_Store_One = (ArrayList<Product>)CompanyManagerUI.Object_From_Comparing_For_Store_1.get(4);\t\n\t\t\n\t\tfor(int i = 0 ; i < temp_Product_Of_Store_One.size() ; i++)\n\t\t{\n\t\t\tProduct_Of_Store_One.add(temp_Product_Of_Store_One.get(i));\n\t\t}\n\t\t\n\t\tfor(int i = 0 ; i < Product_Of_Store_One.size() ; i++)\n\t\t{\n\t\t\tString_Product_Of_Store_One.add(String.valueOf(Product_Of_Store_One.get(i).getQuantity()) + \" ---> \" + String.valueOf(Product_Of_Store_One.get(i).getpType()));\n\t\t}\n\t\t\n\t\tProduct_Of_Store_1 = FXCollections.observableArrayList(String_Product_Of_Store_One);\n\t\tListViewQuantity_Store_1.setItems(Product_Of_Store_1);\n\t}", "title": "" }, { "docid": "0edeeda05fcdedc558c84c76ab040360", "score": "0.56781214", "text": "public void addList(ShoppingList list) {\n\n lists.add(0, list);\n list.save();\n notifyItemInserted(0);\n\n }", "title": "" }, { "docid": "5ac06829f121a9fca8e735ca3dfb1b3d", "score": "0.5665065", "text": "public interface ShoppingItemClickListener {\n\n void onClickShoppingItem(ShoppingListItem item, int position);\n\n}", "title": "" }, { "docid": "9b67114936c614be589445eca5575842", "score": "0.5648568", "text": "public AdapterShop(Activity context, List<shoppingcard> dades){\n super(context, R.layout.listitem_shop,dades);\n this.context = context;\n this.dades = dades;\n }", "title": "" }, { "docid": "72d026a67e08dfafd07e737397705d60", "score": "0.56403786", "text": "private List<FreeShopProduct> getProductList() {\n\n productList = new ArrayList<>();\n productList.add(new FreeShopProduct(R.drawable.db_school_small, getResources().getString(R.string.shopItem0)));\n productList.add(new FreeShopProduct(R.drawable.db_clothes_small, getResources().getString(R.string.shopItem1)));\n productList.add(new FreeShopProduct(R.drawable.db_emotions_small, getResources().getString(R.string.shopItem2)));\n productList.add(new FreeShopProduct(R.drawable.db_etiquette_small, getResources().getString(R.string.shopItem3)));\n productList.add(new FreeShopProduct(R.drawable.db_landforms_small, getResources().getString(R.string.shopItem4)));\n productList.add(new FreeShopProduct(R.drawable.db_fruits_small, getResources().getString(R.string.shopItem5)));\n productList.add(new FreeShopProduct(R.drawable.db_kingdom_small, getResources().getString(R.string.shopItem6)));\n productList.add(new FreeShopProduct(R.drawable.db_outerspace_small, getResources().getString(R.string.shopItem7)));\n productList.add(new FreeShopProduct(R.drawable.db_festival_small, getResources().getString(R.string.shopItem8)));\n productList.add(new FreeShopProduct(R.drawable.db_music_small, getResources().getString(R.string.shopItem9)));\n\n return productList;\n }", "title": "" }, { "docid": "cb7b92e07d81930eb47598e495c33569", "score": "0.56282675", "text": "@Override\n public Object getItem(int position) {\n return mList.get(position);\n }", "title": "" }, { "docid": "b6461318ff1e94e2c9552cd5ed774096", "score": "0.5624861", "text": "@Override\n public Object getItem(int arg0) {\n return list.get(arg0);\n }", "title": "" }, { "docid": "72bb862ac289af3f69c9066a6a3145ab", "score": "0.5624268", "text": "protected void doListEdit() {\r\n String nameInput = mEditTextForList.getText().toString();\r\n\r\n /**\r\n * Set input text to be the current list item name if it is not empty and is not the\r\n * previous name.\r\n */\r\n if (!nameInput.equals(\"\") && !nameInput.equals(mItemName)) {\r\n Firebase firebaseRef = new Firebase(Constants.FIREBASE_URL);\r\n\r\n /* Make a map for the item you are editing the name of */\r\n HashMap<String, Object> updatedItemToAddMap = new HashMap<String, Object>();\r\n\r\n /* Add the new name to the update map*/\r\n updatedItemToAddMap.put(\"/\" + Constants.FIREBASE_LOCATION_SHOPPING_LIST_ITEMS + \"/\"\r\n + mListId + \"/\" + mItemId + \"/\" + Constants.FIREBASE_PROPERTY_ITEM_NAME,\r\n nameInput);\r\n\r\n /* Make the timestamp for last changed */\r\n HashMap<String, Object> changedTimestampMap = new HashMap<>();\r\n changedTimestampMap.put(Constants.FIREBASE_PROPERTY_TIMESTAMP, ServerValue.TIMESTAMP);\r\n\r\n /* Add the updated timestamp */\r\n updatedItemToAddMap.put(\"/\" + Constants.FIREBASE_LOCATION_ACTIVE_LISTS +\r\n \"/\" + mListId + \"/\" + Constants.FIREBASE_PROPERTY_TIMESTAMP_LAST_CHANGED, changedTimestampMap);\r\n\r\n /* Do the update */\r\n firebaseRef.updateChildren(updatedItemToAddMap);\r\n\r\n }\r\n }", "title": "" }, { "docid": "a439f72e4dfe3a9dc66ad8892fde65b8", "score": "0.5620698", "text": "ListItem createListItem();", "title": "" }, { "docid": "8494dcb08eaac6012dde2e1f57f2db14", "score": "0.5613226", "text": "public void add_to_my_list_process(View v) {\n\n addToCart_flag = false;\n // get current login value saved in sharedpreferences object\n SharedPreferences loginSharedPref = getSharedPreferences(\"LoginData\", MODE_PRIVATE);\n // get current agent id\n final String AgentID = loginSharedPref.getString(\"ID\", \"\");\n // create string\n create_final_string_product();\n /* get all list names into arraylist object */\n ArrayList<String> listNames = get_list_data_from_local_DB(AgentID);\n // display alert box to choose list name by user\n display_list_names(listNames, AgentID);\n // clear all data after adding product into cart\n clear_data();\n }", "title": "" }, { "docid": "0f5ea925b918ce42c594cbb7d8905296", "score": "0.5609647", "text": "@Override\n public View getView(int position, View convertView,ViewGroup parent){\n View element = convertView;\n Vista vista;\n\n if(element == null){\n LayoutInflater inflater = context.getLayoutInflater();\n element = inflater.inflate(R.layout.listitem_shop,null);\n\n vista = new Vista();\n vista.lblShop = (TextView) element.findViewById(R.id.txtNomTasca);\n vista.quantity = (TextView)element.findViewById(R.id.txtQuantitat);\n\n element.setTag(vista);\n\n } else{\n vista = (Vista) element.getTag();\n }\n\n vista.lblShop.setText(dades.get(position).getProductName());\n vista.quantity.setText(dades.get(position).getQuantity()+\"\");\n\n\n return element;\n\n }", "title": "" }, { "docid": "5425da25cb5b3d504b2d2ca30b27e28e", "score": "0.5603694", "text": "@Override\n\tpublic void listAllItems() {\n\t\t\n\t}", "title": "" }, { "docid": "a99d4874fb15d6339ed57e7cf178c5de", "score": "0.5592531", "text": "public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}", "title": "" }, { "docid": "c89c1dac9ed3529fb18170c8bccf4d98", "score": "0.55898136", "text": "@Override\r\n\tpublic ShoppingList findShoppingListbyId(int id) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn this.shoppingListMapper.findById(id);\r\n\t}", "title": "" }, { "docid": "9330fa8d0398c3321087edf1243dd26a", "score": "0.55892706", "text": "public void updateItemInList(Item item, ShoppingList list) {\r\n \t\tif (item == null || item.getId() == null || list == null)\r\n \t\t\tthrow new IllegalArgumentException(\"null is not allowed\");\r\n \r\n \t\tList<Item> items = persistenceManager.getItems(list);\r\n\t\tif (!items.contains(item))\r\n \t\t\treturn;\r\n \t\t\r\n \t\tpersistenceManager.save(item, list);\r\n \t}", "title": "" }, { "docid": "072f27d2a416235ffb2e64dcea9315b9", "score": "0.5588961", "text": "@Override\n public int getItemCount() {\n return listItem.size();\n }", "title": "" }, { "docid": "3b5b3d8f789005ec768a8e3bd4a06581", "score": "0.5582173", "text": "@Override\n\t\tpublic Object getItem(int index) {\n\t\t\treturn itemList.get(index);\n\t\t}", "title": "" }, { "docid": "f9ef74d06d2800c5f0347584ea93223c", "score": "0.5579816", "text": "@Override\n\tpublic void browseItems(Session session){\n\t\t//exception handling block\n\t\ttry{\n\t\t\tbrowseItem=mvc.browseItems(session);\n\t\t\t//displaying items from database\n\t\t\tSystem.out.println(\"<---+++---Your shopping items list here----+++--->\");\n\t\t\tSystem.out.println(\"ItemId\"+\" \"+\"ItemName\"+\" \"+\"ItemType\"+\" \"+\"ItemPrice\"+\" \"+\"ItemQuantity\");\n\t\t\tfor(int i = 0; i < browseItem.size(); i++) {\n\t System.out.println(browseItem.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App Exception- Browse Items: \" +e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "464f319d576ac17e6b5a98f1be28af7e", "score": "0.5576653", "text": "public ArrayList<Item> getItemList(){\n\t\treturn inventoryList;\n\t}", "title": "" }, { "docid": "12b4d458e789107d982c7639efc4affc", "score": "0.55743194", "text": "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn xListItems.get(arg0);\n\t}", "title": "" }, { "docid": "2acb698f71143b36363fc8c154eee7b9", "score": "0.5566301", "text": "@Override\r\n\tpublic Object getItem(int posstion) {\n\t\treturn list.get(posstion);\r\n\t}", "title": "" }, { "docid": "64de10ceeca2348259995645c0cc2403", "score": "0.55645597", "text": "@Override\n public ListViewItem getItem(int position) {\n return list.get(position);\n }", "title": "" }, { "docid": "848f8e582559060ce20100079cf77cfd", "score": "0.55622774", "text": "@Override\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n\t \n\t }", "title": "" }, { "docid": "d268677927a22c63b28f121737a6da70", "score": "0.55600643", "text": "@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n \t\n \t\n }", "title": "" }, { "docid": "4ad4ddef09bf16f883ad9ab6616fe514", "score": "0.555742", "text": "private void updateProductsList() {\n this.productsList = demonstrationApplicationController.getProductsList();\n this.jListProduct.setModel(new ModelListSelectable(this.productsList));\n }", "title": "" }, { "docid": "597984b3a8fb1e84b2160a097d8657e1", "score": "0.5557356", "text": "public void displayItems(){\n\n //Prepare Item ArrayList\n ArrayList<Item> itemList = new ArrayList<Item>();\n\n Cursor results = items_db_helper.getRecords();\n\n while(results.moveToNext()){\n int _id = results.getInt(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_ID));\n String item_title = results.getString(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_TITLE));\n int quantity_in_stock = results.getInt(results.getColumnIndex(DatabaseTables.InventoryItems.QUANTITY_IN_STOCK));\n double item_price = results.getDouble(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_PRICE));\n byte[] item_thumbnail_byte = results.getBlob(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_THUMBNAIL));\n Bitmap item_thumbnail = BitmapFactory.decodeByteArray(item_thumbnail_byte, 0, item_thumbnail_byte.length);\n\n //Create an Item object and store these data here (at this moment we will only extract data relevant to list item\n Item item = new Item();\n item.setItemId(_id);\n item.setItemTitle(item_title);\n item.setItemPrice(item_price);\n item.setItemThumbnail(item_thumbnail);\n item.setQuantityInStock(quantity_in_stock);\n\n itemList.add(item);\n }\n\n final ListView listView = (ListView) findViewById(R.id.item_list);\n listView.setItemsCanFocus(false);\n listView.setEmptyView(findViewById(R.id.empty_list_text));\n ItemAdapter itemAdapter = new ItemAdapter(MainActivity.this, itemList);\n listView.setAdapter(itemAdapter);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Item curr_item = (Item) listView.getItemAtPosition(i);\n Intent details_intent = new Intent(MainActivity.this, DetailsActivity.class);\n details_intent.putExtra(\"item_id\", curr_item.getItemId());\n startActivity(details_intent);\n }\n });\n\n }", "title": "" }, { "docid": "c086dd9ad463a57b56268b98d78de22e", "score": "0.55482817", "text": "public static void itemsearch(List<String> shoppingList) {\n\n\n\n if(shoppingList.contains(\"milk\")){\n System.out.println(\"The list contains milk\");\n }\n else{\n System.out.println(\"We dont have milk on our list\");\n }\n\n if(shoppingList.contains(\"bananas\")){\n System.out.println(\"the list contains bananas\");\n }\n else{\n System.out.println(\"We dont have bananas on our list\");\n }\n }", "title": "" }, { "docid": "fb2ef91ebc6193587157681481d68f7c", "score": "0.55443764", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case 1:\n //add product\n addProduct();\n break;\n// case 2:\n// //Delete product\n// isDeleting = true;\n//\n// //show accept button\n// accept.setVisibility(View.VISIBLE);\n//\n// //change accept button text\n// accept.setText(getResources().getString(R.string.done));\n//\n// adapter = new DetailedShoppingListAdapter(getActivity(), productList, true, new AppInterfaces.IEditItem() {\n// @Override\n// public void deleteItem(int position) {\n// //delete product from list\n// productList.remove(position);\n//\n// //update user\n// user.setShoppingLists(shoppingLists);\n// dataController.saveUser(user);\n//\n// //refresh list\n// adapter.notifyDataSetChanged();\n//\n// //set new total price\n// totalPriceTextView.setText(utils.calculateTotalPrice(productList));\n// }\n//\n// @Override\n// public void changeQuantity(Product product, int position) {}\n//\n// @Override\n// public void changePrice(Product product, int position) {}\n//\n// @Override\n// public void changeQuantityType(Product product, int productPosition, int spinnerPosition) {\n// }\n//\n// }, null);\n// listView.setAdapter(adapter);\n// break;\n case 3:\n //Delete shopping list\n deleteShoppingList();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "e1a6a3101cb4bcb2ff40b0b849fbc566", "score": "0.5541801", "text": "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "title": "" }, { "docid": "52b3cbf7e8a02ea714687a7100e88e06", "score": "0.55395794", "text": "@Override\n public Fish getItem(int position) {\n Log.d(\"Adapter\",\"getting an item\");\n return (Fish)list.get(position);\n }", "title": "" }, { "docid": "20d55b6a40e0d80a642b4d8ab1f69781", "score": "0.5535686", "text": "public void populateListView() {\n\n\n }", "title": "" }, { "docid": "4d6ba2128e04fe741fce7293cd55cf6c", "score": "0.55352193", "text": "@Override\n\tpublic List<Estadoitem> listar() {\n\t\treturn estaitemdao.listar();\n\t}", "title": "" }, { "docid": "85b570882aecc6c83eda312eede87f1a", "score": "0.5533402", "text": "public interface ShopItem\n{\n\tDrawable getIcon();\n\n\tString getDisplayName();\n\n\tString getDescription();\n\n\tString getDataName();\n\n\tBigDecimal getCost(int count);\n\n\tvoid init(GameResources resources, AtomicInteger progress);\n\n\tint getProgressCount();\n}", "title": "" }, { "docid": "db65b0ab60e959b5b7ca5e2fd07b46fa", "score": "0.5531259", "text": "@Override\n public Object getItem(int position) {\n return listInfoList.get(position);\n }", "title": "" }, { "docid": "2cc5dc2e3dabe0e52c07d6bce97a91aa", "score": "0.55301726", "text": "@Override\n public int getItemCount() {\n return listItems.size();\n }", "title": "" }, { "docid": "4bfea5bae26b4654bf8a53e5408337fa", "score": "0.55273426", "text": "@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n String productName = getItem(position).getAsJsonObject().getAsJsonObject(\"product\").get(\"name\").getAsString();\n String productPrice = getItem(position).getAsJsonObject().get(\"value\").getAsString();\n String productShop = getItem(position).getAsJsonObject().getAsJsonObject(\"shop\").get(\"name\").getAsString();\n Log.i(\"productname\", productName);\n Log.i(\"productprice\", productPrice);\n Log.i(\"productshop\", productShop);\n // Get the edit text produit\n ViewHolderShoppingDetails holder = new ViewHolderShoppingDetails();\n // Bind item with item view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.item_shopping_details, parent, false);\n holder.product = convertView.findViewById(R.id.idProduct);\n holder.price = convertView.findViewById(R.id.idSearchPrice);\n holder.magasin = convertView.findViewById(R.id.idSearchMagasin);\n convertView.setTag(holder);\n } else {\n holder = (ViewHolderShoppingDetails) convertView.getTag();\n }\n\n // Set the produit in the edit text\n holder.product.setText(productName);\n holder.product.setId(position);\n holder.price.setText(productPrice);\n holder.price.setId(position);\n holder.magasin.setText(productShop);\n holder.magasin.setId(position);\n\n //TODO : Ajouter récupération dans la BDD du prix et du magasin (correspondant au produit (variable \"productName\"))\n\n return convertView;\n }", "title": "" }, { "docid": "43e8bb24605901e56383e5328f565f93", "score": "0.55222577", "text": "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n //Recipe recipe = recipes.get(position);\n mListener.onListInteraction(position, false);\n }", "title": "" }, { "docid": "4b91c7455d63741a70f7314720d934d2", "score": "0.55220956", "text": "@Override\n public void add(Fish object) {\n list.add(object);//adds the Fish to the list\n Log.d(\"Adapter\",\"added\");\n }", "title": "" }, { "docid": "bfa2f079093ed23238fd7b7fe45044d1", "score": "0.55195737", "text": "java.util.List<com.rpg.framework.database.Protocol.Item> \n getItemsList();", "title": "" }, { "docid": "bc8026f6017512b01e113b3034104911", "score": "0.55180734", "text": "@FXML\r\n\tpublic void addToShoppingCart() {\r\n\t\t\r\n\t\tWatch w = listView.getSelectionModel().getSelectedItem();\r\n\t\tboolean add = controller.addWatchToShoppingCart(w);\r\n\t\tcontroller.deleteWishlistItem(w.getId());\r\n\t\tlistView.setItems(controller.getWishlistWatchesForCurrentUser());\r\n\t\tlistView.getSelectionModel().select(-1);\r\n\t\tcheckSelected();\r\n\t}", "title": "" }, { "docid": "47b09eb7f0106afd4d605111a8028be7", "score": "0.55137944", "text": "@Override\n public Object getItem(int index) {\n return listInfo.get(index);\n }", "title": "" }, { "docid": "bc4e2827dea6177cf4538d24ce3ddfa2", "score": "0.5509916", "text": "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "title": "" }, { "docid": "5099d6a7ad53a225632772c7e74ce740", "score": "0.55067366", "text": "@Override\r\n public Object getItem(int position) {\n return list.get(position);\r\n }", "title": "" }, { "docid": "b55d860abba80f7f4cd321a2ed74258c", "score": "0.55059487", "text": "private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}", "title": "" }, { "docid": "ddcaefdfd5b0f6a0f7af359afc241943", "score": "0.5504038", "text": "protected void onListItemClick(ListView l, View v, int position, long id) {\n String pName = arrName.get(position);\n String pPrice = arrPrice.get(position);\n String pUsefor = arrUsefor.get(position);\n String pHowtouse = arrHowtouse.get(position);\n String pSeriousAdverse = arrSeriousAdverse.get(position);\n String pCommonAdverse = arrCommonAdverse.get(position);\n String pRegis = arrRegis.get(position);\n\n// Class ourClass = null;\n Intent pillDetailIntent = new Intent(this, PillDetail.class);\n pillDetailIntent.putExtra(\"pName\", pName);\n pillDetailIntent.putExtra(\"pPrice\", pPrice);\n pillDetailIntent.putExtra(\"pUsefor\", pUsefor);\n pillDetailIntent.putExtra(\"pHowtouse\", pHowtouse);\n pillDetailIntent.putExtra(\"pSeriousAdverse\", pSeriousAdverse);\n pillDetailIntent.putExtra(\"pCommonAdverse\", pCommonAdverse);\n pillDetailIntent.putExtra(\"pRegis\", pRegis);\n startActivity(pillDetailIntent);\n }", "title": "" }, { "docid": "606601c6a5c9227d97bf6ed750ea2b43", "score": "0.5499093", "text": "public List<Items> list() {\n\t\treturn itemDao.list();\r\n\t}", "title": "" }, { "docid": "7f0c5ac555eaff1e2b6a0ae271e454ab", "score": "0.5497873", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void set_List_Of_Product_Type_Of_Store_Two()\n\t{\n\t\tArrayList<Product> Product_Of_Store_Two = new ArrayList<Product>(); /* ArrayList Of Product */\n\t\tArrayList<String> String_Product_Of_Store_Two = new ArrayList<String>(); /* ArrayList Of The String Of The Product */\n\t\tArrayList<Product> temp_Product_Of_Store_Two = (ArrayList<Product>)CompanyManagerUI.Object_From_Comparing_For_Store_2.get(4);\t\n\t\t\n\t\tfor(int i = 0 ; i < temp_Product_Of_Store_Two.size() ; i++)\n\t\t{\n\t\t\tProduct_Of_Store_Two.add(temp_Product_Of_Store_Two.get(i));\n\t\t}\n\t\t\n\t\tfor(int i = 0 ; i < Product_Of_Store_Two.size() ; i++)\n\t\t{\n\t\t\tString_Product_Of_Store_Two.add(String.valueOf(Product_Of_Store_Two.get(i).getQuantity()) + \" ---> \" + String.valueOf(Product_Of_Store_Two.get(i).getpType()));\n\t\t}\n\t\t\n\t\tProduct_Of_Store_2 = FXCollections.observableArrayList(String_Product_Of_Store_Two);\n\t\tListViewQuantity_Store_2.setItems(Product_Of_Store_2);\n\t}", "title": "" }, { "docid": "165dfd2907f706413bd7e58db7a71798", "score": "0.5484234", "text": "public void setListAdapter() {\n\t\tm_dao = new ItemDao(this.getActivity());\n\t\t\n\t\tthis.m_adapter = new EditItemListAdapter(\n\t\t\t\tthis.getActivity(),\n\t\t\t\tR.layout.row,\n\t\t\t\tm_dao.getList());\n\n\n\n\t\tsetListAdapter(this.m_adapter);\n\n\t\tthis.m_adapter.setOnEditItemClickListener(\n\t\t\t\tnew EditItemListAdapter.OnEditItemClickListener() {\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Update the item status in the DB table\n\t\t\t\t\t */\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void OnSelectItem(Item item) {\n\n\t\t\t\t\t\tif(!toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.add(item);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void OnDeselectItem(Item item) {\n\t\t\t\t\t\tif(toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.remove(item);\n\n\t\t\t\t\t}\n\n\n\t\t\t\t});\n\n\n\t\t\n\t}", "title": "" }, { "docid": "5796b7f9a83e692fd6a0b52400f128a2", "score": "0.54840386", "text": "public ArrayList<ItemModel> getAllProducts() {\n ArrayList<ItemModel> products = new ArrayList<ItemModel>();\n SQLiteDatabase db = DBHelper.getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + DBHelper.TABLE_SHOPPINGLIST, null);\n\n c.moveToFirst();\n Log.d(DatabaseHelper.class.getName(), \"getAllProducts:\");\n\n while (!c.isAfterLast()) {\n String product = String.valueOf(c.getInt(c.getColumnIndex(DBHelper.SHOPPINGLIST_PID)));\n String quantity=String.valueOf(c.getDouble(c.getColumnIndex(DBHelper.SHOPPINGLIST_QUANTITY)));\n String unit = String.valueOf(c.getString(c.getColumnIndex(DBHelper.SHOPPINGLIST_UNIT)));\n int che = c.getInt(c.getColumnIndex(DBHelper.SHOPPINGLIST_CHECKMARK));\n boolean check;\n if (che==0) {check=Boolean.FALSE;} else {check = Boolean.TRUE;}\n\n ItemModel model = new ItemModel(product, quantity, unit, check);\n products.add(model);\n\n\n c.moveToNext();\n }\n\n db.close();\n\n for (ItemModel ph: products) {\n ph.setProduct(getNameByPID(Integer.parseInt(ph.getProductName())));\n Log.d(DatabaseHelper.class.getName(), \"\\tgetAllProducts:\" + ph.toString());\n }\n\n return products;\n }", "title": "" }, { "docid": "80712c3df7978be1cad7ab2c99306f37", "score": "0.5480337", "text": "public static void createLists() {\r\n \t\t// Raw Meat: (A bit cold...)\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.beef);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.porkchop);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.chicken);\r\n \t\t\r\n \t\t// Cooked Meat: (Meaty goodness for carnivorous pets!)\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_beef);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_porkchop);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_chicken);\r\n \t\t\r\n \t\t// Prepared Vegetables: (For most vegetarian pets.)\r\n \t\tObjectLists.addItem(\"vegetables\", Items.wheat);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.carrot);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.potato);\r\n \t\t\r\n \t\t// Fruit: (For exotic pets!)\r\n \t\tObjectLists.addItem(\"fruit\", Items.apple);\r\n \t\tObjectLists.addItem(\"fruit\", Items.melon);\r\n \t\tObjectLists.addItem(\"fruit\", Blocks.pumpkin);\r\n \t\tObjectLists.addItem(\"fruit\", Items.pumpkin_pie);\r\n \r\n \t\t// Raw Fish: (Very smelly!)\r\n \t\tObjectLists.addItem(\"rawfish\", Items.fish);\r\n \r\n \t\t// Cooked Fish: (For those fish fiends!)\r\n \t\tObjectLists.addItem(\"cookedfish\", Items.cooked_fished);\r\n \t\t\r\n \t\t// Cactus Food: (Jousts love these!)\r\n \t\tObjectLists.addItem(\"cactusfood\", new ItemStack(Items.dye, 1, 2)); // Cactus Green\r\n \t\t\r\n \t\t// Mushrooms: (Fungi treats!)\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom_block);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom_block);\r\n \t\t\r\n \t\t// Sweets: (Sweet sugary goodness!)\r\n \t\tObjectLists.addItem(\"sweets\", Items.sugar);\r\n \t\tObjectLists.addItem(\"sweets\", new ItemStack(Items.dye, 1, 15)); // Cocoa Beans\r\n \t\tObjectLists.addItem(\"sweets\", Items.cookie);\r\n \t\tObjectLists.addItem(\"sweets\", Blocks.cake);\r\n \t\tObjectLists.addItem(\"sweets\", Items.pumpkin_pie);\r\n \t\t\r\n \t\t// Fuel: (Fiery awesomeness!)\r\n \t\tObjectLists.addItem(\"fuel\", Items.coal);\r\n \t\t\r\n \t\t// Custom Entries:\r\n \t\tfor(String itemListName : itemListNames) {\r\n \t\t\taddFromConfig(itemListName.toLowerCase());\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "d349b3af3ed78e1296236c641f8eaef0", "score": "0.54771596", "text": "public void plannerShoppingListSetup(){\n //Set the items of the shopping list.\n shoppingList.setItems(shoppingListIngredients);\n //Format the cells of the shopping List ListView\n Callback<ListView<Ingredient>, ListCell<Ingredient>> ingredientsMealFormat =\n new Callback<ListView<Ingredient>, ListCell<Ingredient>>() {\n @Override\n public ListCell<Ingredient> call(ListView<Ingredient> ingredientListView) {\n ListCell<Ingredient> cell = new ListCell<>(){\n @Override\n protected void updateItem(Ingredient ingredient, boolean empty) {\n super.updateItem(ingredient, empty);\n if (empty){\n setText(null);\n } else {\n String quantityName = ingredient.getQuantityName();\n double quantityInGrams = ingredient.getQuantityInGrams();\n double quantityRatio = (quantityInGrams / ingredient.getSingleQuantityInGrams());\n\n DecimalFormat df = new DecimalFormat(\"#.#\");\n DecimalFormat df2 = new DecimalFormat(\"#\");\n\n if (quantityRatio > 1){\n quantityName = quantityName + \"s\";\n }\n\n setText( ingredient.getName() + \" ( \" + df2.format(quantityInGrams) + \" grams / \" +\n df.format(quantityRatio) + \" \" + quantityName + \")\");\n }\n setFont(InterfaceStyling.textFieldFont);\n }\n };\n return cell;\n }\n };\n shoppingList.setCellFactory(ingredientsMealFormat);\n Label emptyLabel = new Label(\"Empty Shopping List\");\n emptyLabel.setFont(InterfaceStyling.textFieldFont);\n //Set the label placeholder for an empty listview.\n shoppingList.setPlaceholder(emptyLabel);\n }", "title": "" }, { "docid": "f217717c42df73b3197e228179ecfc17", "score": "0.5474462", "text": "@FXML\n private void fiilSOPm(MouseEvent event) {\n obsSOP= FXCollections.observableArrayList(lstPlaylists.getSelectionModel().getSelectedItem().getAllSongsOnPlaylist());\n selectedPlaylistId = lstPlaylists.getSelectionModel().getSelectedItem().getId();\n lstSOP.setItems(obsSOP);\n \n }", "title": "" }, { "docid": "f570dbd22cb1f756fe3663c22a0cfaa4", "score": "0.5467579", "text": "@Override\r\n\tpublic void checkListItem(Integer id, Boolean isChecked) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tListItem li = new ListItem();\r\n\t\tli.setId(id);\r\n\t\tli.setChecked(isChecked);\r\n\t\tthis.listItemMapper.checkListItem(li);\r\n\t}", "title": "" }, { "docid": "9d075a84b1f138418c12efda56fcecd5", "score": "0.5463301", "text": "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "title": "" }, { "docid": "9d075a84b1f138418c12efda56fcecd5", "score": "0.5463301", "text": "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "title": "" }, { "docid": "9d075a84b1f138418c12efda56fcecd5", "score": "0.5463301", "text": "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "title": "" }, { "docid": "9d075a84b1f138418c12efda56fcecd5", "score": "0.5463301", "text": "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "title": "" }, { "docid": "9d075a84b1f138418c12efda56fcecd5", "score": "0.5463301", "text": "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "title": "" }, { "docid": "9d075a84b1f138418c12efda56fcecd5", "score": "0.5463301", "text": "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "title": "" }, { "docid": "cf279081ad7c57781f520f1d8fd6b9f3", "score": "0.5457", "text": "@Override\n public Object getItem(int position) {\n return listODI.get(position);\n }", "title": "" }, { "docid": "94929c31280d5e08363dbcb5fd9e4b98", "score": "0.5441268", "text": "public IngredientAdapter(@NonNull Context context, ArrayList<Ingredient> list){\n super(context, 0, list);\n mContext = context;\n ingredientList = list;\n }", "title": "" }, { "docid": "8ba74a13414a454963968180b97ff8f4", "score": "0.5434907", "text": "@Override\n public int getItemCount() {\n return listitems.size();\n }", "title": "" }, { "docid": "54548c874f3dce7726d0d7818b037e4a", "score": "0.5434627", "text": "public ChainShopAdapter(List<MultiItemEntity> data) {\n super(data);\n addItemType(TYPE_LEVEL_1, R.layout.item_shop_employess_list);\n addItemType(TYPE_PERSON, R.layout.item_shop_employee);\n }", "title": "" }, { "docid": "5a81402ad585f5dff0b4fd2904825658", "score": "0.54315996", "text": "public List<TaskItemBean> getItemList(){\n return itemList;\n }", "title": "" } ]
d15f193310403d1831f581beec9885f7
Sets the cleanup flag denoting the file can be cleaned up to true.
[ { "docid": "d60152f1a8c76aacdbad387539e76890", "score": "0.7246966", "text": "public void setForCleanup() {\n mFlags.set(CLEANUP_BIT_FLAG);\n }", "title": "" } ]
[ { "docid": "313867430b68d67cc0f858b726795cc5", "score": "0.7028499", "text": "public void setForCleanup(boolean value) {\n mFlags.set(CLEANUP_BIT_FLAG, value);\n }", "title": "" }, { "docid": "f04401fb2060e6942fe10f527ccb7972", "score": "0.6786677", "text": "public void setCleanup(CLEANUP_OPTIONS cleanup) {\n mCleanup = cleanup;\n }", "title": "" }, { "docid": "026251db1999117db41c0d57b551a554", "score": "0.655929", "text": "public ResolvedFile cleanUp(boolean cleanUp) {\n mShouldCleanUp = cleanUp;\n return this;\n }", "title": "" }, { "docid": "496402e1bd555e90334faa63ddaff760", "score": "0.63691264", "text": "public void setCleanup(String cleanup) {\n this.setCleanup(CLEANUP_OPTIONS.valueOf(cleanup));\n }", "title": "" }, { "docid": "748a95249aa489580ffcdbcaf0b1bf9b", "score": "0.6287169", "text": "public void cleanUpFiles() {\n\n\t}", "title": "" }, { "docid": "05f92204a2b7f111e353e89779f2634d", "score": "0.6124466", "text": "@Override\r\n\tpublic void cleanup(boolean bDelete)\r\n\t{\r\n\t}", "title": "" }, { "docid": "e3e2eeb871d8fe5a37409564856a1244", "score": "0.6056179", "text": "@Override\n public boolean needsCleanup() {\n return false;\n }", "title": "" }, { "docid": "76d44048c349dab3adaa7b8840052613", "score": "0.5995037", "text": "boolean hasCleanupOnFailure();", "title": "" }, { "docid": "7b36bb4bb701674a9c7752b758f46119", "score": "0.59599614", "text": "public void setClean() {\n dirty = false;\n }", "title": "" }, { "docid": "8085b01abfc10b7cdd90f2c76dcd23fc", "score": "0.5851754", "text": "public void cleanImages(boolean clean)\n \t{\n \t\tthis.cleanImages = clean;\n \t}", "title": "" }, { "docid": "d46035cf0a2676a570dfc49540385742", "score": "0.58169603", "text": "boolean getCleanupOnFailure();", "title": "" }, { "docid": "23ecea8c25a8d0854b52557c3285848b", "score": "0.57650006", "text": "protected void cleanup() {\n }", "title": "" }, { "docid": "df6d44acf82141677fe39347975aea30", "score": "0.57456195", "text": "public void setFileFinalized(boolean fileFinalized);", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.5717391", "text": "public void cleanup();", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.5717391", "text": "public void cleanup();", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.5717391", "text": "public void cleanup();", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.5717391", "text": "public void cleanup();", "title": "" }, { "docid": "d1321c031ebecb8dabc69a84dcf146e4", "score": "0.57083976", "text": "protected void cleanup() {\n }", "title": "" }, { "docid": "809d7fd4db6cd69555f9035f6dff8459", "score": "0.5700275", "text": "protected void cleanup() {\n \n }", "title": "" }, { "docid": "5fa2f565389ee47d7fda7f44bb82846b", "score": "0.56989706", "text": "public void cleanup()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "f66928c91f7dcbd2cce52eaedb71eca2", "score": "0.56679225", "text": "public void cleanup() {\n\t\t\n\t}", "title": "" }, { "docid": "f66928c91f7dcbd2cce52eaedb71eca2", "score": "0.56679225", "text": "public void cleanup() {\n\t\t\n\t}", "title": "" }, { "docid": "04a6934dda2097ed03c9731c5dcd1f65", "score": "0.5640735", "text": "@AfterClass\n public static void cleanupFiles() {\n for (File file : FILES) {\n if (!file.delete()) {\n Assert.fail(\"Unable to cleanup resource\");\n }\n }\n }", "title": "" }, { "docid": "913d5ea1d58ab00386bb62eca12e03e6", "score": "0.5631577", "text": "public void cleanup() {\n\t}", "title": "" }, { "docid": "913d5ea1d58ab00386bb62eca12e03e6", "score": "0.5631577", "text": "public void cleanup() {\n\t}", "title": "" }, { "docid": "a37d4e9f5b99dbea741b2ed0a577b097", "score": "0.56263465", "text": "protected abstract void cleanup();", "title": "" }, { "docid": "a37d4e9f5b99dbea741b2ed0a577b097", "score": "0.56263465", "text": "protected abstract void cleanup();", "title": "" }, { "docid": "519b705c9b4e5cc2dda76ada0a1e12d2", "score": "0.5602943", "text": "public void cleanup() {\n\n\t}", "title": "" }, { "docid": "356c8a7471fa5197d97639ad9d61f3c3", "score": "0.5565527", "text": "public abstract void cleanup();", "title": "" }, { "docid": "356c8a7471fa5197d97639ad9d61f3c3", "score": "0.5565527", "text": "public abstract void cleanup();", "title": "" }, { "docid": "8f2018db8cb52466f73affdec665c156", "score": "0.55563074", "text": "public void cleanDoctypes(boolean clean)\n \t{\n \t\tthis.cleanDoctypes = clean;\n \t}", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.55023146", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.55023146", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.55023146", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.55023146", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.55023146", "text": "void cleanup();", "title": "" }, { "docid": "5b22f812bddce1498fe727d4e71edcd4", "score": "0.5493021", "text": "public void cleanMeta(boolean clean)\n \t{\n \t\tthis.cleanMeta = clean;\n \t}", "title": "" }, { "docid": "c5271674c4c4e65b93b52dc29812f224", "score": "0.54875505", "text": "@AfterClass\n public static void cleanAfterClass() {\n File file = new File(SettingsHelper.SETTINGS_FILEPATH);\n if (file.exists()) {\n file.delete();\n }\n SettingsHelper.dispose();\n }", "title": "" }, { "docid": "a8b7c2f9a9ec5a4fb81bcc5c9dc407be", "score": "0.5480209", "text": "@Override\n public void cleanup() {\n if (fileFieldsMap != null) {\n for (List<FileItem> files: fileFieldsMap.values()) {\n for (FileItem file: files) {\n file.cleanup();\n }\n }\n }\n }", "title": "" }, { "docid": "855a4980371c039365dafc0f4484fb55", "score": "0.5475059", "text": "public void cleanup() {\n // do nothing\n }", "title": "" }, { "docid": "08e9bd177e9c88164ef941656f6fa367", "score": "0.5447674", "text": "@Override\n\tpublic void cleanup() {\n\t\tsuper.cleanup();\n\t}", "title": "" }, { "docid": "ce3a6dc3f834a462ca19c61156bc6771", "score": "0.54389334", "text": "public void setExpandCleanupFileset(FileSetType fileSet)\n {\n _expandCleanupFileSet = fileSet;\n }", "title": "" }, { "docid": "238f7f4776dfddcb79ec011697a44a70", "score": "0.5436833", "text": "@After\n public void cleanup() {\n FileUtils.deleteQuietly(new File(FILE_NAME + FILE_EXT));\n String fileName = archiveFile.getFileName(testApp);\n FileUtils.deleteQuietly(new File(fileName));\n }", "title": "" }, { "docid": "91c6dae57661a649db02a8a562f4168b", "score": "0.54238117", "text": "@Override\n\tpublic void cleanup() {\n\t\t\n\t}", "title": "" }, { "docid": "91c6dae57661a649db02a8a562f4168b", "score": "0.54238117", "text": "@Override\n\tpublic void cleanup() {\n\t\t\n\t}", "title": "" }, { "docid": "2f7abbf67afc5fc014c01ab34feb262c", "score": "0.54157746", "text": "@Override\r\n\tpublic void cleanup() {\n\t}", "title": "" }, { "docid": "6a08eccb69c32a42e593541a23240715", "score": "0.5411038", "text": "public void setCleanReferences(boolean clean_references) {\n this.clean_references = clean_references;\n }", "title": "" }, { "docid": "7d8832a8a82b8407c009e5f8040c1a0f", "score": "0.53916365", "text": "protected void cleanup() {\n // Always delete pct.pl, even in debugPCT mode\n if (pctLib != null) {\n deleteFile(pctLib);\n }\n if (runAttributes.isDebugPCT())\n return;\n\n deleteFile(initProc);\n deleteFile(status);\n deleteFile(profilerParamFile);\n for (OutputParameter param : runAttributes.getOutputParameters()) {\n deleteFile(param.getTempFileName());\n }\n deleteFile(xcodeDir);\n }", "title": "" }, { "docid": "2cc7e41525a2d433cc0388f75b80e40f", "score": "0.53892046", "text": "private static synchronized void setupLockClean()\n\t{\n\t\tif (!hasLockFiles)\n\t\t{\n\t\t\thasLockFiles = true;\n\t\t\tRuntime.getRuntime().addShutdownHook(new Thread()\n\t\t\t{\n\t\t\t public void run()\n\t\t\t {\n\t\t\t \tfor (String filename : lockFiles)\n\t\t\t \t{\n\t\t\t \t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tFiles.delete(Paths.get(filename));\n\t\t\t\t\t\t}\n\t\t\t \t\tcatch (IOException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t \t}\n\t\t\t }\n\t\t\t});\n\t\t}\n\t}", "title": "" }, { "docid": "036e952206aa8cf363445a507e6aac48", "score": "0.5364311", "text": "public void beClean () {\n }", "title": "" }, { "docid": "9cf40e47d9957c5434339e3ba0520a5a", "score": "0.53637123", "text": "@Override\n public void cleanup() {\n }", "title": "" }, { "docid": "4b09032a91a0cb5507921eca461dee5a", "score": "0.53383464", "text": "@Override\n\tpublic void cleanup() {\n\n\t}", "title": "" }, { "docid": "4b09032a91a0cb5507921eca461dee5a", "score": "0.53383464", "text": "@Override\n\tpublic void cleanup() {\n\n\t}", "title": "" }, { "docid": "8c927a1e822869b0deade0ece9ce217b", "score": "0.533802", "text": "@Override\r\n\tpublic void cleanup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5b14904d144fcdf6b34b515ee2e3d576", "score": "0.53110176", "text": "private void cleanUp()\n {\n try\n {\n delete(_kdcDirectory);\n }\n catch (IOException e)\n {\n LOGGER.warn(\"Failure to delete KDC directory\", e);\n }\n for (final File file: _createdFiles)\n {\n if (!file.delete())\n {\n LOGGER.warn(\"Failure to delete file {}\", file.getAbsolutePath());\n }\n }\n }", "title": "" }, { "docid": "e44b1402ec427ce1bc64069196e9f94f", "score": "0.5309502", "text": "private void cleanup() {\r\n\t\t// TODO Perform any cleanup operations\r\n\t}", "title": "" }, { "docid": "e72547992adc974dfdea2aabd143c18a", "score": "0.53009903", "text": "public void cleanLinks(boolean clean)\n \t{\n \t\tthis.cleanLinks = clean;\n \t}", "title": "" }, { "docid": "e8456fb05c44cfe72c9d107357e4f71f", "score": "0.52996814", "text": "protected abstract void doCleanUp();", "title": "" }, { "docid": "ce130a69b47c5347a1d4992df5bf5c2f", "score": "0.52885276", "text": "public void abort() {\n errorDuringWrite = true;\n try {\n super.close();\n Files.deleteIfExists(temporaryFile);\n Files.deleteIfExists(backupFile);\n } catch (IOException exception) {\n LOGGER.debug(\"Unable to abort writing to file {}\", temporaryFile, exception);\n }\n }", "title": "" }, { "docid": "8586c7e8d6ffeb54962f93e18dab9088", "score": "0.52776325", "text": "public static void FileCleaner(){\n try {\r\n FileWriter fw = new FileWriter(file);\r\n fw.write(\"\");\r\n fw.close();\r\n }catch(IOException ioe){\r\n ioe.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "daab9228203656d59999b58cfad38310", "score": "0.52745163", "text": "@Override\n public void cleanup() {\n\n }", "title": "" }, { "docid": "daab9228203656d59999b58cfad38310", "score": "0.52745163", "text": "@Override\n public void cleanup() {\n\n }", "title": "" }, { "docid": "45d14b544b57cb8b4732de259cf28900", "score": "0.52664167", "text": "public boolean canBeCleanedup() {\n return mFlags.get(CLEANUP_BIT_FLAG);\n }", "title": "" }, { "docid": "46ba9bbffa821d3fe3c595e4ab23ac9c", "score": "0.5229621", "text": "@Override\n\t protected void cleanup(Context context) throws IOException, InterruptedException {\n\t FileSystem filesys = FileSystem.get(context.getConfiguration());\n\t filesys.delete(new Path(\"tempoutput\"), true);\n\t super.cleanup(context);\n\t }", "title": "" }, { "docid": "c7df6ac1b201043d351c5094a21429b4", "score": "0.5209084", "text": "@AfterClass\n public static void cleanup(){\n System.setProperty(\"user.dir\", userDir);\n }", "title": "" }, { "docid": "3c1f0178902fae6b89b419819c2ce18a", "score": "0.52038765", "text": "@AfterClass\n public static void cleanup() throws IOException {\n FileUtils.deleteDirectory(outputBaseDir);\n }", "title": "" }, { "docid": "bb2120fc243b8a2fc3ec5b84caad8c56", "score": "0.51965404", "text": "public boolean removeInitFile() {\n if (isSetUp())\n return this.initFile.delete();\n return false;\n }", "title": "" }, { "docid": "84e6b705b7d7e6075335ba36e19aed08", "score": "0.5184241", "text": "@Override\n public void cleanup(Context context) throws IOException {\n }", "title": "" }, { "docid": "516820ebaa214eba587541d9fcabc2fe", "score": "0.5157196", "text": "public void cleanUp();", "title": "" }, { "docid": "978379f8b6c105830f28697f60daca58", "score": "0.5146743", "text": "@After\n public void cleanUp() {\n String[] newPaths = getPaths();\n for (String path : newPaths) {\n if (!Arrays.asList(oldPaths).contains(path)) {\n if (!new File(path).delete())\n Assert.fail(\"Warning: files created by this test could not be deleted, file path=\" + path);\n }\n }\n }", "title": "" }, { "docid": "5d08b2c8fba1546e6e64cf9a8a7cf691", "score": "0.5143723", "text": "protected void cleanup(boolean initial)\n\t{\n\t\tif(initial)\n\t\t{\n\t\t\tfor(JsFile f : scripts.keySet())\n\t\t\t\tstat.add(f, \"clear\", 0L);\n\n\t\t\tscripts.clear();\n\t\t}\n\n\t\t//~: invocation stack\n\t\tthis.stack = null;\n\n\t\t//~: close the wrapped streams\n\t\tthis.streams.close();\n\t}", "title": "" }, { "docid": "fb113eb31c15bf6ebfcaf293e59be11c", "score": "0.5140728", "text": "public void finalizeWrite() {\n if (!shouldReplace) {\n return;\n }\n // The file visibility should be kept by the configured ConsistencyGuard instance.\n try {\n fs.delete(oldFilePath, false);\n } catch (IOException e) {\n throw new HoodieIOException(\"Error while cleaning the old base file: \" + oldFilePath, e);\n }\n try {\n fs.rename(newFilePath, oldFilePath);\n } catch (IOException e) {\n throw new HoodieIOException(\"Error while renaming the temporary rollover file: \"\n + newFilePath + \" to old base file name: \" + oldFilePath, e);\n }\n }", "title": "" }, { "docid": "6976a09feda6f214999f80929f58d5d1", "score": "0.5140427", "text": "@After public void teardown() {\n try { delete(new File(o));\n } catch (FileNotFoundException e) {}\n }", "title": "" }, { "docid": "78634f28c8a86fd556ea339c03cb2f7d", "score": "0.5123891", "text": "@Override\n\n public void cleanup() {\n\n }", "title": "" }, { "docid": "474be8ea82a5e93be3d51e7a8238f0f2", "score": "0.5085767", "text": "public void cleanup() {\r\n\t\tthis.dataGen.cleanup();\r\n\t}", "title": "" }, { "docid": "a9ed646b59c974118626f5fec9b9b35d", "score": "0.5082531", "text": "private void cleanUp() {\n this.loader.cleanUP();\n }", "title": "" }, { "docid": "970f05389f07aa260ca14b70a88da8ce", "score": "0.5080367", "text": "@After\n public void cleanup() {\n\t\tFile dir = new File(folder);\n\t\tFile[] directoryListing = dir.listFiles();\n\t\tif (directoryListing != null) {\n\t\t\tfor (File child : directoryListing) {\n\t\t\t\tchild.delete();\n\t\t\t}\n\t\t\tdir.delete();\n\t\t}\n\t}", "title": "" }, { "docid": "3d62a85e11b225191e5a4cb7915b4b72", "score": "0.5064462", "text": "public void cleanUp(){\n out.cleanUp();\n }", "title": "" }, { "docid": "2885447fb50947fd126df9526334a88f", "score": "0.5048269", "text": "public final void clean() {\n clean(false);\n }", "title": "" }, { "docid": "547be48dfa077fec3ae2d5d961768659", "score": "0.50478786", "text": "public void doMyCleanupStuff() {\r\n\t\t System.out.println(\"Inside destroyer \");\r\n\t }", "title": "" }, { "docid": "5323eeb7dff32235b16517a7aef12ec4", "score": "0.50414574", "text": "@AfterClass\n public void cleanUp() {\n for (String file : resources) {\n File benchmarkFile = new File(System.getProperty(\"user.dir\") + File.separator + file);\n benchmarkFile.delete();\n }\n }", "title": "" }, { "docid": "5002e12371d3f5d290a9c11e937d14ff", "score": "0.50360584", "text": "void cleanUp();", "title": "" }, { "docid": "10d0396f0daad1de6caf244031abb979", "score": "0.50295925", "text": "protected void cleanUp() {\n\t}", "title": "" }, { "docid": "183aa6dc2e37b678bdde94f4fda3b909", "score": "0.50265294", "text": "public void cleanUp();", "title": "" }, { "docid": "8bdce620951f214035fd9c76cbf62ec1", "score": "0.5024783", "text": "private void cleanFile(String filename)\n {\n try\n {\n Scanner dirtyFile = new Scanner(new FileInputStream(filename));\n PrintWriter cleanFile = new PrintWriter(new FileOutputStream(\"doc/temp.txt\"));\n\n while(dirtyFile.hasNextLine())\n {\n cleanFile.println(cleanString(dirtyFile.nextLine()));\n }\n\n dirtyFile.close();\n cleanFile.close();\n\n //deletes the dirty file\n File oldFile = new File(filename);\n oldFile.delete();\n\n //renames the clean file like the diry file\n File newFile = new File(\"doc/temp.txt\");\n newFile.renameTo(new File(filename));\n }\n catch (IOException e)\n {\n //\n }\n }", "title": "" }, { "docid": "5dba979f4685e22baf5c4533dba16711", "score": "0.5021028", "text": "@Override\n public void cleanup() throws IOException {\n logger.debug(\"IPFS record writer cleanup\");\n gen.flush();\n stream.close();\n }", "title": "" }, { "docid": "3170de5835fdec6ec67c67bd11684713", "score": "0.50109243", "text": "public CLEANUP_OPTIONS getCleanup() {\n return mCleanup;\n }", "title": "" }, { "docid": "115eee471f44c8f542a797a63326129e", "score": "0.5010707", "text": "public void cleanStyles(boolean clean)\n \t{\n \t\tthis.cleanStyles = clean;\n \t\tif (clean && !this.compactTags.contains(\"style\"))\n \t\t\tthis.compactTags.add(\"style\");\n \t\telse if (!clean)\n \t\t\tthis.compactTags.remove(\"style\");\n \t}", "title": "" }, { "docid": "75e5ec1ff55dc2be0283fdd434aa2e66", "score": "0.5008391", "text": "private void internal_clean () {\n\t\t\treturn;\n\t\t}", "title": "" }, { "docid": "dc2d40de9bdd875d8665d13ffd9d63b5", "score": "0.50029486", "text": "public boolean isFileFinalized();", "title": "" }, { "docid": "74b42e9617418671748ecb65f41ff1fc", "score": "0.49953946", "text": "@Test\n\tpublic void testCleanFile() throws IOException {\n\t\tLOG.info(\"Charset.defaultCharset=\" + Charset.defaultCharset());\n\t\tFile file = new File(getClass().getClassLoader().getResource(\"specialCharTest.xml\").getFile());\n\t\tPath tmp = Files.createTempFile(\"xmlclean-test\", null);\n\t\tLOG.info(\"Using tmp file: \" + tmp);\n\t\tFiles.copy(file.toPath(), tmp, StandardCopyOption.REPLACE_EXISTING);\n\n\t\txmlCleaner.cleanFile(tmp.toFile());\n\n\t\tFile expected = new File(getClass().getClassLoader().getResource(\"specialCharTest.expected.xml\").getFile());\n\t\tAssert.assertArrayEquals(Files.readAllBytes(expected.toPath()), Files.readAllBytes(tmp));\n\t\ttmp.toFile().deleteOnExit();\n\t}", "title": "" }, { "docid": "f20df8debac959175ff5f70d4001a058", "score": "0.49891806", "text": "@After\n\tpublic void cleanup() {\n\t}", "title": "" }, { "docid": "fad55b14e524ab79dcceab9bb9ec242b", "score": "0.49858212", "text": "public abstract void unloadClean();", "title": "" }, { "docid": "b49ef4f1539269c209ec1f246e78b0f9", "score": "0.49840978", "text": "public void deleteOnExit( )\n {\n deleteOnExit = true;\n }", "title": "" }, { "docid": "f7ad3d5374617aa487cb591fab225529", "score": "0.49775356", "text": "public abstract void cleanUp();", "title": "" }, { "docid": "f4e564a70e99bd15ccab8a8e7a85eeac", "score": "0.49731815", "text": "@After\n public void cleanup() {\n if (compactionManager != null) {\n compactionManager.disable();\n compactionManager.awaitTermination();\n }\n }", "title": "" }, { "docid": "dd0122de7db51df0da74be2d0f85aeb9", "score": "0.49600226", "text": "@Override\n protected void tearDown() throws Exception {\n if(accessMonitor != null) {\n System.setSecurityManager(defaultSecurityManager);\n }\n \n if (testedFS instanceof JarFileSystem) {\n testedFS.removeNotify(); \n }\n testedFS = null;\n allTestedFS = null;\n }", "title": "" }, { "docid": "41db0a3ee51927918a00c4ca8aef5148", "score": "0.49585006", "text": "@After\n public void tearDown() throws Exception {\n newFile.delete();\n\n }", "title": "" }, { "docid": "4cd8d3c65534964368c2010597c90931", "score": "0.4957796", "text": "public static void cleanup(){\n File TempDir = new File(TEMP_DIR);\n File file = new File(TempDir.getPath()+\"/\"+BAT_FILE);\n //if we are running in a windows runtime\n //remove tha windows script file if its there\n if(OS.contains(\"Windows\") && file.exists()){\n //remove the file first\n file.delete();\n //then the temp dir\n TempDir.delete();\n }\n }", "title": "" }, { "docid": "84e8bb4bd0de436c78dbb762946defa9", "score": "0.4951507", "text": "public void cleanUp() {\n cleanupCalled = true;\n if (retriesPending == 0) {\n androidGDataClient.close();\n androidGDataClient = null;\n }\n }", "title": "" } ]
4331b7f58497e784af783df668ce50fd
/ renamed from: c
[ { "docid": "0d7630103a45946e510e1cdb7fff1bb5", "score": "0.0", "text": "public final String mo24147c() {\n return this.f26748e;\n }", "title": "" } ]
[ { "docid": "c548b9a664a55dc74028b1bf997c9fcd", "score": "0.6652603", "text": "void mo40679c();", "title": "" }, { "docid": "2750b9144d2ba00367e5b09fc44e6551", "score": "0.6265983", "text": "void mo1562a(C2199c c2199c);", "title": "" }, { "docid": "131a35b13053e6892b432bf845b6428c", "score": "0.61351407", "text": "void mo1455a(C2276k c2276k);", "title": "" }, { "docid": "973337112fcf30843e53576bde015b27", "score": "0.61255944", "text": "void mo15366a(C3466a c3466a);", "title": "" }, { "docid": "35d0ebd02cf39f4189f8ef5c056f7051", "score": "0.6095244", "text": "void mo5871a(C33493a c33493a);", "title": "" }, { "docid": "6a01760ad0fe4d36de7c5590ad25e6a6", "score": "0.6060281", "text": "void mo103902c();", "title": "" }, { "docid": "02119911b7c7fd70c2fd7b0bf8b4fb62", "score": "0.6046102", "text": "void mo15367b(C3466a c3466a);", "title": "" }, { "docid": "e55efb76a98d99432268d58122b7753a", "score": "0.603462", "text": "void mo1396c();", "title": "" }, { "docid": "a072fa6aede21b02b208e08168b8716d", "score": "0.60014904", "text": "void mo11830c();", "title": "" }, { "docid": "06945ac2f483fdb2fe41c5fb2259b88a", "score": "0.59841484", "text": "public void mo3408a(C1085a c1085a) {\n }", "title": "" }, { "docid": "8b658c0b1d354db4f445b0181d517d13", "score": "0.5972591", "text": "void mo93547c();", "title": "" }, { "docid": "68a03b4fb0a70f596346ef001f370a37", "score": "0.5958815", "text": "public abstract zzccr mo29234i();", "title": "" }, { "docid": "dd557bd129a4c6672a1be96bbde695a9", "score": "0.5953766", "text": "void mo974a(C0587a c0587a);", "title": "" }, { "docid": "61d14ae4574ddbc47a561910608d1167", "score": "0.59494394", "text": "public abstract void c();", "title": "" }, { "docid": "43f18d4e56a33f46f30a3d2514423bfb", "score": "0.5949378", "text": "void mo25124c();", "title": "" }, { "docid": "174009fac2135561872f93beaa55ac9b", "score": "0.59434325", "text": "CharSequence mo2103c();", "title": "" }, { "docid": "6394149f71e2badaa8c3d9a23f9ef7d5", "score": "0.5939841", "text": "public abstract zzcci mo29233h();", "title": "" }, { "docid": "32f52f548aaa46ce6634a0794a0111a3", "score": "0.5938333", "text": "void mo65113a(C44499az c44499az);", "title": "" }, { "docid": "2d2af34b5f43221f02a3df4cea845c29", "score": "0.5930522", "text": "void mo1558c();", "title": "" }, { "docid": "00ea652063e4bb0cef8bf718dcf71f5e", "score": "0.5928269", "text": "protected abstract int mo4139a(C2952d c2952d);", "title": "" }, { "docid": "04456717ed6f056a90a9fa8567cdb54a", "score": "0.5919799", "text": "C5266d mo4084a(C5274c c5274c);", "title": "" }, { "docid": "8a684722d61232ab9116f78fc69fca5d", "score": "0.59105515", "text": "void mo7925a(C7575bv c7575bv);", "title": "" }, { "docid": "327a53b86ef2e1b9258e69756cb00fc2", "score": "0.5869073", "text": "void mo1625a(C2321d c2321d);", "title": "" }, { "docid": "5c67144ca96737189a261a2f5167bcfb", "score": "0.58569896", "text": "void mo83780c();", "title": "" }, { "docid": "b52a8fe32cd278844ef41da6a6a63d23", "score": "0.5848953", "text": "public String c()\r\n/* 43: */ {\r\n/* 44:43 */ return b() + \".info\";\r\n/* 45: */ }", "title": "" }, { "docid": "b7c060c85bdb9b24ddad40b19f6065cc", "score": "0.58461654", "text": "void mo57028be(C7620bi c7620bi);", "title": "" }, { "docid": "03a8e43bd34015a82b6c803265b49da5", "score": "0.58199656", "text": "C20675b mo38947d();", "title": "" }, { "docid": "6e351e39346d3e3366b5d22387718499", "score": "0.58121496", "text": "void mo90401a(C27304c cVar);", "title": "" }, { "docid": "679c94b1e01bbf172a6ebbded5e039b3", "score": "0.5797305", "text": "public abstract zzcbp mo29235j();", "title": "" }, { "docid": "cce1b673351dd0d76e18ebbf7b19f526", "score": "0.57934874", "text": "public interface C1981a extends C1692am {\n /* renamed from: c */\n C1997l mo7021c();\n}", "title": "" }, { "docid": "37386b58eef02156093b4e5e3c5a465e", "score": "0.57885134", "text": "public abstract void mo54488a(C20198c cVar);", "title": "" }, { "docid": "5c295322ce43aedc99cfc31448bfbd3f", "score": "0.57588303", "text": "public interface C0020c {\n /* renamed from: a */\n void m56a(C0023f c0023f, Event event, boolean z, C0027j c0027j);\n}", "title": "" }, { "docid": "6487b03aa8d8723ee741b9546ffc3c1b", "score": "0.57488316", "text": "C1997l mo7021c();", "title": "" }, { "docid": "5a866da64ff8530319010417b0a26cc9", "score": "0.57468915", "text": "C2276k mo1550a(C2276k c2276k);", "title": "" }, { "docid": "5bcd392e18a971793c2c14480711e7f3", "score": "0.57467496", "text": "public interface C7913b {\n void aCU();\n\n /* renamed from: sy */\n void mo32866sy(int i);\n }", "title": "" }, { "docid": "baa4119437cafe01f1edafd7fab3e6c1", "score": "0.5741145", "text": "boolean mo65115a(C46770bd c46770bd);", "title": "" }, { "docid": "0b86f4fd88bcc2181be6fbb28238cfbd", "score": "0.57263005", "text": "C45206b mo38948e();", "title": "" }, { "docid": "baf60770553874d6c49134164ceba16f", "score": "0.57235116", "text": "void mo24413b(C40439f c40439f);", "title": "" }, { "docid": "8b3439872d1e4297f287f77bdf1adecb", "score": "0.57168037", "text": "public interface C0589c {\n /* renamed from: a */\n void mo974a(C0587a c0587a);\n}", "title": "" }, { "docid": "28133ec615784d80f4fe6d22b7ae5555", "score": "0.5714947", "text": "C0633v mo7308a();", "title": "" }, { "docid": "347cf77ba163bbd959a0fe8f5665d2dc", "score": "0.57135046", "text": "void mo41183j();", "title": "" }, { "docid": "2779990a1cec341ebdd1f03b4aee829f", "score": "0.5707807", "text": "int mo45428c();", "title": "" }, { "docid": "d8d1ad3637b0a42a0baa0720e0947285", "score": "0.57033706", "text": "public int c()\r\n/* 58: */ {\r\n/* 59:166 */ return super.c() + 32;\r\n/* 60: */ }", "title": "" }, { "docid": "223fb64bb5378a231fb54bfdad5a58fd", "score": "0.56895125", "text": "public int CC7(){ return GET_C(); }", "title": "" }, { "docid": "ea2a4e15e5524820c5887606804f84d9", "score": "0.5689323", "text": "void mo67753j(C7620bi c7620bi);", "title": "" }, { "docid": "f7141604799164be1d35443a95e66706", "score": "0.56856155", "text": "void mo57029bf(C7620bi c7620bi);", "title": "" }, { "docid": "af9de255644470cfc9c9248f4b8d6053", "score": "0.5678851", "text": "C45321i mo38967x();", "title": "" }, { "docid": "dc01d9a06e65ca663ffcd7b7ef46da08", "score": "0.56668293", "text": "void mo5671c();", "title": "" }, { "docid": "65ed056a1f8b03c5d0de31911ab891cf", "score": "0.56639516", "text": "void mo5641c();", "title": "" }, { "docid": "0b50bcab38692f3523942bb05e2277da", "score": "0.5660026", "text": "int mo90404b(C27311c cVar);", "title": "" }, { "docid": "6754e3c59cdbcf8e0fbf4425d92fdf68", "score": "0.5658018", "text": "public interface C44908b {\n}", "title": "" }, { "docid": "da5806a74b9696317963ac89993cfee5", "score": "0.56577027", "text": "public interface C0191b {\n}", "title": "" }, { "docid": "48f20e5a19f09457da5a8f5ac86ff2d5", "score": "0.5648391", "text": "interface C8178a extends C8268o {\n /* renamed from: b */\n long mo25237b(long j);\n\n /* renamed from: c */\n long mo25238c();\n }", "title": "" }, { "docid": "0dfff4bcdd042ba3f1abde04571cf481", "score": "0.5645755", "text": "void mo1631c();", "title": "" }, { "docid": "488a6a7cb952a5be064ad2f1cac55a87", "score": "0.5640242", "text": "public final void mo103168c() {\n }", "title": "" }, { "docid": "19d2aa4e7b234d7698de2e539267cf60", "score": "0.56345785", "text": "public interface C2283b {\n}", "title": "" }, { "docid": "29127ec9e81e5913dd0ca8abb0caa361", "score": "0.56166553", "text": "void mo70686a(C43726c cVar);", "title": "" }, { "docid": "8fbb5b71805e2f3b6823d119f0f477e8", "score": "0.5615876", "text": "public void mo1323c() {\n }", "title": "" }, { "docid": "e55c27b0964a0a5e44533be8acabdd36", "score": "0.56080836", "text": "@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn \"C\";\n\t\t}", "title": "" }, { "docid": "db28d9f961c58487b1ec98583b1dc4dc", "score": "0.56011695", "text": "public abstract String mo104248b();", "title": "" }, { "docid": "4ff07cd356555a215710ee6ec1326eff", "score": "0.5598113", "text": "public interface C0453f {\n}", "title": "" }, { "docid": "1b9c24289d6f8f35a4a765ea50eeea9e", "score": "0.5570124", "text": "public void C_() {\n }", "title": "" }, { "docid": "a258271454fe06c677f9fdbbe58a0d77", "score": "0.55610114", "text": "List<C27311c> mo90405c();", "title": "" }, { "docid": "fdd0fd3f339008a29b01218231ec7291", "score": "0.55580604", "text": "public interface C5501c {\n /* renamed from: a */\n C5266d mo4084a(C5274c c5274c);\n}", "title": "" }, { "docid": "2b1d7cd594781f6e7ef7191101c928f2", "score": "0.5550642", "text": "public interface C35592u {\n /* renamed from: a */\n int mo90399a();\n\n /* renamed from: a */\n long mo90400a(C27311c cVar);\n\n /* renamed from: a */\n void mo90401a(C27304c cVar);\n\n /* renamed from: a */\n void mo90402a(C27311c cVar, boolean z);\n\n /* renamed from: b */\n int mo90403b();\n\n /* renamed from: b */\n int mo90404b(C27311c cVar);\n\n /* renamed from: c */\n List<C27311c> mo90405c();\n}", "title": "" }, { "docid": "6a450cabd0c7f2174d88253221e2a0e0", "score": "0.5547705", "text": "protected abstract void mo4022e(C2918d<T> c2918d);", "title": "" }, { "docid": "2bd3c816c9b3fce125a5718610fb98c4", "score": "0.55435574", "text": "public float c()\r\n/* 40: */ {\r\n/* 41:57 */ return this.c;\r\n/* 42: */ }", "title": "" }, { "docid": "d149b90de4acde942b3e590eddd77df2", "score": "0.5541833", "text": "public interface C4266a {\n }", "title": "" }, { "docid": "e16d41ea385156816d3f3e3e31badebd", "score": "0.5539933", "text": "private void m52678v() {\n }", "title": "" }, { "docid": "35d464d05e65e51cc544d1719374d82b", "score": "0.55332506", "text": "C15395c mo38945b();", "title": "" }, { "docid": "0955776dcda3c163dbd335f716c0b2f1", "score": "0.553325", "text": "void mo10766b();", "title": "" }, { "docid": "b54c6ed2723ba65de563a7df8ec91618", "score": "0.55308473", "text": "public abstract String mo3945c();", "title": "" }, { "docid": "2a10b345cfb68d2ad49b7f5e5d178ffa", "score": "0.5530501", "text": "void mo2104c(int i);", "title": "" }, { "docid": "c3c11cd62a3fac362775dea52030ab4c", "score": "0.5527611", "text": "public interface C14934a {\n /* renamed from: b */\n void mo24413b(C40439f c40439f);\n\n void bNO();\n\n void bNP();\n\n void bNQ();\n\n void bNR();\n\n void bNS();\n\n void bNT();\n\n void bNU();\n\n void bNV();\n\n void bNW();\n\n void bNX();\n\n void bNY();\n\n void bNZ();\n\n void bOa();\n\n void bOb();\n\n /* renamed from: ys */\n void mo24428ys(int i);\n\n /* renamed from: yt */\n void mo24429yt(int i);\n }", "title": "" }, { "docid": "2f27d0b4f37d6f62834236b0ac87c97d", "score": "0.552703", "text": "public interface C5971a {\n }", "title": "" }, { "docid": "2c7f6a67d9bae431180fd185c4851826", "score": "0.5522926", "text": "public interface C2169g {\n /* renamed from: a */\n C2276k mo1550a(C2276k c2276k);\n\n /* renamed from: w */\n long mo1551w();\n\n /* renamed from: x */\n C2276k mo1552x();\n}", "title": "" }, { "docid": "e0965120d5425015178bdd95c31bc19c", "score": "0.55203825", "text": "public interface C6409Ba {\n /* renamed from: a */\n String mo19440a();\n\n /* renamed from: b */\n InputStream mo19441b();\n\n /* renamed from: c */\n String[] mo19442c();\n}", "title": "" }, { "docid": "330fb60652277f643854b081333e4df2", "score": "0.55175954", "text": "protected abstract void mo6248a();", "title": "" }, { "docid": "a0f50d16d455982fb72b82f7dc69e71a", "score": "0.55108565", "text": "public final void mo65874c() {\n }", "title": "" }, { "docid": "aa9e7e11ea04773b006891766aa6102a", "score": "0.55028117", "text": "interface C0207j {\n}", "title": "" }, { "docid": "c5351da3194cc534b96c2beda4814676", "score": "0.55027753", "text": "void mo83778b();", "title": "" }, { "docid": "ade6c120077c07166a63e34c3670b300", "score": "0.54981583", "text": "protected abstract T mo401a(C0489c c0489c);", "title": "" }, { "docid": "e4e91e3cfa45ac9388efe8ccf4a2cec5", "score": "0.5496226", "text": "public czh(cvk paramcvk, bto parambto)\r\n/* 31: */ {\r\n/* 32: 64 */ this.g = paramcvk;\r\n/* 33: 65 */ this.f = new cza(this, parambto);\r\n/* 34: */ }", "title": "" }, { "docid": "d2231892e7176b119813b7e89f6fae7b", "score": "0.5496101", "text": "public static void method(C c) {\n\n }", "title": "" }, { "docid": "20545e1eff25258325528cc871870ce3", "score": "0.54952294", "text": "public interface C6954f {\n}", "title": "" }, { "docid": "0eb09ace4d7aae68f01d727be564b9d3", "score": "0.5491132", "text": "private static int m31656a(char c) {\n if (c < 128) {\n return f18606c[c];\n }\n return -1;\n }", "title": "" }, { "docid": "7457817de0ebf0990c319da1c032904f", "score": "0.548595", "text": "void mo1457a(C2327i c2327i, C2158g c2158g);", "title": "" }, { "docid": "7f9a8fd0eff34028dfa3030d20aba668", "score": "0.54838836", "text": "public interface C32493a {\n /* renamed from: Cu */\n V8Context mo53127Cu();\n }", "title": "" }, { "docid": "a53a4288244d8becdbfd20b04f8b3234", "score": "0.5482179", "text": "C2364b mo1559d();", "title": "" }, { "docid": "46ff3119a6318cb95f268d3175ab245e", "score": "0.54698765", "text": "public interface C0062n {\n /* renamed from: a */\n byte[] m429a();\n\n /* renamed from: b */\n String m430b();\n\n /* renamed from: c */\n boolean m431c();\n}", "title": "" }, { "docid": "8cc71a44935ae440043c3a9e984ce76d", "score": "0.5469126", "text": "public interface C8552b {\n /* renamed from: nC */\n void mo18653nC();\n }", "title": "" }, { "docid": "29d8f5992fc640ab09d55bd1a25a3bd5", "score": "0.54672843", "text": "public void a(cye paramcye)\r\n/* 163: */ {\r\n/* 164:170 */ this.f.c(paramcye);\r\n/* 165: */ }", "title": "" }, { "docid": "1c47adb8a562b44e00f6b6517708b6de", "score": "0.54650646", "text": "public cyb()\r\n/* 11: */ {\r\n/* 12:34 */ this.b = 1.0F;\r\n/* 13:35 */ this.c = 1.0F;\r\n/* 14:36 */ this.d = 1;\r\n/* 15:37 */ this.e = EnumFileEvent.a;\r\n/* 16:38 */ this.f = false;\r\n/* 17: */ }", "title": "" }, { "docid": "a8d0c2b6ae1dda8f66d5df32238bd120", "score": "0.5460674", "text": "private String referCP(int bytes)\n\t{\n\t\t//int bytes = dis.readUnsignedShort();\n\t\ttry{\n\t\t\tentry1 =cp.getEntry(bytes);\n\t\t\tString abc = entry1.getValues().substring(entry1.getValues().indexOf('=')+1);\n\t\t\tentry1 = cp.getEntryByIndexVal(abc);\n\t\t\tString name = entry1.getValues();\n\t\t\tname = name.substring(name.lastIndexOf('=')+2,name.lastIndexOf('\"'));\n\t\t\treturn name;\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\t//System.out.println(\"Exception in Readbytecode.java/referCP : \"+ex.toString());\n\t\t\treturn \"Error\";\n\t\t}\n\t}", "title": "" }, { "docid": "9a0d3d94f45ec0c4a3073917b9f06ce0", "score": "0.54605275", "text": "String m430b();", "title": "" }, { "docid": "182c4df846d04c4d380f3371d64fd710", "score": "0.5457752", "text": "public interface C4182d {\n}", "title": "" }, { "docid": "9f7262dd68b069390fa2c0a1cb306a0b", "score": "0.5457623", "text": "public interface C5275b {\n}", "title": "" }, { "docid": "628724e91f4175e83fdf8d3adf9cb543", "score": "0.5453742", "text": "void mo85233c(String str);", "title": "" }, { "docid": "b398eca40705ae7789fe009bfae79e4a", "score": "0.5452419", "text": "protected abstract void mo4021a(C2918d<T> c2918d);", "title": "" }, { "docid": "91e1805d3d85bf9bac464255651a1ed0", "score": "0.5449879", "text": "public interface C45783b {\n /* renamed from: b */\n C45781a mo110997b();\n}", "title": "" }, { "docid": "4a05adf73df28d59617c0199673d9701", "score": "0.5448312", "text": "public interface C1869c {\n /* renamed from: a */\n String mo1399a(String str);\n}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "edeee19a81b4fd8198e4f295056807ea", "score": "0.0", "text": "@Override\r\n\tpublic void HideToolBar(Context _in_context) {\n\r\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": "" } ]
2c0f95dc6e0603e6c0f6006ce055cf04
Move the entity in a random position.
[ { "docid": "6a2788778431443804bfca0981a680a5", "score": "0.73483473", "text": "public Platform randomMove()\n {\n int random;\n ArrayList<Platform> possibleLocations = m_position.getAvailableLocations();\n\n Collections.shuffle(possibleLocations, m_mt);\n\n // Find a place\n if(!possibleLocations.isEmpty()) // The entity is stuck\n { \n random = m_mt.nextInt(possibleLocations.size());\n m_position = possibleLocations.get(random);\n }\n\n // Define a random direction\n random = m_mt.nextInt(4);\n\n switch(random)\n {\n case(0):\n m_direction.setFirst(0);\n m_direction.setSecond(1);\n break;\n case(1):\n m_direction.setFirst(0);\n m_direction.setSecond(-1);\n break;\n case(2):\n m_direction.setFirst(1);\n m_direction.setSecond(0);\n break;\n case(3):\n m_direction.setFirst(-1);\n m_direction.setSecond(0);\n break;\n default:\n // Do nothing\n }\n\n return m_position;\n }", "title": "" } ]
[ { "docid": "083e4517a80ff4722d2b129fbd752890", "score": "0.76831937", "text": "private void randomMove() {\n boolean ns = random.nextBoolean();\n int step = random.nextBoolean() ? 1 : -1;\n move(ns ? step : 0, ns ? 0 : step);\n }", "title": "" }, { "docid": "2df5c9934f059ce03cbb7d95ba0e9355", "score": "0.7671679", "text": "@Override\n\tpublic void moveRandom() {\n\n\t}", "title": "" }, { "docid": "ad14ab72aa3586343d7fe2ae98cf900f", "score": "0.7618511", "text": "void move() {\n Random random = new Random();\n // The mystery object will move randomly in both x and y direction.\n int randomInt = random.nextInt(3);\n this.x += randomInt - 1;\n randomInt = random.nextInt(3);\n this.y += randomInt - 1;\n }", "title": "" }, { "docid": "55220e468aa68ea5be9eac92a98aa878", "score": "0.72409797", "text": "public void randomMove() {\n\t\t//TODO: Determine map bounds\n\t\t// If odd numebr move negative\n\t\t// If even move positive\n\t\tint x = (int) (Math.random()*10);\n\t\tint y = (int) (Math.random()*10);\n\t\tif (x % 2 > 0) {\n\t\t\tx = -1 - speed;\n\t\t} else {\n\t\t\tx = 1 + speed;\n\t\t}\n\t\tif (y % 2 > 0) {\n\t\t\ty = -1 - speed;\n\t\t} else {\n\t\t\ty = 1 + speed;\n\t\t}\n\t\t//Validate random X && Y move before calling setLocatio\n\t\tif (validateMoveWidth((int) getLocation().getX() + x)\n\t\t\t\t&& validateMoveHeight((int) getLocation().getY() + y)) {\n\t\t\tsetLocation(new Point((int) getLocation().getX() + x,\n\t\t\t\t\t(int) getLocation().getY() + y));\n\t\t}\n\t}", "title": "" }, { "docid": "7bb8087abd2f69f5fd383919d4f138b6", "score": "0.71380794", "text": "public void move()\n \t{\n \t\tif (mouseX < x)\n\t \t\tx = x + (int)(Math.random()*5)-3;\n\t \telse if(mouseX > x)\n\t \t\tx = x + (int)(Math.random()*5);\n\t \tif (mouseY < y)\n\t \t\ty = y + (int)(Math.random()*5)-3;\n\t \telse if(mouseY > y)\n\t \t\ty = y + (int)(Math.random()*5);\n \t\t//new location\n \t\tif(mousePressed == true)\n \t\t{\n \t\t\tx=(int)(Math.random()*801);\n\t \ty=(int)(Math.random()*801);\n \t\t}\n \t}", "title": "" }, { "docid": "de5aa944bfedb5005c34279df607ce94", "score": "0.6972846", "text": "public void forceMove(){\n short random = (short) (Math.random()*4); //mettre le rand dès que possible\n while(!canMoveToCaseNoThrows(Direction.toDir(random))) random = (short) (Math.random()*4);\n move(Direction.toDir(random));\n }", "title": "" }, { "docid": "2533d9d451aa5fd8f58f4caa2214854a", "score": "0.68311054", "text": "public void position()\n\t{\n\t\tRandom gen = new Random();\n\t\tx = gen.nextInt(396);\n\t\ty = gen.nextInt(396);\n\t}", "title": "" }, { "docid": "f502311a20b65ceaeefb4818f8fd3b07", "score": "0.68126535", "text": "public void moveToRandomLocation() {\n //mtp 11/5/99\n HostCell cell = (HostCell) ((Discrete) getHostScape().getSpace()).findRandomUnoccupiedCell();\n if (cell != null) {\n moveTo(cell);\n } else {\n System.out.println(\"Warning: no location to move to. Killing agent.\");\n die();\n }\n }", "title": "" }, { "docid": "df521053523ecf5cb8530204d026bc3e", "score": "0.68048966", "text": "public void act()\n {\n direction = randomMove(direction);\n randomShoot(getX(), getY(), direction);\n\n\n }", "title": "" }, { "docid": "31b978506267b5c27e728b68f6abd0ba", "score": "0.67700166", "text": "public void move() {\r\n\t\t//for (cE;;)\r\n\t\t//ArrayList <Cell> adjacent = cell.getAdjacentCells()\r\n\t\t//int size = adjacent.size();\r\n\t\tint moveRandom;\r\n\t\tint size = cell.getAdjacentCells().size();\r\n\t\tint count = 0;\r\n\t\tdo {\r\n\t\t\tmoveRandom = RandomGenerator.nextNumber(cell.getAdjacentCells().size() - 1);\r\n\t\t\tcount++;\r\n\t\t} while ((count != size) && (!cell.getAdjacentCells().get(moveRandom).getEntity().getEntityID().equals(EntityID.PLANT))\r\n\t\t\t\t);\r\n\t\t\r\n\t\tif(cell.getAdjacentCells().get(moveRandom).getEntity().getEntityID().equals(EntityID.PLANT)) {\r\n\t\t\t\r\n\t\t\tcell.eat((cell.getAdjacentCells().get(moveRandom)), cell);\r\n\t\t\t\r\n\t\t} else if(cell.getAdjacentCells().get(moveRandom).getEntity().getEntityID().equals(EntityID.NIL)) {\r\n\t\t\t\r\n\t\t\tcell.swapEntities(cell.getAdjacentCells().get(moveRandom));\r\n\t\t\t\r\n\t\t\tlife--;\r\n\t\t}\r\n\r\n\t\t//while moveStatus false, iterate every cell, return true, randomval\r\n\t\t//cells that contain plant\r\n\t\t//else, randomvalue and move\r\n\r\n\r\n\t}", "title": "" }, { "docid": "5f8a95f33e82e5f7ae57896132c5c041", "score": "0.6764168", "text": "private void moveInRandomDirection() throws GameActionException {\n\t\tint fate = rand.nextInt(1000);\n\t\tDirection[] directions = ConfigUtils.POSSIBLE_DIRECTIONS;\n\n\t\tif (rc.isCoreReady()) {\n\t\t\tif (fate < 600) {\n\t\t\t\t// Choose a random direction to try to move in\n\t\t\t\tDirection dirToMove = directions[fate % 8];\n\t\t\t\t// Check the rubble in that direction\n\t\t\t\tif (rc.senseRubble(rc.getLocation().add(dirToMove)) >= GameConstants.RUBBLE_OBSTRUCTION_THRESH) {\n\t\t\t\t\t// Too much rubble, so I should clear it\n\t\t\t\t\trc.clearRubble(dirToMove);\n\t\t\t\t\t// Check if I can move in this direction\n\t\t\t\t} else if (rc.canMove(dirToMove)) {\n\t\t\t\t\t// Move\n\t\t\t\t\trc.move(dirToMove);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "438776062f3e2dd5bee9275f5095a74e", "score": "0.67504734", "text": "private void gameMakesMove() {\n gameMove = rand.nextInt(3);\n }", "title": "" }, { "docid": "438776062f3e2dd5bee9275f5095a74e", "score": "0.67504734", "text": "private void gameMakesMove() {\n gameMove = rand.nextInt(3);\n }", "title": "" }, { "docid": "fe6dd537c8f6d1495f49dddab56f27ec", "score": "0.6576909", "text": "@Override\r\n\tpublic void move() {\n\t\tSystem.out.println(\"====Tank Move====\");\r\n\t\ttry {\r\n\t\t\tThread.sleep(new Random().nextInt(1000));\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9088fd6c7d75163e528dda6b8060d1e0", "score": "0.65610725", "text": "public void act(){\n if(rand(0, 2) == 0) {\n \tint i = rand(0, 3);\n \tint toX = getX();\n int toY = getY();\n if(i == 0) {\n \ttoY -= 1;\n } else if(i == 1) {\n \ttoY += 1;\n } else if(i == 2) {\n \ttoX -= 1;\n } else {\n \ttoX += 1;\n }\n if(getMap().isEmpty(toX, toY)) {\n \tgetMap().move(getX(), getY(), toX, toY);\n }\n }\n }", "title": "" }, { "docid": "4ccfdf721e989c2a2c8ad8ef9213d1d4", "score": "0.65172035", "text": "public void placeCreatureRandom(Room room)\n {\n Creature creatureToMove = room.getCreature();\n room.setCreature(null);\n Random rand = new Random();\n int roomIndex; \n Room itemRoom = null;\n do{\n roomIndex = rand.nextInt(rooms.size()-1)+1;\n itemRoom = rooms.get(roomIndex);\n\n }while(itemRoom.hasCreature());\n itemRoom.setCreature(creatureToMove);\n }", "title": "" }, { "docid": "f2bea8dbf91cf3868e22786ee575be56", "score": "0.647282", "text": "public void step() {\r\n\t\tthis.setX(x+velocity.getX());\r\n\t\tthis.setY(y+velocity.getY());\r\n\t\tthis.setVelocity(Math.random()*10-5, Math.random()*10-5);\r\n\t}", "title": "" }, { "docid": "83d2b4163a6b25b7428de946b97ded57", "score": "0.64178586", "text": "@Override\n public void update() {\n Random rand = new Random();\n if (rand.nextDouble() < this.turnProbability) {\n double x = rand.nextDouble() * (2 * Math.PI);\n this.direction = new Pose(this.direction.xPosition,\n this.direction.yPosition, x);\n }\n this.direction = PoseUtils.move(this.direction, this.speed);\n }", "title": "" }, { "docid": "4bb87052c1246cc263a88f11f536e4fd", "score": "0.6393881", "text": "private void computerMove() {\n\t\t// Randomly choose between row or column\n\t\tint r1 = rand.nextInt(2); // row/column\n\t\t\n\t\tif(r1 == 0) {\n\t\t\t// Row\n\t\t\t\n\t\t\t// Randomly choose between left or right insertion\n\t\t\tint r2 = rand.nextInt(2);\n\t\t\t\n\t\t\tif(r2 == 0) {\n\t\t\t\t// Left\n\t\t\t\ttry {\n\t\t\t\t\tcomputer = (ComputerPlayer) insertRow(computer.getRandomRow(), Direction.LEFT, computer);\n\t\t\t\t} catch (IllegalMoveException e) {\n\t\t\t\t\t// In the rare case the computer makes an illegal move, redo the move\n\t\t\t\t\tcomputerMove();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Right\n\t\t\t\ttry {\n\t\t\t\t\tcomputer = (ComputerPlayer) insertRow(computer.getRandomRow(), Direction.RIGHT, computer);\n\t\t\t\t} catch (IllegalMoveException e) {\n\t\t\t\t\t// In the rare case the computer makes an illegal move, redo the move\n\t\t\t\t\tcomputerMove();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Column\n\t\t\t\n\t\t\t// Randomly choose between top or bottom insertion\n\t\t\tint r2 = rand.nextInt(2);\n\t\t\t\n\t\t\tif(r2 == 0) {\n\t\t\t\t// Top\n\t\t\t\ttry {\n\t\t\t\t\tcomputer = (ComputerPlayer) insertColumn(computer.getRandomColumn(), Direction.TOP, computer);\n\t\t\t\t} catch (IllegalMoveException e) {\n\t\t\t\t\t// In the rare case the computer makes an illegal move, redo the move\n\t\t\t\t\tcomputerMove();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Bottom\n\t\t\t\ttry {\n\t\t\t\t\tcomputer = (ComputerPlayer) insertColumn(computer.getRandomColumn(), Direction.BOTTOM, computer);\n\t\t\t\t} catch (IllegalMoveException e) {\n\t\t\t\t\t// In the rare case the computer makes an illegal move, redo the move\n\t\t\t\t\tcomputerMove();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8cfb01d5f6ede6fcbfefe006b89ddaa9", "score": "0.63791066", "text": "public void randomWalk() {\n if (getHostCell() != null) {\n Cell candidate = (Cell) getHostCell().findRandomNeighbor();\n if ((candidate).isAvailable()) {\n moveTo((HostCell) candidate);\n }\n } else {\n throw new RuntimeException(\"Called Random Walk on Agent (\" + this + \") that has no current location.\");\n }\n }", "title": "" }, { "docid": "eb84475be462379b4b73dc5f213bcec6", "score": "0.6349888", "text": "@Override\n\tpublic void update() {\n\t\tint steps = Utilities.randInt(1, speed);\n\t\tHeading randomHeader = Heading.values()[Utilities.randInt(0, Heading.values().length)];\n\t\t\n\t\tturn(randomHeader);\n\t\tmove(steps);\n\t}", "title": "" }, { "docid": "02186ae3bd038bad8cc82c5be5c736f7", "score": "0.6331799", "text": "public void act() \n {\n move(this.aSpeed); //move clouds at this random speed\n }", "title": "" }, { "docid": "e5f70f340d234517f65aebe50e846fa1", "score": "0.63252443", "text": "public void rndMove() {\r\n\t\ttime = r.getTime() + 10;\r\n\t\tcurrentMode = 2;\r\n\t}", "title": "" }, { "docid": "61064da7212492615d728e8a46ba1b16", "score": "0.63174766", "text": "public void move()\n\t{\n\t\tint deltaX = magnitudeX*directionX;\n\t\tint deltaY = magnitudeY*directionY;\n\t\tint tempX = x+deltaX;\n\t\tint tempY = y+deltaY;\n\t\t//System.out.println(directionX+ \" \"+directionY);\n\t\tif(tempX<0||tempX>360)\n\t\t{\n\t\t\tdirectionX*=-1;\n\t\t\tint random = (int)(Math.random()*3);\n\t\t\tif(random==0)directionY=-1;\n\t\t\telse if(random==1)directionY=0;\n\t\t\telse directionY = 1;\n\t\t}\n\t\tif(tempY<0||tempY>330)\n\t\t{\n\t\t\tdirectionY*=-1;\n\t\t\tint random = (int)(Math.random()*3);\n\t\t\tif(random==0)directionX=-1;\n\t\t\telse if(random==1)directionX=0;\n\t\t\telse directionX = 1;\n\t\t}\n\t\tif(directionX==0&&directionY==0)directionX=1;\n\t\t deltaX = magnitudeX*directionX;\n\t\t deltaY = magnitudeY*directionY;\n\t\tx+=deltaX;\n\t\ty+=deltaY;\n\t\t\n\t}", "title": "" }, { "docid": "722c90ea36b0cd155d0f9042e7db3522", "score": "0.6313847", "text": "@Override\n public void randomDirectionChange() {\n if (random.nextInt(10)==0) {\n newDirection();\n }\n }", "title": "" }, { "docid": "2d4cb381fef59d40411d069090c02d74", "score": "0.6310058", "text": "void Move (GameObjectEntity entity, float delta);", "title": "" }, { "docid": "3ced2c1872a9d74d1f2fe20d6317637a", "score": "0.63067925", "text": "public void moveAround(){\n \tmove(4);\n \tif(Greenfoot.getRandomNumber(10)==1){\n \t\tturn(Greenfoot.getRandomNumber(90)-45);\n \t}\n \tif(isAtEdge()){\n \t\tturn(180);\n \t}\n }", "title": "" }, { "docid": "9b4445bb12ccd1059e070774dbf226bc", "score": "0.6289921", "text": "@Override\n\tpublic void move() {\n\n\t\tint pos = this.getPosition();\n\t\t\n\t\t\n\t\t/**\n\t\t * Put Meeko to sleep for 7 moves,then move 2 places\n\t\t */\n\t\tif( i++ % 8 == 0 ) {\n\t\t\tpos = pos + 2;\n\t\t} // Else sleep\n\t\t\n\t\t\n\t\t\n\t\tthis.setPosition( pos );\n }", "title": "" }, { "docid": "24d6beafc40f082462900731dc94139a", "score": "0.6285061", "text": "@Override\r\n\tpublic void initRandomPositionAndSpeed(Point playerPosition) {\r\n\t\t// random spawn position\r\n\t\tint random = (int) (Math.random() * 100);\r\n\t\tif (random < 50) {\r\n\t\t\tsprite.setX(MoveUtil.BACKGROUND_LEFT - sprite.getWidth());\r\n\t\t\tsprite.setY(MoveUtil.GROUND - sprite.getHeight());\r\n\t\t\tdirection = DirectionConstants.RIGHT;\r\n\t\t} else {\r\n\t\t\tsprite.setX(MoveUtil.BACKGROUND_RIGHT);\r\n\t\t\tsprite.setY(MoveUtil.GROUND - sprite.getHeight());\r\n\t\t\tdirection = DirectionConstants.LEFT;\r\n\t\t}\r\n\r\n\t\tinit();\r\n\t}", "title": "" }, { "docid": "a8eaeeba8f22e894db08f0cdbf24f732", "score": "0.6282148", "text": "public int move(){\n double inProb = Math.random();\n if (inProb < negProb){\n loc--;\n }\n else{\n loc ++;\n }\n return loc;\n }", "title": "" }, { "docid": "a4f321a96db2760355fce82b1ccde546", "score": "0.62512493", "text": "public void randomMove(PacmanPoint pt) {\n\t\tint dx,dy;\n\t\twhile(true) {\n\t\t\tdouble r = Math.random();\n\t\t\tif (r < 0.25) {\n\t\t\t\tdx = 0; dy = 1;\n\t\t\t}\n\t\t\telse if (r < 0.5) {\n\t\t\t\tdx = 0; dy = -1;\n\t\t\t}\n\t\t\telse if(r< 0.75) {\n\t\t\t\tdx = 0; dy = -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdx = -1; dy = 0;\n\t\t\t}\n\t\t\tif (world[pt.getX()+dx] [pt.getY()+dy] != WALL) {\n\t\t\t\tpt.moveBy(dx,dy);\n\t\t\t\treturn;\t\t\t\n\t\t\t}\n\t\t\t// otherwise loop around and try again\n\t\t}\n\t}", "title": "" }, { "docid": "3eb943098d2bf5b0d237a0b4eac318ad", "score": "0.62363076", "text": "private void moveNPCs() {\n for (NPC npc: npcs) {\n npc.move(Direction.getRandomDirection());\n }\n }", "title": "" }, { "docid": "3dbd9533d3a4b4ee2629acd48b2caca6", "score": "0.6209248", "text": "public void moveRight() {\n\t\tSystem.out.println(\"Move right on \" + Math.random()*200 + \" km\");\n\t}", "title": "" }, { "docid": "dfd96bccceda55915fb590ddcee7f397", "score": "0.6197733", "text": "public void moveLeft() {\n\t\tSystem.out.println(\"Move left on \" + Math.random()*200 + \" km\");\n\t}", "title": "" }, { "docid": "9788d915862eea48ddf8a5cf192596a4", "score": "0.6189587", "text": "private Move randomMove(){\n Move nextMove = null;\n Move[] allValidMoves = getAllValidMoves();\n Random random = new Random();\n do{\n nextMove = allValidMoves[random.nextInt(allValidMoves.length)];\n }while (nextMove == null);\n\n return nextMove;\n }", "title": "" }, { "docid": "a28ba8208f2c159f85006d6a3ecaa9d1", "score": "0.6188697", "text": "public void move() {\n\n\t\tif (spawned) {\n\n\t\t\tx -= Math.sin(theta) * speed * getDelta();\n\t\t\ty += Math.cos(theta) * speed * getDelta();\n\t\t}\n\t}", "title": "" }, { "docid": "dbf36b0da980835cf615cb7a84c36a05", "score": "0.6172855", "text": "@Override\n\tpublic Coordinate doAction(Vector<Agent> worldState) {\n\t\tVector<RandomAction> actions = new Vector<RandomAction>();\n\t\tactions.addElement(new RandomAction(0.2, this.position.getNorth()));\n\t\tactions.addElement(new RandomAction(0.2, this.position.getEast()));\n\t\tactions.addElement(new RandomAction(0.2, this.position.getWest()));\n\t\tactions.addElement(new RandomAction(0.2, this.position.getSouth()));\n\t\tactions.addElement(new RandomAction(0.2, this.position));\n\n\t\tdouble prob = Math.random();\n\t\tdouble boundary = 0.0;\n\t\tCoordinate NewPosition = this.position;\n\n\t\tfor (int i = 0; i < actions.size(); i++) {\n\n\t\t\tboundary += actions.elementAt(i).prob;\n\t\t\tif (prob <= boundary) {\n\t\t\t\tif (this.safePosition(actions.elementAt(i).coordinate,\n\t\t\t\t\t\tworldState)) {\n\n\t\t\t\t\tNewPosition = actions.elementAt(i).coordinate;\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else {\n\n\t\t\t\t\tthis.doAction(worldState);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn NewPosition;\n\t}", "title": "" }, { "docid": "68b5699908dec4b98db4fde47085670c", "score": "0.617179", "text": "public void move(double delta) {\n flutter[index] = (random.nextDouble() * speed * 2) - speed;\n\n x += calculateFlutter() * delta;\n y += speed * delta;\n }", "title": "" }, { "docid": "3e57d83c594a2e9d113104b478d05011", "score": "0.6164089", "text": "protected Point randomPosition()\n\t{\n\t\tRandom r = new Random();\n\t\tPoint a = new Point(r.nextInt(GRID_SIZE),r.nextInt(GRID_SIZE));\n\n\t\t\n\n\t\twhile(!validPosition(a))\n\t\t{\n\t\t\ta = new Point(r.nextInt(GRID_SIZE),r.nextInt(GRID_SIZE));\n\t\t}\n\t\treturn a;\n\t}", "title": "" }, { "docid": "0f3246038c0a10a9744abf0b7b425931", "score": "0.6131477", "text": "@Override\n\tpublic MOVE getMove() {\n\t\tint i = (int) Math.round(Math.random() * 3);\n\t\tmove = MOVE.values()[i];\n\t\treturn move;\n\t}", "title": "" }, { "docid": "b38d44fc42d5ad688c5e995957b1b4e1", "score": "0.6128002", "text": "public void doMove() {\n\t\tdistanceToEnemy = myPos.distance(enemy.getPos());\n\t\tdouble distanceToNextDestination = myPos.distance(nextDestination);\n\t\tdouble addLast = 1 - Math.rint(Math.pow(Math.random(), getOthers()));\n\n\t\tRectangle2D.Double battleField = new Rectangle2D.Double(30, 30, getBattleFieldWidth() - 60, getBattleFieldHeight() - 60);\n\t\tPoint2D.Double testPoint;\n\t\tint i = 0;\n\n\t\tdo {\n\t\t\ttestPoint = randomPoint(myPos, Math.min(distanceToEnemy * 0.8, 100 + 200 * Math.random()), 2 * Math.PI * Math.random());\n\t\t\t// generate a random test point in radius of 200 pixels around the robot's current position. Put a cap on\n\t\t\tif(battleField.contains(testPoint) && evaluate(testPoint, addLast) < evaluate(nextDestination, addLast)) {\n\t\t\t\tnextDestination = testPoint;\n\t\t\t}\n\t\t} while(i++ < 200);\n\t\t//generate 200 points and keep updating our testPoint to the safest point\n\t\tlastPosition = myPos;\n\n\t\tdouble angle = calcAngle(nextDestination, myPos) - Math.toRadians(robotStatus.getHeading());\n\t\tdouble direction = 1;\n\n\t\tif(Math.cos(angle) < 0) {\n\t\t\tangle += Math.PI;\n\t\t\tdirection = -1;\n\t\t}\n\n\t\tahead(distanceToNextDestination * direction);\n\t\tturnRight(Math.toDegrees(angle = Utils.normalRelativeAngle(angle)));\n\t\t// hitting walls isn't a good idea, but HawkOnFire still does it pretty often\n\n\t}", "title": "" }, { "docid": "503233c8f1d003bb0269d0f54a812564", "score": "0.61037695", "text": "public void move() {\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n int width = 800;\n int height = 800;\n\n ArrayList<Integer> availableX = new ArrayList<>();\n for (int i = 0; i < width - Snake.BLOCKSIZE; i = i + Snake.BLOCKSIZE){\n availableX.add(i);\n }\n\n ArrayList<Integer> availableY = new ArrayList<>();\n for (int i = 0; i < height - Snake.BLOCKSIZE; i = i + Snake.BLOCKSIZE){\n availableY.add(i);\n }\n\n if (isEaten){\n boolean done = false;\n int newX = -10;\n int newY = -10;\n while (!done){\n newX = availableX.get(r.nextInt(availableX.size()));\n newY = availableY.get(r.nextInt(availableY.size()));\n int count = 0;\n for (int i = 0; i < s.getParts().size(); i++){\n if (s.getParts().get(i).getxLoc() == newX && s.getParts().get(i).getyLoc() == newY){\n count++;\n }\n }\n if (count == 0){\n done = true;\n }\n }\n xLoc = newX;\n yLoc = newY;\n isEaten = false;\n }\n }", "title": "" }, { "docid": "f15de21a6454d6c1718da737c6f83281", "score": "0.6098219", "text": "@Override\n\tPosition move(char[][] Board) {\n\t\treturn new Position((int)Math.random()*Board.length, (int)Math.random()*Board.length);\n\t\t\t// randomly generates a row and column \n\t}", "title": "" }, { "docid": "d579fca987cf8b45d6234ef47f2b02bf", "score": "0.6097346", "text": "public void randomAction(map currentMap) \r\n\t{\n\t\tdouble probability = (int)(Math.random()*4);\r\n\t\t//stay\r\n\t\tif (probability==0||probability==1)\r\n\t\t{\r\n\t\t\t//no change in direction\r\n\t\t}\r\n\t\t//left\r\n\t\telse if (probability==2)\r\n\t\t{\r\n\t\t\tif (direction.equals(\"north\"))\r\n\t\t\t{\r\n\t\t\t\tdirection=\"west\";\r\n\t\t\t}\r\n\t\t\telse if (direction.equals(\"east\"))\r\n\t\t\t{\r\n\t\t\t\tdirection=\"north\";\r\n\t\t\t}\r\n\t\t\telse if (direction.equals(\"south\"))\r\n\t\t\t{\r\n\t\t\t\tdirection=\"east\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tdirection=\"south\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t//right\r\n\t\telse if (probability==3)\r\n\t\t{\r\n\t\t\tif (direction.equals(\"south\"))\r\n\t\t\t{\r\n\t\t\t\tdirection=\"west\";\r\n\t\t\t}\r\n\t\t\telse if (direction.equals(\"west\"))\r\n\t\t\t{\r\n\t\t\t\tdirection=\"north\";\r\n\t\t\t}\r\n\t\t\telse if (direction.equals(\"north\"))\r\n\t\t\t{\r\n\t\t\t\tdirection=\"east\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tdirection=\"south\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//move\r\n\t\tprobability = (int)(Math.random()*2);\r\n\t\t//forward\r\n\t\tif (probability==0)\r\n\t\t{\r\n\t\t\t//determine what the new coordinates of the person would be\r\n\t\t\tint newR=r;\r\n\t\t\tint newC=c;\r\n\t\t\tif (direction.equals(\"north\"))\r\n\t\t\t{\r\n\t\t\t\tnewR--;\r\n\t\t\t}\r\n\t\t\telse if (direction.equals(\"east\"))\r\n\t\t\t{\r\n\t\t\t\tnewC++;\r\n\t\t\t}\r\n\t\t\telse if (direction.equals(\"south\"))\r\n\t\t\t{\r\n\t\t\t\tnewR++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tnewC--;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//check whether or not you can actually move\r\n\t\t\tif (currentMap.pathAhead(newR, newC)||currentMap.onCashRegistar(newR, newC))\r\n\t\t\t{\r\n\t\t\t\tr=newR;\r\n\t\t\t\tc=newC;\r\n\t\t\t}\r\n\t\t\telse if (currentMap.isWall(newR, newC))\r\n\t\t\t{\r\n\t\t\t\t//do nothing; stay where you are\r\n\t\t\t}\r\n\t\t\t//would go to an item cell\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tonItem(currentMap, newR, newC);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//stay\r\n\t\telse\r\n\t\t{\r\n\t\t\t//nothing\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bb0a4ef0afdd41110124ecac7f342f40", "score": "0.6056655", "text": "private void placePlayer() {\n int select1 = rng.nextInt(spawns.size()); // Takes random value from the spawns\n Point p = spawns.get(select1); // Creates a point spawns\n player.setPosition(p.x, p.y);\n }", "title": "" }, { "docid": "9a59df2ced9741959a2a8682dc337e5d", "score": "0.60560447", "text": "public void move()\r\n\t{\r\n\t\tif(!checkEntityCollisions(xMove, 0f))\r\n\t\t{\r\n\t\t\tmoveX();\r\n\t\t}\r\n\t\tif(!checkEntityCollisions(0f, yMove))\r\n\t\t{\r\n\t\t\tmoveY();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "04bba012ae3926e9aa1be595b789bd43", "score": "0.6055833", "text": "public boolean randomMove() {\r\n Timeslot tj = getTimeslotWithExams();\r\n Timeslot tk = getRandomTimeslot();\r\n Exam ex = tj.getRandomExam();\r\n\r\n return move(ex, tj, tk);\r\n }", "title": "" }, { "docid": "2c6e2f92991a2ae3f8b3ab0db1e6d16e", "score": "0.6051508", "text": "@Override\n public void getRandomPoint(Vector3f store) {\n super.getRandomPoint(store);\n // now move the point from the meshe's face towards the center of the mesh\n // the center is in (0, 0, 0) in the local coordinates\n store.multLocal(FastMath.nextRandomFloat());\n }", "title": "" }, { "docid": "877bd99882757cc9b56fde84a1037f98", "score": "0.6043458", "text": "public void move ()\n {\n\tint position = monitor.getPosition (ID);\n\tint newPosition = position + (int) UniformRandom.uniform (1,50);\n\tmonitor.setPosition (ID, newPosition);\n\n\t// Draw new position.\n\tGraphics g = drawingArea.getGraphics ();\n\tint size = newPosition - position;\n\tg.fillRect (position, 20*ID, size, 10);\n }", "title": "" }, { "docid": "e8aff37dd37a55abe164dd04be990241", "score": "0.60343385", "text": "protected void move() {\n\t\tcurrentCell.setLifeform(null);\n\t\tcurrentCell = getRandomEmptyCell();\n\t\tcurrentCell.setLifeform(this);\n\t\t\n\t\tHP--;\n\t}", "title": "" }, { "docid": "7a6f9152f19b44a5f4b2ebd4d3628b22", "score": "0.6023966", "text": "public void moveEnemy1(){randomFunctionEnemy1();}", "title": "" }, { "docid": "5ebcd5fd9637ab040beb270544378082", "score": "0.6023895", "text": "private Move produceRandomMove(Board board) {\r\n Random rand = new Random();\r\n int leftTicker = 0;\r\n int rightTicker = 0;\r\n int numOfOpenSpacesInRow = 0;\r\n int rowNum, rowLength;\r\n do {\r\n\r\n // randomizes a row number for the move\r\n\r\n rowNum = rand.nextInt(5) + 1;\r\n rowLength = board.getRowLength(rowNum);\r\n\r\n // checks if there are any available sticks to mark in this row, otherwise, we will choose a new row.\r\n\r\n for (int i = 0; i < rowLength; i++) {\r\n\r\n // if we found a stick that is unmarked, we will increase the count of how many unmarked sticks there\r\n // are in this row/\r\n\r\n if (board.isStickUnmarked(rowNum, i + 1))\r\n numOfOpenSpacesInRow++;\r\n }\r\n } while (numOfOpenSpacesInRow == 0);\r\n\r\n // we'll mark all of the available spots in an array, and then choose from the available ones the left and\r\n // right marker\r\n int[] availableSpots = new int[numOfOpenSpacesInRow];\r\n int j = 0;\r\n for (int i = 0; i < rowLength; i++) {\r\n if (board.isStickUnmarked(rowNum, i + 1)) {\r\n availableSpots[j] = i + 1;\r\n j++;\r\n }\r\n }\r\n\r\n // randomizing the right and left sticks, and making sure that the right one is bigger than the left\r\n\r\n int first = availableSpots[rand.nextInt(availableSpots.length)];\r\n int second = availableSpots[rand.nextInt(availableSpots.length)];\r\n if (first > second) {\r\n leftTicker = second;\r\n rightTicker = first;\r\n } else {\r\n rightTicker = second;\r\n leftTicker = first;\r\n }\r\n\r\n // returns the move chosen randomly.\r\n return new Move(rowNum, leftTicker, rightTicker);\r\n }", "title": "" }, { "docid": "965e2831365b90ec1dd599effb827f40", "score": "0.6002402", "text": "public void move(int leftEdge, int rightEdge, int topEdge, int bottomEdge) {\r\n\t\tsetX((Math.random() * (rightEdge - getDiameter()) + getRadius() + leftEdge));\r\n\t\tsetY((Math.random() * (bottomEdge - getDiameter()) + getRadius() + topEdge)); \r\n\t}", "title": "" }, { "docid": "e9f9480cf311259816efc0ec00e51574", "score": "0.6001621", "text": "public void setRandomDirection() {\n\t\tif (travelTime < 1) {\n\t\t tempDirection = Math.random() * 450 - 90;\n\t\t\tsetDirection( tempDirection );\n\t\t\ttravelTime = (int) (minTravelTime + Math.random()\n\t\t\t\t\t* travelTimeScalar);\n\t\t}\n\t\ttravelTime--;\n\t}", "title": "" }, { "docid": "407f15368025d14b125711b8315f1cf5", "score": "0.5999425", "text": "public void move(){\r\n xPos -= xVec;\r\n yPos -= yVec;\r\n }", "title": "" }, { "docid": "88a9de358c3b8236a237dbe2793c8d7d", "score": "0.5994695", "text": "public void move()\r\n\t{\r\n\t\tint elapsed = this.getWorld().getElapsedTime();\r\n\t\t//get deltas (expected change over time for x and y)\r\n\t\tfloat deltaX = (float) Math.cos(this.getRadians() * this.speed);\r\n\t\tfloat deltaY = (float) Math.sin(this.getRadians() * this.speed);\r\n\t\t\r\n\t\t//get old location and add deltas\r\n\t\tfloat oldX = this.getX();\r\n\t\tfloat oldY = this.getY();\r\n\t\t\r\n\t\t//update location of object with old locations + expected change (delta)\r\n\t\tthis.setLocation((oldX+=deltaX),(oldY+=deltaY));\r\n\t}", "title": "" }, { "docid": "e30902af02f0a2f303010b1bc3ccfd23", "score": "0.5990845", "text": "public void move() {\r\n\t\toldx = x;\r\n\t\toldy = y;\r\n\t\tint xtemp = this.x - screen.player.getX();\r\n\t\tint ytemp = this.y - screen.player.getY();\r\n\t\tif (xtemp < 0) { // if xdifferance is positive then move left\r\n\t\t\tx += speed+ran();\r\n\t\t}\r\n\t\tif (xtemp > 0) { // (right)\r\n\t\t\tx -= speed+ran();\r\n\t\t}\r\n\t\tif (ytemp < 0) { // if ydifferance is positive then move down\r\n\t\t\ty += speed+ran();\r\n\t\t}\r\n\t\tif (ytemp > 0) {// (up)\r\n\t\t\ty -= speed+ran();\r\n\t\t}\r\n\t\ty += ran();\r\n\r\n\t}", "title": "" }, { "docid": "12d8886d869eccd4691dff946daff69b", "score": "0.59881026", "text": "public void move() {\n\t\t\n\t}", "title": "" }, { "docid": "114a5027c338de2c04ee48a81858e773", "score": "0.5982543", "text": "public void move();", "title": "" }, { "docid": "1e053e4f7099bb5fe8368b83209c504c", "score": "0.59818214", "text": "public void Move();", "title": "" }, { "docid": "2702d25382c16e205292b47f67100208", "score": "0.5972812", "text": "private void moveMonster(Entity m) {\n Collections.shuffle(spawns); // Shuffles spawns array list\n Point p = spawns.get(0); // Takes Point from spawns\n int monX = m.getX();\n int monY = m.getY();\n\n for (Entity monster : monsters) {\n if (monster != null) {\n if (m.getX() - 1 == monster.getX() && m.getY() == monster.getY()) { // Check if there is monster in the tile to the left\n if (tiles[m.getX() + 1][m.getY()] != TileType.WALL){ // If there is no wall to the left\n m.setPosition(m.getX() + 1, m.getY()); // Move the monster to the\n }else {\n m.setPosition(p.x, p.y);\n }\n } else if (m.getX() + 1 == monster.getX() && m.getY() == monster.getY()) { // Check if there is monster in the tile to the right\n if (tiles[m.getX() - 1][m.getY()] != TileType.WALL){\n m.setPosition(m.getX() - 1, m.getY());\n }else {\n m.setPosition(p.x, p.y);\n }\n } else if (m.getX() == monster.getX() && m.getY() - 1 == monster.getY()) { // Check if there is monster in the tile above\n if (tiles[m.getX() ][m.getY() + 1] != TileType.WALL){\n m.setPosition(m.getX() + 1, m.getY());\n }else {\n m.setPosition(p.x, p.y);\n }\n } else if (m.getX() == monster.getX() && m.getY() + 1 == monster.getY()) { // Check if there is monster in the tile below\n if (tiles[m.getX()][m.getY() - 1] != TileType.WALL) {\n m.setPosition(m.getX() - 1, m.getY());\n } else {\n m.setPosition(p.x, p.y);\n }\n }\n }\n }\n\n\n // Check if the player is adjacent if so don't change position.\n if (m.getX() - 1 == player.getX() && m.getY() == player.getY()) { // Left\n m.setPosition(m.getX(), m.getY());\n return;\n } else if (m.getX() + 1 == player.getX() && m.getY() == player.getY()) { // Right\n m.setPosition(m.getX(), m.getY());\n return;\n } else if (m.getX() == player.getX() && m.getY() - 1 == player.getY()) { // Above\n m.setPosition(m.getX(), m.getY());\n return;\n } else if (m.getX() == player.getX() && m.getY() + 1 == player.getY()) { // Bellow\n m.setPosition(m.getX(), m.getY());\n return;\n }\n\n // Checks if the tile to the left is a floor or lava.\n if (tiles[m.getX() - 1][m.getY()] == TileType.FLOOR || tiles[m.getX() - 1][m.getY()] == TileType.LAVA) {\n if (m.getX() > player.getX()) {\n m.setPosition(m.getX() - 1, m.getY()); // moves left\n if (tiles[m.getX()][m.getY()] == TileType.LAVA) {\n hitMonster(m); // Hits monster if walked into lava\n }\n }\n }\n // Checks if the tile to the right is a floor or lava\n if (tiles[m.getX() + 1][m.getY()] == TileType.FLOOR || tiles[m.getX() + 1][m.getY()] == TileType.LAVA) {\n if (m.getX() < player.getX()) {\n m.setPosition(m.getX() + 1, m.getY()); // Moves right\n if (tiles[m.getX()][m.getY()] == TileType.LAVA) {\n hitMonster(m);\n }\n }\n }\n // Checks if the tile above is a floor or lava\n if (tiles[m.getX()][m.getY() - 1] == TileType.FLOOR || tiles[m.getX()][m.getY() - 1] == TileType.LAVA) {\n if (m.getY() > player.getY()) {\n m.setPosition(m.getX(), m.getY() - 1); // Moves up\n if (tiles[m.getX()][m.getY()] == TileType.LAVA) {\n hitMonster(m);\n }\n }\n }\n // Checks if the tile bellow is a floor or lava\n if (tiles[m.getX()][m.getY() + 1] == TileType.FLOOR || tiles[m.getX()][m.getY() + 1] == TileType.LAVA) { // down\n if (m.getY() < player.getY()) {\n m.setPosition(m.getX(), m.getY() + 1);\n if (tiles[m.getX()][m.getY()] == TileType.LAVA) {\n hitMonster(m);\n }\n }\n }\n if (m.getX() == player.getX() && m.getY() == player.getY()) { // If coordinates are the same as the player\n hitPlayer(); // Hit player\n m.setPosition(p.x, p.y); // Teleport to random floor tile\n }\n\n\n // Checks for a suitable position to walk to if the position didn't change, if there is none teleport to a random location.\n if (m.getX() == monX && m.getY() == monY) {\n // If there is a wall to the left\n if (tiles[m.getX() - 1][m.getY()] == TileType.WALL || tiles[m.getX() - 1][m.getY()] == TileType.STAIRS) {\n if (m.getX() > player.getX()) {\n // Checks above the monster if there is no wall, checks if above to the left is a floor tile and if there is no wall ahead.\n if (tiles[m.getX()][m.getY() - 1] != TileType.WALL && tiles[m.getX() - 1][m.getY() - 1] == TileType.FLOOR && tiles[m.getX() - 2][m.getY() - 1] != TileType.WALL) {\n m.setPosition(m.getX() - 1, m.getY() - 1);\n return; // break from the method\n }\n // Checks below the monster if there is no wall, checks if below to the left is a floor tile and if there is no wall ahead.\n else if (tiles[m.getX()][m.getY() + 1] != TileType.WALL && tiles[m.getX() - 1][m.getY() + 1] == TileType.FLOOR && tiles[m.getX() - 2][m.getY() + 1] != TileType.WALL) {\n m.setPosition(m.getX() - 1, m.getY() + 1);\n return;\n } else {\n m.setPosition(p.x, p.y); // Teleports to a random position if surrounded by walls or can't find a place to walk to.\n }\n }\n\n }\n\n // If there is a wall to the right\n if (tiles[m.getX() + 1][m.getY()] == TileType.WALL || tiles[m.getX() + 1][m.getY()] == TileType.STAIRS) {\n if (m.getX() < player.getX()) {\n // Checks above the monster if there is no wall, checks if above to the right is a floor tile and if there is no wall ahead.\n if (tiles[m.getX()][m.getY() - 1] != TileType.WALL && tiles[m.getX() + 1][m.getY() - 1] == TileType.FLOOR && tiles[m.getX() + 2][m.getY() - 1] != TileType.WALL) {\n m.setPosition(m.getX() + 1, m.getY() - 1);\n return;\n }\n // Checks below the monster if there is no wall, checks if below to the right is a floor tile and if there is no wall ahead.\n else if (tiles[m.getX()][m.getY() + 1] != TileType.WALL && tiles[m.getX() + 1][m.getY() + 1] == TileType.FLOOR && tiles[m.getX() + 2][m.getY() + 1] != TileType.WALL) {\n m.setPosition(m.getX() + 1, m.getY() + 1);\n return;\n } else {\n m.setPosition(p.x, p.y); // Teleports to a random position if surrounded by walls or can't find a place to walk to.\n }\n }\n\n }\n // if there is a wall above\n if (tiles[m.getX()][m.getY() - 1] == TileType.WALL || tiles[m.getX()][m.getY() - 1] == TileType.STAIRS) {\n if (m.getY() > player.getY()) {\n // Checks to the left of the monster if there is no wall, checks if above to the left is a floor tile and if there is no wall ahead.\n if (tiles[m.getX() - 1][m.getY()] != TileType.WALL && tiles[m.getX() - 1][m.getY() - 1] == TileType.FLOOR && tiles[m.getX() - 1][m.getY() - 2] != TileType.WALL) {\n m.setPosition(m.getX() - 1, m.getY() - 1);\n return;\n }\n // Checks to the right of the monster if there is no wall, checks if below to the right is a floor tile and if there is no wall ahead.\n else if (tiles[m.getX() + 1][m.getY()] != TileType.WALL && tiles[m.getX() + 1][m.getY() - 1] == TileType.FLOOR && tiles[m.getX() + 1][m.getY() - 2] != TileType.WALL) {\n m.setPosition(m.getX() + 1, m.getY() - 1);\n return;\n } else {\n m.setPosition(p.x, p.y); // Teleports to a random position if surrounded by walls or can't find a place to walk to.\n }\n }\n }\n // if there is a wall below.\n if (tiles[m.getX()][m.getY() + 1] == TileType.WALL || tiles[m.getX()][m.getY() + 1] == TileType.STAIRS) {\n if (m.getY() < player.getY()) {\n // Checks to the left of the monster if there is no wall, checks if below to the left is a floor tile and if there is no wall ahead.\n if (tiles[m.getX() - 1][m.getY()] != TileType.WALL && tiles[m.getX() - 1][m.getY() + 1] == TileType.FLOOR && tiles[m.getX() - 1][m.getY() + 2] != TileType.WALL) {\n m.setPosition(m.getX() - 1, m.getY() + 1);\n }\n // Checks to the right of the monster if there is no wall, checks if below to the right is a floor tile and if there is no wall ahead.\n else if (tiles[m.getX() + 1][m.getY()] != TileType.WALL && tiles[m.getX() + 1][m.getY() + 1] == TileType.FLOOR && tiles[m.getX() + 1][m.getY() + 2] != TileType.WALL) {\n m.setPosition(m.getX() + 1, m.getY() + 1);\n } else {\n m.setPosition(p.x, p.y); // Teleports to a random position if surrounded by walls or can't find a place to walk to.\n }\n }\n }\n }\n\n }", "title": "" }, { "docid": "f0517a83a0266ebfed91dc7ec85a49e8", "score": "0.597233", "text": "public void move() {\n\t\tpositionX += 2;\n\t}", "title": "" }, { "docid": "079933b767f1ad110861175f060f5fea", "score": "0.59702885", "text": "public void generateRandomLocation()\n\t{\n\t\tthis.row = rand.nextInt(game.getLevel().getRows());\n\t\tthis.col = rand.nextInt(game.getLevel().getCols());\n\t\t\n\t\twhile(!(game.getLevel().canMoveToSquare(this.getRow(), this.getCol())) && !(this.getRow() == 0 && this.getCol() == 0))\n\t\t{\n\t\t\tthis.row = rand.nextInt(game.getLevel().getRows());\n\t\t\tthis.col = rand.nextInt(game.getLevel().getCols());\n\t\t}\n\t}", "title": "" }, { "docid": "ad41820a0e2f1368d50768969506f59f", "score": "0.5968098", "text": "public void move(int newRow, int newCol) {\r\n if(row == newRow && col == newCol){\r\n this.row = row;\r\n this.col = col;\r\n }\r\n if (row == newRow || row == (newRow - 1) || row == (newRow + 1)) {\r\n if (col == newCol || col == (newCol - 1) || col == (newCol + 1)) {\r\n col = newCol;\r\n row = newRow;\r\n } else {\r\n row = (int) (Math.random() * 12);\r\n col = (int) (Math.random() * 12);\r\n\r\n\r\n }\r\n } else {\r\n row = (int) (Math.random() * 12);\r\n col = (int) (Math.random() * 12);\r\n }\r\n }", "title": "" }, { "docid": "a9ff2fad3646a0bf90cf5f57d169de34", "score": "0.59514886", "text": "private void move(Point startPos, int direction)\n\t{\n\t\tif(direction == ACTION_LEFT)\t\n\t\t{\n\t\t\tif(validLeft(startPos))\n\t\t\t{\n\t\t\t\tstartPos.x=((startPos.x - 1 + GRID_SIZE) % GRID_SIZE);\n\t\t\t}\n\t\t\t//If avatar gets stuck use a random move to try and free him\n\t\t\telse\n\t\t\t{\n\t\t\t\tint i = randomAction();\n\t\t\t\tmove(startPos, i);\n\t\t\t}\n\t\t}\t\t \n\t\tif(direction == ACTION_RIGHT)\t\n\t\t{\t\n\t\t\tif(validRight(startPos))\n\t\t\t{\n\t\t\t\tstartPos.x=((startPos.x + 1 + GRID_SIZE) % GRID_SIZE);\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint i = randomAction();\n\t\t\t\tmove(startPos, i);\n\t\t\t}\n\t\t}\t \n\t\tif(direction == ACTION_UP)\n\t\t{\n\t\t\tif(validUp(startPos))\n\t\t\t{\n\t\t\t\tstartPos.y=(startPos.y - 1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint i = randomAction();\n\t\t\t\tmove(startPos, i);\n\t\t\t}\t\n\t\t}\t \n\t\tif(direction == ACTION_DOWN)\n\t\t{\n\t\t\tif(validDown(startPos))\n\t\t\t{\t\n\t\t\t\tstartPos.y=(startPos.y + 1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint i = randomAction();\n\t\t\t\tmove(startPos, i);\n\t\t\t}\t\n\t\t}\n\t\tif(direction == ACTION_RAND) \n\t\t{\n\t\t\tint i;\n\t\t\ti = randomAction();\n\t\t\n\t\t\tif(i == ACTION_LEFT)\n\t\t\t{\n\t\t\t\tif(validLeft(startPos))\n\t\t\t\t{\n\t\t\t\t\tstartPos.x=((startPos.x - 1 + GRID_SIZE) % GRID_SIZE);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t \t\ti = randomAction();\n\t\t\t\t\t}\n\t\t\t\t\twhile(i == ACTION_LEFT);\n\t\t\t\t\tmove(startPos, i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(i == ACTION_RIGHT)\n\t\t\t{\n\t\t\t\tif(validRight(startPos))\n\t\t\t\t{\n\t\t\t\t\tstartPos.x=((startPos.x + 1 + GRID_SIZE) % GRID_SIZE);\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t \t\ti = randomAction();\n\t\t\t\t\t}\n\t\t\t\t\twhile(i == ACTION_RIGHT);\n\t\t\t\t\tmove(startPos, i);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(i == ACTION_UP)\n\t\t\t{\n\t\t\t\tif(validUp(startPos))\n\t\t\t\t{\n\t\t\t\t\tstartPos.y=(startPos.y - 1);\n\t\t\t\t}\n\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t \t\ti = randomAction();\n\t\t\t\t\t}\n\t\t\t\t\twhile(i == ACTION_UP);\n\t\t\t\t\tmove(startPos, i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(i == ACTION_DOWN)\n\t\t\t{\n\t\t\t\tif(validDown(startPos))\n\t\t\t\t{\t\n\t\t\t\t\tstartPos.y=(startPos.y + 1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t \t\ti = randomAction();\n\t\t\t\t\t}\n\t\t\t\t\twhile(i == ACTION_DOWN);\n\t\t\t\t\tmove(startPos, i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t} \n\n\t}", "title": "" }, { "docid": "2c75970091ce281dd309a9b14a25d417", "score": "0.5950152", "text": "public void computerMove() {\n\t\t\tRandom rand = new Random();\n\n\t\t\tint x = rand.nextInt(3);\n\t\t\tint y = rand.nextInt(3);\n\n\t\t\tif (cell[0][0].getPlayer() == 'X' && cell[1][1].getPlayer() == 'X' && cell[2][2].getPlayer() == ' ') {\n\t\t\t\tcell[2][2].setPlayer(currentPlayer);\n\t\t\t}\n\n\t\t\telse if (cell[0][2].getPlayer() == 'X' && cell[1][1].getPlayer() == 'X' && cell[2][0].getPlayer() == ' ') {\n\t\t\t\tcell[2][0].setPlayer(currentPlayer);\n\t\t\t}\n\n\t\t\telse if (cell[x][y].getPlayer() == ' ') {\n\t\t\t\tcell[x][y].setPlayer(currentPlayer);\n\t\t\t} else {\n\t\t\t\tcomputerMove();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4e9001eee5984d871027f32956a4013e", "score": "0.59473664", "text": "@Override\n\tpublic Position sampleRandomUniformPosition() {\n\t\tVec4[] corners = this.getCorners();\n\t\t\n\t\t// point within the box frame with all minimum coordinates\n\t\tVec4 minimum = this.transformModelToBoxOrigin(corners[0]);\n\t\t// point within the box frame with all maximum coordinates\n\t\tVec4 maximum = this.transformModelToBoxOrigin(corners[6]);\n\t\t\n\t\tdouble x, y, z;\n\t\t\n\t\tx = minimum.x + (new Random().nextDouble() * (maximum.x - minimum.x));\n\t\ty = minimum.y + (new Random().nextDouble() * (maximum.y - minimum.y));\n\t\tz = minimum.z + (new Random().nextDouble() * (maximum.z - minimum.z));\n\t\t\n\t\tVec4 point = new Vec4(x, y, z);\n\t\t\n\t\t// transform point from box frame to earth frame\n\t\tpoint = this.transformBoxOriginToModel(point);\n\t\treturn this.getGlobe().computePositionFromPoint(point);\n\t}", "title": "" }, { "docid": "a2645725c5bd04c64aa6181f8d3ef04e", "score": "0.5943473", "text": "public void move()\r\n\t{\n\t}", "title": "" }, { "docid": "467203e382ff9c776d6b8e2266f9006b", "score": "0.5922864", "text": "protected void makeMove(){\r\n RandomGenerator r = new RandomGenerator(); // New RandomGenerator\r\n while(true){ // Loops until empty spot\r\n int row = r.discrete(0, 2);\r\n int col = r.discrete(0, 2);\r\n if(board.checkSpot(row, col)){\r\n board.addMark(row, col, this.mark); // Adds marks\r\n break; }\r\n }\r\n}", "title": "" }, { "docid": "5e6c470b96fcb68b9a9780841a7459d2", "score": "0.5921581", "text": "public void move() {\n\t\t// super.super.move()\n\t\tsuper.move(1,0);\n\t}", "title": "" }, { "docid": "0c55f2d151866bfe1a8d7261f693af7e", "score": "0.5917775", "text": "public void move(){\n\t\t\n\t}", "title": "" }, { "docid": "cb28cae4897c6fa2ef8cd53931c6e319", "score": "0.5906537", "text": "@Override\r\n\tpublic void move() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5d90a5ad5e904a302e22658683e2db93", "score": "0.5902302", "text": "public void randomTurn() {\n\t\tif (Math.random() < 0.5) {\n\t\t\tturn(-45);\n\t\t} else {\n\t\t\tturn(45);\n\t\t}\n\t}", "title": "" }, { "docid": "09c075398f5c4c766886ecc79c613fb1", "score": "0.59002995", "text": "public void moveInRandomDirection(Game game){\n\t\tint nextMoveDirection = new Random().nextInt(4);\n\t\tString direction = \"\";\n\t\tfor(int counter = 0; counter < 4; counter++ ){\n\n\t\t\t// First letter of the string to move\n\t\t\tdirection = getMovementKey(nextMoveDirection);\n\n\t\t\t// Attempt to move\n\t\t\tif( avatar.moveTo(new Move(getPlayer(), direction, \"\"), game) ){\n\t\t\t\t//avatar.moveTo(new Move(getPlayer(), direction, Direction.get(0)));\n\t\t\t\t//System.out.println(\"\\t\" + direction);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Rotate clockwise\n\t\t\tnextMoveDirection = getRotatedDirection(nextMoveDirection);\n\t\t}\n\t}", "title": "" }, { "docid": "5d9b94fa4c4702e488dac20822f248c6", "score": "0.58996254", "text": "public void move() {\r\n Grid<Actor> gr = getGrid();\r\n if (gr == null) {\r\n return;\r\n }\r\n Location loc = getLocation();\r\n if (gr.isValid(next)) {\r\n setDirection(getLocation().getDirectionToward(next));\r\n moveTo(next);\r\n } else {\r\n removeSelfFromGrid();\r\n }\r\n Flower flower = new Flower(getColor());\r\n flower.putSelfInGrid(gr, loc);\r\n }", "title": "" }, { "docid": "55607eb2c3a35957bb2c5258cf167889", "score": "0.5894961", "text": "@Override\n public void getRandomPointAndNormal(Vector3f store, Vector3f normal) {\n super.getRandomPointAndNormal(store, normal);\n // now move the point from the meshe's face towards the center of the mesh\n // the center is in (0, 0, 0) in the local coordinates\n store.multLocal(FastMath.nextRandomFloat());\n }", "title": "" }, { "docid": "0fcb63ab0a002f8c7e9e8395aae3dc3a", "score": "0.58840907", "text": "public void changeFruitPosition(){\n int x, y;\n x = new Random().nextInt(TOTAL_GAME_AREA-1);\n y = new Random().nextInt(TOTAL_GAME_AREA-1);\n \n //to prevent overlapping of snake's coordinates and the fruits position\n if(snakeParts>0){\n while (SnakeCordinates.contains(new Point(x, y))) { \n x = new Random().nextInt(TOTAL_GAME_AREA-1);\n y = new Random().nextInt(TOTAL_GAME_AREA-1);\n }}\n \n this.fruitPosition = new Point(x, y);\n }", "title": "" }, { "docid": "a936e51b5162334c227e3ff26980d1da", "score": "0.5882258", "text": "public void getNextMove(){\n next_move_xcor = (int)(Math.random() * 3);\n next_move_ycor = (int) (Math.random() * 3);\n while (!gameBoard.canMove(next_move_xcor, next_move_ycor)){\n next_move_xcor = (int)(Math.random() * 3);\n next_move_ycor = (int) (Math.random() * 3);\n }\n }", "title": "" }, { "docid": "10766a4d12228498b0d5006190302d18", "score": "0.5874458", "text": "public void move() {\r\n if(!checkEntityCollision(xMove , 0f)){\r\n moveX();\r\n }\r\n if(!checkEntityCollision(0f , yMove)){\r\n moveY();\r\n }\r\n }", "title": "" }, { "docid": "efdcb695cc7514373aa2f2154bab057e", "score": "0.58743536", "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": "81b428c314ede5e5707e36df3aba20d7", "score": "0.5870839", "text": "public static Direction moveRandom(RobotController rc, Direction randomDirection) throws GameActionException {\n\t\tif (rc.isCoreReady()) {\n\t\t\tif (rc.canMove(randomDirection)) {\n\t\t\t\trc.setIndicatorString(1, randomDirection+\"\");\n\t\t\t\trc.move(randomDirection);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trandomDirection = randDir();\n\t\t\t\tint dirsChecked = 0;\n\t\t\t\twhile (!rc.canMove(randomDirection) && dirsChecked < 8) {\n\t\t\t\t\trandomDirection = randomDirection.rotateLeft();\n\t\t\t\t\tdirsChecked++;\n\t\t\t\t}\n\t\t\t\tif (rc.canMove(randomDirection)) {\n\t\t\t\t\trc.move(randomDirection);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn randomDirection;\n\t}", "title": "" }, { "docid": "70a0053a24ab26cb04e06abdb7a4144f", "score": "0.5866117", "text": "public void placeItemRandom(Item item)\n {\n Random rand = new Random();\n int roomIndex; \n Room itemRoom = null;\n do{\n roomIndex = rand.nextInt(rooms.size()-1)+1;\n itemRoom = rooms.get(roomIndex);\n\n }while(itemRoom.hasItem());\n itemRoom.setItem(item);\n }", "title": "" }, { "docid": "de246d40a0476b142cb4c975c09a2b0b", "score": "0.5860714", "text": "private void move() {\n //moves all body parts over one\n for(int i = bodyParts.size() - 1; i > 0; i--) {\n bodyParts.get(i).setX(bodyParts.get(i - 1).getX());\n bodyParts.get(i).setY(bodyParts.get(i - 1).getY());\n }\n switch(direction) {\n case 'U': bodyParts.get(0).setY(bodyParts.get(0).getY() - UNIT_SIZE);\n break;\n case 'D': bodyParts.get(0).setY(bodyParts.get(0).getY() + UNIT_SIZE);\n break;\n case 'L': bodyParts.get(0).setX(bodyParts.get(0).getX() - UNIT_SIZE);\n break;\n case 'R': bodyParts.get(0).setX(bodyParts.get(0).getX() + UNIT_SIZE);\n break;\n }\n }", "title": "" }, { "docid": "df7681692a40f70d0f4d4c69bb3f5fca", "score": "0.5860502", "text": "public void testMove() {\n\t\tboard.placePlant(s1, 2, 2);\n\t\tboard.move(s1, (NullSpace) board.getObject(2, 3));\n\t\tassertEquals(board.getObject(2, 3), s1);\n\t}", "title": "" }, { "docid": "c6743aebe1c5249e9778e2b0f8030ab1", "score": "0.5857869", "text": "private void move() {\n\t\tx += xa;\n\t\ty += ya;\t\n\t}", "title": "" }, { "docid": "54b178c1a37859553d0aaa56c8539cfd", "score": "0.58562165", "text": "@Override\r\n\tpublic void move() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "40f26115a9ce3a3a1b0c59aa0e74bdd1", "score": "0.5844519", "text": "public void moveEnemyThree() {\r\n\t\tenemyThree.moveRandomEnemy(level);\r\n\t}", "title": "" }, { "docid": "b24f911837836ae53c794f37e94325cb", "score": "0.5844459", "text": "public void move() {\n\n if ( this.okToMove() ) {\n \n Point next = this.nextTile();\n room.moveRobot( col, row, next.x, next.y );\n col = next.x;\n row = next.y;\n \n this.delay();\n }\n else {\n this.flash(); \n }\n }", "title": "" }, { "docid": "71aafb36abf8e0747507294ee5b3bdfa", "score": "0.58409625", "text": "public void move() {\n\t\t//Check if the tile in front of the Actor is empty\n\t\tif (board.getActor(board.getTileInDirection(tile, getDirection(), 1)) == null) {\n\t\t\tboard.removeActor(tile);\n\t\t\tsetTile(board.getTileInDirection(tile, getDirection(), 1));\n\t\t\tboard.putActor(this);\n\t\t}\n\t}", "title": "" }, { "docid": "30fdfffb64c4a18eacf62d28cf0f4f99", "score": "0.5840023", "text": "void Move();", "title": "" }, { "docid": "eb92a876539d29c284843ea16e10a88c", "score": "0.58227575", "text": "private Vector2 calcPos(){\n int xPos = MathUtils.random(1,(int)(Gdx.graphics.getWidth() - this.size.x));\n int yPos = MathUtils.random(1, (int)(Gdx.graphics.getHeight() - this.size.y));\n\n return new Vector2(xPos, yPos);\n }", "title": "" }, { "docid": "ccb6b5d7f685fa62204013eea2c04a9a", "score": "0.5816962", "text": "protected void moveRandomlyTurn(String logMe) {\n Direction direction = null;\n while ((direction = moveRandomly(logMe, direction)) != null);\n getUnit().setMovesLeft(0);\n }", "title": "" }, { "docid": "3446a2e2e57167de02f0cdf88ff234ad", "score": "0.58128536", "text": "private void placeCreature(ServerWorld world, BlockPos pos, NbtCompound entityData) {\n if (entityData != null && entityData.contains(\"EntityTag\") && entityData.getCompound(\"EntityTag\").containsUuid(\"UUID\")) {\n UUID uuid = entityData.getCompound(\"EntityTag\").getUuid(\"UUID\");\n if (world.getEntity(uuid) != null) {\n entityData.getCompound(\"EntityTag\").remove(\"UUID\");\n }\n }\n DuckEntity newDuck = ModEntityTypes.getDuck().create(world, entityData, null, null, pos, SpawnReason.BUCKET, true, false);\n assert newDuck != null : \"newDuck is null? This should not happen :(\";\n newDuck.setFromSack(true);\n newDuck.setPos(pos.getX(), pos.getY(), pos.getZ());\n\n newDuck.refreshPositionAndAngles((double)pos.getX() + 0.5D, (double)pos.getY() + 0.4D, (double)pos.getZ() + 0.5D, MathHelper.wrapDegrees(world.random.nextFloat() * 360.0F), 0.0F);\n world.spawnEntity(newDuck);\n }", "title": "" }, { "docid": "0e4a5ed3cb2c2a2fbc09df035a9dba9f", "score": "0.5805296", "text": "@Override\n public void tick() {\n setX(getX() - ((int) (Math.random() * 4) + 2));\n this.animationFriend.tick();\n //game.jump();\n\n // reset x position and y position if colision\n /*if (getX() + 60 >= game.getWidth()) {\n setX(game.getWidth() - 60);\n }\n else if (getX() <= -30) {\n setX(-30);\n }*/\n /*if (getY() + 80 >= game.getHeight()) {\n setY(game.getHeight() - 80);\n }*/\n /*if (getY() <= -20) {\n setY(-20);\n }*/\n }", "title": "" }, { "docid": "0d38cac26612cf6fc1effdd55465cc55", "score": "0.58007014", "text": "public void tick() {\n super.tick();\n if (this.temptingPlayer == null && this.creature.getRNG().nextInt(600) == 0) {\n this.temptingPlayer = this.closestPlayer;\n } else if (this.creature.getRNG().nextInt(500) == 0) {\n this.temptingPlayer = null;\n }\n\n }", "title": "" }, { "docid": "0a281c5638d636ddbf48e3ca56b8f15b", "score": "0.5787626", "text": "boolean move(int xFinal,int yFinal);", "title": "" }, { "docid": "c627885ac465a036e45cec8738c56548", "score": "0.5787053", "text": "private void solidEntityCollide(){\n this.reverseMove();\n }", "title": "" }, { "docid": "c7b305585b7a4dc86659a43c253326c4", "score": "0.5780749", "text": "public void move(){...}", "title": "" }, { "docid": "1e8ea00e4e041262df9630c40dd08eca", "score": "0.57780015", "text": "void move();", "title": "" }, { "docid": "1e8ea00e4e041262df9630c40dd08eca", "score": "0.57780015", "text": "void move();", "title": "" } ]
f3ee7380fed484f9655146241ed7eb28
Edit: with default state. .text : null .class : Edit .name : null .classIndex : 1
[ { "docid": "b3403fe1c0d924d5096bbbed0bec58dd", "score": "0.0", "text": "protected TextGuiTestObject mainExport_totext() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"mainExport_totext\"));\n\t}", "title": "" } ]
[ { "docid": "292fb0b7a7e3ce4589341ae825f2467c", "score": "0.72186565", "text": "public Editor edit() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e34cf70bcf93c06bd98c4415ff242608", "score": "0.71587074", "text": "@Override\r\n\tpublic String edit() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d56600b752708881baa5832aedd3c7e1", "score": "0.7023828", "text": "public EditType() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "11c98c4ee66a8259eca3f5d68012f789", "score": "0.6989735", "text": "public void editAction() {\n\t\t\n\t}", "title": "" }, { "docid": "d1ae520b26e93e7135ed7b39b194c3c1", "score": "0.6984497", "text": "@Override\n\tpublic void editState(State state) {\n\t\t\n\t}", "title": "" }, { "docid": "376e3d80793829e3558c9f9a3563f7f4", "score": "0.68558204", "text": "public String prepareEdit() {\n return \"Edit\";\r\n }", "title": "" }, { "docid": "e0078d43a3971ac4abc8ce601c3d3f22", "score": "0.6830243", "text": "public void buttonEditClicked();", "title": "" }, { "docid": "18529b6b013cd7c6c65b10eff3edeab6", "score": "0.6752418", "text": "@Override\n\tprotected String getActionEdit() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f0143d671b0b37b989008244313a86c0", "score": "0.6689465", "text": "private void setEditField() {\r\n\t\tif (mEditingName) {\r\n\t\t\tmEditTextLabel.setText(\"Name\");\r\n\t\t\tString name = mDisplayContact.getDisplayName();\r\n\t\t\tif (name != null)\r\n\t\t\t\tmEditTextView.setText(name);\r\n\t\t\telse\r\n\t\t\t\tmEditTextView.setText(\"\");\r\n\t\t} else {\r\n\t\t\tmEditTextLabel.setText(\"Phone Number\");\r\n\t\t\tString number = mDisplayContact.getPhoneNumber();\r\n\t\t\tif (number != null)\r\n\t\t\t\tmEditTextView.setText(number);\r\n\t\t\telse\r\n\t\t\t\tmEditTextView.setText(\"\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "789b3925a1a6a2624e941ca0d8af7458", "score": "0.66027313", "text": "public void limpaEdit(){\n txtNome.setText(null);\n jcbCargo.setSelectedIndex(0);\n txtNumero.setText(null);\n txtSigla.setText(null);\n \n txtNome.requestFocus();\n }", "title": "" }, { "docid": "8feeb17e04131308e5b38602ebf91ca3", "score": "0.6534899", "text": "@Override\r\n\tpublic void editAction(Object identification) {\n\r\n\t}", "title": "" }, { "docid": "149d69e2a7d4b68703be571c73a1e02d", "score": "0.6531589", "text": "@Override\n\tpublic void editar() {\n\t\t\n\t}", "title": "" }, { "docid": "18ae56815c5c839ba4170bf6c4e02c77", "score": "0.65203786", "text": "private void setMenu_Edit() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8964b125b0b436afb53d48a0a4303286", "score": "0.6500886", "text": "@Override\n public void edit(Object o) {\n }", "title": "" }, { "docid": "7729b6028805ac2998d3ea19f8564a92", "score": "0.64889747", "text": "void onEditClicked(D data);", "title": "" }, { "docid": "32210a57068d2ef411b75f505ae0b30e", "score": "0.64332163", "text": "@Override\n\tpublic void edit(StoryBoardWindow sbw, StoryBoard sb) {\n\n\t}", "title": "" }, { "docid": "af880409cbc1f8a564e7fd368dbff2a3", "score": "0.6413056", "text": "@Override\n\tpublic Book edit(String id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8c196ac8f9b1b77543479161c5b9607f", "score": "0.6396518", "text": "@Override\r\n\tprotected void onEditValueAction(ActionEvent event) {\n\r\n\t}", "title": "" }, { "docid": "be3f1ddee6b0b4064b813939e471ecd5", "score": "0.63459533", "text": "@Override\n public void onClick(View v) {\n\n onEditPressed();\n\n }", "title": "" }, { "docid": "a75ec347c46e34eb84353c44a6b07470", "score": "0.6336717", "text": "public void setEditable( boolean edit ) {\n\n }", "title": "" }, { "docid": "3ca390d417b8256d9ea302e63b0fbd59", "score": "0.63319165", "text": "void editModel(int col, int row, JTextField text);", "title": "" }, { "docid": "1dc82fa835d091e92884d5221f106f0a", "score": "0.63232094", "text": "@Override\r\n\tpublic boolean edit(Entity e) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "1dc82fa835d091e92884d5221f106f0a", "score": "0.63232094", "text": "@Override\r\n\tpublic boolean edit(Entity e) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "5c53e107dc99ab5d4c3ac712714dfa32", "score": "0.6322972", "text": "public EditInfo() {\n initComponents();\n }", "title": "" }, { "docid": "c118f4a127aa9653caa1635278f29363", "score": "0.6299981", "text": "@Override\r\n\tprotected void EditAction() {\n\t\tJSONObject inputDetail = new JSONObject();\r\n\t\t\r\n\t\t//Testing\r\n\t\t//System.out.println(expressionTF.getText());\r\n\t\t\r\n\t\t// When user enter \" in the text field, it is converted into \\\" automatically.\r\n\t\tinputDetail.put(\"Expression\", expressionTF.getText());\r\n\t\tthis.undoManager.execute(new EditCommand(blockOUTPUT, inputDetail));\r\n\t\t\r\n\t\tthis.dispose(); // careful with this\r\n\t}", "title": "" }, { "docid": "cfcd3e62cd7319fbf3d395a5d5d6f435", "score": "0.6297269", "text": "public String edit() {\n if (id != null && id != 0) {\r\n contacto6 = contacto6Manager.get(id);\r\n } else {\r\n contacto6 = new Contacto6();\r\n }\r\n\r\n return \"edit\";\r\n }", "title": "" }, { "docid": "7400beb7488b6d1f29ec1f214a02ad2a", "score": "0.6292905", "text": "@Override\n\tpublic EditLogic getEditLogic() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4bed18b679c5b995624901fdf2218b9b", "score": "0.6288287", "text": "@Override\n\tpublic Module edit(Long Id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1c843026b1a1c905c338c4ec50090b7b", "score": "0.62822235", "text": "protected void editView()\n { \n super.editView();\n\n itemShortName.getStyleClass().remove(\"display-view\");\n skillDescription.getStyleClass().remove(\"display-view\");\n\n itemShortName.getStyleClass().add(\"edit-view\");\n skillDescription.getStyleClass().add(\"edit-view\");\n\n\n itemShortName.setDisable(false);\n skillDescription.setDisable(false);\n\n // Show asterisks\n snAsterisk.setVisible(true);\n }", "title": "" }, { "docid": "86674e14000cee78a29d2e8eef8864b5", "score": "0.6252585", "text": "@Override\n\tpublic String getEditTitle() {\n\t\treturn \"Echeancier \";\n\t}", "title": "" }, { "docid": "f06a78ddaf9eef2715011239ef5cddec", "score": "0.6246806", "text": "public void updateMode(){\n if(old!=null){\n done.setText(\"Update\");\n id.setText(String.valueOf(old.getId()));\n f_name.setText(old.getFirst_Name());\n l_name.setText(old.getLast_Name());\n phone.setText(old.getPhone_Number());\n email.setText(old.getEmail());\n dob.setValue(old.getDateOfBirth().toLocalDate());\n gender.setValue(old.getGender());\n salary.setText(String.valueOf(old.getSalary()));\n username.setText(old.getUsername());\n discharged.setSelected(old.isDischarged());\n \n \n }\n }", "title": "" }, { "docid": "fd790f57f84e4d049aec54cd099ecc79", "score": "0.6246596", "text": "@Override\n\tpublic void initView() {\n\t\ttvTitle.setText(\"修改群名称\");\n\t\ttvSave.setText(\"保存\");\n\t\ttvSave.setVisibility(View.VISIBLE);\n\t\tnew EditTextUtils(editText, 10, null);\n\t}", "title": "" }, { "docid": "3619e7e41eafc421f17f19b3cfaa858a", "score": "0.6230416", "text": "@Override\r\n\tpublic String getText() {\r\n\t\treturn \"Fahrzeug bearbeiten\";\r\n\t}", "title": "" }, { "docid": "15542f96c28a91c46715ff70a8ecf790", "score": "0.62129116", "text": "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n System.out.println(\"pressed edit\");\r\n removeMainButtons();\r\n add(editBackButton);\r\n add(editSubmitButton);\r\n add(nameText);\r\n add(idText);\r\n add(partnerNameText);\r\n add(partnerIdText);\r\n add(nameField);\r\n add(idField);\r\n add(partnerNameField);\r\n add(partnerIdField);\r\n }", "title": "" }, { "docid": "8190f4394517df3824e035dadd6f0bda", "score": "0.6209255", "text": "void onStartEditButtonClick()\n {\n view.startEdit(attachedRenter.getId());\n }", "title": "" }, { "docid": "dcdd33512b32885da9fe71649b714e00", "score": "0.6190092", "text": "public Editar() {\n initComponents();\n this.setLocationRelativeTo(null);\n int num2;\n txteven.setEditable(false);\n txtLugar.setEditable(false);\n txtFecha.setEditable(false);\n txtHora.setEditable(false);\n txtDuracion.setEditable(false);\n txtAcomp.setEditable(false);\n \n }", "title": "" }, { "docid": "d480d43b85acdf4a5e7781c8cf592153", "score": "0.6174047", "text": "public EditEvent() {}", "title": "" }, { "docid": "4575ee2a6960c95ab9ba557af9d33194", "score": "0.6171541", "text": "public abstract void edit(String PN);", "title": "" }, { "docid": "e1532cc0e3e4a746accb70b0b6ed8184", "score": "0.6154476", "text": "public void editItemDetil(){\n\t\tview.showWindowForm();\n\t\t//2. INIT LISTENER\n\t\tview.getItemDetilView().getBtnAddAndSave().addClickListener(this);\n\t\tview.getItemDetilView().getBtnClose().addClickListener(this);\n\t\t//3. INIT STATE FORM\n\t\tview.getItemDetilModel().setOperationStatus(EnumOperationStatus.EDITING.getStrCode());\n\t\t//4. INIT VALUE::ITEM DETIL\n\t\tview.getItemDetilModel().setItemHeader(model.getItemHeader());\n\t\tview.getItemDetilModel().setItemDetil(model.getItemDetil());\n\t\t\n\t\tview.getItemDetilPresenter().editItemdetil();\t\n\t\tview.getItemDetilView().focustIdOrDesc();\n\t\t\n\t}", "title": "" }, { "docid": "ad7b4856582971ef83dc7f106c069dd2", "score": "0.61465585", "text": "public void setEditName(String editName) {\n this.editName = editName;\n }", "title": "" }, { "docid": "0d41104082f9c6d527689d68ac091961", "score": "0.61460054", "text": "public String getEditName() {\n return editName;\n }", "title": "" }, { "docid": "7ae703b4d62334adff13b602f5e2aebc", "score": "0.6122845", "text": "public EditMyClass() {\n initComponents();\n }", "title": "" }, { "docid": "ec38b301cfe9d81727b3e94350b3cb7a", "score": "0.61223626", "text": "@Override\n public void cancelEdit() {\n super.cancelEdit();\n setContentDisplay(ContentDisplay.TEXT_ONLY);\n }", "title": "" }, { "docid": "165c33fc72246f02d76cd14cbebf0f60", "score": "0.6121404", "text": "public void EditNameDialog() {\n }", "title": "" }, { "docid": "03588bdaa95123f9f0b61302318407e6", "score": "0.61077154", "text": "public void editField() {\n // Switch the view -- the fragment_***.xml styles are set up to have the details as 0, and overview as 1\n if (getDisplayedChild() != 0) {\n showNext();\n }\n focusFirstField();\n\n // Make sure we're not filling our parent's heigh when collapsed\n if (matchParentHeightWhenEditing) {\n ViewGroup.LayoutParams params = getLayoutParams();\n params.height = ViewGroup.LayoutParams.MATCH_PARENT;\n setLayoutParams(params);\n }\n }", "title": "" }, { "docid": "db81a74b19a89e88026a68729fe8b4f0", "score": "0.60911983", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowEditDialog(position, 1);\r\n\t\t\t}", "title": "" }, { "docid": "6f7704f1f373f493996707f25eabcdde", "score": "0.6070775", "text": "@Override\r\n\tpublic void edit() {\n\t\tdetallePrueba.load();\r\n\t\tdetallePrueba.init();\r\n\t}", "title": "" }, { "docid": "c27960f763918c5a0747e1d893a2d926", "score": "0.60474575", "text": "@Override\n\tpublic void editCommand(Command command) {\n\t\t\n\t}", "title": "" }, { "docid": "4d3e170d787708edd2422adb4713a8b0", "score": "0.6046407", "text": "public ERXDefaultEditingContextDelegate() {}", "title": "" }, { "docid": "5da9649fe1a5b2ad1dc56c025d2953f8", "score": "0.6036362", "text": "public void doChangeEdit() {\n currentItem = mapper.convertValue(currentItem, Access.class);\n if (viewType != ViewTypeEnum.edit) {\n viewType = ViewTypeEnum.edit;\n }\n }", "title": "" }, { "docid": "b606f89faa5616eb06914a56c6175ccc", "score": "0.60349673", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowEditDialog(position, 0);\r\n\t\t\t}", "title": "" }, { "docid": "b4fdfdc6dc13092eef878bb100cb318c", "score": "0.60231024", "text": "public uiUserEdit() {\n initComponents();\n }", "title": "" }, { "docid": "b5e12e59ebfe70bae73d335c6f114e0a", "score": "0.60178316", "text": "@FXML\r\n void btEditClicked(ActionEvent event) {\n btDelete.setDisable(false);\r\n btConfirm.setDisable(false);\r\n txtSenhaAtual.setDisable(false);\r\n txtSenhaNova.setDisable(false);\r\n txtSenhaConfirma.setDisable(false);\r\n txtSenhaAtual.requestFocus();\r\n\r\n btEdit.setDisable(true);\r\n }", "title": "" }, { "docid": "a398320cc42a991b2f4e38452479634e", "score": "0.60177296", "text": "public T caseEditAction(EditAction object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ed764cc6e127096414274a7d6b455a43", "score": "0.600712", "text": "public void startEdit() {\n\t\tsuper.startEdit();\n\t\t\n\t\t// creates editor if it is not already available\n\t\tif (textTF == null) {\n\t\t\tcreateEditor();\n\t\t}\n\t\t\n\t\t// disabling renderer\n\t\tsetText(null);\n\t\t// setting up editor - creatign content\n\t\ttextTF.setText(createEditorContent());\n\t\t// displaying editor in the cell\n\t\tsetGraphic(textTF);\n\t}", "title": "" }, { "docid": "f7f30af7d5a4dd5a2e8940dcff91012a", "score": "0.60059786", "text": "public void edit(){\n\t\tif (controller.edit(ultrasound))\n\t\t\tclearFields();\n\t}", "title": "" }, { "docid": "fc165d40568c4fd537c010ee1daedb99", "score": "0.59959936", "text": "public EditItemForm()\n\t{\n\t\tsuper();\n\t}", "title": "" }, { "docid": "8c45752772ac5085e0a0a37628f4b517", "score": "0.59826857", "text": "private void editNotes() {\n\t\tmListMode = LISTVIEW_SINGLE_MODE;\n\t\tinitAdapter();\n\t}", "title": "" }, { "docid": "55355001d4deb7d0587dab32527f1540", "score": "0.5981202", "text": "public void edit() {\n txtTrainingId.setEnabled(false);\n btnDropC.setEnabled(true);\n }", "title": "" }, { "docid": "f9caa96725cec0653cb154104d71c502", "score": "0.5978084", "text": "@Override\n public void onClick(View view) {\n edPan.setFocusableInTouchMode(true);\n edEmail.setFocusableInTouchMode(true);\n edAddress.setFocusableInTouchMode(true);\n edGooglepay.setFocusableInTouchMode(true);\n edPhonPAy.setFocusableInTouchMode(true);\n edAdharCard.setFocusableInTouchMode(true);\n\n\n\n edPan.setText(\"\");\n edEmail.setText(\"\");\n edAddress.setText(\"\");\n edGooglepay.setText(\"\");\n edPhonPAy.setText(\"\");\n edAdharCard.setText(\"\");\n\n btnEdit.setVisibility(View.GONE);\n btnSave.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "ed2562f34b3368a38c78e82a60e5268a", "score": "0.5973474", "text": "@Override\n public boolean isEditable()\n {\n return true;\n }", "title": "" }, { "docid": "ccddfcb368824df0271466d681b921fd", "score": "0.59567606", "text": "public void updateEditPanel(){\n\t\teditPanel.updateSelectionBox(0);\n\t}", "title": "" }, { "docid": "9cf09b8808147d5fed69272476584844", "score": "0.5956651", "text": "public void cancelEdit() {\n \tthis.item.restore(beforeEditItem);\n this.item = new Editor();\n edit = false;\n\n }", "title": "" }, { "docid": "548a38b45f7b0bb6d50972ca8f78da3a", "score": "0.5938879", "text": "private void edit() {\r\n int selectedTableRow = studentTable.getSelectedRow();\r\n int selectedModelRow = studentTable.convertRowIndexToModel(selectedTableRow);\r\n cntl.showFieldsInStudentUI(selectedModelRow);\r\n }", "title": "" }, { "docid": "6110606deecb5ca8fbc5692d4cc2f0be", "score": "0.5937546", "text": "public void edit() {\n\t\tBook tmpBook = view();\r\n\t\t//If the Book to be edited != null\r\n\t\tif(tmpBook != null) {\r\n\t\t\tint index=books.indexOf(tmpBook);\r\n\t\t\t//Read in new details for it by calling its read() method\r\n\t\t\ttmpBook.read();\r\n\t\t\t//Reset it in the ArrayList to this new \r\n\t\t\tbooks.set(index,tmpBook);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7baa271f31bbe6ef50305a98f59b5b9e", "score": "0.59280837", "text": "public void editAction() {\n\t\ttry\n\t\t{\n\t\t\tsetResponsePage(this);\n\t\t\treadOnly(false);\n\t\t\tkbarang.add(ro);\n\t\t\tnbarang.add(ro);\n\t\t\tsatuan.add(ro);\n\t\t\tkbarang1.add(ro);\n\t\t}\n\t\tcatch(Exception ex){}\n\t}", "title": "" }, { "docid": "57975bc5c3a195ca392efa25a4d6558c", "score": "0.5926518", "text": "public ClienteEditView(String codigo ,JDesktopPane index) {\n super(\"EDITAR CLIENTE\");\n index.add(this);\n initComponents();\n ClienteDAO dao = new ClienteDAO();\n ClienteBEAN clientes = dao.get(codigo);\n txtCodigo.setText(clientes.getCodigo());\n txtNome.setText(clientes.getNome());\n txtCpf.setText(clientes.getCpf());\n txtEndereco.setText(clientes.getEndereco());\n txtLogradouro.setText(clientes.getLogradouro());\n txtTelefone.setText(clientes.getTelefone());\n txtBairro.setText(clientes.getBairro());\n txtEstado.setSelectedItem(clientes.getEstado());\n\n }", "title": "" }, { "docid": "67ffea4be75cd62eb0d72c2c3360f11b", "score": "0.59221464", "text": "@Override\n public boolean editable() {\n return true;\n }", "title": "" }, { "docid": "00231eb1cb51500409832d4b4820648c", "score": "0.591578", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tboxManager.editClick();\n\t\t\t}", "title": "" }, { "docid": "b54435dfdaf84d3fbbe6c0abdbe32684", "score": "0.59061676", "text": "private void editButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editButtonActionPerformed\r\n String edit = wordTF.getText();\r\n if (d.controller.isExist(edit)) {\r\n String term = wordTF.getText();\r\n String definition = definitionTA.getText();\r\n d.edit.setterIsi(term, definition);\r\n d.enter(4);\r\n }\r\n }", "title": "" }, { "docid": "3899f33fc35d2ee7b357b6f2cd1d5006", "score": "0.59007716", "text": "private void updateListEditFields(){\n\t\tthis.texteditTip.setText(LISTEDITDATA.current_element.getTip());\n\t\tthis.textEditVocable.setText(LISTEDITDATA.current_element.getWord_A());\n\t\tthis.texteditAnswer.setText(LISTEDITDATA.current_element.getWord_B());\n\t\tthis.textEditVocable.setEditable(true);\n\t\tthis.texteditAnswer.setEditable(true);\n\t\tthis.texteditTip.setEditable(true);\n\t\tthis.btnDeleteRow.setEnabled(true);\n\t}", "title": "" }, { "docid": "d361550a36fc0f3687b4bdfe3d710c83", "score": "0.5889012", "text": "public void kosongkanTblInput(){\n txtKode.setEditable(true);\n txtKode.setText(null);\n tbNama.setSelectedItem(this);\n txtJumlah.setText(null);\n tbID.setSelectedItem(this);\n }", "title": "" }, { "docid": "58bf8d002e11e9a7429c0cf9af240d9f", "score": "0.5881402", "text": "public void setEdit(boolean isEdit) {\n this.isEdit = isEdit;\n }", "title": "" }, { "docid": "2496225fd3d41c739d503adb719e299c", "score": "0.5880974", "text": "private void editTask() {\n graph.editTaskPosition(selectedItem.getValue(), taskName.getText(), plan.getText(), position.getText());\n delete.setDisable(true);\n loggingUsability.setDisable(true);\n confirm.setText(\"New\");\n// position.setDisable(false);\n updateControlGUI();\n }", "title": "" }, { "docid": "24e519b8d63b2e1419856a940d661eb7", "score": "0.58692706", "text": "boolean isEditing();", "title": "" }, { "docid": "639b53ea847efded94e667fce0fa9583", "score": "0.58690274", "text": "@Override\n\tprotected IEditItemView getView() {\n\t\treturn (IEditItemView) super.getView();\n\t}", "title": "" }, { "docid": "b0abc63263a6f5b958e4af5df2c9f701", "score": "0.5859748", "text": "private void createEditInterfaceComponents() {\r\n\t\tint cw = width / 6;\r\n\t\tint ch = 3 * height / 40;\r\n\r\n\t\teditPasswordField = new MyTextField(\"bluesheepicon\", \"New password\");\r\n\t\teditPasswordField.setBounds(width / 12, 25 * height / 200, cw, ch);\r\n\t\teditPasswordField.addFocusListener(focusListener);\r\n\t\teditPasswordField.setName(\"editPasswordField\");\r\n\r\n\t\teditEmailField = new MyTextField(\"bluesheepicon\", \"new email\");\r\n\t\teditEmailField.setBounds(width / 12, 40 * height / 200, cw, ch);\r\n\t\teditEmailField.addFocusListener(focusListener);\r\n\t\teditEmailField.setName(\"editEmailField\");\r\n\r\n\t\teditPhoneField = new MyTextField(\"bluesheepicon\", \"new number\");\r\n\t\teditPhoneField.setBounds(width / 12, 55 * height / 200, cw, ch);\r\n\t\teditPhoneField.addFocusListener(focusListener);\r\n\t\teditPhoneField.setName(\"editPhoneField\");\r\n\r\n\t\tupdateButton = new MyButton(\"Update\", null);\r\n\t\tupdateButton.setBounds(width / 12, 80 * height / 200, cw, ch);\r\n\t\tupdateButton.addActionListener(actionListener);\r\n\t\tupdateButton.setName(\"updateButton\");\r\n\r\n\t\tlp.add(editPasswordField);\r\n\t\tlp.add(editEmailField);\r\n\t\tlp.add(editPhoneField);\r\n\t\tlp.add(updateButton);\r\n\t}", "title": "" }, { "docid": "f7b2c61a437c3c08653642b271b023de", "score": "0.5845889", "text": "public void edit() {\n if (listTournament != null) {\n var selectedItem = listTournament.getSelectionModel().getSelectedItem();\n if (selectedItem != null) {\n Tournament tourney = instance.findTournament(selectedItem.getId());\n Main.selectedTournament = tourney;\n Main.changeScene(Main.EDIT_MENU);\n }\n }\n }", "title": "" }, { "docid": "1b09c7afe73255998b9c4b1eeade5852", "score": "0.5834695", "text": "@Override\n\tpublic void edit(long id, Agendamento object) {\n\t\t\n\t}", "title": "" }, { "docid": "1a60acc42811fc12dca0a4151599efe9", "score": "0.58274", "text": "@Override\n public void stateType(String id, String action,String text) {\n updateId=id;\n if(action.equalsIgnoreCase(\"Upadate\"))\n {\n editvalue.setText(text);\n buttonUpdate.setVisibility(View.VISIBLE);\n\n }\n else if(action.equalsIgnoreCase(\"Delete\"))\n {\n FirebaseDatabase.getInstance().getReference().child(\"Test/\" + id).removeValue();\n Toast.makeText(FirebaseExample.this,\"Deleted\",Toast.LENGTH_SHORT).show();\n editvalue.setText(\"\");\n }\n }", "title": "" }, { "docid": "a288466579f41860498b2bac6708580c", "score": "0.58233887", "text": "public native void startEdit(String id) /*-{\r\n var editor = this.@com.gwtext.client.widgets.Component::getOrCreateJsObj()();\r\n editor.startEdit(id);\r\n }-*/;", "title": "" }, { "docid": "26176c6b81d8a3f6cb5e5884153a9f12", "score": "0.5822806", "text": "public void edited() {\r\n\t\tcancelButton.setDisable(false);\r\n\t}", "title": "" }, { "docid": "64ca32c24a81263bc5d1385ec3ff723c", "score": "0.5816588", "text": "public boolean isEdit() {\n return isEdit;\n }", "title": "" }, { "docid": "1015cd5dd4774d5e715531ad8e72780e", "score": "0.581551", "text": "@FXML\n\tvoid enableEditMode() {\n\t\tif(cmiEnableEditMode.isSelected()) {\n\t\t\t//Enable edit mode\n\t\t\tsuper.enableEditMode();\n\t\t\ttxtNewCruiseNo.setVisible(true);\n\t\t\ttxtNewPassengerNo.setVisible(true);\n\t\t} else {\n\t\t\t//Disable edit mode\n\t\t\tsuper.enableEditMode();\n\t\t\ttxtNewCruiseNo.setVisible(false);\n\t\t\ttxtNewPassengerNo.setVisible(false);\n\t\t}\n\t}", "title": "" }, { "docid": "45cdbb6bfae47d0edac7034ac54c44d7", "score": "0.58152205", "text": "public native void startEdit(Element el) /*-{\r\n\t\tvar editor = this.@com.gwtext.client.widgets.Component::getOrCreateJsObj()();\r\n editor.startEdit(el);\r\n }-*/;", "title": "" }, { "docid": "4f0f2fd0dc4c4414b3585620c1c3b853", "score": "0.58056307", "text": "public native void startEdit(Element el, String value) /*-{\r\n var editor = this.@com.gwtext.client.widgets.Component::getOrCreateJsObj()();\r\n editor.startEdit(el, value);\r\n }-*/;", "title": "" }, { "docid": "7974a0a4ec9e246ed08a964b50fd1f41", "score": "0.58015907", "text": "public void setEditText() {\n etUsername.setText(\"\");\n etPhoneNumber.setText(\"\");\n etEmail.setText(\"\");\n tvDOB.setText(\"\");\n btnSave.setText(R.string.text_save);\n }", "title": "" }, { "docid": "a4468e2f50d3665966d2b5ac0b48a50a", "score": "0.58000964", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\tnew Edit();\r\n\t\t\t\trepaint();\r\n\t\t\t}", "title": "" }, { "docid": "375e0e5fd76de0d11b0229bc3296a3f5", "score": "0.5799197", "text": "public void inputnew () {\n inponu.setEditable(true);\n inremark.setEnabled(true);\n instab.setEnabled(true);\n inunit.setEditable(true);\n indret.setEnabled(true);\n inrel.setEnabled(true);\n inreleaseto.setEditable(true);\n input_save.setEnabled(true);\n input_update.setEnabled(false);\n input_delete.setEnabled(false);\n input_new.setEnabled(false);\n inputclear();\n }", "title": "" }, { "docid": "f8c3bce62023b3f4b703af7a6fe1fbd7", "score": "0.57955074", "text": "@Override\r\n public void edit(int row, TableColumn<S, ?> column) {\r\n// setTerminatingCell(getEditingCell());\r\n super.edit(row, column);\r\n// setTerminatingCell(null);\r\n }", "title": "" }, { "docid": "fb06c8d124c05a875380d4ea606b35ed", "score": "0.57897794", "text": "@Override\n\tpublic void setEditable(boolean b) {\n\t\t\n\t}", "title": "" }, { "docid": "74f3f6c0e2cdc19274ab18a73eaf83cd", "score": "0.5789424", "text": "@Override\n\tprotected void validateEdit(Premio post) {\n\t\t\n\t}", "title": "" }, { "docid": "360858499afe6cc7ffdaa49357eae2af", "score": "0.5785045", "text": "@Override\n public void startEdit() {\n super.startEdit();\n textField.setText(converter.toString(getItem()));\n setContentDisplay(ContentDisplay.GRAPHIC_ONLY);\n textField.requestFocus();\n }", "title": "" }, { "docid": "76d2ccf38731f05af77db62ced99510f", "score": "0.57850146", "text": "void onEdit() {\n\t\tif(tblCruises.getSelectionModel().getSelectedItem() != null) {\n\t\t\tCruise selectedCruise = tblCruises.getSelectionModel().getSelectedItem();\n\t\t\ttxtCruiseNo.setText(String.valueOf(selectedCruise.getIntCruiseNo()));\n\t\t\ttxtNewCruiseNo.setText(String.valueOf(selectedCruise.getIntCruiseNo()));\n\t\t\ttxtPassengerNo.setText(String.valueOf(selectedCruise.getIntPassengerNo()));\n\t\t\ttxtNewPassengerNo.setText(String.valueOf(selectedCruise.getIntPassengerNo()));\n\t\t\ttxtCabinNo.setText(String.valueOf(selectedCruise.getIntCabinNo()));\n\t\t\tcbOriginPort.setValue(selectedCruise.getStrOriginPortLOCODE());\n\t\t\tcbDestinationPort.setValue(selectedCruise.getStrDestinationPortLOCODE());\n\t\t\tdpCruiseStart.setValue(LOCAL_DATE(String.valueOf(selectedCruise.getStrCruiseStart())));\n\t\t\tdpCruiseEnd.setValue(LOCAL_DATE(String.valueOf(selectedCruise.getStrCruiseEnd())));\n\t\t}\n\t}", "title": "" }, { "docid": "ddfdcbd3b1fb1dd4f32c253e5d57db9e", "score": "0.5783778", "text": "public ProdSerEdit() {\n initComponents();\n }", "title": "" }, { "docid": "e07aae578ea6d44dd5e904828201ea72", "score": "0.5778819", "text": "public void detailsModeMod(){\n done.setVisible(false);\n f_name.setEditable(false);\n l_name.setEditable(false);\n dob.setEditable(false);\n email.setEditable(false);\n password.setEditable(false);\n username.setEditable(false);\n phone.setEditable(false);\n salary.setEditable(false);\n \n }", "title": "" }, { "docid": "5cb3f9c53afd6f1271bd1016959b6053", "score": "0.57724714", "text": "public native void startEdit(String id, String value) /*-{\r\n var editor = this.@com.gwtext.client.widgets.Component::getOrCreateJsObj()();\r\n editor.startEdit(id, value);\r\n }-*/;", "title": "" }, { "docid": "a9d19088156e2330131114d2324327ed", "score": "0.5765782", "text": "public abstract void checkEditing();", "title": "" }, { "docid": "d06f56a488411084992777d69e480c0f", "score": "0.57555854", "text": "public void onTextEdited() {\n\t\tString value = \"\";\n\t\tif (!this.getText().trim().equals(EMPTY_STR))\n\t\t\tvalue = this.getText().trim();\n\t\tif (this.title.equals(VAR))\n\t\t\tmodule.setVarDeclaration(value);\n\t\telse if (this.title.equals(INIT_ACTION))\n\t\t\tmodule.setInitialAction(value);\n\n\t\tthis.distributeNoteEditEvent(new NoteEditEvent(this,\n\t\t\t\tNoteEditEvent.EventType.TEXT));\n\t}", "title": "" }, { "docid": "655372c51bc35f38e57615ed14252383", "score": "0.57504153", "text": "public void edit() {\n Intent intent = new Intent(DetailActivity.this, InputActivity.class);\n intent.putExtra(\"title\", title);\n intent.putExtra(\"content\", content);\n intent.putExtra(\"mood\", mood);\n intent.putExtra(\"edit\", \"true\");\n intent.putExtra(\"id\", id);\n\n startActivity(intent);\n }", "title": "" }, { "docid": "f9c6b3f27e7ee639cbcc69401318ba28", "score": "0.57431287", "text": "public void configEditing() {\r\n\t\tediting = new GridRowEditing<Pago>(g);\r\n\r\n\t\t// esto es para qeu valide automaticamente qeu es un numero, y para que\r\n\t\t// puedas tocar la flecha de arriba y sume uno!\r\n\t\tSpinnerFieldCell<Integer> sfcCodigo = new SpinnerFieldCell<Integer>(\r\n\t\t\t\tnew IntegerPropertyEditor());\r\n\r\n\t\tNumberField<Integer> nfCodigo = new NumberField<Integer>(sfcCodigo,\r\n\t\t\t\tsfcCodigo.getPropertyEditor());\r\n\t\tnfCodigo.setEmptyText(\"Ingrese el Codigo\");\r\n\t\tediting.addEditor(cod_pago, nfCodigo);\r\n\r\n\t\t// TextField tfClieahnte = new TextField();\r\n\t\t// tfCliente.setEmptyText(\"Ingrese el Cliente\");\r\n\t\t// editing.addEditor(cliente, tfCliente);\r\n\r\n\t\tSpinnerFieldCell<Double> sfc = new SpinnerFieldCell<Double>(\r\n\t\t\t\tnew DoublePropertyEditor());\r\n\r\n\t\tTextField tfMonto = new TextField();\r\n\t\tNumberField<Double> nfMonto = new NumberField<Double>(sfc,\r\n\t\t\t\tsfc.getPropertyEditor());\r\n\t\ttfMonto.setEmptyText(\"Ingrese el Monto\");\r\n\t\tediting.addEditor(monto, nfMonto);\r\n\r\n\t\t// TextField tfEstado = new TextField();\r\n\t\t// tfEstado.setEmptyText(\"Ingrese el Estado\");\r\n\t\t// editing.addEditor(estado, tfEstado);\r\n\r\n\t\t// TextField tfMensaje = new TextField();\r\n\t\t// tfMensaje.setEmptyText(\"Ingrese el Mensaje\");\r\n\t\t// editing.addEditor(mensaje, tfMensaje);\r\n\r\n\t\tDateField dateField = new DateField(new DateTimePropertyEditor(fmt));\r\n\t\tdateField.setClearValueOnParseError(false);\r\n\r\n\t\tediting.addEditor(fecha, dateField);\r\n\t\t// PARTE DE CLIENTES\r\n\t\t// simplecombobox es lo mejor de sencha.. te hace la vida mas facil!..\r\n\t\t// al contrario de todo el resto que le rodea jajaj\r\n\t\tSimpleComboBox<Cliente> combo = new SimpleComboBox<Cliente>(\r\n\t\t\t\tclientePA.nameLabel());\r\n\t\t// le decimos al combo de donde va a quitar sus opciones\r\n\t\tcombo.setStore(clientesPaElCombo);\r\n\t\t// y decimos que la columna sera editable con ese combo!\r\n\t\tediting.addEditor(cliente, combo);\r\n\r\n\t\tediting.addCompleteEditHandler(new CompleteEditHandler<Pago>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onCompleteEdit(CompleteEditEvent<Pago> event) {\r\n\t\t\t\t// guarda todos lso cambios en el store, asi podemos obtener el\r\n\t\t\t\t// cilnete cambiado\r\n\t\t\t\tstore.commitChanges();\r\n\t\t\t\t/**\r\n\t\t\t\t * esta linea me tomo 3 meses construir, lo que hace es: <Br>\r\n\t\t\t\t * 1. Obtiene la fila que se esta editando <br>\r\n\t\t\t\t * 2. La busca en el store, el store se actualiza\r\n\t\t\t\t * automaticamente y su orden es el orden donde se muestra\r\n\t\t\t\t */\r\n\t\t\t\teditadoCompleto(store.get(event.getEditCell().getRow()));\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" } ]
e37a1201c8c467ff7e87ad56cf0a3cf5
M.A: Publico Retorno: void Argumentos: N/A Metodo que activa una ventana JOptionPane, tipo Message Dialog, la cual muestra el valor inicial del contador
[ { "docid": "6358921cc3111f63a99590e66cdd8398", "score": "0.7629107", "text": "public void mostrarValorInicial()\r\n {\r\n JOptionPane.showMessageDialog(null, \"El valor inicial de este contador fue: \" + valorInicial);\r\n }", "title": "" } ]
[ { "docid": "7dd136b39208e120f6425f1899260da5", "score": "0.7199795", "text": "public void AvisoExito(){\n JOptionPane.showMessageDialog(null, \"Se realizó el registro correcto del Pago al habitante.\", \"Aviso:\",JOptionPane.INFORMATION_MESSAGE); \r\n }", "title": "" }, { "docid": "7795a6d557a7268fa6215a1f1289fe67", "score": "0.68492424", "text": "private void mostraMensagem(){\n JOptionPane.showMessageDialog(null, mensagem);\n }", "title": "" }, { "docid": "3bdd6fea91664a39b78ce6d1aa411300", "score": "0.67838115", "text": "public String preguntaCodigo(){\r\n String seleccion = JOptionPane.showInputDialog(this,\"Introduce codigo del socio\");\r\n \r\n return seleccion;\r\n }", "title": "" }, { "docid": "c75916af9c38a27ca0180db28a4f9296", "score": "0.6778784", "text": "public void AvisoFracaso(){\n JOptionPane.showMessageDialog(null, \"No realizó el registro correcto del Pago al habitante.\", \"Aviso:\",JOptionPane.WARNING_MESSAGE);\r\n }", "title": "" }, { "docid": "af52fc9888aa57e82d89e53b864c76dd", "score": "0.67759603", "text": "public void mostrarValorActual()\r\n {\r\n JOptionPane.showMessageDialog(null, \"El valor actual de este contador es: \" + valorActual);\r\n }", "title": "" }, { "docid": "65804171c3b3747fdf57e9d86d49f254", "score": "0.670946", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tint value = (Integer) can.getValue();\n\n\t\tJButton bt = (JButton) e.getSource();\n\n\t\tif (bt == procesar) {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"\\t\\n ¡Venta realizada con exito! \\n\\n\\n#Venta: \\n\\nVendedor: \\n\\nCliente: \\n\\nProducto: \\n\\nCantidad: \"\n\t\t\t\t\t\t\t+ value + \"\\n\\nMonto cancelado: \\n\\n\\n\",\n\t\t\t\t\t\" Comprobante de venta\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t\tif (bt == limpiar) {\n\n\t\t\ttsub.setText(\"\");\n\t\t\ttiva.setText(\"\");\n\t\t\ttto.setText(\"\");\n\t\t\tcan.setValue(0);\n\t\t\tcbiva.setSelectedItem(\"Selec. IVA \");\n\t\t\ttRif.setText(\"Ej: 27617489\");\n\t\t\ttPro.setText(\"Ej: 0112\");\n\t\t\t\n\n\t\t}\n\t\tif (bt == salir) {\n\t\t\tif (JOptionPane.showConfirmDialog(null, \"Esta seguro de que desea salir?\", \"SALIR\",\n\t\t\t\t\tJOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}\n\t\t}\n\t\tif (bt == lupa) {\n\n\t\t}\n\t\tif (bt == lupa1) {\n\n\t\t}\n\n\t\tif (bt == exit) {\n\t\t\tif (JOptionPane.showConfirmDialog(null, \"Esta seguro de que desea salir?\", \"SALIR\",\n\t\t\t\t\tJOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "5f57d249594341744a245cdc3ada815e", "score": "0.6618749", "text": "public static void ver (String texto){\r\n JOptionPane.showMessageDialog(null,texto);\r\n }", "title": "" }, { "docid": "d47c90f619b257fcd26d1fa2a4e06761", "score": "0.6609059", "text": "public void limpDlgConfirmDesativar() {\r\n setMotivo(\"\");\r\n ativ_desativ_usuario = new Ativ_desativ_usuario();\r\n }", "title": "" }, { "docid": "2b68c182714075175105ac9294ff0bae", "score": "0.6584337", "text": "public void actionPerformed(ActionEvent evento) {\n\t\n\t\tif(evento.getSource() == buttonOK) {\n\t\t\t\t\n\t\t\t\tif (textId.getText().isEmpty()){\n\t\t\t\t JOptionPane.showMessageDialog(null, \"Existe algo errado com o campo \" + \"ID\");\n\t\t\t\t} \n\t\t\t\tif (textNome.getText().isEmpty()) {\n\t\t\t\t JOptionPane.showMessageDialog(null, \"Existe algo errado com o campo \" + \"Nome\");\n\t\t\t\t}\n\t\t\t\tif (textEndereco.getText().isEmpty()) {\n\t\t\t\t JOptionPane.showMessageDialog(null, \"Existe algo errado com o campo \" + \"Endereco\");\n\t\t\t\t}\n\t\t\t\tif (textNum.getText().isEmpty()) {\n\t\t\t\t JOptionPane.showMessageDialog(null, \"Existe algo errado com o campo \" + \"Numero\");\n\t\t\t\t}\n\t\t\t\tif (textComplemento.getText().isEmpty()) {\n\t\t\t\t JOptionPane.showMessageDialog(null, \"Existe algo errado com o campo \" + \"Complemento\");\n\t\t\t\t}\n\t\t\t\tif (textCEP.getText().isEmpty()) {\n\t\t\t\t JOptionPane.showMessageDialog(null, \"Existe algo errado com o campo \" + \"CEP\");\n\t\t\t\t}\n\t\t\t\tif (textCPF.getText().isEmpty()){\n\t\t\t\t JOptionPane.showMessageDialog(null, \"Existe algo errado com o campo \" + \"CPF\");\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Cadastrado com Sucesso\");\n\t\t\t\t}\n\t\t\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4604a1eab543c4cd36857d10ae0e06dd", "score": "0.6570269", "text": "public void confirmarAsignaturaAgregada() {\n JOptionPane.showMessageDialog(this, \"Asignatura agregada exitosamente.\", \"Confirmación\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(getClass().getResource(\"/GUI/iconos/asignatura.png\")));\n this.setCodAsignatura(\"\");\n this.setNombreAsignatura(\"\");\n }", "title": "" }, { "docid": "58dd698698d989dc4f103dc1c7ddf625", "score": "0.6566526", "text": "public void modificar() {\n \n nombre = JOptionPane.showInputDialog(\"Deme el nombre de la persona\");\n \n }", "title": "" }, { "docid": "a43de183578397a3482fa81c95cf9495", "score": "0.65442663", "text": "public void iniciarCalculadora() {\n String[] opciones = {\"Basica\", \"Trigonometrica\", \"Racional\"};\n String seleccion = (String) JOptionPane.showInputDialog(null, \"Que calculadora desea ocupar:\", \n \"Bienvenido\", JOptionPane.DEFAULT_OPTION, null, opciones, opciones[0]);\n\n \n if (seleccion == null) {\n JOptionPane.showMessageDialog(null, \"Cerrar calculadora\");\n return;\n } else if (seleccion.equals(opciones[0])) {\n calculadoraBasica();\n } else if (seleccion.equals(opciones[1])) {\n calculadoraTrigonometrica();\n } else if (seleccion.equals(opciones[2])) {\n calculadoraRacional();\n }\n }", "title": "" }, { "docid": "fd845cd1ea09cf899520379ae3c616cb", "score": "0.65295875", "text": "private void consultarActionPerformed(java.awt.event.ActionEvent evt) {\n String consulta = JOptionPane.showInputDialog(\"Digite a Pergunta\");\n \n Integer posicaoachou = 0;\n Boolean encontrou = false;\n \n if(consulta.isEmpty() == false)\n {\n for (Pergunta pergunta : lista){\n \n if(consulta.equals(pergunta.getEnunciado()))\n {\n encontrou = true; \n enunciado.setText(pergunta.getEnunciado());\n a.setText(pergunta.getA());\n b.setText(pergunta.getB());\n c.setText(pergunta.getC());\n d.setText(pergunta.getD());\n certa.setSelectedItem(pergunta.getCerta());\n \n posicao=posicaoachou;\n break;\n }\n posicaoachou ++; \n }\n }\n if(encontrou == false)\n {\n JOptionPane.showMessageDialog(rootPane, \"Pergunta não Encontrada\");\n \n }\n \n }", "title": "" }, { "docid": "4d44d4506d0ba0f687c5b9857e9bd756", "score": "0.6498484", "text": "protected void closeDialogOk() {\n wta.setK(Integer.parseInt(kValue.getText()));\n super.closeDialogOk();\n }", "title": "" }, { "docid": "4616b44ee3b016703f5e17663c37d829", "score": "0.64878136", "text": "@FXML\n public void poistaToimintaAlue(ActionEvent event) {\n\n ObservableList<String> valinnat = haeToimintaAlueet();\n\n ChoiceDialog<String> dialog = new ChoiceDialog<>(\"Valitse toiminta-alue\", valinnat);\n dialog.getDialogPane().getButtonTypes().addAll(jatka, peruuta);\n dialog.getDialogPane().getButtonTypes().remove(0, 2);\n dialog.setTitle(\"Poista toiminta-alue\");\n dialog.setHeaderText(\"Toiminta-alue poistetaan tietokannasta\");\n\n Optional<String> result = dialog.showAndWait();\n if (result.isPresent() && !result.get().equals(\"Valitse toiminta-alue\")) {\n String delete_toimintaalue = result.get();\n vahvistusPoistolle(-1, delete_toimintaalue);\n }\n }", "title": "" }, { "docid": "793d846c25b0f7d818bc58ade3a06b8b", "score": "0.64876187", "text": "private static int imprimirMenu(){\n\t\t\tint resp;\n\t\t String [] opciones = {\"Nuevo producto\",\"Listado\",\"Buscar\",\"Salir\"};\n\t\t resp= JOptionPane.showOptionDialog(null,\"Seleccione la opción que desea efectuar\" , \"Menu\" , JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, opciones, null);\n\t\t return resp;\n\t\t\n\t\t}", "title": "" }, { "docid": "b199e3dc7e35ed381f3c819f1c807e6a", "score": "0.6472906", "text": "private void btn_cifrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_cifrarActionPerformed\n\n int a = 0;\n\n Cifrado cifrado = new Cifrado();\n String[] palabras = txtarea_trad2.getText().split(\",\");\n String clave = \"\";\n String temp = \"\";\n temp = JOptionPane.showInputDialog(rootPane, \"Escriba la contraseña para encriptar por Vigenère\", \"CONTRASEÑA\", JOptionPane.INFORMATION_MESSAGE);\n\n\n if (temp.equals(\"\"))\n JOptionPane.showMessageDialog(rootPane, \"La clave no puede estar vacía\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n else if (ValidarContraseñas(temp) < temp.length())\n JOptionPane.showMessageDialog(rootPane, \"La clave solo puede contener letras\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n else {\n try {\n Cifrado.PasarDatos(palabras, temp);\n cifrado.setVisible(true);\n btn_cifrar.setEnabled(false);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(rootPane, \"Ha ocurrido un error. Verifique que la contraseña y el texto a cifrar está bien escrito\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }\n\n }", "title": "" }, { "docid": "f42bd2a47625742645176c958fe326e5", "score": "0.63944995", "text": "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n boolean sw = true;\n int n = 0;\n while (sw) {\n try {\n String entrada = JOptionPane.showInputDialog(null, \"Numero de palabras: \", \"Numero palabras\", JOptionPane.QUESTION_MESSAGE);\n if ((entrada != null) && (!entrada.isEmpty())) {\n n = Integer.parseInt(entrada);\n if ((n <= 0) || (n > lim)) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar un valor mayor que 0 y menor que \" + (lim - 60));\n continue;\n }\n sw = false;\n }\n if (entrada == null) {\n sw = false;\n }\n } catch (HeadlessException | NumberFormatException e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar un valor numerico\");\n }\n }\n\n InsertarPalabra(n);\n }", "title": "" }, { "docid": "d49e802600e91a51ff774717dbbb9e95", "score": "0.63783866", "text": "@Override\n public void actionPerformed(ActionEvent ae) {\n String usu=ventanaInicioS.txtUsuario.getText();\n String pass=String.valueOf(ventanaInicioS.txtContra.getPassword());\n intentos++;\n try {\n if(empDAO.validaInicioSesion(usu, pass)){\n principal ventanaP=new principal();\n ventanaP.setVisible(true);\n ventanaP.setLocationRelativeTo(null);\n controlVentanaPrincipal cvp=new controlVentanaPrincipal(ventanaP, empDAO);\n ventanaInicioS.dispose();//Investigar que hace dispose \n intentos=0;\n }\n else{\n /*\n Esto borra la informacion en la caja de tecto de contaseña para agilizar el incio de sesion\n */\n ventanaInicioS.txtContra.setText(\"\");\n }\n } catch (SQLException ex) {\n\n }//fin del catch\n \n \n /*\n Este apartado sirve para hacerque el usuario pueda recuperar su contrasena\n */\n if(intentos==2){\n JOptionPane.showMessageDialog(null, \"Maximo de intentos sobre pasado\");\n ventanaInicioS.dispose();\n }\n }", "title": "" }, { "docid": "83ada4ef682b1b25a6ffa46d55b0cc02", "score": "0.6378125", "text": "public static int showConfirmDialog(Object message){\r\n\t\tJOptionPane pane = new JOptionPane(message, PLAIN_MESSAGE, JOptionPane.YES_NO_CANCEL_OPTION);\r\n\t\tJDialog dialog = pane.createDialog(null, \"Select an Option\");\r\n\t\tdialog.setBounds(GUI.SMALL_CENTER_OF_GUI);\r\n\t\tpane.setLayout(null);\r\n\t\t\r\n\t\tformatTitle(pane, GUI.SMALL_CENTER_OF_GUI, 0);\r\n\t\t\r\n\t\tformatButtons(pane, AlertPane.NO_FULL_SCREEN_BUTTONS, GUI.SMALL_CENTER_OF_GUI, 3, true);\r\n\t\tdialog.show();\r\n\t\t\r\n\t\tif (pane.getValue() instanceof Integer){\r\n\t\t\treturn ((Integer) pane.getValue()).intValue();\r\n\t\t}\r\n\t \r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "758800693a8ef12de46e5c5460c3f9e8", "score": "0.63488734", "text": "@Override\r\n public void Falar(){//Método herdado de FUNCIONARIO\r\n JOptionPane.showMessageDialog(null, \"Concertando\");\r\n }", "title": "" }, { "docid": "70308c0f9642c3886262a7a204c24e96", "score": "0.63433343", "text": "private void CautaDupaPretButtonActionPerformed(java.awt.event.ActionEvent evt) {\n\n boolean ok=true;\n\n boolean flagInt=false;\n if(PretDeLaTextField.getText().isEmpty()){\n\n //this.PretLabel.setForeground(Color.red);\n ok=false;\n\n }else{\n //System.out.println(\"da\");\n try{\n Integer.parseInt(PretDeLaTextField.getText());\n }\n catch(NumberFormatException e){\n flagInt=true;\n }\n if(flagInt==true){\n //this.PretLabel.setForeground(Color.red);\n JOptionPane.showMessageDialog(CautaOIA.this,\"Va rugam sa introduceti un pret minim valid\",\"Error Message\",JOptionPane.ERROR_MESSAGE);\n }\n }\n if (ok==false){\n JOptionPane.showMessageDialog(CautaOIA.this,\"Va rugam sa introduceti un pret minim valid\",\"Error Message\",JOptionPane.ERROR_MESSAGE);\n }\n\n ok=true;\n\n flagInt=false;\n if(PretPanaLaTextField.getText().isEmpty()){\n\n //this.PretLabel.setForeground(Color.red);\n ok=false;\n\n }else{\n //System.out.println(\"da\");\n try{\n Integer.parseInt(PretPanaLaTextField.getText());\n }\n catch(NumberFormatException e){\n flagInt=true;\n }\n if(flagInt==true){\n //this.PretLabel.setForeground(Color.red);\n JOptionPane.showMessageDialog(CautaOIA.this,\"Va rugam sa introduceti un pret maxim valid\",\"Error Message\",JOptionPane.ERROR_MESSAGE);\n }\n }\n if (ok==false){\n JOptionPane.showMessageDialog(CautaOIA.this,\"Va rugam sa introduceti un pret maxim valid\",\"Error Message\",JOptionPane.ERROR_MESSAGE);\n }\n\n String p1 = PretDeLaTextField.getText();\n String p2=PretPanaLaTextField.getText();\n\n if (flagInt==false){\n if ((p1 != null && p1.trim().length() > 0)&&(p2 != null && p2.trim().length() > 0)){\n //get_alldate();\n int c1=Integer.parseInt(p1);\n int c2=Integer.parseInt(p2);\n get_alldatecodBetween(c1,c2);\n\n }\n //else {\n //\tget_alldatecod();\n //}\n }\n\n }", "title": "" }, { "docid": "f8c57641b8bc15a59c571b5e0269407b", "score": "0.6341103", "text": "private void optionFermetureOuiNon(){\n // ajoute une gestion du EXIT par confirmation pop-up\n addWindowListener(new WindowAdapter() {\n // gestionnaire d'événement\n public void windowClosing(WindowEvent we) {\n\n int result = JOptionPane.showConfirmDialog(null,\n \"Voulez-vous quitté ?\", \"Confirmation\",\n JOptionPane.YES_NO_OPTION);\n\n if (result == JOptionPane.YES_OPTION){\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }\n else if (result == JOptionPane.NO_OPTION){\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n }\n }\n\n });\n\n }", "title": "" }, { "docid": "fa86ab8a2c1e062890a99bd6a54d12fc", "score": "0.6337106", "text": "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(getContentPane(),\r\n\t\t\t\t\t\t\"F1 : Help \\nF3 : Increase font size \\nF4 : Decrease font size\\nF7 : Show line \\n\\nESC : Unselect \" +\r\n\t\t\t\t\t\t\t\t\"\\n\\nThe SEARCH field (a PostgreSQL 'where' statement) is active when the search button is active\" + \r\n\t\t\t\t\t\t\t\t\"\\n\\nJvakt Help\\n\" +\r\n\t\t\t\t\t\t\t\t\"- CreDate (the date it appeared in the console) -\\n\" + \r\n\t\t\t\t\t\t\t\t\"- DelDate (the date it wanished from the console) -\\n\" + \r\n\t\t\t\t\t\t\t\t\"- Count (the number of times the same error appeared) -\\n\" + \r\n\t\t\t\t\t\t\t\t\"- ID (the unique id if the message) -\\n\" +\r\n\t\t\t\t\t\t\t\t\"- Prio (the priority. Below 30 trigger email and SMS text) -\\n\" + \r\n\t\t\t\t\t\t\t\t\"- Type (R=repeated, S=scheduled, T=no time-out checks and I=immediate/impromptu) -\\n\" + \r\n\t\t\t\t\t\t\t\t\"- Status (OK, INFO, TOut or ERR) -\\n\" + \r\n\t\t\t\t\t\t\t\t\"- Body (any text) -\\n\"+ \r\n\t\t\t\t\t\t\t\t\"- Agent (description of the reporting agent)\" \r\n\t\t\t\t\t\t\t\t,\"Jvakt Help\",\r\n\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t\t}", "title": "" }, { "docid": "18f28e03a14e9e634945a5b079a177cb", "score": "0.63338506", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(!checkIsNull())\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(this, \"输入的项目编号为空\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(!checkInput().equals(\"\"))\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(this, checkInput());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry{\n\t\t\t\t\tInformationDAO dao = new InformationDAO();\n\t\t\t\t\tString st=dao.findPasByRno(number.getText().trim());\n\t\t\t\t\tJOptionPane.showMessageDialog(this,st);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (ClassNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "da5c771c760d4692a29d3d7cae52158f", "score": "0.6326348", "text": "private void buttonCadastroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonCadastroActionPerformed\r\n\r\n try {\r\n /*\r\n * Pergunta se o cliente realmente deseja cadastrar a transação\r\n */\r\n int opcao = JOptionPane.showOptionDialog(null, \"Tem certeza que deseja efetuar o cadastro desta pesagem?\",\r\n \"Cadastrar\",\r\n JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null,\r\n botoesOpcoes, botoesOpcoes[0]);\r\n\r\n /*\r\n * O cliente confirmou que deseja efetuar o cadastro da pesagem\r\n */\r\n if (opcao == JOptionPane.YES_OPTION) {\r\n /*\r\n * O campo código está vazio, ou seja, verifica se esta não é\r\n * uma pesagem existente\r\n */\r\n if (textCodigo.getText().isEmpty()) {\r\n /*\r\n * Verifica se alguns campos já foram preenchidos\r\n */\r\n if (!(textDataCriacao.getText().equals(\"\") || textValor.getText().equals(\"\")\r\n || textVencimento.getText().equals(\"\") || comboCliente.getSelectedIndex() == 0)) {\r\n /*\r\n * Realiza o cadastro no banco de dados\r\n */\r\n Pesagem p = this.criaPesagem();\r\n if (p != null) {\r\n if (dao.inserir(p)) {\r\n /*\r\n * Preenche o campo com o código da nova\r\n * transação no banco de dados\r\n */\r\n List<Pesagem> list = dao.listar();\r\n textCodigo.setText(Integer.toString(list.get(list.size() - 1).getIdPesagem()));\r\n\r\n /*\r\n * Verifica opções para realizar impressão da\r\n * transação\r\n */\r\n buttonImprimirActionPerformed(evt);\r\n\r\n limparGUI();\r\n }\r\n }\r\n } else {\r\n JOptionPane.showMessageDialog(this, \"Pelo menos estas condições devem ser satisfeitas para \"\r\n + \"efetuar um novo cadastro:\"\r\n + \"\\n-Defina o cliente.\"\r\n + \"\\n-Defina a placa.\"\r\n + \"\\n-Defina a forma de pagamento.\"\r\n + \"\\n-Defina o vencimento.\"\r\n + \"\\n-Defina o valor total.\", \"Atenção!\", JOptionPane.WARNING_MESSAGE);\r\n\r\n }\r\n } else {\r\n JOptionPane.showMessageDialog(this, \"Esta pesagem já existe portanto não é possível cadastrá-la,\"\r\n + \"somente alterá-la!\", \"Atenção!\", JOptionPane.WARNING_MESSAGE);\r\n\r\n }\r\n /**\r\n * Relista as transações na tabela*\r\n */\r\n buscar();\r\n\r\n\r\n }\r\n } catch (NumberFormatException er) {\r\n JOptionPane.showMessageDialog(this, \"Valor numérico digitado de forma inválida, favor tentar novamente!\\n\",\r\n \"Erro\", JOptionPane.ERROR_MESSAGE);\r\n apaga.apagaJTextField(textTara, textPesoBruto, textPesoLiquido, textValor);\r\n\r\n }\r\n}", "title": "" }, { "docid": "9358ba5dccfe1e29eb207efc6bd0eb7c", "score": "0.6322858", "text": "private void MensajeValidaCampo(String strNomCampo){\r\n String strMsg=\"El campo <<\" + strNomCampo + \">> es obligatorio.\\nEscriba un(a) \" + strNomCampo + \" valido(a) y vuelva a intentarlo.\";\r\n JOptionPane.showMessageDialog(jfrThis,strMsg,strTit,JOptionPane.INFORMATION_MESSAGE);\r\n }", "title": "" }, { "docid": "4b030da46a3453ea4f35e3f2f0dd5809", "score": "0.63225794", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n\n switch (AccionMVC.valueOf(e.getActionCommand())) {\n case __INTRODUCIR_NOTA:\n\n //Si un campo obligatorio esta vacio salta un mensaje\n if (this.vista.temaBox.getText().isEmpty()) {\n\n JOptionPane.showMessageDialog(null, \"Los campos no pueden estar vacios.\");\n } else {\n\n //Si viene del panel Libros coloca al atributo idLibro la id del objeto libro relacionado\n if (fromLibro) {\n\n nota.setId(0);\n nota.setTema(this.vista.temaBox.getText());\n\n if (this.vista.contenidoArea.getText().isEmpty()) {\n nota.setContenido(null);\n } else {\n nota.setContenido(this.vista.contenidoArea.getText());\n }\n\n nota.setIdLibro(libroConn.getId(LibroControlador.isbn));\n nota.setIdArticulo(0);\n\n //Si el metodo insert retorna true muestra un mensaje de exito, si no muestra error\n if (notaConn.insert(nota)) {\n JOptionPane.showMessageDialog(null, \"Nota introducida con exito.\");\n } else {\n JOptionPane.showMessageDialog(null, \"Ha habido un error.\");\n }\n fromLibro = false;\n }\n\n //Si viene del panel Articulos coloca al atributo idArticulo la id del objeto articulo relacionado\n if (fromArticulo) {\n\n nota.setId(0);\n nota.setTema(this.vista.temaBox.getText());\n if (this.vista.contenidoArea.getText().isEmpty()) {\n nota.setContenido(null);\n } else {\n nota.setContenido(this.vista.contenidoArea.getText());\n }\n\n nota.setIdLibro(0);\n nota.setIdArticulo(articuloConn.getId(ArticuloControlador.issn));\n\n if (notaConn.insert(nota)) {\n JOptionPane.showMessageDialog(null, \"Nota introducida con exito.\");\n } else {\n JOptionPane.showMessageDialog(null, \"Ha habido un error.\");\n }\n fromArticulo = false;\n }\n //Limpia las cajas de texto y cierra la ventana\n clean();\n this.vista.dispose();\n HomeControlador.vista.toFront();\n HomeControlador.vista.setEnabled(true);\n\n }\n\n break;\n case __CANCELAR:\n\n //Limpia las cajas de texto y cierra la ventana\n clean();\n\n fromLibro = false;\n fromArticulo = false;\n\n this.vista.dispose();\n HomeControlador.vista.toFront();\n HomeControlador.vista.setEnabled(true);\n }\n }", "title": "" }, { "docid": "8c40a60000c78cd0c6f88f1d333281ce", "score": "0.63198525", "text": "public void obterArtista() {\n\t\tthis.setArtista(JOptionPane.showInputDialog(\"Informe o nome do artista: \"));\r\n\t\tif (artista == null) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Cancelando....\");\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "156d9f11e65f64ec741eeffa9dbdabc2", "score": "0.63170177", "text": "@Override\n public void bConfirmarActionPerformed(ActionEvent ae) {\n\n // try catch se o usuario não informou um número no campo ID\n \n try {\n if (tId.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(this, \"Código não informado\", \"Mensagem de erro\", JOptionPane.ERROR_MESSAGE);\n limparTela();\n bExcluir.setEnabled(false);\n return;\n } else {\n for (Cliente cliente : listaCliente) {\n if (cliente.getId() == Integer.parseInt(tId.getText())) {\n tNome.setText(cliente.getNome());\n bExcluir.setEnabled(true);\n tId.setEditable(false);\n return;\n }\n }\n }\n\n if (!bExcluir.isEnabled()) {\n JOptionPane.showMessageDialog(this, \"Cliente não cadastrado\", \"Mensagem de erro\", JOptionPane.ERROR_MESSAGE);\n limparTela();\n bExcluir.setEnabled(false);\n }\n } catch (NumberFormatException ee) {\n JOptionPane.showMessageDialog(this, \"Informe um número no campo 'Identificação'\", \"Mensagem de erro\", JOptionPane.ERROR_MESSAGE);\n limparTela();\n bExcluir.setEnabled(false);\n }\n }", "title": "" }, { "docid": "e099d85fa74d44a03883cd4d2fddc48e", "score": "0.6312675", "text": "public boolean preguntar(JFrame frame,String pregunta,String titulo) {\r\n JOptionPane pane=new JOptionPane(pregunta,JOptionPane.QUESTION_MESSAGE,JOptionPane.YES_NO_OPTION);\r\n JDialog dialog=pane.createDialog(frame,titulo);\r\n dialog.setDefaultCloseOperation(dialog.DO_NOTHING_ON_CLOSE);\r\n dialog.setVisible(true);\r\n Object s=pane.getValue();\r\n if(((Integer)s).intValue()==pane.NO_OPTION)return false;\r\n else return true;\r\n }", "title": "" }, { "docid": "6814550df13d954846d318064cc2f863", "score": "0.6307252", "text": "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(clickedSeat != -1) {\r\n\t\t\t\t\tif(userID[clickedSeat].getText().equals(\"\")){\r\n\t\t\t\t\t\tJOptionPane aa = new JOptionPane();\r\n\t\t \t\t\taa.showMessageDialog(null, \"접속한 사용자가 없는 좌석입니다.\");\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\tJOptionPane aa = new JOptionPane();\r\n\t \t\t\taa.showMessageDialog(null, \"좌석을 선택해주세요.\");\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "afc01e53fb19060bb0d954b91b18dc8f", "score": "0.6304939", "text": "public void dialogMessageResult(boolean acertou, final Activity act, @DrawableRes int desenho, String titulo, String mensagem){\n AlertDialog.Builder start_dialog = new AlertDialog.Builder(this);\n\n TextView start_dialog_desc = new TextView(this);\n start_dialog.setTitle(titulo);\n start_dialog.setMessage(mensagem);\n start_dialog.setIcon(desenho);\n start_dialog_desc.setGravity(Gravity.CENTER);\n start_dialog_desc.setTextColor(Color.WHITE);\n start_dialog.setView(start_dialog_desc);\n\n start_dialog.setPositiveButton(\"PRÓXIMA\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n fase++;\n setFase(fase);\n if(getFase() <= TOTAL_FASE - 1) {\n Intent nextActivity = new Intent(getBaseContext(), JogoDaMemoriaActivity.class);\n nextActivity.putExtra(\"fase\", getFase());\n nextActivity.putExtra(\"pontuacao\", getPontuacao());\n startActivity(nextActivity);\n finish();\n }\n }\n }).setNegativeButton(\"SAIR\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n act.finish();\n }\n });\n\n AlertDialog alert = start_dialog.create();\n alert.show();\n }", "title": "" }, { "docid": "1b441311cb2d1eab65a6b6fd8f88f15b", "score": "0.6288558", "text": "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint confirmacao = JOptionPane.showConfirmDialog(null,\"Deseja limpar o formulário?\");\r\n\t\t\t\tif (confirmacao == JOptionPane.YES_OPTION){\r\n\t\t\t\t\ttcodigo.setText(\"\");\r\n\t\t\t\t\ttnome.setText(\"\");\r\n\t\t\t\t\ttunidade.setText(\"\");\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "ea145834b10f62ddf1e886dc2f9e9c89", "score": "0.6253903", "text": "private void MensajeInf(String strMensaje){\r\n JOptionPane.showMessageDialog(jfrThis,strMensaje,strTit,JOptionPane.INFORMATION_MESSAGE);\r\n }", "title": "" }, { "docid": "66f66047ec81a6b1be6b7472c253824a", "score": "0.6240157", "text": "private void salir(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_salir\n int salir = JOptionPane.showConfirmDialog(rootPane, \"SEGURO DESEA SALIR?\");\n if (salir == 0) {\n limpiarCampos();\n txt1IngresodeNumeroEmpleado.setEnabled(true);\n txt1IngresodeNumeroEmpleado.setText(\"\");\n boton1Buscar.setEnabled(true);\n boton2Guardar.setEnabled(false);\n\n this.setVisible(false);\n\n }\n\n\n }", "title": "" }, { "docid": "d5b64569767b78e60444e78277957741", "score": "0.62352765", "text": "public void verificarContagem(){\n if (contador>4){\n JOptionPane.showMessageDialog(rootPane, \"Excedeu numero de tentativas\");\n System.exit(0);\n }else {\n contador++;\n loginjTextField.setText(\"\");\n senhajPasswordField.setText(\"\");\n loginjTextField.requestFocus();\n }\n }", "title": "" }, { "docid": "0ec7fda5b732b7459b30e7cc12df610b", "score": "0.62309706", "text": "private void btnContinuarActionPerformed(java.awt.event.ActionEvent evt) {\n\n if (combPresenca.getSelectedItem().equals(\"Ausente\")) {\n controlAluno.atribuirFalta(Integer.valueOf(lblCodigo.getText()), controlAluno.lista1().get(n));\n controlAula.atribuirFalta(Integer.valueOf(lblCodigo.getText()), controlAula.listaAlunos().get(n));\n } else {\n controlAula.atribuirpresenca(Integer.valueOf(lblCodigo.getText()), controlAula.listaAlunos().get(n));\n }\n if (Integer.parseInt(lblRestantes.getText()) > 0) {\n n++;\n lerAlunos(n);\n } else {\n a.setParticipante(controlAula.listaAlunos());\n lblNomeAluno.setText(\"Faltas marcadas com sucesso\");\n lblCodigo.setText(\"\");\n btnContinuar.setVisible(false);\n\n }\n\n\n }", "title": "" }, { "docid": "65f2b7fb470bfcc1eb42b90df316a6be", "score": "0.6218194", "text": "@Override\r\n\tpublic void setupDialog() {\n\t\tJOptionPane jop = new JOptionPane();\r\n\t\tjop.showMessageDialog(null, \"Uneti kljuc vec postoji!/n Potrebno je uneti jedinstveni kljuc\");\r\n\t}", "title": "" }, { "docid": "58e0742726710cdf57df0d63cd4176cf", "score": "0.6205253", "text": "private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed\n int getOK;\n try {\n\n BigDecimal firstPayment = new BigDecimal(tfGetFirstPaymentAmount.getText());\n BigDecimal saleAmount = new BigDecimal(tfGetSaleAmount.getText());\n Date date = boxSaleDate.getSelectedDate().getTime();\n setSale(date, saleAmount, firstPayment, customer);\n confirmSale();\n\n Object[] options = {\"Onayla\", \"Geri\"};\n getOK = JOptionPane.showOptionDialog(this, \"Satışı Onaylıyor musunuz?\\n\" + sale.printRecipe(), \"Satış Onay\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\n\n if (getOK == 0) {// Payment Confirmed by the user\n DatabaseOperations.saveSale(sale);\n JOptionPane.showMessageDialog(this, \"Satış işlemi başarıyla gerçekleştirildi.\");\n this.dispose();\n }\n\n\n\n\n\n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(this, \"Ödeme tutarı hatalı!\\nLütfen kontrol ediniz.\");\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(this, \"İşlem gerçekleştirelemedi!!\");\n }\n\n }", "title": "" }, { "docid": "206e6884897e19c7244018e43fba3e07", "score": "0.61984783", "text": "private void asientosContables(){\n \n JOptionPane.showMessageDialog(null, \"En desarrollo pronto para Mostrar\", \"Información\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "9fffdabedb30724fe8564ee4bdd1ff3d", "score": "0.61927956", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tString msg = number.getText();\n\t\t\t\tString final_number = null;\n\t\t\t\t\n\t\t\t\tif (hex.isSelected()) {\n\t\t\t\t\t\n\t\t\t\t final_number = hexToBin (msg);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (bin.isSelected()) {\n\t\t\t\t\t\n\t\t\t\t\tfinal_number = BinToHex (msg);\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 JLabel result = new JLabel(final_number);\n\t\t\t result.setFont(new Font(\"arial\", Font.PLAIN, 20));\n\t\t\t \n\t\t\t JDialog res = new JDialog();\n\t\t\t res.add(result);\n\t\t\t res.setLocationRelativeTo(null);\n\t\t\t res.setSize(300, 200);\n\t\t\t res.setVisible(true);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d3d22a8ab61b045e502b62c1556f7936", "score": "0.6191017", "text": "@Override\n public void actionPerformed(ActionEvent ae) {\n if (ae.getSource() == noRMText) {\n Pasien cari = Pasien.cariPasien(noRMText.getText());\n if (cari == null) {\n JOptionPane.showMessageDialog(null, \"Data Pasien \" + noRMText.getText() + \" Tidak Ada\");\n } else {\n namaText.setText(cari.getNama());\n alamatText.setText(cari.getAlamat());\n }\n }\n if (ae.getSource() == antriButton) {\n Pasien cari = Pasien.cariPasien(noRMText.getText());\n for (int i = 0; i < Pasien.daftarPasien.size(); i++) {\n if (cari == Pasien.daftarPasien.get(i)) {\n JOptionPane.showMessageDialog(null, \"Nomor Antrian Anda : \" + (i + 1));\n this.dispose();\n }\n }\n }\n }", "title": "" }, { "docid": "f856ead607c7fdfb4035623285880f4c", "score": "0.61780965", "text": "public void caixa_dialogo_sim_nao(String strIdMarca, int intCodRef) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n //define o titulo\n builder.setTitle(\"EXCLUIR PRODUTO\");\n //define a mensagem\n builder.setMessage(\"Confirma excluir este produto do estoque? Código: \" + intCodRef);\n //define um botão como OK\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface arg0, int arg1) {\n // Exclusão do produto da tabela de estoque\n StringBuilder sql_delete_estoque = new StringBuilder();\n sql_delete_estoque.append(\"DELETE FROM db_estoque WHERE id_marca=\" + strIdMarca);\n sql_delete_estoque.append(\" AND cod_ref=\" + intCodRef);\n try {\n db_estoque.execSQL(sql_delete_estoque.toString());\n caixa_dialogo_ok(\"EXCLUSÃO DE PRODUTO\", \"Produto excluído do estoque\");\n busca_todo_estoque();\n } catch (Exception ex) {\n caixa_dialogo_ok(\"Erro\", \"Exclusão de produto. \" + ex.getMessage());\n }\n //finish();\n }\n });\n //define um botão como negativo.\n builder.setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface arg0, int arg1) {\n // Toast.makeText(MainActivity.this, \"negativo=\" + arg1, Toast.LENGTH_SHORT).show();\n }\n });\n //cria o AlertDialog\n alerta = builder.create();\n //Exibe\n alerta.show();\n }", "title": "" }, { "docid": "612222ba35dbdb1bfae1dcaaffdc7599", "score": "0.6177014", "text": "public void aceptar(){\r\n\t\tSystem.out.println(\"Operador.actionPerformed() jButtonAceptar\");\r\n\t\ttry{\r\n\t\t \tif (GUIOperador.getjTextFieldNombre().getText().equals(\"\") || GUIOperador.getjTextFieldApellido().getText().equals(\"\") || GUIOperador.getjTextFieldDni().getText().equals(\"\")){\r\n\t \t\t\tJOptionPane.showMessageDialog(frame,\"Los campos con (*) son obligatorios\",\"Atención!\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tinsertarUsuario();\r\n\t\t\t\t}\r\n\t\t}\r\n\t\tcatch (NumberFormatException e){\r\n\t\t\tJOptionPane.showMessageDialog(frame,\"Recuerde ingresar sólo números en los campos correspondientes y que estos mismos no excedan la cantidad de caracteres\",\"Atención!\", JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3b42cc409726fa56caae53856aa59877", "score": "0.6176063", "text": "public void agregar(){\n String canti=txtcantidad.getText().trim();\n if(canti.equals(\"\")){\n JOptionPane.showMessageDialog(null, \"Error no ha colocado la cantidad\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }else{\n Ventas.cantidadagranel=txtcantidad.getText().trim();\n if(usarbascula.equals(\"SI\")){\n try {\n timer.purge();\n timer.cancel(); \n com1.close(); \n } catch (Exception ex) {\n Logger.getLogger(Agranel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n dispose();\n }\n}", "title": "" }, { "docid": "753e2fce9282213e0560a4171764e4be", "score": "0.6175483", "text": "private static int tipoCongelado(){\n\t\t\tint tipo;\n\t\t String [] opciones = {\"Aire\",\"Agua\",\"Nitrogeno\",\"Volver\"};\n\t\t tipo= JOptionPane.showOptionDialog(null,\"¿Que tipo de regrigeración tiene el producto?\" , \"Menu\" , JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, opciones, null);\n\t\t return tipo;\n\t\t\n\t\t}", "title": "" }, { "docid": "8455ae4ddb9a290248772d0453a3ce8e", "score": "0.6166951", "text": "private void actualizarAsignacion(int intFila, int intCol, String cod_cli) {\n String unidad = \"0\";\n try {\n unidad = jtPorDespachar.getValueAt(intFila, intCol).toString();\n } catch (NullPointerException ex) {\n }\n String strEstadoUnidad = \"\";\n try {\n if (validarUnidad(Integer.parseInt(unidad))) {\n strEstadoUnidad = bd.getEstadoUnidad(Integer.parseInt(unidad));\n\n if (strEstadoUnidad != null && strEstadoUnidad.equals(\"AC\")) {\n\n String estadoAsignado = bd.getNombreEstadoUnidad(\"ASI\");\n setColorDespachoVehiculo(unidad, estadoAsignado);\n\n actualizarClienteMapaLocal(cod_cli, unidad);\n\n } else {\n String estado = bd.getEtiquetaEstadoUnidad(strEstadoUnidad);\n if (estado != null) {\n int r = JOptionPane.showConfirmDialog(this,\n \"No se puede asignar una carrera a esa unidad, no está Activa...\"\n + \"\\nEstado de la unidad: \" + estado\n + \"\\n<html><b>¿Activar esta unidad?</b></html>\", \"Error\", 0);\n if (r == 0) {\n setColorDespachoVehiculo(unidad, bd.getNombreEstadoUnidad(\"AC\"));\n jtPorDespachar.setColumnSelectionInterval(6, 6);\n jtPorDespachar.setRowSelectionInterval(intFila, intFila);\n jtPorDespachar.requestFocus();\n }\n } else {\n int r = JOptionPane.showConfirmDialog(this,\n \"No se puede asignar una carrera a esa unidad, no está Activa...\"\n + \"\\n<html><b>¿Activar esta unidad?</b></html>\", \"Error\", 0);\n if (r == 0) {\n setColorDespachoVehiculo(unidad, bd.getNombreEstadoUnidad(\"AC\"));\n }\n }\n jtPorDespachar.setValueAt(\"\", intFila, intCol);\n }\n } else {\n jtPorDespachar.setValueAt(\"\", intFila, intCol);\n activarUnidadBorrada(cod_cli);\n }\n } catch (NumberFormatException nfex) {\n }\n }", "title": "" }, { "docid": "8f065611b7ca7f96aee953602845a9fe", "score": "0.6151571", "text": "private void botonGuardarActionAccepted() {\r\n boolean existe = false;\r\n int ID = 0;\r\n String[] generados = {\"correlativo\"};\r\n\r\n this.valorNombreGeneral.setText(quitarEspacios(this.valorNombreGeneral.getText()));\r\n try { //Primero se busca en la base de datos si ya existe este campo\r\n ResultSet resultado = conexionBD.getResultSet(\"select correlativo from TIPOCAMPO where nombre = '\" + this.valorNombreGeneral.getText() + \"'\");\r\n //\r\n if (resultado.next()) {\r\n ID = resultado.getInt(\"correlativo\");\r\n existe = true;\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(\"*SQL Exception: *\" + e.toString());\r\n }\r\n /*\r\n //Si este tipocampo ya existe en la base de datos hay que actualizar los campos solamente\r\n if (existe) {\r\n JOptionPane.showConfirmDialog(null, \"Ya existe campo con este nombre!\");\r\n\r\n //Por ahora no la boten, por si la ocupo mas tarde\r\n //conexionBD.getResultSet(\"Update TIPOCAMPO set nombre = '\" + this.valorNombreGeneral.getText() + \"', descripcion = '\" + this.valorNota.getText() + \"' where correlativo = \" + ID);\r\n }\r\n else { //Si no existe en la base hay que agregar una entrada nueva\r\n }\r\n */\r\n SimpleDateFormat fecha = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n switch (comboTipos.getSelectedIndex()) {\r\n case NUMERO: //HashCode para Número\r\n if (existe) {\r\n conexionBD.doUpdate(\"Update TIPOCAMPO set descripcion = '\" + this.valorNota.getText() + \"' where correlativo = \" + ID);\r\n conexionBD.doUpdate(\"Update NUMERO set numeroDecimales = '\" + this.valorNumDecimales.getText() + \"', mascara = '\" + this.valorNumeroMascara.getText() + \"', valorDefecto = '\" + this.valorValorDefectoNumero.getText() + \"' where correlativo = \" + ID);\r\n limpiarValoresNumero();\r\n System.out.println(\"Modifica\");\r\n } else {\r\n try {\r\n ResultSet resultado = conexionBD.doUpdate(\"Insert Into TIPOCAMPO (nombre, descripcion, tipo) VALUES ('\" + this.valorNombreGeneral.getText() + \"', '\" + this.valorNota.getText() + \"', 1);\", generados);\r\n if (resultado.next()) {\r\n ID = resultado.getInt(1);\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(\"*SQL Exception: *\" + e.toString());\r\n }\r\n conexionBD.doUpdate(\"Insert Into NUMERO (correlativo, numeroDecimales, mascara, valorDefecto) VALUES (\" + ID + \", \" + this.valorNumDecimales.getText() + \", '\" + this.valorNumeroMascara.getText() + \"', \" + this.valorValorDefectoNumero.getText() + \")\");\r\n limpiarValoresNumero();\r\n }\r\n break;\r\n\r\n case BINARIO: //HashCode para Binario\r\n if (existe) {\r\n conexionBD.doUpdate(\"Update TIPOCAMPO set descripcion = '\" + this.valorNota.getText() + \"' where correlativo = \" + ID);\r\n conexionBD.doUpdate(\"Update BINARIO set nombre1 = '\" + this.valorNombreBinario1.getText() + \"', valor1 = '\" + this.valorOpcionBinaria1.getText() + \"' , nombre2 = '\" + this.valorNombreBinario2.getText() + \"' , valor2 = '\" + this.valorOpcionBinaria2.getText() + \"' , valorDefecto = '\" + radioOpcionBinaria1.isSelected() + \"' where correlativo = \" + ID);\r\n limpiarValoresBinario();\r\n } else {\r\n try {\r\n ResultSet resultado = conexionBD.doUpdate(\"Insert Into TIPOCAMPO (nombre, descripcion, tipo) VALUES ('\" + this.valorNombreGeneral.getText() + \"', '\" + this.valorNota.getText() + \"', 2 );\", generados);\r\n if (resultado.next()) {\r\n ID = resultado.getInt(1);\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(\"*SQL Exception: *\" + e.toString());\r\n }\r\n conexionBD.doUpdate(\"Insert Into BINARIO (correlativo, nombre1, valor1, nombre2, valor2, valorDefecto) VALUES (\" + ID + \", '\" + this.valorNombreBinario1.getText() + \"', '\" + this.valorOpcionBinaria1.getText() + \"', '\" + this.valorNombreBinario2.getText() + \"', '\" + this.valorOpcionBinaria2.getText() + \"', '\" + radioOpcionBinaria1.isSelected() + \"')\"/*\"' where correlativo = \" + ID*/); //OJO COMENTE ESTO PORQUE ME PARECE QUE NO ES NECESARIO\r\n limpiarValoresBinario();\r\n }\r\n break;\r\n\r\n case FECHAHORA: //HashCode para FechaHora\r\n if (existe) {\r\n conexionBD.doUpdate(\"Update TIPOCAMPO set descripcion = '\" + this.valorNota.getText() + \"' where correlativo = \" + ID);\r\n conexionBD.doUpdate(\"Update FECHAHORA set despliegue = '\" + this.comboFormatoFecha.getSelectedItem().toString() + \"', fechaDefecto = '\" + this.valorFechaDefecto.getText() + \"', preaviso = '\" + this.valorPreaviso.getText() + \"', vencimiento = '\" + this.radioFechaHoraSi.isSelected() + \"' where correlativo = \" + ID);\r\n limpiarValoresFechaHora();\r\n } else {\r\n try {\r\n ResultSet resultado = conexionBD.doUpdate(\"Insert Into TIPOCAMPO (nombre, descripcion, tipo) VALUES ('\" + this.valorNombreGeneral.getText() + \"', '\" + this.valorNota.getText() + \"', 3);\", generados);\r\n if (resultado.next()) {\r\n ID = resultado.getInt(1);\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(\"*SQL Exception: *\" + e.toString());\r\n }\r\n conexionBD.doUpdate(\"Insert Into FECHAHORA (correlativo, despliegue, fechaDefecto, vencimiento, preaviso) VALUES (\" + ID + \", '\" + this.comboFormatoFecha.getSelectedItem().toString() + \"', '\" + getTipoFecha(this.valorFechaDefecto.getText(), this.comboFormatoFecha.getSelectedItem().toString()) + \"', '\" + this.radioFechaHoraSi.isSelected() + \"', '\" + this.valorPreaviso.getText() + \"')\");\r\n limpiarValoresFechaHora();\r\n\r\n }\r\n break;\r\n case TEXTO: //HashCode para Texto\r\n if (existe) {\r\n conexionBD.doUpdate(\"Update TIPOCAMPO set descripcion = '\" + this.valorNota.getText() + \"' where correlativo = \" + ID);\r\n conexionBD.doUpdate(\"Update TEXTO set tamano = '\" + this.valorTextoLargo.getText() + \"', textoDefecto = '\" + this.valorTextoDefecto.getText() + \"' where correlativo = \" + ID);\r\n limpiarValoresTexto();\r\n } else {\r\n try {\r\n ResultSet resultado = conexionBD.doUpdate(\"Insert Into TIPOCAMPO (nombre, descripcion, tipo) VALUES ('\" + this.valorNombreGeneral.getText() + \"', '\" + this.valorNota.getText() + \"', 4)\", generados);\r\n if (resultado.next()) {\r\n ID = resultado.getInt(1);\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(\"*SQL Exception: *\" + e.toString());\r\n }\r\n conexionBD.doUpdate(\"Insert Into TEXTO (correlativo, tamano, textoDefecto) VALUES (\" + ID + \", \" + this.valorTextoLargo.getText() + \", '\" + this.valorTextoDefecto.getText() + \"')\");\r\n limpiarValoresTexto();\r\n }\r\n break;\r\n\r\n case INCREMENTAL: //HashCode para Incremental\r\n if (existe) {\r\n conexionBD.doUpdate(\"Update TIPOCAMPO set descripcion = '\" + this.valorNota.getText() + \"' where correlativo = \" + ID);\r\n conexionBD.doUpdate(\"Update INCREMENTAL set valInicial = '\" + this.valorValorInicial.getText() + \"', incremento = '\" + this.valorIncremento.getText() + \"' where correlativo = \" + ID);\r\n limpiarValoresIncremental();\r\n } else {\r\n try {\r\n ResultSet resultado = conexionBD.doUpdate(\"Insert Into TIPOCAMPO (nombre, descripcion, tipo) VALUES ('\" + this.valorNombreGeneral.getText() + \"', '\" + this.valorNota.getText() + \"', 5 )\", generados);\r\n if (resultado.next()) {\r\n ID = resultado.getInt(1);\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(\"*SQL Exception: *\" + e.toString());\r\n }\r\n conexionBD.doUpdate(\"Insert Into INCREMENTAL (correlativo, valInicial, incremento) VALUES (\" + ID + \", \" + this.valorValorInicial.getText() + \", '\" + this.valorIncremento.getText() + \"')\");\r\n limpiarValoresIncremental();\r\n }\r\n break;\r\n\r\n case JERARQUIA:\r\n if (existe) {\r\n //Fecha de actualizacion se hace sola...\r\n conexionBD.doUpdate(\"Update TIPOCAMPO set descripcion = '\" + this.valorNota.getText() + \"' where correlativo = \" + ID);\r\n conexionBD.doUpdate(\"Update JERARQUIA set repeticionNombreNodo = '\" + this.radioNomUnicoSi.isSelected() + \"', conCategorias = '\" + this.radioCategoriasSi.isSelected() + \"' , IDTIpoCategoria = '\" + this.comboCategorias.getSelectedItem().toString().charAt(0) + \"' where correlativo = \" + ID);\r\n } else {\r\n try {\r\n ResultSet resultado = conexionBD.doUpdate(\"Insert Into TIPOCAMPO (nombre, descripcion, tipo) VALUES ('\" + this.valorNombreGeneral.getText() + \"', '\" + this.valorNota.getText() + \"', 6)\", generados);\r\n if (resultado.next()) {\r\n ID = resultado.getInt(1);\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(\"*SQL Exception: *\" + e.toString());\r\n }\r\n //datos generales\r\n java.sql.Date sqlDate = new java.sql.Date(new java.util.Date().getTime());\r\n int idCategorias = -1;\r\n int idNiveles = -1;\r\n int idNodoRaiz = -1;\r\n if (this.radioCategoriasSi.isSelected()) {\r\n idCategorias = ((MiDato) comboCategorias.getSelectedItem()).ID;\r\n }\r\n if (this.radioNivelesSi.isSelected()) {\r\n idNiveles = ((MiDato) comboNiveles.getSelectedItem()).ID;\r\n }\r\n try {\r\n ResultSet resultado = conexionBD.doUpdate(\"insert into NODO (IDInstanciaCategoria, nombre, descripcion, IDNodoPadre, numNivel,fechaCreacion) values (\" + idCategorias + \", '\" + this.valorNombreGeneral.getText() + \"', '\" + this.valorNota.getText() + \"', \" + -1 + \", \" + 0 + \", '\" + sqlDate + \"' )\", generados);\r\n if (resultado.next()) {\r\n idNodoRaiz = resultado.getInt(1);\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(\"*SQL Exception: *\" + e.toString());\r\n }\r\n //Agrega la jerarquia y un nodo raiz por defecto con el nombre de la jera\r\n try {\r\n\r\n String consulta = \"Insert Into JERARQUIA ( correlativo,nombreJerarquia, IDNodoRaiz, repeticionNombreNodo, numeroDeTerminos, numeroDeNiveles, fechaCreacion, conCategorias, conNombreNiveles, IDTIpoCategoria, IDNombresNiveles) VALUES (\" + ID + \", '\" + this.valorNombreGeneral.getText() + \"', \" + idNodoRaiz + \", '\" + this.radioNomUnicoNo.isSelected() + \"', '0', '0', '\" + sqlDate + \"', '\" + this.radioCategoriasSi.isSelected() + \"' , '\" + this.radioNivelesSi.isSelected() + \"', '\" + idCategorias + \"', '\" + idNiveles + \"')\";\r\n System.out.println(consulta);\r\n conexionBD.doUpdate(consulta);\r\n } catch (Exception ex) {\r\n Logger.getLogger(frameManejoCampos.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n //limpiarValoresJerarquia();\r\n break;\r\n case LISTA:\r\n if (existe) {\r\n conexionBD.doUpdate(\"Update TIPOCAMPO set descripcion = '\" + this.valorNota.getText() + \"' where correlativo = \" + ID);\r\n conexionBD.doUpdate(\"Update LISTA set IDMiembroPorDefecto = '\" + this.valorPorDefectoLista.getText() + \"' where correlativo = \" + ID);\r\n } else {\r\n try {\r\n ResultSet resultado = conexionBD.doUpdate(\"Insert Into TIPOCAMPO (nombre, descripcion, tipo) VALUES ('\" + this.valorNombreGeneral.getText() + \"', '\" + this.valorNota.getText() + \"', 7 )\", generados);\r\n if (resultado.next()) {\r\n ID = resultado.getInt(1);\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(\"*SQL Exception: *\" + e.toString());\r\n }\r\n try {\r\n //java.sql.Date sqlDate = new java.sql.Date ( new java.util.Date () .getTime ()) ;\r\n //guarda el miembro por defecto\r\n conexionBD.doUpdate(\"insert into MIEMBROLISTA ( valor, IDLista, numeroElemento) \" +\r\n \"values( '\" + this.valorPorDefectoLista.getText() + \"', \" + ID + \", 0)\");\r\n int IDMiembroPorDefecto = 0;\r\n //obtiene el ID del miembro que acaba de guardar\r\n ResultSet resultado = conexionBD.getResultSet(\"select correlativo from MIEMBROLISTA where valor = '\" + this.valorPorDefectoLista.getText() + \"'\");\r\n if (resultado.next()) {\r\n IDMiembroPorDefecto = resultado.getInt(\"correlativo\");\r\n }\r\n //guarda la lista con valor por defecto el que acaba d insertar\r\n conexionBD.doUpdate(\"insert into LISTA (correlativo, IDMiembroPorDefecto, conOrden) \" +\r\n \"values (\" + ID + \", \" + IDMiembroPorDefecto + \", 'False')\");\r\n\r\n\r\n /*Falta actualizar la fecha en TIPOCAMPO de las listas cuando se modifica*/\r\n } catch (Exception e) {\r\n System.out.println(\"*SQL Exception: *\" + e.toString());\r\n }\r\n }\r\n frameLista fLista = new frameLista(ID);\r\n fLista.setVisible(true);\r\n //limpiarCamposLista();\r\n break;\r\n default: //Si se selecciona algo raro o el campito en blanco.\r\n break;\r\n }\r\n if (padre != null) {\r\n padre.llenarTreeView();\r\n }\r\n //this.dispose();\r\n }", "title": "" }, { "docid": "7ac2f05ba6d65b88140d0af89acced41", "score": "0.614112", "text": "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tint r = NguoiHocDao.findNguoiHoc(listNguoiHocs, textField.getText());\n\t\t\tif (r == model.getRowCount()) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Không tìm thấy người học nào có mã này!\");\n\t\t\t} else {\n\t\t\t\tdisplay(r);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Đã tìm thấy!\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "fa92c4cc34ed6016ee288fdd207ce6f4", "score": "0.6129768", "text": "public boolean promptYesNo(String arg0) {\n // Object[] options = {\"yes\", \"no\"};\n /* int foo = JOptionPane.showOptionDialog(null,\n arg0,\n \"Warning\",\n JOptionPane.DEFAULT_OPTION,\n JOptionPane.WARNING_MESSAGE,\n null, options, options[0]);*/\n return true;\n }", "title": "" }, { "docid": "57be70cf43bfa34cbbcf080480f0f5b8", "score": "0.6127241", "text": "@Override\n public void preSalvar() {\n final JDialogProcessando aguarde = new JDialogProcessando(this, \"Aguarde...\", \"Processando...\");\n aguarde.setVisible(true);\n\n SwingWorker<Object, Void> worker = new SwingWorker<Object, Void>() {\n\n @Override\n protected Object doInBackground() throws Exception {\n Boolean retorno = false;\n try {\n setEnableBotoes(Boolean.FALSE);\n retorno = (Boolean) salvar();\n } catch (Exception ex) {\n aguarde.dispose();\n txt_busca.requestFocus();\n throw ex;\n }\n return retorno;\n }\n\n @Override\n protected void done() {\n try {\n aguarde.dispose();\n if ((Boolean) get()) {\n JOptionPane.showMessageDialog(rootPane, MensagemClientGenerica.MENSAGEM_ALTERACAO_SUCESSO, \"SUCESSO\", JOptionPane.INFORMATION_MESSAGE);\n }\n consultarCheques(situacaoCheque);\n } catch (InterruptedException ex) {\n tratarErro(this.getClass(), ex);\n } catch (ExecutionException ex) {\n tratarErro(this.getClass(), ex);\n } finally {\n setEnableBotoes(Boolean.TRUE);\n }\n }\n };\n\n worker.execute();\n }", "title": "" }, { "docid": "3fa35d47bb3f4a5eff30c5e116ef3aec", "score": "0.6126392", "text": "private void botonAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAceptarActionPerformed\n this.dniUsuario = this.campoTextoDNIUsuario.getText();\n if (!(this.dniUsuario.equals(\"\"))){ // Evalua las condiciones que debe cumplir el campo DNI\n manejadorUsuarioAdmin mua = new manejadorUsuarioAdmin(this.conexion);\n try {\n if ((mua.buscarAdministradorPorDni(this.dniUsuario)).next()) {\n mua.eliminarUsuario(this.dniUsuario);\n JOptionPane.showMessageDialog(null, \" Se ha eliminado correctamente el usuario con dni:\\\"\" + this.dniUsuario + \"\\\"\", \" Eliminacion Satisfactoria\", JOptionPane.INFORMATION_MESSAGE);\n this.dispose();\n } else {\n // En caso contrario informa que el usuario no fue cargado en el sistema\n JOptionPane.showMessageDialog(null, \" El usuario no se encuentra registrado en el sistema\", \"Eliminacion Fallida\", JOptionPane.ERROR_MESSAGE);\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null,\" Ha ocurrido un error interno:\"+ ex, \"Sistema de Cocheras B&B\",JOptionPane.ERROR_MESSAGE);\n }\n }\n else{\n JOptionPane.showMessageDialog(null, \" Debe rellenar correctamente todos los campos obligatorios (*) \",\"Eliminacion Fallida\", JOptionPane.ERROR_MESSAGE);\n }\n }", "title": "" }, { "docid": "40ce2aa064eb7fb27f9e27340a38f10c", "score": "0.61221015", "text": "private void botonActualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonActualizarActionPerformed\n String cantante = this.cantanteInput.getText(); // Nombre a colocar\n String genero = this.generoInput.getText(); // Genero a colocar\n String duracionStr = this.duracionInput.getText(); // Duracion a colocar\n \n // Si algun input del usuario no contiene informacion se indica que los datos estan incompletos\n if(cantante.isEmpty() || genero.isEmpty() || duracionStr.isEmpty()){\n JOptionPane.showMessageDialog(this, \"Datos incompletos.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n \n // Se remueve la antigua cancion de la lista\n this.listaCanciones.removeElement(cancion.getNombre() + \" - \" \n + cancion.getGenero() + \" - \" + cancion.getCantante());\n \n\n int duracion = Integer.parseInt(duracionStr); // Duracion en enteros\n \n this.cancion.setCantante(cantante); // Se actualiza el cantante de la cancion\n this.cancion.setGenero(genero); // Se actualiza el genero de la cancion\n this.cancion.setDuracion(duracion); // Se actualiza la duracion de la cancion\n \n // Se añade la cancion ya actualizada a la lista\n this.listaCanciones.addElement(cancion.getNombre() + \" - \" \n + cancion.getGenero() + \" - \" + cancion.getCantante());\n \n main.setVisible(true);\n JOptionPane.showMessageDialog(main, \"Cancion actualizada con exito\", \"EXITO\", JOptionPane.INFORMATION_MESSAGE);\n this.dispose();\n }", "title": "" }, { "docid": "bf27c0af21db1857579257d620d6d78e", "score": "0.60999936", "text": "public void calculadoraBasica() {\n String numero_a, numero_b;\n numero_a = JOptionPane.showInputDialog(\"Digite el primer operando\");\n numero_b = JOptionPane.showInputDialog(\"Digite el segundo operando\");\n basica = new Basica(Integer.parseInt(numero_a), Integer.parseInt(numero_b));\n\n String[] opciones = {\"Suma\", \"Resta\", \"Multiplicación\", \"División\"};\n String seleccion = (String) JOptionPane.showInputDialog(null, \"Que operación desea realizar:\", \n \"Bienvenido\", JOptionPane.DEFAULT_OPTION, null, opciones, opciones[0]);\n\n if (seleccion == null) {\n JOptionPane.showMessageDialog(null, \"Cerrar calculadora\");\n } else if (seleccion.equals(opciones[0])) {\n basica.suma();\n } else if (seleccion.equals(opciones[1])) {\n basica.resta();\n } else if (seleccion.equals(opciones[2])) {\n basica.multiplicacion();\n } else if (seleccion.equals(opciones[3])) {\n basica.division();\n }\n }", "title": "" }, { "docid": "ca39618652927b321d903a5f28d9d702", "score": "0.6099785", "text": "@Override\r\n\tpublic void notificarEmpateFlor() {\r\n\t\tJOptionPane.showMessageDialog(null, \"Coachar\");\r\n\t\tcontrole.empate(\"amarelo\");\r\n\t}", "title": "" }, { "docid": "78091664acf7f155308a79531a681f41", "score": "0.60947704", "text": "@Override\r\n\tpublic void actionPerformed(ActionEvent event) {\n\t\tif (this.vista.getNombre().equals(\"\")) {\r\n\t\t\tJOptionPane.showMessageDialog(this.vista, \"Es obligatorio rellenar ambos campos\", \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t} else if (sistema.crearTema(asignatura, this.vista.getNombre(), this.vista.getComboBoxSelected()) == false){\r\n\t\t\tJOptionPane.showMessageDialog(this.vista, \"Error al crear el tema\", \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t}else{\r\n\t\t\tJOptionPane.showMessageDialog(this.vista, \"El tema \" + this.vista.getNombre() + \" ha sido creada con exito\", \"CREACION DE TEMA\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5af4583318baaa7a1bb409411a55cd44", "score": "0.6094436", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n try {\n if (SistemaUsuarios.getInstance().tienePermisos(Constantes.ActividadQuitarBoletaDeLiquidacion)) { \n Compra c = compras.get(jTableCompras.getSelectedRow());\n SimpleDateFormat formatter;\n formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n int resp = JOptionPane.showConfirmDialog(MantenimientoCompras.this, \"Seguro que quiere sacar la compra de la liquidación del \" + formatter.format(c.getFechaLiquidacion()) + \" del reparto: \" + c.getReparto() + \"?\", \"Pregunta\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if(resp == JOptionPane.YES_OPTION){\n try{\n c.setFechaLiquidacion(null);\n if(sisCompras.actualizarCompra(c)){\n JOptionPane.showMessageDialog(MantenimientoCompras.this, \"La compra se saco correctamente de la liquidación\" , \"Información\", JOptionPane.INFORMATION_MESSAGE);\n jButtonBuscar.doClick();\n } \n } \n catch (HibernateException he){\n JOptionPane.showMessageDialog(MantenimientoCompras.this, \"Error al sacar la compra de la liquidación.\" + \"\\n\\n\" + he.toString(), \"Error\", JOptionPane.ERROR_MESSAGE);\n } catch (Exception exp) {\n String stakTrace = util.Util.obtenerStackTraceEnString(exp);\n SistemaUsuarios.getInstance().registrarExcepcion(exp.toString(), stakTrace);\n JOptionPane.showMessageDialog(MantenimientoCompras.this, Constantes.MensajeDeErrorGenerico, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n } \n } else {\n JOptionPane.showMessageDialog(MantenimientoCompras.this, Constantes.MensajeDeErrorDePermisos, \"Permisos\", JOptionPane.INFORMATION_MESSAGE);\n }\n } catch (Exception exp) {\n String stakTrace = util.Util.obtenerStackTraceEnString(exp);\n SistemaUsuarios.getInstance().registrarExcepcion(exp.toString(), stakTrace);\n JOptionPane.showMessageDialog(MantenimientoCompras.this, Constantes.MensajeDeErrorGenerico, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "title": "" }, { "docid": "9c0a39e05266a33ebd87dc25750bd474", "score": "0.6072095", "text": "private void btBuscarActionPerformed(java.awt.event.ActionEvent evt) {\n if(txtBusca.getText().equals(\" . . - \")){\n JOptionPane.showMessageDialog(this, \"Preecha o campo de busca\", \"Atenção\", JOptionPane.INFORMATION_MESSAGE);\n }else{\n try {\n List<String> dados = ger.retornarVisitante(txtBusca.getText());\n txtCpf.setText(dados.get(0));\n txtEmail.setText(dados.get(1));\n txtNome.setText(dados.get(2));\n txtTel.setText(dados.get(3));\n\n if(dados.size()==5){\n txtDocE.setText(dados.get(4));\n ckEstudante.setSelected(true);\n txtDocE.setVisible(true);\n }\n\n txtCpf.setEnabled(false);\n btCadastrar.setEnabled(false);\n btAlterar.setEnabled(true);\n btExcluir.setEnabled(true);\n }catch(NullPointerException ex){\n JOptionPane.showMessageDialog(this, \"Visitante não encontrado!\", \"Alerta\", JOptionPane.INFORMATION_MESSAGE);\n }catch (Exception ex) {\n JOptionPane.showMessageDialog(this, \"Erro : \" + ex.getMessage(), \"Alerta\", JOptionPane.ERROR_MESSAGE);\n }\n }\n }", "title": "" }, { "docid": "97324e0f9aec254eec448591b1edcf49", "score": "0.60703814", "text": "public static int introducirInt(int controlador, String msg) {\r\n Scanner ler = new Scanner(System.in);\r\n int datos = 0;\r\n switch (controlador) {\r\n case CONSOLA:\r\n System.out.println(msg);\r\n return ler.nextInt();\r\n case VENTANA:\r\n return Integer.parseInt(JOptionPane.showInputDialog(msg));\r\n default:\r\n break;\r\n }\r\n return datos;\r\n }", "title": "" }, { "docid": "f80ecf949ee481bc17d32b9893191b2e", "score": "0.60651696", "text": "@FXML\n\tprivate void handleOk() {\n\t\tokClicked = true;\n\t\t\n\t\tif(controlerSaisies()==true)\n\t\t{\n\t\t\ttry {\n\t\t\t\tint indexPrestataireSelectionne=comboboxprenom.getSelectionModel().getSelectedIndex();\n\t\t\t\tPrestataire pr = listePrenom.get(indexPrestataireSelectionne);\n\t\t\t\t\n\t\t\t\tpr.setNomPrestataire(nomPrestataireField.getText());\n\t\t\t\tpr.setPrenomPrestataire(prenomPrestataireField.getText());\n\t\t\t\tpr.setTelPrestataire(telPrestataireField.getText());\n\t\t\t\tpr.setMobilePrestataire(mobilePrestataireField.getText());\n\t\t\t\tpr.setFaxPrestataire(faxPrestataireField.getText());\n\t\t\t\tpr.setEmailPrestataire(emailPrestataireField.getText());\n\t\t\t\tpr.setSocietePrestataire(societePrestataireField.getText());\n\t\t\t\t\n\t\t\t\tprestataireDAO.modifierPrestataire(pr);\n\t\t\t\tnew Popup(\"Prestataire \"+pr.getNomPrestataire().get()+\" \"+pr.getSocieteePrestataire().get()+\" modifié !\");\n\t\t\t} catch (ConnexionBDException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tdialogStage.close();\n\t\t}\n\t}", "title": "" }, { "docid": "89efa336136a9c57c6786b0c2f926045", "score": "0.6055983", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tObject source=e.getSource();\n\t\tif(source==this.btnSubmit){\n\t\t\tif(!this.txtID.getText().equals(\"\")){\n\t\t\t\tthis.ID=Integer.parseInt(this.txtID.getText());\n\t\t\t}else{\n\t\t\t\tthis.ID=0;\n\t\t\t}\n\t\t\t\n\t\t\t//String txt=this.txtPrenom.getText();\n\t\t\tif(this.txtPrenom.getText().equals(\"\")||this.txtNom.getText().equals(\"\")){\n\t\t\t\tthis.lblAlert.setText(\"Please entre a first name or name\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tthis.prenom=this.txtPrenom.getText();\n\t\t\tthis.nom=this.txtNom.getText();\t\t\t\n\t\t\tthis.txtID.setText(\"\");\n\t\t\tthis.txtPrenom.setText(\"\");\n\t\t\tthis.txtNom.setText(\"\");\n\t\t\tthis.lblAlert.setText(\"\");\n\t\t\tthis.dialog.setVisible(false);\n\t\t}else if(source==this.btnCancel){\n\t\t\tthis.txtID.setText(\"\");\n\t\t\tthis.txtPrenom.setText(\"\");\n\t\t\tthis.txtNom.setText(\"\");\n\t\t\tthis.lblAlert.setText(\"\");\n\t\t\tthis.dialog.setVisible(false);\n\t\t}\n\t}", "title": "" }, { "docid": "e7d4f652f8e701426c772ed96b4f2ca1", "score": "0.6040254", "text": "public void askForAI(){\n Object[] buttons = {\"One Player\", \"Two Players\"};\n\n // this is the overloaded constructor of the JOptionPane,\n // for custom buttons\n int result = JOptionPane.showOptionDialog(null,\n \"One player or two?\", null,\n JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE,\n null, buttons, buttons[0]);\n\n AIisActive = result == JOptionPane.YES_OPTION;\n }", "title": "" }, { "docid": "ed85eebf6e15c69ed042421703262ad3", "score": "0.6035545", "text": "public static String showInputDialog(Object message) {\r\n\t\tJOptionPane pane = new JOptionPane(message, QUESTION_MESSAGE, JOptionPane.YES_NO_CANCEL_OPTION);\r\n\t \tpane.setWantsInput(true);\r\n\t \tJDialog dialog = pane.createDialog(null, null);\r\n\t \tdialog.setBounds(GUI.SMALL_CENTER_OF_GUI);\r\n\t \t\r\n\t \t//small shift\r\n\t \tArrayList<JLabel> label = formatTitle(pane, GUI.SMALL_CENTER_OF_GUI, 1);\r\n\t \tfor (JLabel l: label){\r\n\t \t\tl.setBounds(l.getX(), l.getY() - GUI.SMALL_CENTER_OF_GUI.height / 8, l.getWidth(), l.getHeight());\r\n\t \t}\r\n\t \t\r\n\t \t\r\n\t\t//had to do this because instance JTextField of doesn't work for some reason\r\n\t \tRectangle boundsTitle = new Rectangle(0, 0, (int) GUI.SMALL_CENTER_OF_GUI.getWidth(), (int) (GUI.SMALL_CENTER_OF_GUI.height * 0.25));\r\n\t \tContainer titleCon = getContainer(pane, 0);\r\n\t\t\r\n\t \tContainer c = getContainer(titleCon, 0);\r\n\t\tc = getContainer((Container) c, c.getComponents().length - 1);\r\n\t\t\r\n\t\tJTextField txtField = (JTextField) c.getComponent(c.getComponentCount() - 1);\r\n\t\ttxtField.setBounds(boundsTitle.width / 4, (int) (boundsTitle.height * 0.6 * GUI.SPACING_FACTOR), boundsTitle.width / 2, (int) (boundsTitle.height * 0.6));\r\n\t\ttxtField.setFont(new Font(\"Arial\", Font.BOLD, GUI.SMALL_CENTER_OF_GUI.height / 16));\r\n\t\ttxtField.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\r\n\t\t//format buttons\r\n\t\tformatButtons(pane, AlertPane.NO_FULL_SCREEN_BUTTONS, GUI.SMALL_CENTER_OF_GUI, 3, true);\r\n\t\tContainer buttonsCon = getContainer(pane, 1);\r\n\t\tComponent[] buttons = buttonsCon.getComponents();\r\n\t\t\r\n\t\t//move buttons up\r\n\t\tfor (int i = 0; i < buttonsCon.getComponentCount(); i++){\r\n\t\t\tbuttons[i].setBounds(buttons[i].getX() - buttons[i].getWidth() / 10, buttons[i].getY() - GUI.SMALL_CENTER_OF_GUI.height / 4, buttons[i].getWidth(), buttons[i].getHeight());\r\n\t\t}\r\n\t\t((JButton) buttons[0]).setText(\"Ok\");\r\n\t\tbuttons[1].hide();\r\n\t\t\r\n\t\tdialog.show();\r\n\t\t\r\n\t\tString toReturn = (String) pane.getInputValue();\r\n\t\tif (toReturn.equals(JOptionPane.UNINITIALIZED_VALUE)){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t }", "title": "" }, { "docid": "36367c286b7d45a277ee1c9571cabf63", "score": "0.6025566", "text": "public static String introducirString(int controlador, String msg) {\r\n Scanner ler = new Scanner(System.in);\r\n String datos = \"\";\r\n switch (controlador) {\r\n case CONSOLA:\r\n System.out.println(msg);\r\n return ler.nextLine();\r\n case VENTANA:\r\n return JOptionPane.showInputDialog(msg);\r\n default:\r\n break;\r\n }\r\n return datos;\r\n }", "title": "" }, { "docid": "97f29c74f2e83f2171018eca26b2f139", "score": "0.6024971", "text": "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n if (confirmation()) {\n if (isEmpty()) {\n JOptionPane.showMessageDialog(null, eci.insertOrUpdate(tfEmpId.getText(), tfEmpName.getText(),\n tfEmpAdrress.getText(), tfEmpMail.getText(), tfEmpSal.getText(), tfEmpManagerId.getText(),\n cbSite.getSelectedItem().toString().split(\" - \")[0], cbDivision.getSelectedItem().toString().split(\" - \")[0]));\n clear();\n } else {\n try {\n int reply = JOptionPane.showConfirmDialog(null,\n \"Anda yakin akan melakukan perubahan data?\", \"Konfirmasi\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE\n );\n if (reply == JOptionPane.YES_OPTION) {\n JOptionPane.showMessageDialog(null, eci.insertOrUpdate(tfEmpId.getText(), tfEmpName.getText(),\n tfEmpAdrress.getText(), tfEmpMail.getText(), tfEmpSal.getText(), tfEmpManagerId.getText(),\n cbSite.getSelectedItem().toString().split(\" - \")[0], cbDivision.getSelectedItem().toString().split(\" - \")[0]));\n clear();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n tableDataEmp(eci.getAll());\n }\n }", "title": "" }, { "docid": "2575637d0c196d0d7f15b4962ee18152", "score": "0.6021237", "text": "public String datosPorIngresar() {\n String mensaje = \"\";\n\n if (txt1IngresodeNumeroEmpleado.getText().length() <= 0) {\n mensaje = \"-Numero de empleado\\n\";\n }\n if (txt3NombreMaestro.getText().length() <= 0) {\n mensaje = mensaje + \"-Nombre del maestro\\n\";\n }\n if (txt4ApellidoPaterno.getText().length() <= 0) {\n mensaje = mensaje + \"-Apellido Paterno\\n\";\n }\n if (txt5ApellidoMaterno.getText().length() <= 0) {\n mensaje = mensaje + \"-Apellido Materno\\n\";\n }\n if (cbox1Grado.getSelectedIndex() <= 0) {\n mensaje = mensaje + \"-Grado\\n\";\n }\n if (cbox2Grupo.getSelectedIndex() <= 0) {\n mensaje = mensaje + \"-Grupo\\n\";\n }\n if (txt6Usuario.getText().length() <= 0) {\n mensaje = mensaje + \"-Usuario\\n\";\n }\n if (txt2Contraseña.getText().length() <= 0) {\n mensaje = mensaje + \"-Contraseña\\n\";\n }\n return mensaje;\n }", "title": "" }, { "docid": "783325a3a168a57685dd5dbbc7895552", "score": "0.60168535", "text": "public void actionPerformed(ActionEvent e) {\n System.out.println(com);\n com=ProxyRdF.getCombyCode(prox.getLccom());\n if((com==Comands.YT)) {\n System.out.println(com);\n JOptionPane.showMessageDialog(null, \"Gira la ruota\");\n com=Comands.SPIN;\n prox.setLccom(com.getCode());\n prox.Confirm(prox.getLccom(),\"\",table1);\n }\n }", "title": "" }, { "docid": "78fbdc551d2d63f58b38052258ccf3c4", "score": "0.60163397", "text": "private void availNoActionPerformed(java.awt.event.ActionEvent evt) {\n no = \"no\";\n }", "title": "" }, { "docid": "672f0a52e8799e4fa3baa433369d65f3", "score": "0.60154325", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tPresentacion presentacion = new Presentacion();\n\t\t\t\t\n\t\t\t\tif (vista.getTxtId().getText().equals(\"\")) presentacion.setId(null);\n\t\t\t\t\telse presentacion.setId(new Integer(vista.getTxtId().getText().toString())); \n\t\t\t\t\n\t\t\t\tif (vista.getTxtNombre().getText().equals(\"\")) JOptionPane.showMessageDialog(vista,\"Campos Vacios: Nombre Material\");\n\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tpresentacion.setMaterial(vista.getTxtNombre().getText().toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(vista,servicioPresentacion.guardar(presentacion));\n\t\t\t\t\t\t\t\t\t// agregarlo a la lista\n\t\t\t\t\t\t\t\t\tvista.getPresentaciones().add(presentacion);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tvista.getBinPresentaciones().unbind();\n\t\t\t\t\t\t\t\t\tvista.getBinPresentaciones().bind();\n\t\t\t\t\t\t\t\t\tvista.activarBinding(servicioPresentacion.getPresentaciones());\n\t\t\t\t\t\t\t\t\tvista.quitarNuevo();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tJOptionPane.showConfirmDialog(null,e1.getMessage());\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "f4a7f4fadaded3eff542ae62c5e00595", "score": "0.60143065", "text": "void simulacion() {\n int resultado;\n resultado = JOptionPane.showConfirmDialog(null, \"Desea ejecutar la simulacion\");\n if (resultado == JOptionPane.YES_OPTION) {\n for (int simulaciones = 0; simulaciones < 10000; simulaciones++) {\n turno();\n }\n JOptionPane.showMessageDialog(null, \"Numero de veces que se obtiene el four of kind en 10.000 jugadas \"+for_of_kind);\n\n }\n }", "title": "" }, { "docid": "79a604af5c734d0400d7732eadd25fba", "score": "0.60062903", "text": "public static void ok() {\t\r\n\t\tswitch(menu) {\r\n\t\t\tcase 1:\r\n\t\t\t\tnuevo();\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3: \r\n\t\t\t\teditar();\r\n\t\t\t\tbreak;\t\t\t\r\n\t\t}\t\t\t\t\t\t\r\n\t}", "title": "" }, { "docid": "7fa7949ef6e1f53a793798cf12f0ac6b", "score": "0.60008174", "text": "private void MensajeInf(String strMensaje) {\n JOptionPane.showMessageDialog(this, strMensaje, strTit, JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "1677d9fc2aa41107f9472ab58d1d4377", "score": "0.5999957", "text": "public void buttonChiudiContoPressed() {\n\t\t\n\t\tObject[] opzioni = { \"Si\", \"No\"};\n\t\tint n = JOptionPane.showOptionDialog(view,\n\t\t\t \"L'operazione di chiusura e' irreversibile. Tutti i fondi andranno persi.\\n\"\n\t\t\t + \"Continuare?\",\n\t\t\t \"Conferma chiusura conto\",\n\t\t\t JOptionPane.YES_NO_OPTION,\n\t\t\t JOptionPane.QUESTION_MESSAGE,\n\t\t\t null,\n\t\t\t opzioni,\n\t\t\t opzioni[1]);\n\t\t\n\t\tif ( n == 0 ) {\n\t\t\tYWorker yw = new YWorker();\n\t\t\ttry {\n\t\t\t\tyw.execute(new YWorkerCommand() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Object execute() throws Exception {\n\t\t\t\t\t\tmodel.doChiudiConto();\n\t\t\t\t\t\tsendApplicationEvent(new YApplicationEvent(InBankImpiegato.CONTO_CLOSED));\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}, \"Attendere prego...\");\n\t\t\t} catch (Exception e) {\n\t\t\t\tyw.interrupt();\n\t\t\t\tExceptionHandlerManager.process(e);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "297b94c46838beeca783565842b7500f", "score": "0.59941983", "text": "public void menuDialogue() {\r\n\t\tint dialogue = _w.option(DIALOGUE_OPTIONS, \" Aye? I don't really get visitors askin' meh those kinds of questions... \"\r\n\t\t\t\t+ \"\\r\\n Customers just come in 'ere, grab a nick nack or two, and bolt they're way out. \"\r\n\t\t\t\t+ \"\\r\\n These people just want to win that stupid little competition. \"\r\n\t\t\t\t+ \"\\r\\n \\r\\n Right, yeh asked for me. What do ye wanna know?\");\r\n\t\tif(dialogue == 0) { // comp\r\n\t\t\t_w.msg(\" Yeh kinda silly, eh? Sorry if I offend yeh, but that crap has no purpose in existin'.\"\r\n\t\t\t\t\t+ \"\\r\\n It's just a bunch of lil' kids trying to play the lottery, yeh just ain't winnin'!\"\r\n\t\t\t\t\t+ \"\\r\\n The most powerful will always cheat their way into victory, and these kids don't know it...\");\r\n\t\t\tmenuDialogue();\r\n\t\t}\r\n\t\telse if(dialogue == 1) { // items\r\n\t\t\t_w.msg(\" Only the finest, mate. Some may call this junk, but me I call em' money bags.\"\r\n\t\t\t\t\t+ \"\\r\\n Stupid lil' kids always got the money for it, so it's how I make a livin'.\"\r\n\t\t\t\t\t+ \"\\r\\n And as for where I got em... Well, let's just say I have some business relations with the owners of that competition.\"\r\n\t\t\t\t\t+ \"\\r\\n Not bad, eh? The big bucks are so cake to get at all times. \");\r\n\t\t\tmenuDialogue();\r\n\t\t}\r\n\t\telse if(dialogue == 2) { // threaten\r\n\t\t\t_w.msg(\"Well if it's a fight yeh want its a fight yeh'll get! \"\r\n\t\t\t\t\t+ \"\\r\\n \\r\\n \\r\\n YOU DIED!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\telse if(dialogue == 3) { // barter\r\n\t\t\t_w.msg(\" 'Scuse me new guy, but I don't do lower prices. \"\r\n\t\t\t\t\t+ \"\\r\\n Unless yeh're blind or a bloody loon, ye can clearly see the prices on the board 'ere. \"\r\n\t\t\t\t\t+ \"\\r\\n Now shed up, and buy somethin'. Or better yet, leave the shop. I don't need your kind 'ere.\");\r\n\t\t\tmenuDialogue();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmenuShop();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "14e5e370189a22c3025e0aaef2d383cb", "score": "0.5989802", "text": "public void ConfirmarUsuario(VistaLoggin vs){\n \n \n PreparedStatement stmt=null;\n ResultSet rs=null;\n Connection cnn=null;\n \n //String pass=new String(vs.getTxtpass().getText());\n \n \n \n try {\n cnn=Conexion.getConexion();\n stmt=cnn.prepareStatement(ConfirmarUsuario);\n \n stmt.setString(1, vs.getTxtUsuario().getText());\n stmt.setString(2, vs.getTxtpass().getText());\n rs=stmt.executeQuery();\n \n if(rs.next()){\n \n vs.setVisible(false);\n \n VentanaPrincipal v=new VentanaPrincipal();\n \n v.setVisible(true);\n }else{\n \n JOptionPane.showMessageDialog(null, \"Chequea bien, pendejo!\");\n \n }\n \n \n \n \n } catch (ClassNotFoundException ex) {\n ex.printStackTrace(System.out);\n JOptionPane.showMessageDialog(null, \"Hay un error en lo primero\");\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n JOptionPane.showMessageDialog(null, \"Hay un error en la segunda cosa :v\");\n }\n \n \n \n }", "title": "" }, { "docid": "a8ceb14ce2835be0aabb76450ae593fc", "score": "0.59883535", "text": "public static int showOptionDialog(Object message, String title, int messageType, Object[] options, Object initialValue, int fullScreen){\r\n\t\tJOptionPane pane = new JOptionPane(message, messageType, JOptionPane.YES_NO_CANCEL_OPTION, null,\r\n\t\t\t\toptions, initialValue);\r\n\t\t\r\n\t\tJDialog dialog = pane.createDialog(null, title);\r\n\t\tdialog.setBounds(GUI.CENTER_OF_GUI);\r\n\t\tpane.setLayout(null);\r\n\t\tformatTitle(pane, GUI.CENTER_OF_GUI, 0);\r\n\t\tformatButtons(pane, fullScreen, GUI.CENTER_OF_GUI, 2, false);\r\n\t\tdialog.show();\r\n\t\t\r\n\t\treturn getReturnValue(pane.getValue(), options);\t\t\r\n }", "title": "" }, { "docid": "4070057ad3e68b6cd528bce4f1b01a16", "score": "0.5985684", "text": "private Integer createPopup(String param) {\n boolean complete = false;\n Integer result = null;\n while (!complete) {\n String s = (String) JOptionPane.showInputDialog(\n this,\n \"Set \" + param + \":\",\n \"Parameters\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n null,\n \"-1\");\n if (s == null) {\n break;\n }\n try {\n result = Integer.valueOf(s);\n complete = true;\n } catch (NumberFormatException e) {\n JOptionPane.showMessageDialog(this, \"Please enter an integer.\");\n }\n }\n return result;\n }", "title": "" }, { "docid": "eaddb03af7d1b85b2514ae4e50baef3c", "score": "0.5983871", "text": "@Override\n public boolean kiemtradulieu() {\n if (txt_taikhoan.getText().isEmpty()) {\n\n JOptionPane.showMessageDialog(null, \"Xin mời nhập tên tài khoản \", \"Thông báo!\", JOptionPane.ERROR_MESSAGE);\n return false;\n } else if (txt_taikhoan.getText().length() > 20 || txt_taikhoan.getText().length() < 0) {\n\n JOptionPane.showMessageDialog(null, \" Tên tài khoản chỉ nhập từ 1 đến 20 ký tự\", \"Thông báo!\", JOptionPane.ERROR_MESSAGE);\n return false;\n\n } else if (!txt_taikhoan.getText().matches(\"[0-9a-zA-Z]+\")) {\n\n JOptionPane.showMessageDialog(null, \"Sai định dạng Tài khoản\", \"Thông báo!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n matkhau = new String(txt_matkhau.getPassword());\n tendangnhap = txt_taikhoan.getText();\n if (matkhau.isEmpty()) {\n\n JOptionPane.showMessageDialog(null, \"Xin mời nhập Mật khẩu \", \"Thông báo!\", JOptionPane.ERROR_MESSAGE);\n return false;\n } else if (matkhau.length() > 20 || matkhau.length() < 1) {\n\n JOptionPane.showMessageDialog(null, \"mật khẩu chỉ nhập từ 1 đến 20 ký tự \", \"Thông báo!\", JOptionPane.ERROR_MESSAGE);\n return false;\n } else if (!matkhau.matches(\"[0-9a-zA-Z]+\")) {\n\n JOptionPane.showMessageDialog(null, \" Sai định dạng Mật khẩu\", \"Thông báo!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n\n Users tk = DangNhapDao.timkiemTaiKhoan(tendangnhap);\n\n if (tk != null) {\n if (!matkhau.equals(tk.getMatkhau())) {\n JOptionPane.showMessageDialog(null, \"Sai Mật Khẩu \", \"Thông báo!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Sai tên Tài Khoản \", \"Thông báo!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n chucnang = (String) tk.getChucnang();\n if (tk.getChucnang().equals(\"Quản lý\")) {\n JOptionPane.showMessageDialog(rootPane, \"Đăng Nhập Thành Công \"\n + \"\\n Xin chào Quản Lý : \" + tk.getTentaikhoan());\n } else {\n if (tk.getChucnang().equals(\"Nhân viên\")) {\n JOptionPane.showMessageDialog(rootPane, \"Đăng Nhập Thành Công \"\n + \"\\n Xin chào Nhân viên : \" + tk.getTentaikhoan());\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "792cf890db58584bda4fd17f7f03248a", "score": "0.5983564", "text": "private void dialogDone(Object actionCommand)\n {\n String cmd = null;\n if (actionCommand != null) {\n if (actionCommand instanceof ActionEvent) {\n cmd = ( (ActionEvent) actionCommand).getActionCommand();\n }\n else {\n cmd = actionCommand.toString();\n }\n }\n if (cmd == null) {\n // do nothing\n }\n else if (cmd.equals(CMD_CANCEL)) {\n userName = null;\n password = null;\n }\n else if (cmd.equals(CMD_HELP)) {\n System.out.println(\"your help code here...\");\n }\n else if (cmd.equals(CMD_LOGIN)) {\n userName = userNameTextField.getText();\n password = passwordTextField.getPassword();\n }\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "04d170f18288b488f529090b10dc1df3", "score": "0.59825677", "text": "private void onOK(ActionEvent event) {\n CRUDDialogConfig crudDialogConfig=new CRUDDialogConfig(textField1.getText(),select_mothedCheckBox.isSelected(),delete_mothedCheckBox.isSelected(),update_mothedCheckBox.isSelected(),create_return_idCheckBox.isSelected(),deleteFlagCheckBox.isSelected(),delete_flagTextField.getText(),deletedTextField.getText(),unDeleteTextField.getText());\n crudDialogConfig.setCountByCondition(countByConditionCheckBox.isSelected());\n crudDialogConfig.setSelectByCondition(selectByConditionCheckBox.isSelected());\n\n crudDialogConfig.setSelectByTextField(selectByTextField.getText().toString());\n crudDialogConfig.setUpdateByTextField(updateByTextField.getText().toString());\n crudDialogConfig.setDeleteByTextField(deleteByTextField.getText().toString());\n\n crudDialogConfig.setSelectByCloumnTextField(selectByCloumnTextField.getText().toString());\n crudDialogConfig.setCountByCloumnTextField(countByCloumnTextField.getText().toString());\n\n\n crudDialogConfig.setTimeSelectText(timeTextField.getText().toString());\n\n crudDialogConfig.setTimeSelect(timeSelectCheckBox.isSelected());\n\n crudDialogConfig.setBaseResultMap(baseResultMapTextField.getText());\n\n\n crudDialogConfig.setSelectBy(selectByCheckBox.isSelected());\n crudDialogConfig.setUpdateBy(selectByCheckBox.isSelected());\n crudDialogConfig.setDeleteBy(selectByCheckBox.isSelected());\n\n crudDialogConfig.setLimitIndexParam(limitIndexParamCheckBox.isSelected());\n crudDialogConfig.setLimitIndexParam(indexTextField.getText().toString(),sizeTextField.getText().toString());\n\n crudDialogConfig.setDesc(descCheckBox.isSelected());\n crudDialogConfig.setOrderByValue(orderByTextField.getText().toString());\n crudDialogConfig.setOrderBy(orderByCheckBox.isSelected());\n\n resulet.result(crudDialogConfig);\n }", "title": "" }, { "docid": "a1ae82011c34f37c2218abc06deca111", "score": "0.5981986", "text": "@Override\n public void setMensaje(String mensaje) {\n JOptionPane.showMessageDialog(null, \"No tiene eventos Implementados\");\n }", "title": "" }, { "docid": "ad611cbfd95f261554cfde845c7377f8", "score": "0.59816253", "text": "public static void main(String arg[]) {\n int numero=Integer.parseInt(JOptionPane.showInputDialog(\"Introduce un numero\"));\n if (numero%2==0){\n JOptionPane.showMessageDialog(null,(\"El numero es par\"));\n }\n else\n JOptionPane.showMessageDialog(null,(\"EL numero es impar\"));\n }", "title": "" }, { "docid": "2151a83a13081fd9ff64afb500d3e942", "score": "0.59766316", "text": "public void informInvaildMove(int option){\n if(option==1)\n window.InvaildMove();\n else\n window.InvalidMove_isNotEmpty();\n }", "title": "" }, { "docid": "5fc4c238bafdfe2939ec0ecac8736b8e", "score": "0.59727985", "text": "private void buscar(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscar\n //limpiar todos los campos\n limpiarCampos();\n\n //variables para poder saber si todo esta correcto\n boolean numeroEmpleadoCorrecto = false;\n if (txt1IngresodeNumeroEmpleado.getText().length() != 0) {\n\n //identificar si el numero del maestro es correcto\n try {\n if (Integer.parseInt(txt1IngresodeNumeroEmpleado.getText()) > 0) {\n numeroEmpleadoCorrecto = true;\n }\n } catch (NumberFormatException e) {\n JOptionPane.showMessageDialog(rootPane, \"EL NUMERO DE EMPELADO ES INCORRECTO\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n boton1Buscar.setEnabled(true);\n boton2Guardar.setEnabled(false);\n }\n\n if (numeroEmpleadoCorrecto == true) {\n boton2Guardar.setEnabled(true);\n boton1Buscar.setEnabled(false);\n ControlMaestro maestroC = new ControlMaestro();\n ControlGrupo grupoC = new ControlGrupo();\n ControlUsuario usuarioC = new ControlUsuario();\n try {\n\n //obtener de maestro\n ResultSet resultadodeConsultar = maestroC.consultar(txt1IngresodeNumeroEmpleado.getText());\n\n while (resultadodeConsultar.next()) {\n\n txt3NombreMaestro.setText(resultadodeConsultar.getObject(2).toString());\n txt4ApellidoPaterno.setText(resultadodeConsultar.getObject(3).toString());\n txt5ApellidoMaterno.setText(resultadodeConsultar.getObject(4).toString());\n\n }//find el while\n\n //cuando no se ha encontrado al maestro\n if (txt3NombreMaestro.getText().length() <= 0\n && txt4ApellidoPaterno.getText().length() <= 0\n && txt5ApellidoMaterno.getText().length() <= 0) {\n JOptionPane.showMessageDialog(rootPane, \"NUMERO DE EMPELADO NO SE ENCUENTRA\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n txt1IngresodeNumeroEmpleado.setEnabled(true);\n boton1Buscar.setEnabled(true);\n boton2Guardar.setEnabled(false);\n } else {\n //bloquear modificar matricula\n txt1IngresodeNumeroEmpleado.setEnabled(false);\n }\n\n //obtener Grupo\n resultadodeConsultar = grupoC.consultarGrupodeMaestro(txt1IngresodeNumeroEmpleado.getText());\n while (resultadodeConsultar.next()) {\n switch (Integer.parseInt(resultadodeConsultar.getObject(1).toString())) {\n case 3:\n cbox1Grado.setSelectedIndex(1);\n break;\n case 4:\n cbox1Grado.setSelectedIndex(2);\n break;\n case 5:\n cbox1Grado.setSelectedIndex(3);\n break;\n case 6:\n cbox1Grado.setSelectedIndex(4);\n break;\n }\n\n switch (resultadodeConsultar.getObject(2).toString().charAt(0)) {\n case 'A':\n cbox2Grupo.setSelectedIndex(1);\n break;\n case 'B':\n cbox2Grupo.setSelectedIndex(2);\n break;\n case 'C':\n cbox2Grupo.setSelectedIndex(3);\n break;\n }\n\n }//find el while\n\n //obtener usuario\n resultadodeConsultar = usuarioC.consultar(txt1IngresodeNumeroEmpleado.getText(), \"maestro\");\n while (resultadodeConsultar.next()) {\n txt6Usuario.setText(resultadodeConsultar.getObject(1).toString());\n txt2Contraseña.setText(resultadodeConsultar.getObject(2).toString());\n }//find el while\n\n } catch (SQLException ex) {\n\n Logger.getLogger(interfazmodificarmaestro.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n\n Logger.getLogger(interfazmodificarmaestro.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n //contar el actualizado de maestros\n try {\n contarMaestros();\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(interfazmodificarmaestro.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(interfazmodificarmaestro.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n\n } else {\n String mensaje = \"\";\n\n if (txt1IngresodeNumeroEmpleado.getText().length() <= 0) {\n mensaje = \"-Numero de empleado\\n\";\n }\n\n JOptionPane.showMessageDialog(rootPane, \"INGRESE EL SIGUIENTE CAMPO:\\n\" + mensaje + \"\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n\n\n }", "title": "" }, { "docid": "3ba7da937dc40fe61725b09f117ffee0", "score": "0.5968513", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tint total= modeloGoleiro.size() + modeloDefesa.size() + modeloMeioCampo.size() + modeloAtaque.size(); \n\t\t\t\t\tif ( total != 11 ) {\n\t\t\t\t\t\t// TODO: JOptionPane.showMessageDialog\n\t\t\t\t\t//\tJOptionPane.showMessageDialog(null, \"A escalação deve conter 11 jogadores.\");\n//\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ( cbxTatica.getSelectedItem().toString().equals(\"-- Selecione --\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Selecione uma tática.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsetVisible(false);\n\t\t\t\t\tFrmProcessarRodada frmProcessarRodada= \n\t\t\t\t\t\t\tnew FrmProcessarRodada( numero, frmPrincipal );\n\t\t\t\t\tfrmProcessarRodada.setVisible( true );\n\t\t\t\t}", "title": "" }, { "docid": "f6d3639d5b72edb4f59ef4b8a5dead1e", "score": "0.5968225", "text": "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n\n switch (jComboBox2.getSelectedIndex()) {\n case 0://3 jogadores\n if (nome1.getText().compareTo(\"\") == 0 || nome2.getText().compareTo(\"\") == 0 || nome3.getText().compareTo(\"\") == 0) {\n JOptionPane.showMessageDialog(rootPane, \"Um ou mais campos de nomes não preenchidos!\");\n } else {\n instance.iniciaJogadores(3,juntaNomes(3),juntaCores(3));\n new TelaPrincipal().setVisible(true);\n this.dispose();\n }\n break;\n case 1://4 jogadores\n if (nome1.getText().compareTo(\"\") == 0\n || nome2.getText().compareTo(\"\") == 0\n || nome3.getText().compareTo(\"\") == 0 || nome4.getText().compareTo(\"\") == 0) {\n JOptionPane.showMessageDialog(rootPane, \"Um ou mais campos de nomes não preenchidos\");\n } else {\n instance.iniciaJogadores(4,juntaNomes(4),juntaCores(4));\n new TelaPrincipal().setVisible(true);\n this.dispose();\n }\n break;\n case 2://5 jogadores\n if (nome1.getText().compareTo(\"\") == 0\n || nome2.getText().compareTo(\"\") == 0\n || nome3.getText().compareTo(\"\") == 0\n || nome4.getText().compareTo(\"\") == 0 || nome5.getText().compareTo(\"\") == 0) {\n JOptionPane.showMessageDialog(rootPane, \"Um ou mais campos de nomes não preenchidos\");\n } else {\n instance.iniciaJogadores(5,juntaNomes(5),juntaCores(5));\n new TelaPrincipal().setVisible(true);\n this.dispose();\n }\n break;\n case 3://6 jogadores\n if (nome1.getText().compareTo(\"\") == 0\n || nome2.getText().compareTo(\"\") == 0\n || nome3.getText().compareTo(\"\") == 0\n || nome4.getText().compareTo(\"\") == 0\n || nome5.getText().compareTo(\"\") == 0 || nome6.getText().compareTo(\"\") == 0) {\n JOptionPane.showMessageDialog(rootPane, \"Um ou mais campos de nomes não preenchidos\");\n } else {\n instance.iniciaJogadores(6,juntaNomes(6),juntaCores(6));\n new TelaPrincipal().setVisible(true);\n this.dispose();\n }\n break;\n }\n // new TelaPrincipal().setVisible(true);\n //this.dispose();\n }", "title": "" }, { "docid": "159fc46a957d566b8bbb980c5f7fce31", "score": "0.5966704", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\tpanResultados.setVisible(true);\n\t\t\t\t\n\t\t\t\t// Captura os dois numeros digitados\n\t\t\t\tfloat n1 = Float.parseFloat(txtN1.getText());\n\t\t\t\tfloat n2 = Float.parseFloat(txtN2.getText());\n\t\t\t\t\n\t\t\t\t// Realiza a adicao dos valores\n\t\t\t\tlblAdi.setText(Float.toString(n1 + n2));\n\t\t\t\t\n\t\t\t\t// Realiza a subtracao dos valores\n\t\t\t\tlblSub.setText(Float.toString(n1 - n2));\n\t\t\t\t\n\t\t\t\t// Realiza a multiplicacao dos valores\n\t\t\t\tlblMul.setText(Float.toString(n1 * n2));\n\t\t\t\t\n\t\t\t\t// Realiza a divisao dos valores\n\t\t\t\tlblDiv.setText(Float.toString(n1 / n2));\n\t\t\t\t\n\t\t\t\t// Realiza o resto da divisao dos valores\n\t\t\t\tlblRes.setText(Float.toString(n1 % n2));\n\t\t\t\t\n\t\t\t\t// Calcula a raiz quadrada do numero 1\n\t\t\t\tlblRa2.setText(Double.toString(Math.sqrt(n1)));\n\t\t\t\t\n\t\t\t\t// Calcula a raiz cubica do numero 1\n\t\t\t\tlblRa3.setText(Double.toString(Math.cbrt(n1)));\n\t\t\t\t\n\t\t\t\t// Eleva o numero 1 ao cubo\n\t\t\t\tlblEl3.setText(Double.toString(Math.pow(n1, 3)));\n\t\t\t\t\n\t\t\t\t// Mostra o valor absoluto do numero 1\n\t\t\t\tlblAbs.setText(Float.toString(Math.abs(n1)));\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d17a6a627bffca89cf14473606e0dcf6", "score": "0.59635496", "text": "public void cualOcupado(){\r\n for(int i=0;i<contactos.length;i++){\r\n if(contactos[i]!=null){\r\n JOptionPane.showMessageDialog(null,\"Contactos ocupados :\"+contactos[i].toString());\r\n }\r\n \r\n}\r\n}", "title": "" }, { "docid": "1b362e9125b62dc92e495b4b9be4d56e", "score": "0.59599435", "text": "public void actionPerformed(ActionEvent actionEvent) {\n result = 0;\n setVisible(false);\n }", "title": "" }, { "docid": "5e096f271837f460a16444809575cb9e", "score": "0.5955582", "text": "public void amosar(){\n String cadea = \"\";\r\n for(int i=0;i<nomes.length;i++){ \r\n cadea = cadea + nomes[i]+ \" --> \"+ notas[i]+ \"\\n \";\r\n }\r\n JOptionPane.showMessageDialog(null, cadea);\r\n }", "title": "" }, { "docid": "e8e96048e4fe93ef96c2b2d381cd6ba0", "score": "0.59539014", "text": "public int control (){ //metodo para controlar los numeros introducidos\r\n int num = Integer.parseInt(JOptionPane.showInputDialog (\" Numero entre 1 y 50: \"));//mensaje que nos pida un numero\r\n while ((num<1)||(num>50)){//el numero este comprendido entre 1 y 50\r\n num = Integer.parseInt(JOptionPane.showInputDialog (\" ERROR numero incorrecto \"));//mensaje de error\r\n }//llave de while cerrada\r\n return num;//retornara num si el numero es correcto\r\n }", "title": "" }, { "docid": "882f6f70051627b525bdd8b92be665ee", "score": "0.5952851", "text": "public void onClick(DialogInterface dialog,\r\n int id) {\n result.setText(userInput.getText());\r\n check(getA);\r\n }", "title": "" }, { "docid": "f55a55d2efdb70ad8a7040a151675cba", "score": "0.5951792", "text": "public int show() {\r\n\r\n _jbInit_jit_buttons();\r\n\r\n this.fChoosenOption = DialogDescriptor.CANCEL_OPTION; // default\r\n\r\n fDialog = new JDialog(Application.getWindowManager().getRootFrame(), fTitle, fModal);\r\n fDialog.setModal(fModal);\r\n //fDialog.setLayout(new BorderLayout(15, 15));\r\n fMainPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\r\n fDialog.setContentPane(fMainPanel);\r\n fDialog.setResizable(true);\r\n fDialog.pack();\r\n GuiHelper.centerComponent(fDialog);\r\n fDialog.setVisible(true);\r\n fDialog.requestFocus();\r\n\r\n //klog.debug(\"Choosen option: \" + fChoosenOption);\r\n return fChoosenOption;\r\n }", "title": "" }, { "docid": "cba4b0017025e8ccd7f55940a95f27df", "score": "0.5950636", "text": "public int showOptionDialog(Widget parent, String options[], String defaultVal)\n {\n if (options.length != 2 && options.length != 3)\n throw new IllegalArgumentException(\"Number of options must be 2 or 3\");\n int response = JOptionPane.showOptionDialog(parent == null ? null : parent.getComponent(), buildMessage(message), title,\n (options.length == 2 ? JOptionPane.YES_NO_OPTION : JOptionPane.YES_NO_CANCEL_OPTION),\n style.value, null, options, defaultVal);\n if (response == JOptionPane.YES_OPTION)\n return 0;\n if (response == JOptionPane.NO_OPTION)\n return 1;\n return 2;\n }", "title": "" }, { "docid": "728c932cf2b2690d0450b403812c843f", "score": "0.5950584", "text": "private void jButton2AceptarActionPerformed(java.awt.event.ActionEvent evt) {\n \n \n if(validarCampos()){ \ntry{\n Cadete cadete = new Cadete();\n if(verifcarCampos()){\n cadete.setDni(Integer.parseInt(jTextField1DNI.getText()));\n cadete.setNombre(jTextField1Nombre.getText());\n cadete.setApellido(jTextField1Apellido.getText());\n cadete.setDomicilio(jTextField1Domicilio.getText()); \n \n \n ResultSet cad = cadete.buscar(Integer.parseInt(jTextField1DNI.getText()));\n \n if( !cad.first()){\n idCadete= cadete.Insertar();\n \n JOptionPane.showMessageDialog(this, \"Se cargó un Cadete \", \"\", JOptionPane.INFORMATION_MESSAGE);\n jTextField1DNI.requestFocus();\n limpiarVariables();\n }else{\n JOptionPane.showMessageDialog(this, \"El cadete ya existe \",\" \", JOptionPane.INFORMATION_MESSAGE);\n \n }\n \n }\n }catch (Exception ex) \n { \n //JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR!!\", JOptionPane.ERROR_MESSAGE); \n } \n }\n \n// interfazABMCadete volverABMCadete= new interfazABMCadete();\n// volverABMCadete.setVisible(true);\n// setVisible(false);\n \n }", "title": "" }, { "docid": "1e89a1abe4e15f04614ba7a46053920f", "score": "0.594783", "text": "public void BusquedaInventario(){\n \n String numInv = txtNumInv.getText();\n String mensaje = metodosSQL.BuscarNumInv(numInv);\n \n if(mensaje.equals(\"Num Inv Existe\")){\n lblNumInv.setForeground(Color.GREEN);\n lblNumInv.setText(\"Num Inv Encontrado.\");\n \n EscribirDatos(numInv);\n Desbloquear();\n \n }else{\n lblNumInv.setForeground(Color.red);\n lblNumInv.setText(\"Sin resultados.\");\n Bloquear();\n LimpiarFormulario();\n } \n }", "title": "" }, { "docid": "43d48a5f1bc460f42960301aaf4986fc", "score": "0.5944905", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n try {\n if (SistemaUsuarios.getInstance().tienePermisos(Constantes.ActividadIngresarCompras)) { \n \n Compra c = compras.get(jTableCompras.getSelectedRow());\n int resp = JOptionPane.showConfirmDialog(MantenimientoCompras.this, \"Seguro que quiere eliminar la compra \" + c.getTipoDocumento().getTipoDocumento() + \" con el numero \" + c.getNumero() + \"?\", \"Pregunta\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if(resp == JOptionPane.YES_OPTION){\n try{\n if(sisCompras.eliminarCompra(c)){\n JOptionPane.showMessageDialog(MantenimientoCompras.this, \"La compra se elimino correctamente\" , \"Información\", JOptionPane.INFORMATION_MESSAGE);\n jButtonBuscar.doClick();\n } \n } \n catch (HibernateException he){\n JOptionPane.showMessageDialog(MantenimientoCompras.this, \"Error al eliminar la compra.\" + \"\\n\\n\" + he.toString(), \"Error\", JOptionPane.ERROR_MESSAGE);\n } catch (Exception exp) {\n String stakTrace = util.Util.obtenerStackTraceEnString(exp);\n SistemaUsuarios.getInstance().registrarExcepcion(exp.toString(), stakTrace);\n JOptionPane.showMessageDialog(MantenimientoCompras.this, Constantes.MensajeDeErrorGenerico, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }\n \n } else {\n JOptionPane.showMessageDialog(MantenimientoCompras.this, Constantes.MensajeDeErrorDePermisos, \"Permisos\", JOptionPane.INFORMATION_MESSAGE);\n }\n } catch (Exception exp) {\n String stakTrace = util.Util.obtenerStackTraceEnString(exp);\n SistemaUsuarios.getInstance().registrarExcepcion(exp.toString(), stakTrace);\n JOptionPane.showMessageDialog(MantenimientoCompras.this, Constantes.MensajeDeErrorGenerico, \"Error\", JOptionPane.ERROR_MESSAGE);\n } \n }", "title": "" }, { "docid": "c4ef3cbf1c68be5b72c9c3f244e4bd88", "score": "0.593211", "text": "@Override\n protected void btn_okActionPerformed(ActionEvent e) {\n setNumSelection(Integer.parseInt(txt_numSelection.getText()));\n setSizeSubspace(Integer.parseInt(txt_sizeSubspace.getText()));\n setElimination(Integer.parseInt(txt_elimination.getText()));\n setMultMethodName(MultivariateMethodType.parse(cb_multivalMethod.getSelectedItem().toString()));\n super.btn_okActionPerformed(e);\n }", "title": "" }, { "docid": "01b6a1cc3d22eddf43ea17afbf2906dc", "score": "0.5931033", "text": "private void sub_ansActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sub_ansActionPerformed\n num1 = Integer.parseInt(sub.getText());\n result = calc.sustraer(num1);\n resultado.setText(String.valueOf(result));\n }", "title": "" } ]
54358e3cdeac66dc8e0c3ed8095e6dab
Delete an existing row, optionally with animation
[ { "docid": "fe0ee39e3c75ac0e1ff4e2aa233df77e", "score": "0.67462885", "text": "public native void deleteRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.deleteRow(row);\n }-*/;", "title": "" } ]
[ { "docid": "4e6fb272a2bec40c20af3a10db4b59e7", "score": "0.7646308", "text": "public native void deleteRow(int row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.deleteRow(\n\t\t\t\t\t\trow,\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;", "title": "" }, { "docid": "959911a5e686f20953d2191cf7a31ad1", "score": "0.73066354", "text": "@Kroll.method\n\tpublic void deleteRow(Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (rowObj instanceof Integer) {\n\t\t\tfinal int index = ((Integer) rowObj).intValue();\n\n\t\t\tdeleteRow(getRowByIndex(index), null);\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\tif (row == null) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfinal TiViewProxy parent = row.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.remove(row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "049eea8d7ad1ee366f53e8ebb7e6aabd", "score": "0.69291556", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}", "title": "" }, { "docid": "049eea8d7ad1ee366f53e8ebb7e6aabd", "score": "0.69291556", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}", "title": "" }, { "docid": "905cd1b4964eaf23906017a5f02b3a0c", "score": "0.6883492", "text": "private void toDelete() {\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No paint detail has been currently added\");\n }\n else\n {\n String[] choices={\"Delete First Row\",\"Delete Last Row\",\"Delete With Index\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"How would you like to delete data?\", \"Delete Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n jtModel.removeRow(toCount()-toCount());\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted first row\");\n }\n else if(option==1)\n {\n jtModel.removeRow(toCount()-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted last row\");\n }\n else if(option==2)\n {\n toDeletIndex();\n }\n else\n {\n \n }\n }\n }", "title": "" }, { "docid": "274ba5036c3b0479a6d2be5215bfff64", "score": "0.6741238", "text": "public void actionPerformed(ActionEvent e) {\n model.deleteRow();\n }", "title": "" }, { "docid": "888effc1aa13a0b1d9b2286a2718521d", "score": "0.6661538", "text": "public void removeRow(String rowName);", "title": "" }, { "docid": "1032dd7e841e64c1019ff40b46c2cbae", "score": "0.6605692", "text": "private void delete(int selectedRow) {\r\n removing = true;\r\n deletingRow = selectedRow;\r\n //subAwardBudgetTableModel.deleteRow(selectedRow);\r\n deleteRow(selectedRow);\r\n \r\n //Select a Row\r\n int selectRow = 0;\r\n int rowCount = subAwardBudgetTableModel.getRowCount();\r\n if(selectedRow == 0 && rowCount > 0) {\r\n //Select First Row\r\n selectRow = 0;\r\n }else if(selectedRow == rowCount) {\r\n //Select Last Row\r\n selectRow = rowCount - 1;\r\n }else {\r\n //Select This Row\r\n selectRow = selectedRow;\r\n }\r\n removing = false;\r\n if(selectRow != -1) {\r\n subAwardBudget.tblSubAwardBudget.setRowSelectionInterval(selectRow, selectRow);\r\n }else{\r\n //If All rows Deleted, then Details panel should be cleared\r\n displayDetails();\r\n }\r\n deletingRow = -1;\r\n }", "title": "" }, { "docid": "1bee1267852a05d4770c9af2a443d431", "score": "0.65403765", "text": "void removeRow(int row_index) throws IOException;", "title": "" }, { "docid": "e40ccb1880ce5d554f2767da81abc86d", "score": "0.65343755", "text": "public void deleteRow(MyItem row) {\n\n\t\tif (MyItemAdapter.rows.contains(row)) {\n\t\t\tMyItemAdapter.rows.remove(row);\n\t\t}\n\n\t}", "title": "" }, { "docid": "cc58e273d784721c06cfe3d7dfb2ce76", "score": "0.6527556", "text": "public void deleteCartRow() {\n CarComponent selectedRow = cartTable.getSelectionModel().getSelectedItem();\n cartTable.getItems().remove(selectedRow);\n componentsCart.remove(selectedRow);\n\n updateTotal();\n }", "title": "" }, { "docid": "514d3b7e2d8c0101fb320a7e015ecece", "score": "0.64918983", "text": "@FXML\n private void deleteRow(ActionEvent event){\n if(facilitiesView.getSelectionModel().getSelectedItem()==null){\n errorBox(\"Feil\", \"Det er ingen rader som er markert\", \"Vennligst marker en rad i tabellen\");\n }\n else{\n Alert mb = new Alert(Alert.AlertType.CONFIRMATION);\n mb.setTitle(\"Bekreft\");\n mb.setHeaderText(\"Du har trykket slett på \"+ facilitiesView.getSelectionModel().getSelectedItem().getFacilityName());\n mb.setContentText(\"Ønsker du virkerlig å slette dette lokalet?\");\n mb.showAndWait().ifPresent(response -> {\n if(response== ButtonType.OK){\n observableList.remove(facilitiesView.getSelectionModel().getSelectedItem());\n\n File file = new File(EditedFiles.getActiveFacilityFile());\n file.delete();\n try {\n WriterThreadRunner.WriterThreadRunner(getFacilities(), EditedFiles.getActiveFacilityFile());\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }\n });\n }\n }", "title": "" }, { "docid": "ab994f9c39c9aeb91f62d934b070af56", "score": "0.6430083", "text": "public boolean deleteRow(int row) {\n try {\n resultSet.absolute(row + 1);\n resultSet.deleteRow();\n //tell table to redraw itself\n fireTableDataChanged();\n return true;\n } catch (SQLException se) {\n System.out.println(\"Delete row error \" + se);\n return false;\n }\n }", "title": "" }, { "docid": "2a3c087605bd31f0bfc521acbcd9d82f", "score": "0.63414705", "text": "private void deleteButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_deleteButtonActionPerformed\n int rowIndex = headerTable.getSelectedRow();\n if (rowIndex > -1) {\n removeRow(rowIndex);\n }\n }", "title": "" }, { "docid": "5d1156ae0339d886f7abf89954ab4f7b", "score": "0.633538", "text": "public void removeRowAt(int row)\r\n throws IllegalStateException {\r\n if(!(Integer.parseInt(((Vector)data.elementAt(row)).elementAt\r\n (numberOfcolumns).toString()) == IS_INSERTED)){\r\n ( (Vector) data.elementAt(row)).\r\n setElementAt(new Integer(IS_DELETED), numberOfcolumns);\r\n dataDeleted.add((Vector)data.elementAt(row));\r\n }\r\n data.removeElementAt(row);\r\n this.deletedStatus = true;\r\n }", "title": "" }, { "docid": "fc4c4edfed23eaeec678d7f7883c807e", "score": "0.63066244", "text": "public void deleteRow(int row) throws IndexOutOfBoundsException{\r\n data.remove(row);\r\n fireTableRowsDeleted(row,row);\r\n }", "title": "" }, { "docid": "f1308de67864994bbf1f735e52c02f6d", "score": "0.6266151", "text": "public static void removeRow(String fileName) {\n tableModel.removeRow(fileName);\n }", "title": "" }, { "docid": "3859da4baccc2302a68fe6abc8343596", "score": "0.62397885", "text": "@FXML\n\tprivate void handleDeleteTaxi() {\n\t\tint selectedIndex = TaxiTable.getSelectionModel().getSelectedIndex();\n\t\tif (selectedIndex >= 0) {\n\t\t\tTaxiTable.getItems().remove(selectedIndex);\n\t\t} else {\n\t\t\t// Nothing selected.\n\t\t}\n\t}", "title": "" }, { "docid": "de9fe9f45ba116ac155b8d849760d57a", "score": "0.62373847", "text": "void deleteRow(int rowPos)\n {\n System.out.println(\n \"@deleteRow rowPos: \" + rowPos + \", vs stackSize: \" + compositeRowStack.size());\n if(rowPos > 0) transferChildren(rowPos, rowPos - 1);\n if(rowPos < compositeRowStack.size())\n {\n compositeRowStack.remove(rowPos);\n }\n }", "title": "" }, { "docid": "5f4b08439a5da75e19afc6dec0d98b5b", "score": "0.61557376", "text": "public void deleteRow(int row) {\n\t\tif (row == -1) return;\n\t\t\n\t\tdata.remove(row);\n\t\tfireTableRowsDeleted(row, row);\n\t}", "title": "" }, { "docid": "1018c3db6900e522ec282b192fed7f32", "score": "0.61543643", "text": "public void toDeletIndex()\n {\n try\n { \n //DefaultTableModel model=(DefaultTableModel)jt.getModel(); \n //jt.getModel();\n int num=Integer.parseInt(JOptionPane.showInputDialog(rootPane,\"Enter the row number\")); \n jtModel.removeRow(num-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted selected row number \" +num);\n }\n catch(NumberFormatException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Enter integer not alphabet\");\n } \n catch(ArrayIndexOutOfBoundsException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"This row dosent exist\");\n }\n }", "title": "" }, { "docid": "b1af4e059b792d724834a1a2c2dbf701", "score": "0.61331296", "text": "private void removeRow() {\n gridHeight--; \n for (EscapeBlock block : grid.get(gridHeight)) { // for each block from the last row\n block.disconnectAll();\n this.remove(block); // remove it from the UI\n }\n\n grid.remove(gridHeight); // remove the row\n }", "title": "" }, { "docid": "89df4bf2dd7e187f88a55ada9a31d49c", "score": "0.6123766", "text": "@FXML\n private void setRemoveButton() {\n Coach selectedRow = coachesTable.getSelectionModel().getSelectedItem();\n try {\n Connection conn = DatabaseHandler.getInstance().getConnection();\n try (Statement st = conn.createStatement()) {\n st.execute(\"delete from szkolka.uzytkownik where id_u=\" + selectedRow.getId() + \";\");\n coachesTable.getItems().remove(coachesTable.getSelectionModel().getSelectedItem());\n removeButton.setDisable(true);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "2c1b5bad5d3e4ab427e41ee0423a9247", "score": "0.6122377", "text": "public void deleteSelectionRowTable(boolean status) {\n tableList.deleteSelectionItem(status);\n }", "title": "" }, { "docid": "e62ade36738d4bf6f88696e48a0e2bc1", "score": "0.61188936", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"btnDelete\");\n\t\t\t\tint i = table.getSelectedRow();\n\t\t\t\tif (i >= 0) {\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + i);\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + textSuppD.getText());\n\t\t\t\t\tint suppID = Integer.parseInt(textSuppD.getText().trim());\n\n\t\t\t\t\tDatabase db = new Database();\n\t\t\t\t\tSuppliersDAO suppDAO = new SuppliersDAO(db);\n\t\t\t\t\tSuppliersModel suppModel = new SuppliersModel();\n\t\t\t\t\tsuppModel.setSuppliers_id(suppID);\n\t\t\t\t\tsuppDAO.Delete(suppModel);\n\t\t\t\t\tdb.commit();\n\t\t\t\t\tdb.close();\n\n\t\t\t\t\tmodel.removeRow(i);\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "bbc0687179c6e942a1f47ea1178025fa", "score": "0.61142206", "text": "public void actionPerformed(ActionEvent e) {\n if(newTable.getRowCount() == 0){\n Toolkit.getDefaultToolkit().beep();\n return;\n }\n int index = table.getSelectedRow();\n int size = newTable.getRowCount();\n if(index > size || index < 0){\n table.setRowSelectionInterval(0,0);\n index = table.getSelectedRow();\n }\n newTable.removeRow(index);\n \n\n //Select an index.\n index--;\n if(index < 0){\n index++;\n }\n if(newTable.getRowCount() != 0){\n table.setRowSelectionInterval(index, index);\n }\n }", "title": "" }, { "docid": "431cf6045fd363297f136033bf309588", "score": "0.6108984", "text": "private void deleteRow(int selectedRow){\r\n BudgetSubAwardBean budgetSubAwardBean = (BudgetSubAwardBean)data.get(selectedRow);\r\n if(budgetSubAwardBean.getAcType() == null || budgetSubAwardBean.getAcType().equals(TypeConstants.UPDATE_RECORD)){\r\n budgetSubAwardBean.setAcType(TypeConstants.DELETE_RECORD);\r\n budgetSubAwardBean.setUpdateUser(userId);\r\n if(deletedData ==null) {\r\n deletedData = new ArrayList();\r\n }\r\n deletedData.add(budgetSubAwardBean);\r\n }\r\n data.remove(selectedRow);\r\n \r\n //If Last Row nothing to do\r\n //else Update Sub Award Number for rest of the Rows\r\n /*int size = data.size();\r\n if(selectedRow != size) {\r\n for(int index = selectedRow; index < size; index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)data.get(index);\r\n budgetSubAwardBean.setSubAwardNumber(index + 1);\r\n if(budgetSubAwardBean.getAcType() == null) {\r\n budgetSubAwardBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n }\r\n }//End For\r\n }//End If\r\n */\r\n \r\n subAwardBudgetTableModel.fireTableRowsDeleted(selectedRow, selectedRow);\r\n }", "title": "" }, { "docid": "e1408dc73c4ef4ab74abe79fd27469e0", "score": "0.6089388", "text": "public void removeRow(int row) {\r\n\t\tdata.remove(row);\r\n\t}", "title": "" }, { "docid": "c94a1a8009c7007c7dc92f6b8706bb20", "score": "0.60596377", "text": "public void removeRow(int ind) throws SQLException {\n/* 417 */ notSupported();\n/* */ }", "title": "" }, { "docid": "2c3e81b74cab778b92fc242abde95f3f", "score": "0.605624", "text": "private void deleteSelectedRows() {\n int[] rows = constantsTable.getSelectedRows();\n constantsTable.clearSelection();\n currentCellEditor.cancelCellEditing();\n for (int i = rows.length - 1; i >= 0; i--) {\n if (rows[i] > -1) {\n getTableModel().removeRow(rows[i]);\n }\n }\n }", "title": "" }, { "docid": "114857522c844ee3aff9c7b6ea88ea9b", "score": "0.60543287", "text": "public void deleteRow(Row _deleteThis){\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:deleteRow: table invalid, nothing done\");\r\n return;\r\n }\r\n Set<String> keys = rows.keySet();\r\n //Searches for row to delete and then removes it\r\n for(String k : keys) {\r\n if(_deleteThis.getData() == rows.get(k).getData()){\r\n rows.remove(k);\r\n return;\r\n }\r\n }\r\n System.out.println(\"Error:Table:deleteRow: Unable to find passed row, no row deleted\");\r\n }", "title": "" }, { "docid": "38a3565f0a46e260ac0763f5216f6a1c", "score": "0.6053594", "text": "private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }", "title": "" }, { "docid": "7a6490342d7d13a95280a86790b7b4ca", "score": "0.6039377", "text": "private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n WriteContext ctx,\n long nowInSec)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n cell));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, cell),\n DeletionTime.build(cell.timestamp(), nowInSec),\n ctx);\n }", "title": "" }, { "docid": "39ac4d0b1c84b3789bf7b123ac4ff86d", "score": "0.603195", "text": "public DResult delete(byte[] row, long startId) throws IOException;", "title": "" }, { "docid": "1954011d09452fc1a928ada7e466f596", "score": "0.60305375", "text": "public boolean deleteItem(int index);", "title": "" }, { "docid": "7c2f02472b4e2b9030a243ab81ee752e", "score": "0.60164857", "text": "@Override\r\n\tpublic void removeRow(int row) {\r\n\t\tsuper.removeRow(row);\r\n\t\telenco = lista.getElenco();\r\n\t\tPersona removable = new Persona();\r\n\t\tremovable.setNome(elenco.elementAt(row).getNome());\r\n\t\tremovable.setCognome(elenco.elementAt(row).getCognome());\r\n\t\tremovable.setTelefono(elenco.elementAt(row).getTelefono());\r\n\t\tremovable.setIndirizzo(elenco.elementAt(row).getIndirizzo());\r\n\t\tremovable.setEta(elenco.elementAt(row).getEta());\r\n\t\ttry {\r\n\t\t\tlista.delete(removable, row);\r\n\t\t\t}\r\n\t\t\tcatch (ArrayIndexOutOfBoundsException aioe) {\r\n\t\t\t\tString message = AIOE_MESSAGE\r\n\t\t\t\t\t\t+row + \" on table \"\r\n\t\t\t\t\t\t+lista.getElenco().indexOf(removable)\r\n\t\t\t\t\t\t+ \" on Lista \";\r\n\t\t\t\tJOptionPane.showMessageDialog(null, message);\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "1016b9ef237edc4b5d1be5b8b2789984", "score": "0.5993416", "text": "public String onDelete(final DataTableCRUDRow<R> row) {\n try {\n getModel().setRowClicked(row);\n if (!row.isNewRow()) {\n delete(row.getElement());\n } else {\n row.setReadonly(true);\n }\n row.setDeleted(true);\n } catch (final MessageLabelException e) {\n log.trace(e.getMessage(), e);\n getFacesMessages().message(e);\n }\n return \"\";\n }", "title": "" }, { "docid": "61bf520faacdb1b3c6432de24675c114", "score": "0.59865856", "text": "@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listpag.indexOf(rowb);\n\t\t\t\t\tlistpag.remove(removeIndex);\n\t\t\t\t\tgetView().getPaginaweb().removeRow(removeIndex + 1);\n\t\t\t\t}", "title": "" }, { "docid": "fba8decf970a7c565d8eddffe9e16110", "score": "0.59774554", "text": "public void deleteSelectedFile(int row) {\n\t\tArrayList<File> files = currConfig.getSelectedFiles();\n\t\tfiles.remove(row);\n\t}", "title": "" }, { "docid": "b37471f88bdd9b90b6106fb1ece66d69", "score": "0.59721315", "text": "@FXML\n private void rowSelected() {\n if (coachesTable.getSelectionModel().getSelectedItem() != null) {\n removeButton.setDisable(false);\n }\n }", "title": "" }, { "docid": "cb024e260954e200ea983fb5a4a4e16c", "score": "0.5953502", "text": "public int deleteIndex(FeatureRow row) {\n return deleteIndex(row.getId());\n }", "title": "" }, { "docid": "782229e059fc0fad700a75347f995f83", "score": "0.589549", "text": "@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listdir.indexOf(rowb);\n\t\t\t\t\tlistdir.remove(removeIndex);\n\t\t\t\t\tgetView().getDireccion().removeRow(removeIndex + 1);\n\t\t\t\t}", "title": "" }, { "docid": "9b470e85a4dbc263fd7765f65b74d324", "score": "0.5890543", "text": "@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listtel.indexOf(rowb);\n\t\t\t\t\tlisttel.remove(removeIndex);\n\t\t\t\t\tgetView().getTelefono().removeRow(removeIndex + 1);\n\t\t\t\t}", "title": "" }, { "docid": "d9cdf2c0efa86785bfaf4f8362dc633b", "score": "0.5887885", "text": "public void deleteButtonPushed() {\r\n ObservableList<Student> allStudents;\r\n Student selectedRow;\r\n allStudents = tableView.getItems();\r\n \r\n // This gives us the row that was selected\r\n selectedRow = tableView.getSelectionModel().getSelectedItems().get(0);\r\n \r\n\r\n try {\r\n covidMngrService.deleteStudent(selectedRow);\r\n \r\n // Remove the Student object from the table\r\n allStudents.remove(selectedRow);\r\n } catch (RemoteException ex) {\r\n Logger.getLogger(SecretaryStudentsTableCntrl.class.getName()).\r\n log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "4fcb65e8f1e529fee63b2bb2b50fce0d", "score": "0.588058", "text": "@Override\n public void remove() throws IOException {\n int i = listEnterprisePanel.getTableListE().getSelectedRow(); // chọn hàng để xóa\n if (i >= 0) {\n String strID = listEnterprisePanel.getTableListE().getValueAt(i, 1).toString().trim(); // lấy ID\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(strID); // Tìm kiếm Enterprise theo ID\n content.set(Collections.singleton(enterprise), null);\n enterpriseBN.deleteEnterprise(enterprise);\n model.removeRow(i);\n loadData();\n }\n\n }", "title": "" }, { "docid": "21401d21daf1d531878aa74e533c6325", "score": "0.5864737", "text": "public Feature removeRow(int row){\n if (debug) logger.info(\"feature added\");\n Feature f = fc.remove(row);\n fcLastEdits.clear();\n fcLastEdits.add(f);\n lastEditType = EDIT_REMOVE;\n fireTableRowsDeleted(row, row);\n return f;\n }", "title": "" }, { "docid": "20cf94b214679b37eaac8a0159ba977a", "score": "0.58306074", "text": "@FXML\r\n private void bRemCell() throws SQLException {\n int index = tableView.getSelectionModel().getSelectedIndex();\r\n if(index>=0)\r\n {\r\n calc calc = data.get(index);\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Delete cell\");\r\n alert.setHeaderText(\"Start of Day: \" + String.valueOf(calc.getStartDay()) + \"\\n\" +\r\n \"End of Day: \" + String.valueOf(calc.getOverDay()) + \"\\n\" +\r\n \"Start of Receipt: \" + String.valueOf(calc.getStartOfReceipt()) + \"\\n\" +\r\n \"End of Receipt: \" + String.valueOf(calc.getEndOfReceipt()) + \"\\n\" +\r\n \"Sum of Receipt: \" + String.valueOf(calc.getSumReceipt()) + \"\\n\" +\r\n \"User: \" + String.valueOf(calc.getUser()) + \"\\n\" +\r\n \"Date: \" + String.valueOf(calc.getDate()) + \"\\n\" +\r\n \"Comment: \" + String.valueOf(calc.getComment()));\r\n alert.setContentText(\"Are you sure you want to delete cell with data?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if(result.get() == ButtonType.OK)\r\n {\r\n delete(String.valueOf(calc.getDate()));\r\n refresh();\r\n }\r\n else\r\n {\r\n refresh();\r\n }\r\n }else\r\n {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Nothing Selected!!!\");\r\n alert.showAndWait();\r\n }\r\n }", "title": "" }, { "docid": "4a537c97632c9b854b8044d4548917cc", "score": "0.582846", "text": "public void deleteRow(String row) {\n database.delete(ORDER_MASTER, ORDER_ID + \"=\" + row, null);\n }", "title": "" }, { "docid": "ee707129c5b2c801d701a1c646aeb27a", "score": "0.5825296", "text": "private void deleteAlarm(Alarm affectedAlarm, int rowIndex) {\n\t\tAlarmController.INSTANCE.deleteAlarm(this, affectedAlarm.getId());\n \t\tadapter.remove(affectedAlarm);\n\n \t\tToast.makeText(this, \"Removed \" + affectedAlarm.toPrettyString(), Toast.LENGTH_LONG).show();\n \t}", "title": "" }, { "docid": "e509e5d34dc4aceb1208af65fece41d3", "score": "0.580876", "text": "public void delete(JTable tblUser)\n {\n int i = tblUser.getSelectedRow();\n \n if(i != -1)\n {\n usersDto = users[i];\n \n if(usersDto.getState() != 3)\n {\n if(JOptionPane.showConfirmDialog(null, \"¿Está seguro que desea eliminar el registro?\", \"Eliminar\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n {\n try {\n usersDto.setState((short) 3);\n \n if(usersDao.update(usersDto.createPk(), usersDto)) {\n tableModel = (DefaultTableModel) tblUser.getModel();\n tableModel.setValueAt(\"*\", i, 6);\n }\n \n } catch (UsersDaoException exception) {}\n }\n \n } else { JOptionPane.showMessageDialog(null, \"El registro ya está eliminado\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n \n } else { JOptionPane.showMessageDialog(null, \"Seleccione un registro a eliminar\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n }", "title": "" }, { "docid": "c55028e59fa08d53b8456ad12711d3f9", "score": "0.5800915", "text": "public void removeRow(T obj) {\r\n\t\t\r\n\t\tlogger.trace(\"Enter removeRow - T obj\");\r\n\t\t\r\n\t\tint row = data.indexOf(obj);\r\n\t\tif (row >= 0) {\r\n\t\t\tdata.remove(row);\r\n\t\t\tfireTableRowsDeleted(row, row);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.trace(\"Exit removeRow - T obj\");\r\n\t}", "title": "" }, { "docid": "cbd77057361ac8fb413d7813d5777fc8", "score": "0.5800525", "text": "public TrajectoryTableRow removeByIndex(int index){\r\n\t\treturn this.data.remove(index);\r\n\t}", "title": "" }, { "docid": "ced12c5e7a8b53c0cc076111c06e4e40", "score": "0.57939965", "text": "@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listema.indexOf(rowb);\n\t\t\t\t\tlistema.remove(removeIndex);\n\t\t\t\t\tgetView().getEmail().removeRow(removeIndex + 1);\n\t\t\t\t}", "title": "" }, { "docid": "70289d7b05ecffb84db3bdc3f21a6cdf", "score": "0.5788418", "text": "public void undoRemove() {\n // Makes the removal dialogue invisible.\n mRemovalDialogue.setAlpha(0.0f);\n mRemovalDialogue.setVisibility(GONE);\n\n // Animates back the favorite contact card.\n final ObjectAnimator fadeIn = ObjectAnimator.ofFloat(mFavoriteContactCard, \"alpha\", 1.f).\n setDuration(mAnimationDuration);\n final ObjectAnimator moveBack = ObjectAnimator.ofFloat(mFavoriteContactCard, \"translationX\",\n 0.f).setDuration(mAnimationDuration);\n\n final AnimatorSet animSet = new AnimatorSet();\n\n animSet.playTogether(fadeIn, moveBack);\n\n animSet.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationStart(Animator animation) {\n mParentRow.setHasTransientState(true);\n }\n @Override\n public void onAnimationEnd(Animator animation) {\n if (mParentRow.getItemViewType() == ViewTypes.FREQUENT) {\n SwipeHelper.setSwipeable(mParentRow, true);\n } else {\n SwipeHelper.setSwipeable(PhoneFavoriteTileView.this, true);\n }\n mParentRow.setHasTransientState(false);\n }\n });\n animSet.start();\n // Signals the PhoneFavoritesTileAdapter to undo the potential delete.\n mParentRow.getTileAdapter().undoPotentialRemoveEntryIndex();\n }", "title": "" }, { "docid": "7f3770ba70c4659a0350b4fc1364ec73", "score": "0.5778374", "text": "@Override\n\tpublic boolean delete(Animations obj) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e59c48567d2ad2331b18de816df6d3ae", "score": "0.57571864", "text": "@FXML\n private void handleDeleteFilm() {\n int selectedIndex = filmTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n \tfilmTable.getItems().remove(selectedIndex);\n \tsave();\n } else {\n // Nothing selected.\n Dialogs.create()\n .title(\"No Selection\")\n .masthead(\"No Person Selected\")\n .message(\"Please select a person in the table.\")\n .showWarning();\n }\n }", "title": "" }, { "docid": "9d9259299a5ae59b81bc41464a43639c", "score": "0.57498765", "text": "void onItemDelete(int position);", "title": "" }, { "docid": "7cc3b34b750166aba0ffa1bc7b2782a9", "score": "0.5748129", "text": "public void deleteRow(int position) {\n if (position < mExtraOffset || position >= getCount()) {\n return;\n }\n mCursor.moveToPosition(position- mExtraOffset);\n String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);\n String title = mCursor.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX);\n Bookmarks.removeFromBookmarks(null, mContentResolver, url, title);\n refreshList();\n }", "title": "" }, { "docid": "2b5d2c3eaadc83763da96b9b535ac336", "score": "0.57342345", "text": "@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }", "title": "" }, { "docid": "4daee6296e455ec89b2fae447ba73766", "score": "0.5729566", "text": "public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8d517b23d768dfed9439da911aac78ce", "score": "0.57260275", "text": "public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }", "title": "" }, { "docid": "8d517b23d768dfed9439da911aac78ce", "score": "0.57260275", "text": "public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }", "title": "" }, { "docid": "8d517b23d768dfed9439da911aac78ce", "score": "0.57260275", "text": "public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }", "title": "" }, { "docid": "8d517b23d768dfed9439da911aac78ce", "score": "0.57260275", "text": "public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }", "title": "" }, { "docid": "8d517b23d768dfed9439da911aac78ce", "score": "0.57260275", "text": "public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }", "title": "" }, { "docid": "8d517b23d768dfed9439da911aac78ce", "score": "0.57260275", "text": "public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }", "title": "" }, { "docid": "145bba6147c91b59f6e96fa8835b5188", "score": "0.57170165", "text": "public void removeRow(int row) {\r\n\t\tdataVector.removeElementAt(row);\r\n\t\tthis.dataObjects.removeElementAt(row);\r\n\r\n\t\t// Generate notification\r\n\t\tfireTableRowsDeleted(row, row);\r\n\t}", "title": "" }, { "docid": "405634df29df401b36b9be667ef23de3", "score": "0.57078487", "text": "private void removeairlinerActionPerformed(java.awt.event.ActionEvent evt) {\n int row = airlinerTable.getSelectedRow();\n\n if(row<0) {\n JOptionPane.showMessageDialog(null, \"Please select a row from the table first\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return;\n }\n Airliner a = (Airliner)airlinerTable.getValueAt(row, 0);\n airlinerDirectory.removeAirliner(a);\n refreshTable();\n }", "title": "" }, { "docid": "5f38b0f1b1615b6cbec9fc7eb5da9f61", "score": "0.56916666", "text": "public void supprimerJoueur(ActionEvent e)\n\t{\n\tint index = tableJoueurs.getSelectedRow();\n\tindex = sorter.modelIndex(index);\n\t\tif (index != -1)\n\t\t{\n\t\t\t((JoueursTableModel)sorter.getTableModel()).removeJoueur(index);\n\t\t\t((JoueursTableModel)sorter.getTableModel()).fireTableDataChanged();\n\t\t}\n\t}", "title": "" }, { "docid": "8989b9e9604626d7f9e33df859a4a93b", "score": "0.5689961", "text": "void removeRowsLock();", "title": "" }, { "docid": "cc56d199f3a624746048f56f0d0d0bf5", "score": "0.56826097", "text": "private void deleteItem(int position){\n deleteItem(dataset.get(position),position);\n }", "title": "" }, { "docid": "58222bd7c10e0fb80970592a1e3c7e33", "score": "0.56546223", "text": "public static void deleteRow(HTable table, String rowKey) throws Exception {\n\t\tDelete delete = new Delete(Bytes.toBytes(rowKey));\n\t\ttable.delete(delete);\n\t\tSystem.out.println(\"Delete row: \" + rowKey);\n\t}", "title": "" }, { "docid": "ba1fea895bf5d13a21d4fd4481a2e1e3", "score": "0.5650018", "text": "public void deleteEntry(long row) {\n database.delete(ORDER_MASTER, ROW_ID + \"=\" + row, null);\n }", "title": "" }, { "docid": "dca5b3e66f1ef9b54eaae51b0bcf7280", "score": "0.5649512", "text": "public void deleteRow() throws SQLException\n {\n m_rs.deleteRow();\n }", "title": "" }, { "docid": "6a593756eb438771128b4d213ea9d39d", "score": "0.5648518", "text": "public void deleteRows(int[] rows) throws IndexOutOfBoundsException{\r\n if (rows.length > 0){\r\n LinkedList data_to_remove = new LinkedList();\r\n for (int i=0; i<rows.length; i++){\r\n data_to_remove.add(data.get(rows[i]));\r\n }\r\n for (int i=0; i<data_to_remove.size(); i++){\r\n data.remove(data_to_remove.get(i)); \r\n }\r\n this.fireTableRowsDeleted(rows[0], rows[rows.length -1]);\r\n }\r\n }", "title": "" }, { "docid": "af24b4dba247a7cc1df31b62a894a037", "score": "0.5642896", "text": "void delete (int index);", "title": "" }, { "docid": "51d8f1b428b133d3f83295bbfef431f6", "score": "0.5642737", "text": "public abstract void rowsDeleted(int firstRow, int endRow);", "title": "" }, { "docid": "258ce124f9bee6d1b2aa14cc1a97d25b", "score": "0.56406647", "text": "@FXML\n\tpublic void handleExcluir(MouseEvent event) {\n\t\tif(colNome.getCellData(jtvIngredienteTable.getSelectionModel().getSelectedIndex()) != null){\n\t\t\tingredienteService = new IngredienteService();\n\t\t\tIngrediente ingrediente = jtvIngredienteTable.getSelectionModel().getSelectedItem();\n\t\t\tingredienteService.delete(ingrediente.getId());\n\t\t\tatualizarTable();\n\t\t}else{\n\t\t\tScreenUtils.janelaInformação(spDialog, Internationalization.getMessage(\"header_erro3\"), Internationalization.getMessage(\"item_nao_selecionado\"), Internationalization.getMessage(\"erro_button2\"));\n//\t\t\tScreenUtils.janelaInformação(spDialog, \"Ops\", \"Por favor, selecione um item.\", \"Sem problemas\");\n\t\t}\n\t}", "title": "" }, { "docid": "53d801246413867681c26938e209427c", "score": "0.5639812", "text": "public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}", "title": "" }, { "docid": "d6a1a214888612df27f04723eca6163c", "score": "0.56377906", "text": "public void clickedPresentationDelete() {\n\t\tif(mainWindow.getSelectedRowPresentation().length <= 0) ApplicationOutput.printLog(\"YOU DID NOT SELECT ANY PRESENTATION\");\n\t\telse if(mainWindow.getSelectedRowPresentation().length > 1) ApplicationOutput.printLog(\"Please select only one presentation to edit\");\n\t\telse {\n\t\t\tint tmpSelectedRow = mainWindow.getSelectedRowPresentation()[0];\n\t\t\tPresentations tmpPresentation = presentationList.remove(tmpSelectedRow);\t\t\t\n\t\t\tappDriver.hibernateProxy.deletePresentation(tmpPresentation);\t\n\t\t\trefreshPresentationTable();\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "f1f98fbf95d238ad6571401ba8732612", "score": "0.5636523", "text": "void deleteButton_actionPerformed(ActionEvent e) {\n doDelete();\n }", "title": "" }, { "docid": "5e6dfef2e8d4c2994b38f7b58944995e", "score": "0.5631408", "text": "private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeButtonActionPerformed\n\n AttlistTableModel tm = (AttlistTableModel) attrTable.getModel();\n \n int sel = attrTable.getSelectedRow();\n if (sel > -1) {\n tm.removeRow(sel);\n if (numRows() > 0) {\n if (sel <= numRows() - 1)\n attrTable.getSelectionModel().setSelectionInterval(sel,sel);\n else\n attrTable.getSelectionModel().setSelectionInterval(sel - 1, sel - 1);\n } else removeButton.setEnabled(false);\n }\n }", "title": "" }, { "docid": "7d7745b04175e9da3dce84310616cb3d", "score": "0.5613008", "text": "public void deleteSelectedAndRefresh()\n\t{\n\t\tDisplayThreeSQLHandler.changeRoom(\"CREATURE\", selectedCreature, -1);\n\t\t\n\t\tremoveElement(thingsInColumn.indexOf(selectedCreature));\n\t\t\n\t\tselectedCreature = thingsInColumn.get(itemsVisible[buttonLastPressed]);\n\t\t\n\t\tDisplayThree.getInstance().addBox.changeContents(\"CREATURE\", false);\n\t\t;\n\t\t\n\t\tthis.updateButtons();\n\t}", "title": "" }, { "docid": "9f410fc16fe8e472f9cc5de6cb519a5a", "score": "0.56101716", "text": "public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;", "title": "" }, { "docid": "fdb9dbb5265cc7e74d52c1a5aac40759", "score": "0.5610094", "text": "@FXML\r\n private void Delete (ActionEvent event){\r\n \r\n g.clearRect(5, 5, 350, 250);\r\n \r\n }", "title": "" }, { "docid": "a6b55b429ed5f9358ba11ca560a0425d", "score": "0.56048536", "text": "private void createRowForDeleteButton(Composite compo)\n {\n buttonDelete = toolkit.createButton(section, \"Remove\", SWT.PUSH); //$NON-NLS-1$\n buttonGridData(buttonDelete, SWT.BOTTOM);\n buttonDelete.setEnabled(false);\n buttonDelete.addSelectionListener(new SelectionListener()\n {\n public void widgetDefaultSelected(SelectionEvent e)\n {\n }\n\n public void widgetSelected(SelectionEvent e)\n {\n tree.getChildren().remove(selectedRule);\n listFormat.refresh();\n buttonDelete.setEnabled(false);\n updateWizard();\n controller.removeDocumentType();\n }\n });\n }", "title": "" }, { "docid": "010d82b1940eb307b197c2c06d206e36", "score": "0.56006217", "text": "public void Delete(View v) {\r\n CheckBox MenuCode;\r\n\r\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\r\n\r\n TableRow Row = (TableRow) tblOrderItems.getChildAt(iRow);\r\n\r\n if (Row.getChildAt(0) != null) {\r\n\r\n MenuCode = (CheckBox) Row.getChildAt(0);\r\n\r\n if (MenuCode.isChecked()) {\r\n\r\n // Remove all the view present in the row.\r\n Row.removeAllViews();\r\n\r\n // Remove the row\r\n tblOrderItems.removeView(Row);\r\n\r\n // Exit from the loop\r\n // break;\r\n }\r\n } else {\r\n continue;\r\n }\r\n\r\n }\r\n\r\n CalculateTotalAmount();\r\n }", "title": "" }, { "docid": "8e4dc40316fffe23c23398602b9b28af", "score": "0.5593445", "text": "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "title": "" }, { "docid": "3334e0706aa70f81e4943c6e4709bdef", "score": "0.55891895", "text": "private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n DeletionTime deletion,\n WriteContext ctx)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n null));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, null),\n deletion,\n ctx);\n }", "title": "" }, { "docid": "2b12071827e376b6fea1925d1a432c2b", "score": "0.55789024", "text": "@Override\n public void handle(ActionEvent event) {\n try {\n clickedRow.setFeld(feld.get(ii));\n clickedRow.setStatus(2);\n CheckeSpielsuche();\n } catch (Exception e) {\n e.printStackTrace();\n // auswahlklasse.WarnungBenachrichtigung(\"Fehler\",\"Nicht alle Spieler Verfügbar\");\n\n }\n\n /*Image image = new Image(\"/sample/images/BadmintonfeldBesetzt.jpg\");\n feld.get(ii).setImage(image);*/\n\n /* auswahlklasse.getAktuelleTurnierAuswahl().getObs_ausstehendeSpiele().remove(clickedRow);\n auswahlklasse.getAktuelleTurnierAuswahl().getObs_aktiveSpiele().add(clickedRow);*/\n }", "title": "" }, { "docid": "3d19cef90b1c3d702b61c37c4e916d2b", "score": "0.5578349", "text": "private void jbtn_deleteActionPerformed(ActionEvent evt) {\n\t\tDefaultTableModel RecordTable=(DefaultTableModel)jTable1.getModel();\n\t\tint Selectedrow=jTable1.getSelectedRow();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tid=RecordTable.getValueAt(Selectedrow,0).toString();\n\t\t\tdeleteItem=JOptionPane.showConfirmDialog(this,\"Confirm if you want to delete the record\",\"Warning\",JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(deleteItem==JOptionPane.YES_OPTION)\n\t\t\t{\n\t\t\t\tconn cc=new conn();\n\t\t\t\tpst=cc.c.prepareStatement(\"delete from medicine where medicine_name=?\");\n\t\t\t pst.setString(1,id);\n\t\t\t\tpst.executeUpdate();\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Record Updated\");\n\t\t\t\tupDateDB();\n\t\t\t\ttxtblank();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "e4d7c0ea58e23d3ca383bab79ca2b3eb", "score": "0.5572785", "text": "@Override\n\t\t\t\t\tpublic void onClick(ClickEvent click) {\n\t\t\t\t\t\tcom.google.gwt.user.client.ui.HTMLTable.Cell cell = tripleTable.getCellForEvent(event);\n\t\t\t\t\t\tint cellIndex = cell.getCellIndex();\n\t\t\t\t\t\tint rowIndex = cell.getRowIndex();\n\t\t\t\t\t\tlogger.log(Level.SEVERE, \"cell:\" + cellIndex);\n\t\t\t\t\t\tif (cellIndex == 3) {\n\t\t\t\t\t\t\ttripleTable.removeRow(rowIndex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trowIndex = tripleTable.getRowCount();\n\n\t\t\t\t\t\ttripleTable.setWidget(rowIndex - 1, 5, save);\n\t\t\t\t\t}", "title": "" }, { "docid": "4e8939a87de4675e98eead9a34af724b", "score": "0.5572158", "text": "private void delete_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_delete_btnActionPerformed\n // pull current table model\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n if (remindersTable.getSelectedRow() == -1) {\n if (remindersTable.getRowCount() == 0) {\n dm.messageEmptyTable();\n } else {\n dm.messageSelectLine();\n }\n } else {\n int input = JOptionPane.showConfirmDialog(frame, \"Do you want to Delete!\");\n // 0 = yes, 1 = no, 2 = cancel\n if (input == 0) {\n model.removeRow(remindersTable.getSelectedRow());\n dm.messageReminderDeleted();// user message;\n saveDataToFile();// Save changes to file\n getSum(); // Update projected balance\n } else {\n // delete canceled\n }\n }\n }", "title": "" }, { "docid": "9dcf91c5912dab87e675bca2420a4f50", "score": "0.5563398", "text": "public String deleteTimesheetRow(TimesheetRow thisRow) {\n\t\tservice.removeTimesheetRow(thisRow);\n\t\ttimesheetRowList.remove(thisRow);\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "678fe9f5383ee79083a6501ee84a6918", "score": "0.5559476", "text": "public native void deselectRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.deselectRow(row);\n }-*/;", "title": "" }, { "docid": "601ed68a0fc7bd2b260686a5e8c90c34", "score": "0.5556871", "text": "public void deleteRow(int row){\n\t\tfor(int j = row; j > 0; j--)\n\t\t\tfor(int i = 0; i < well.length; i++)\n\t\t\t\twell[i][j] = well[i][j-1];\n\t}", "title": "" }, { "docid": "8a54196b3a134a3e723d7f7819fba5d4", "score": "0.55483735", "text": "public void deleteRow(int row)\n throws JPARSECException {\n \tif (row >= m || row < 0)\n \t\tthrow new JPARSECException(\"invalid row.\");\n double newData[][] = new double[m-1][n];\n\n \tint iindex = -1;\n for (int i=0; i<m; i++)\n {\n \tif (i != row) {\n \t\tiindex ++;\n\t for (int j=0; j<n; j++)\n\t {\n\t \tnewData[iindex][j] = this.data[i][j];\n\t }\n \t}\n }\n Matrix m = new Matrix(newData);\n this.m = m.m;\n this.data = m.data;\n }", "title": "" }, { "docid": "21492372134698e523bb4d9c09130b9a", "score": "0.5528809", "text": "public void removeRowAt(int index) {\n ((DefaultTableModel) getModel()).removeRow(index);\n }", "title": "" }, { "docid": "fc3501c3f1f16eb9762e85ef60fd5936", "score": "0.55269396", "text": "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tremoveRowsIsSelected();\r\n\t\t\t\t\told_Num_Total=0;\r\n\t\t\t\t\tdeleteJButton.setEnabled(false);\r\n\t\t\t\t}", "title": "" }, { "docid": "9e8d13ce2fc3164b2b51dad3a6905ee8", "score": "0.5526367", "text": "public boolean delete(long rowId) {\n\t\treturn db.delete(tableName, fields[0] + \" = \" + String.valueOf(rowId), null) > 0;\t\t\n\t}", "title": "" } ]
5809f3d7e2c33ca04f47c431154d0403
Decodes your encoded data to tree.
[ { "docid": "12ee8e482b109f8f50abada90dbe6010", "score": "0.5818665", "text": "public TreeNode deserialize(String data) {\n\n Iterator<String> iter = Arrays.asList(data.split(DELIMITTER)).iterator();\n return deserialize(iter);\n }", "title": "" } ]
[ { "docid": "7b04c8dc05659d69c87dc2b1eb4fcaf8", "score": "0.70301914", "text": "public TreeNode deserialize(String data) {\n start = 0;\n return decode(data);\n }", "title": "" }, { "docid": "9282e14cc130943e108a34e7b0701214", "score": "0.6607094", "text": "public TreeNode deserialize(String data) {\n \n return rec(data );\n }", "title": "" }, { "docid": "2dae8289a617482865c4bc74eba1fffd", "score": "0.63059366", "text": "public TreeNode deserialize(String data) {\n //二叉树为空\n if(data==null || data.length()==0){\n return null;\n }\n //先序遍历通过\",\"分割结点值\n String[] arr = data.split(\",\");\n //将结点值的字符串转换成int数组\n int[] nums = new int[arr.length];\n for(int i=0; i<arr.length; i++){\n nums[i] = Integer.valueOf(arr[i]);\n }\n return rebuild(nums, 0, nums.length-1);\n }", "title": "" }, { "docid": "f35539dd660728c9dddb1f1eb85c4c59", "score": "0.63017076", "text": "public TreeNode deserialize(String data) {\r\n \tif(data == null){\r\n \t\treturn null;\r\n \t}\r\n \tSystem.out.println(\"data=\" + data);\r\n String[] nodes = data.substring(0, data.length()-1).split(\"\\\\*\"); //* 星号需要进行转译\r\n \t\r\n TreeNode root = null;\r\n if(nodes.length>0){\r\n \troot = new TreeNode(Integer.parseInt(nodes[0]));\r\n \tfor(int i=1; i<nodes.length; i++){\r\n\t\t\t\tthis.BSTInsert(root, new TreeNode(Integer.parseInt(nodes[i])));\r\n\t\t\t}\r\n }\r\n \treturn root;\r\n }", "title": "" }, { "docid": "db5bf6dc5ea637d202cc2409a38b707e", "score": "0.6284491", "text": "public TreeNode deserialize(String data) {\n if (data.length() == 0) {\n return null;\n }\n // decode the string into integer list with bfs order\n String[] preStr = data.substring(1, data.length() - 1).split(\",\");\n Integer[] bfsOrder = new Integer[preStr.length];\n for (int i = 0; i < preStr.length; i++) {\n if (preStr[i].trim().equals(\"null\")) {\n bfsOrder[i] = null;\n } else {\n bfsOrder[i] = Integer.parseInt(preStr[i].trim());\n }\n }\n\n // running bfs to build up the tree\n Queue<TreeNode> queue = new LinkedList<TreeNode>();\n TreeNode root = new TreeNode(bfsOrder[0]);\n int cur = 1;\n queue.offer(root);\n while (!queue.isEmpty()) {\n if (cur == bfsOrder.length) {\n break;\n }\n TreeNode curNode = queue.poll();\n if (bfsOrder[cur] != null) {\n curNode.left = new TreeNode(bfsOrder[cur]);\n queue.add(curNode.left);\n }\n cur++;\n if (cur == bfsOrder.length) {\n break;\n }\n if (bfsOrder[cur] != null) {\n curNode.right = new TreeNode(bfsOrder[cur]);\n queue.add(curNode.right);\n }\n cur++;\n }\n return root;\n }", "title": "" }, { "docid": "b36417dbf5e9ce2d83e2a7118024ae02", "score": "0.618635", "text": "public TreeNode deserialize(String data) {\n String treeData = data.substring(1,data.length()-1);\n\n String[] newArray = treeData.split(\",\");\n\n String[] treeArray = new String[newArray.length+1];\n treeArray[0] = null;\n for(int i =1; i < treeArray.length; i++){\n treeArray[i] = newArray[i-1];\n }\n\n TreeNode root = constructTree(1,treeArray);\n return root;\n\n\n }", "title": "" }, { "docid": "1eddaf9d98d22b8eb9ff49a38c3a7dcd", "score": "0.618514", "text": "public TreeNode deserialize(String data) {\n\t\tif (data.length() == 0)\n\t\t\treturn null;\n\t\tString[] arr = data.trim().split(\"\\\\s+\");\n\t\tint i = 0;\n\t\tTreeNode root = new TreeNode(Integer.parseInt(arr[i++]));\n\t\tStack<Pair> st = new Stack<>();\n\t\tPair p = new Pair(root);\n\t\tst.push(p);\n\n\t\twhile (st.size() != 0 && i != arr.length) {\n\t\t\tPair rem = st.pop();\n\n\t\t\tString nex = arr[i++];\n\t\t\tif (nex.length() == 0)\n\t\t\t\tcontinue;\n\n\t\t\tif (rem.status == 0) {\n\t\t\t\tif (nex.equals(\"lnull\")) {\n\t\t\t\t\trem.status++;\n\t\t\t\t\tst.push(rem);\n\t\t\t\t} else {\n\t\t\t\t\tTreeNode tn = new TreeNode(Integer.parseInt(nex));\n\t\t\t\t\trem.node.left = tn;\n\t\t\t\t\trem.status++;\n\t\t\t\t\tst.push(rem);\n\t\t\t\t\tst.push(new Pair(tn));\n\t\t\t\t}\n\t\t\t} else if (rem.status == 1) {\n\t\t\t\tif (nex.equals(\"rnull\")) {\n\t\t\t\t\trem.status++;\n\t\t\t\t\tst.push(rem);\n\t\t\t\t} else {\n\t\t\t\t\tTreeNode tn = new TreeNode(Integer.parseInt(nex));\n\t\t\t\t\trem.node.right = tn;\n\t\t\t\t\trem.status++;\n\t\t\t\t\tst.push(rem);\n\t\t\t\t\tst.push(new Pair(tn));\n\t\t\t\t}\n\t\t\t} else if (rem.status == 2) {\n\t\t\t\t// both child done\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\treturn root;\n\n\t}", "title": "" }, { "docid": "e4428a1267633d516640fa51ed553942", "score": "0.61826885", "text": "public TreeNode deserialize(String data) {\n if (data == null || data.length() == 0 || data.equals(NULL))\n return null;\n\t\tString[] input = data.split(SEP);\n\t\tint[] index = new int[]{0};\n\t\treturn helper(input, index);\n }", "title": "" }, { "docid": "1fea5624bd9e866e7a3973b5bd01b1fc", "score": "0.6154738", "text": "public TreeNode deserialize(String data) {\n\t\tDeque<String> nodes = new LinkedList<>();\n\t\tnodes.addAll(Arrays.asList(data.split(spliter)));\n\t\treturn buildTree(nodes);\n\t}", "title": "" }, { "docid": "288f692a0fff3748a6a311f96122b250", "score": "0.6135744", "text": "public TreeNode deserialize(String data) {\n if (data == null || data.isEmpty()) return null;\n StringTokenizer st = new StringTokenizer(data, \",\");\n Queue<String> queue = new ArrayDeque<>();\n while (st.hasMoreTokens()) queue.offer(st.nextToken());\n return decode(queue);\n }", "title": "" }, { "docid": "83d3c9b9820fdd872dff6bd1de1950fa", "score": "0.6076781", "text": "public TreeNode deserialize(String data) {\n Deque<String> nodes = new LinkedList<>();\n // split data with the spliter\n nodes.addAll(Arrays.asList(data.split(spliter)));\n return buildTree(nodes);\n }", "title": "" }, { "docid": "9241821d5914a3debc889b62fe84039a", "score": "0.60599387", "text": "public TreeNode deserialize(String data[]) {\n if(data !=null && data.length > 0) {\n if(data[index].equalsIgnoreCase(\"X\")) {\n index = index+1;\n return null;\n }\n\n TreeNode node = new TreeNode(Integer.parseInt(data[index]));\n index = index + 1;\n node.left = deserialize(data);\n node.right = deserialize(data);\n return node;\n\n }\n return null;\n }", "title": "" }, { "docid": "0183dc6b9f2bce9890772a2690ab63dc", "score": "0.6044505", "text": "public void decode() { }", "title": "" }, { "docid": "720a289aa615786aea08a813bd0516ea", "score": "0.60430163", "text": "public TreeNode deserialize(String data) {\n if (data == null || data.length() == 0) return null;\n String[] s = data.split(\";\");\n Queue<String> queue = new LinkedList<>(Arrays.asList(s));\n System.out.println(Arrays.toString(s)); // test\n return buildTree(queue);\n }", "title": "" }, { "docid": "f78b75ec4227bcdabf6716a8a52f41a3", "score": "0.603174", "text": "public TreeNode deserialize(String data) {\n if(data == null || data.isEmpty()) return null;\n LinkedList<String> strs = new LinkedList<>(Arrays.asList(data.split(\" \")));\n TreeNode root = new TreeNode(Integer.parseInt(strs.removeFirst()));\n deserializeRecurs(strs, root);\n return root;\n }", "title": "" }, { "docid": "99e2a8589be5806df349a1fe4b569da0", "score": "0.6008702", "text": "public TreeNode deserialize(String data) {\n if (data == null) {\n return null;\n }\n Deque<String> nodes = new LinkedList<>();\n String[] set = data.split(SPLITER);\n for (String s : set) {\n nodes.offerFirst(s);\n }\n return deserialize(nodes);\n }", "title": "" }, { "docid": "325d7d89072b4d3b7b5d0cc3c52374e7", "score": "0.59823143", "text": "public TreeNode deserialize(String data) {\n if(null == data || (\"\".equals(data))) {\n return null;\n }\n\n Queue<String> q = new LinkedList<>();\n q.addAll(Arrays.asList(data.split(\" \")));\n\n /**\n * !!!\n * Here, implicitly, we pass min and max as NULL for Integer (NOT int)\n * This is a better way of setting initial value for min and max.\n * Use Integer.MIN_VALUE and Integer.MAX_VALUE has issues since those\n * 2 values may exist in the tree.\n *\n * This is the trick from LE_98_Validate_BST\n */\n return decode(q, null, null);\n }", "title": "" }, { "docid": "65d27b41c73c60231d98497d42b6b955", "score": "0.59721565", "text": "public TreeNode deserialize(String data) {\n if (data.equals(\"\")) {\n return null;\n }\n String[] array = data.split(\" \");\n if (array[0].equals(\"null\")) {\n return null;\n }\n TreeNode root = new TreeNode(Integer.parseInt(array[0]));\n\n LinkedList<TreeNode> q = new LinkedList<>();\n q.add(root);\n int index = 1;\n while (index < array.length) {\n LinkedList<TreeNode> next = new LinkedList<>();\n while (!q.isEmpty()) {\n TreeNode n = q.remove();\n if (index >= array.length) {\n break;\n }\n String left = array[index];\n if (left.equals(\"null\")) {\n n.left = null;\n } else {\n n.left = new TreeNode(Integer.parseInt(left));\n next.add(n.left);\n }\n index++;\n if (index >= array.length) {\n break;\n }\n String right = array[index];\n if (right.equals(\"null\")) {\n n.right = null;\n } else {\n n.right = new TreeNode(Integer.parseInt(right));\n next.add(n.right);\n }\n index++;\n if (index >= array.length) {\n break;\n }\n }\n\n q = next;\n }\n return root;\n }", "title": "" }, { "docid": "ecf40db7fafea61be818aacad58a0eb1", "score": "0.5942613", "text": "public TreeNode deserialize(String data) {\n Queue<TreeNode> queue = new LinkedList<TreeNode>();\n TreeNode root = null;\n int index = 0;\n if(data.length() == 0) return root;\n String[] single = data.split(\",\");\n root = new TreeNode(Integer.parseInt(single[0]));\n queue.offer(root);\n \n \n while(! queue.isEmpty() && index < single.length) {\n TreeNode cur = queue.poll();\n index++;\n if(index < single.l ength && !single[index].equals(\"N\")) {\n TreeNode left = new TreeNode(Integer.parseInt(single[index]));\n queue.offer(left);\n cur.left = left;\n }\n else cur.left = null;\n index ++;\n if(index < single.length && !single[index].equals(\"N\")) {\n TreeNode right = new TreeNode(Integer.parseInt(single[index]));\n queue.offer(right);\n cur.right = right;\n }\n else cur.right = null;\n }\n return root;\n }", "title": "" }, { "docid": "af06da04186f45e93974d31a1beada08", "score": "0.59192103", "text": "public Node deserialize(String data) {\n \n }", "title": "" }, { "docid": "1b7ba39d74904d6cd2d10286d43b0587", "score": "0.5905925", "text": "public Hydra decode(String encoded){\r\n\t\t\r\n\t\tHydra hydra = new Hydra();\r\n\t\tList<Integer> encodedInt = new ArrayList<Integer>();\r\n\t\tfor (char c : encoded.toCharArray()) encodedInt.add(new Integer(\"\" + c));\r\n\t\t\r\n\t\troot.decode(encodedInt);\r\n\t\t\r\n\t\treturn hydra;\r\n\t}", "title": "" }, { "docid": "8fed99cd1017e0d9125935c83d49693e", "score": "0.5890422", "text": "public TreeNode deserialize(String data) {\n // empty tree\n if (data.length() == 0) {\n return null;\n }\n List<String> list = Arrays.asList(data.split(\",\"));\n list = new ArrayList<>(list); // UnSupportedOperationException http://blog.csdn.net/wangjian5748/article/details/577797\n\n return buildTree(list);\n }", "title": "" }, { "docid": "ed5fbfee0af35b749d42522d304c7de0", "score": "0.58856255", "text": "public TreeNode deserialize(String data) {\n Deque<String> dq = new LinkedList<String>(); \n dq.addAll(Arrays.asList(data.split(\",\")));\n return buildTree(dq);\n }", "title": "" }, { "docid": "dfab8d6cee0f00267e8b0f757a2ddd74", "score": "0.5885314", "text": "public static void decode()\n\t{\n\t\tNode root = new Node((char) 0, null);\n\t\tNode x = root;\n\t\tfor (int i = 1; i < R; i++) {\n\t\t\tNode y = new Node((char) i, null);\n\t\t\tx.next = y;\n\t\t\tx = x.next;\n\t\t}\n\t\tx = null;\n\n\t\t// int length = BinaryStdIn.readInt();\n\t\twhile (!BinaryStdIn.isEmpty()) {\n\t\t\tint indexComp = BinaryStdIn.readInt(8);\n\t\t\tint index = 0;\n\n\t\t\t// Find index\n\t\t\tboolean found = false;\n\t\t\tx = root;\n\t\t\tNode y = root;\n\t\t\twhile (!found) {\n\t\t\t\tif (index == indexComp) {\n\t\t\t\t\tfound = true;\n\t\t\t\t\tBinaryStdOut.write(y.ch);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tNode z = y.next;\n\t\t\t\tx = y;\n\t\t\t\ty = z;\n\t\t\t\tindex++;\n\t\t\t}\n\n\t\t\t// Move to front\n\t\t\tif (x.ch != y.ch) {\n\t\t\t\tx.next = y.next;\n\t\t\t\tNode z = root;\n\t\t\t\troot = y;\n\t\t\t\ty.next = z;\n\t\t\t}\n\t\t}\n\t\tBinaryStdOut.close();\n\t}", "title": "" }, { "docid": "03a80d0096be750996e93f9f48a09c26", "score": "0.5880056", "text": "public static String decode(String encodedText){\r\n //this passes the tree and the encoded text to a helper function.\r\n return deCoderSearch(tree.peek(), encodedText);\r\n }", "title": "" }, { "docid": "610044bc7afbe5715891d7a4133f78bb", "score": "0.5871038", "text": "public TreeNode deserialize(String data) {\r\n if (data == \"\") {\r\n return null;\r\n }\r\n String[] dataList = data.substring(1, data.length() - 1).split(\",\");\r\n TreeNode root = new TreeNode(Integer.parseInt(dataList[0]));\r\n Queue<TreeNode> queue = new LinkedList<>();\r\n queue.offer(root);\r\n int i = 1;\r\n while (!queue.isEmpty()) {\r\n TreeNode node = queue.poll();\r\n if (!\"null\".equals(dataList[i])) {\r\n node.left = new TreeNode(Integer.parseInt(dataList[i]));\r\n queue.offer(node.left);\r\n }\r\n i++;\r\n if (!\"null\".equals(dataList[i])) {\r\n node.right = new TreeNode(Integer.parseInt(dataList[i]));\r\n queue.offer(node.right);\r\n }\r\n i++;\r\n }\r\n return root;\r\n }", "title": "" }, { "docid": "bbc3a64e6ffc14b4a085a6c6998288df", "score": "0.5862551", "text": "public TreeNode deserialize(String data) {\n data = data.substring(1, data.length() - 1);\n if (\"\".equals(data) || data.length() == 0) {\n return null;\n }\n String[] arr = data.split(\",\");\n TreeNode root = new TreeNode(Integer.valueOf(arr[0]));\n LinkedList<TreeNode> queue = new LinkedList<>();\n queue.addLast(root);\n\n int i = 1;\n while (!queue.isEmpty() && i < arr.length) {\n TreeNode pop = queue.pollFirst();\n if (\"null\".equals(arr[i])) {\n pop.left = null;\n }\n else {\n pop.left = new TreeNode(Integer.valueOf(arr[i]));\n queue.addLast(pop.left);\n }\n\n if (i + 1 >= arr.length) break;\n if (\"null\".equals(arr[i + 1])) {\n pop.right = null;\n }\n else {\n pop.right = new TreeNode(Integer.valueOf(arr[i + 1]));\n queue.addLast(pop.right);\n }\n i += 2;\n }\n System.currentTimeMillis();\n return root;\n }", "title": "" }, { "docid": "e03ce0d06ad541b056fd0d94e3f2742e", "score": "0.5855458", "text": "public void Decoding(HuffNode topMost){\n\t\tHuffNode node = topMost;\n\t\tString decoded_string = \"\";\n\t\tfor (int i = 0; i < code_bits.length(); i++){\n\t\t\t if(Character.getNumericValue(code_bits.charAt(i))==0){\n\t\t\t\tif (node.left_child != null){\n\t\t\t\t\tnode = node.left_child;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(Character.getNumericValue(code_bits.charAt(i))==1){\n\t\t\tif (node.right_child != null){\n\t\t\t\tnode = node.right_child;\n\t\t\t}\n\t\t\t}\n\t\t\t \n\t\t\tif(node.isleaf()){\n\t\t\t\t\tdecoded_string = decoded_string + node.name;\n\t\t\t\t\tnode = topMost;\n\t\t\t\t}\n\t\t}\n\t\t System.out.println(\"\\nDecoded Text: \");\n\t\t System.out.println(decoded_string);\n\t}", "title": "" }, { "docid": "8531e0627ba18861aba585a1d88c3a87", "score": "0.5848894", "text": "public TreeNode deserialize2(String data) {\n\t\tif (data.length() == 0)\n\t\t\treturn null;\n\t\tQueue<String> q = new LinkedList<>(Arrays.asList(data.split(\",\")));\n\t\treturn deserializeHelper(q, Integer.MIN_VALUE, Integer.MAX_VALUE);\n\t}", "title": "" }, { "docid": "44dda0e9e9bfd8733431d65f4cdb80d0", "score": "0.58488524", "text": "public TreeNode deserialize(String data) {\n Queue<String> queue = new LinkedList<>(Arrays.asList(data.split(\",\")));\n return deserialize(queue);\n }", "title": "" }, { "docid": "34787998efa2296ca34b42b37e84179b", "score": "0.5847261", "text": "public TreeNode deserialize(String data) {\n if(data == null || \"\".equals(data)) {\n return null;\n }\n String[] parts = data.split(SPLITER);\n Queue<Integer> queue = new LinkedList<>();\n for (String part: parts) {\n queue.add(Integer.parseInt(part));\n }\n return getNode(queue);\n }", "title": "" }, { "docid": "6f1512712753a48d7043ef3f3e99ee76", "score": "0.58315307", "text": "public static TreeNode deserialize(String data) {\n Queue<String> que = new LinkedList<>(Arrays.asList(data.split(spliter)));\n return buildTree(que);\n }", "title": "" }, { "docid": "4fe3a68b68245245a9c1f05af1f9c253", "score": "0.5824638", "text": "public TreeNode deserialize(String data) {\n List<String> lst = new ArrayList<>(Arrays.asList(data.split(\",\")));\n return rdeserialize(lst);\n }", "title": "" }, { "docid": "1983962dd239dbf8dad46b4406a28e2c", "score": "0.5792408", "text": "public TreeNode deserialize(String data) {\n if(data.length() == 0) return null;\n Queue<TreeNode> queue = new LinkedList<>();\n String[] values = data.split(\" \");\n \n TreeNode root = new TreeNode(Integer.valueOf(values[0]));\n queue.offer(root);\n for (int i = 1; i < values.length; i++) {\n TreeNode parent = queue.poll();\n \n if (!values[i].equals(\"#\")) {\n TreeNode left = new TreeNode(Integer.valueOf(values[i]));\n parent.left = left;\n queue.offer(left);\n }\n \n i++;\n \n if (!values[i].equals(\"#\")) {\n TreeNode right = new TreeNode(Integer.valueOf(values[i]));\n parent.right = right;\n queue.offer(right);\n }\n }\n return root;\n }", "title": "" }, { "docid": "9ca7d0166a4acdb9812dd533c81b690f", "score": "0.57750654", "text": "public TreeNode deserialize(String data) {\n String[] data_array = data.split(\",\");\n List<String> data_list = new LinkedList<String>(Arrays.asList(data_array));\n return rdeserialize(data_list);\n }", "title": "" }, { "docid": "428ec60c6a1ce4f6939600e6cf8e6c76", "score": "0.57716334", "text": "public TreeNode deserialize(String data) {\n if(data.equals(\"\") || data.equals(\"#\")) return null;\n Queue<String> nodes = new LinkedList();\n nodes.addAll(Arrays.asList(data.split(\",\")));\n return helper(nodes);\n }", "title": "" }, { "docid": "15d4b9ee04e145911058fd1230592b92", "score": "0.5768494", "text": "public TreeNode deserialize(String data) {\n if(data.equals(\"[]\")) return null;\n String[] vals = data.substring(1,data.length()-1).split(\",\");\n Queue<TreeNode> queue = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.parseInt(vals[0]));\n queue.add(root);\n int index = 1;\n while (!queue.isEmpty()){\n TreeNode node = queue.poll();\n if(node != null){\n if(!vals[index].equals(\"null\")) {\n node.left = new TreeNode(Integer.parseInt(vals[index]));\n queue.add(node.left);\n }else {\n node.left = null;\n }\n index++;\n if(!vals[index].equals(\"null\")) {\n node.right = new TreeNode(Integer.parseInt(vals[index]));\n queue.add(node.right);\n }else {\n node.right = null;\n }\n index++;\n }\n }\n return root;\n }", "title": "" }, { "docid": "b8e0eaa2ccf97aa4c00736887faa5968", "score": "0.57674766", "text": "public TreeNode deserialize(String data) {\n if (data.isEmpty()) return null;\n String[] tokens = data.trim().split(\" \");\n if (tokens.length == 0 || tokens[0].equals(\"#\")) return null;\n TreeNode root = new TreeNode(Integer.parseInt(tokens[0]));\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n int index = 1;\n while (!queue.isEmpty()) {\n if (index == tokens.length) break;\n TreeNode node = queue.poll();\n if (!tokens[index].equals(\"#\")) {\n node.left = new TreeNode(Integer.parseInt(tokens[index]));\n queue.offer(node.left);\n }\n if (++index == tokens.length) break;\n if (!tokens[index].equals(\"#\")) {\n node.right = new TreeNode(Integer.parseInt(tokens[index]));\n queue.offer(node.right);\n }\n if (++index == tokens.length) break;\n }\n return root;\n }", "title": "" }, { "docid": "5bb76a3cc5f70c96388e2d5c946951ba", "score": "0.5766479", "text": "public static TreeNode deserialize(String data) {\n if(data.length() == 0)\n return null;\n String[] list = data.split(\" \");\n TreeNode dummy = new TreeNode(0);\n deserializedfs(list, 0, dummy, true, Integer.MIN_VALUE, Integer.MAX_VALUE);\n return dummy.left;\n }", "title": "" }, { "docid": "ee4281a62a01715dbefb69e45898bd1a", "score": "0.5763473", "text": "public TreeNode deserialize(String data) {\n if (data == null || data.length() == 0) return null;\n \n String[] nodes = data.split(\",\");\n int[] values = new int[nodes.length];\n for (int i = 0; i < values.length; i++) {\n values[i] = Integer.valueOf(nodes[i]);\n }\n return buildTree(values, 0, nodes.length - 1);\n }", "title": "" }, { "docid": "087d36e30d1b1b601871a7c52674e0c2", "score": "0.5752638", "text": "public TreeNode deserialize(String data) {\n if (data.length() == 0) {\n return null;\n }\n String[] strs = data.split(\"#\");\n int[] position = new int[1];\n position[0] = 0;\n return helper(strs, position, Integer.MIN_VALUE, Integer.MAX_VALUE);\n }", "title": "" }, { "docid": "d67422dc480faf57a04a9da7b5f335d2", "score": "0.5748573", "text": "public static TreeNode deserialize(String data) {\n // write your code here\n if (data.equals(\"{}\")) return null;\n String[] set = data.substring(1, data.length() - 1).split(\",\");\n ArrayList<TreeNode> list = new ArrayList<TreeNode>();\n TreeNode root = new TreeNode(Integer.parseInt(set[0]));\n list.add(root);\n int index = 0;\n boolean isLeftChild = true;\n for (int i = 1; i < set.length; ++i) {\n if (!set[i].equals(\"#\")) {\n TreeNode node = new TreeNode(Integer.parseInt(set[i]));\n if (isLeftChild) {\n list.get(index).left = node;\n } else {\n list.get(index).right = node;\n }\n list.add(node);\n }\n if (!isLeftChild) {\n index++;\n }\n isLeftChild = !isLeftChild;\n }\n return root;\n }", "title": "" }, { "docid": "6621a1a5e9fe9cf78ee6b9dd65314f9a", "score": "0.57438385", "text": "public void genRATree() throws UnsupportedEncodingException, ParseException{\n\t\tInputStream ins = new ByteArrayInputStream(this.input.getBytes(\"UTF-8\"));\n\t\tRATree ra = new RATree(ins, \"UTF-8\");\n\t\tthis.raTree = ra.Start();\n\t\tthis.raTree.dump(\" \");\n\t}", "title": "" }, { "docid": "ea9442eefb5ff3b019b7e64c8eb73623", "score": "0.5729247", "text": "public TreeNode deserialize(String data) {\n String[] split = data.split(\",\");\n if(split.length == 0 || split[0].equals(\"\")) return null;\n List<TreeNode> nodes = new ArrayList<>();\n nodes.add(new TreeNode(Integer.valueOf(split[0])));\n\n\n int nodeIndex = 0;\n int valueIndex = 1;\n\n\n while(nodeIndex < nodes.size()){\n TreeNode temp = nodes.get(nodeIndex);\n if(valueIndex >= split.length){\n break;\n }\n String left = split[valueIndex++];\n String right = split[valueIndex++];\n if(!left.equalsIgnoreCase(\"null\")){\n temp.left = new TreeNode(Integer.valueOf(left));\n nodes.add(temp.left);\n }\n if(!right.equalsIgnoreCase(\"null\")){\n temp.right = new TreeNode(Integer.valueOf(right));\n nodes.add(temp.right);\n }\n\n nodeIndex++;\n }\n\n\n\n return nodes.get(0);\n }", "title": "" }, { "docid": "1bffd44fbd89a0a6a58cb9a3f6c95429", "score": "0.571286", "text": "public TreeNode deserialize(String data) {\n if (data.length() == 0) {\n return null;\n }\n String[] s = data.split(\",\");\n int i = 0;\n int val = Integer.parseInt(s[i]);\n TreeNode root = new TreeNode(val);\n root.left = subDeserialize(s, i * 2 + 1);\n root.right = subDeserialize(s, i * 2 + 2);\n return root;\n }", "title": "" }, { "docid": "e973b0e328f5cfea312ddc10183993ac", "score": "0.56962484", "text": "public TreeNode deserialize(String data) {\n if(data == null)\n return null;\n int[] t = {0};\n String[] a = data.split(\",\");\n return helper(a, t);\n }", "title": "" }, { "docid": "4e92e56b5058a4a62f5b6cbd4cde291f", "score": "0.56777364", "text": "public TreeNode deserialize(String data) {\n\t\tif (data.equals(\"[null]\"))\n\t\t\treturn null;\n\t\tdata = data.substring(1, data.length() - 1);\n\t\tString[] arr = data.split(\",\");\n\t\tint i = 0;\n\t\tTreeNode root = new TreeNode(Integer.parseInt(arr[i++].trim()));\n\t\tQueue<TreeNode> q = new LinkedList<>();\n\t\tq.add(root);\n\t\twhile (!q.isEmpty()) {\n\t\t\tint s = q.size();\n\t\t\tfor (int j = 0; j < s; j++) {\n\t\t\t\tTreeNode temp = q.poll();\n\t\t\t\tString s2 = arr[i++].trim();\n\t\t\t\tString s3 = arr[i++].trim();\n\t\t\t\tif (!s2.equals(\"null\")) {\n\t\t\t\t\ttemp.left = new TreeNode(Integer.parseInt(s2));\n\t\t\t\t\tq.add(temp.left);\n\t\t\t\t}\n\t\t\t\tif (!s3.equals(\"null\")) {\n\t\t\t\t\ttemp.right = new TreeNode(Integer.parseInt(s3));\n\t\t\t\t\tq.add(temp.right);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn root;\n\t}", "title": "" }, { "docid": "86685e3aa328037d25ce8330a15e789b", "score": "0.56707305", "text": "@Override\r\n\tpublic void decode() {\n\t\t\r\n\t}", "title": "" }, { "docid": "07c4e4009ee217c7ae7bd4d0bbaddf89", "score": "0.5668832", "text": "public TreeNode deserialize(String data) {\n String[] strings = data.split(\",\");\n Deque<String> deque = new LinkedList<>();\n // 先进先出 是一个队列 用队列来实现不用全局变量\n for (String string : strings) {\n deque.offer(string);\n }\n return reConstruct(deque);\n }", "title": "" }, { "docid": "4587ea3aee6c5bc3667b56b68b3ddeed", "score": "0.5658606", "text": "public TreeNode deserialize(String data) {\n if(data.equals(\"[]\")) return null;\n String[] vals = data.substring(1, data.length() - 1).split(\",\");\n TreeNode root = new TreeNode(Integer.parseInt(vals[0]));\n Queue<TreeNode> queue = new LinkedList<TreeNode>() {{ add(root); }};\n int i = 1;\n while(!queue.isEmpty()) {\n TreeNode node = queue.poll();\n if(!vals[i].equals(\"null\")) {\n node.left = new TreeNode(Integer.parseInt(vals[i]));\n queue.add(node.left);\n }\n i++;\n if(!vals[i].equals(\"null\")) {\n node.right = new TreeNode(Integer.parseInt(vals[i]));\n queue.add(node.right);\n }\n i++;\n }\n return root;\n }", "title": "" }, { "docid": "c383631c762d4249a4d683deab4cf668", "score": "0.5654495", "text": "public TreeNode deserialize(String data) {\n List<String> values = new LinkedList<>(Arrays.asList(data.split(\",\")));\n\n return doDeserialize(values);\n }", "title": "" }, { "docid": "d23cad655a212cb7727e58fa2bf584d4", "score": "0.5645617", "text": "public TreeNode deserialize(String data) {\n String[] values = data.split(\",\");\n TreeNode root = (values[0].equals(\"*\")) ? null : new TreeNode(Integer.parseInt(values[0]));\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n int i = 0;\n while(!queue.isEmpty()){\n TreeNode current = queue.poll();\n if(current == null){\n continue;\n }\n if(2*i+1 < values.length){\n current.left = (values[2*i+1].equals(\"*\")) ? null : new TreeNode(Integer.parseInt(values[2*i+1]));\n queue.offer(current.left);\n }\n if(2*i+2 < values.length){\n current.right = (values[2*i+2].equals(\"*\")) ? null : new TreeNode(Integer.parseInt(values[2*i+2]));\n queue.offer(current.right);\n }\n i++;\n }\n return root;\n }", "title": "" }, { "docid": "2c1a4b91674cd4ac3501c0cd7e261bfd", "score": "0.5644341", "text": "public TreeNode deserialize(String data) {\n if ((data == null || \"\".equals(data)) || (data.length() <=2)){return null;}\n data = data.substring(1,data.length()-1);\n String[] nodes = data.split(\",\");\n Queue<TreeNode> queue = new LinkedList<>();\n TreeNode root = createTreeNode(nodes[0]);\n queue.add(root);\n\n int i = 1;\n while (!queue.isEmpty() && i < nodes.length){\n TreeNode node = queue.poll();\n if (node == null){continue;}\n node.left = createTreeNode(nodes[i]);\n node.right = createTreeNode(nodes[i+1]);\n\n i += 2;\n queue.add(node.left);\n queue.add(node.right);\n }\n return root;\n }", "title": "" }, { "docid": "09baa1adab83dcb2ce7aead3d4eef39f", "score": "0.56410736", "text": "public TreeNode deserialize(String data) {\n if (data == null) {\n return null;\n }\n\n int[] t = {0};\n String[] arr = data.split(\",\");\n\n return helper(arr, t);\n }", "title": "" }, { "docid": "13621ad6eb974fe6b6b20035d7256477", "score": "0.5637914", "text": "public TreeNode deserialize(String data) {\r\n String[] str = data.split(\",\");\r\n List<String> list = new LinkedList<String>(Arrays.asList(str));\r\n return rdeserialize(list);\r\n }", "title": "" }, { "docid": "d2c9fc2b5b2baf9bcc030be37639489d", "score": "0.5607643", "text": "public TreeNode deserialize(String data) {\n if (data.isEmpty()) {\n return null;\n }\n String[] vals = data.split(\",\");\n int i = 0;\n TreeNode root = new TreeNode(Integer.valueOf(vals[i++]));\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n while (!queue.isEmpty()) {\n TreeNode r = queue.poll();\n if (!vals[i].equals(\"null\")) {\n r.left = new TreeNode(Integer.valueOf(vals[i]));\n queue.offer(r.left);\n }\n i++;\n if (!vals[i].equals(\"null\")) {\n r.right = new TreeNode(Integer.valueOf(vals[i]));\n queue.offer(r.right);\n }\n i++;\n }\n return root;\n }", "title": "" }, { "docid": "6592e2ea468b3e2443f14184621368fd", "score": "0.5599993", "text": "public static void testCodingTree() {\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"CodingTree Testing\");\r\n\t\tSystem.out.println();\r\n\t\t//creating string and passing it to new coding tree\r\n\t\tString testString = \"Testing Compression for words huffman encoding\";\r\n\t\tCodingTree myTree = new CodingTree();\r\n\t\tmyTree.CodingTree(testString);\r\n\t\t//printing tested string and the codes and the Binary string representation of the compressed string\r\n\t\tSystem.out.println(\"String for testing is: \" +testString);\r\n\t\tSystem.out.println(myTree.codes.toString());\r\n\t\tSystem.out.println(myTree.bits);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "90e31a94a81e1967c3096d2ab059c521", "score": "0.55963635", "text": "public TreeNode deserialize1(String data) {\n String[] data_array = data.split(\",\");\n List<String> data_list = new LinkedList<String>(Arrays.asList(data_array));\n return rdeserialize(data_list);\n }", "title": "" }, { "docid": "7be0fc821b5967437bc14ec99b5aa9ba", "score": "0.55893344", "text": "T decode() throws IOException;", "title": "" }, { "docid": "850fa294f9eb5ccb6c3cab353ea08cb0", "score": "0.55661595", "text": "public TreeNode deserialize(String data) {\n \tif(data == null || data.equals(\"\")){\n return null;\n }\n \n String[] array = data.split(\",\");\n int n = array.length;\n \n if(array[0].equals(\"#\")){\n return null;\n }\n \n TreeNode root = new TreeNode(Integer.parseInt(array[0]));\n ArrayList<TreeNode> list = new ArrayList<TreeNode>();\n list.add(root);\n int index = 0;\n \n for(int i = 1; i < n; ++i){\n if(!array[i].equals(\"#\")){\n TreeNode node = new TreeNode(Integer.parseInt(array[i]));\n \n if(i % 2 == 1){\n list.get(index).left = node;\n } else{\n list.get(index).right = node;\n }\n \n list.add(node); \n }\n \n if(i % 2 == 0){\n index++;\n }\n }\n \n return root;\n }", "title": "" }, { "docid": "1afb283eb8bf36453286313c7ddb86b6", "score": "0.5563902", "text": "public TreeNode deserialize(String data) {\n if (data == null || \"\".equals(data)) {\n return null;\n }\n String[] strs = data.split(\",\");\n Queue<Pair<TreeNode, TreeNode>> queue = new LinkedList<>();\n TreeNode head = new TreeNode();\n Pair<TreeNode, TreeNode> headPair = new Pair<>(null, head);\n queue.offer(headPair);\n for (String str : strs) {\n Pair<TreeNode, TreeNode> currentPair = queue.poll();\n if (currentPair == null) {\n break;\n }\n TreeNode current = currentPair.value;\n TreeNode currentParent = currentPair.key;\n if (\"null\".equals(str)) {\n if (current.val == 0) {\n // 左节点\n currentParent.left = null;\n } else {\n currentParent.right = null;\n }\n } else {\n if (currentParent != null) {\n if (current.val == 0) {\n currentParent.left = current;\n } else {\n currentParent.right = current;\n }\n }\n // 暂用0和1标识左右节点\n TreeNode left = new TreeNode(0);\n Pair<TreeNode, TreeNode> leftParentPair = new Pair<>(current, left);\n TreeNode right = new TreeNode(1);\n Pair<TreeNode, TreeNode> rightParentPair = new Pair<>(current, right);\n queue.offer(leftParentPair);\n queue.offer(rightParentPair);\n current.val = Integer.parseInt(str);\n\n }\n }\n return head;\n }", "title": "" }, { "docid": "0498c5b0acc0360d7903c4cf6f685aba", "score": "0.55558413", "text": "public TreeNode deserialize(String data) {\r\n if (data == null || \"null\".equals(data)) {\r\n return null;\r\n }\r\n\r\n String[] strs = data.split(\",\");\r\n LinkedList<TreeNode> queue = new LinkedList<>();\r\n TreeNode root = null;\r\n for (int i = 0; i < strs.length; ) {\r\n if (queue.isEmpty()) {\r\n root = new TreeNode(Integer.parseInt(strs[i++]));\r\n queue.addLast(root);\r\n }\r\n\r\n TreeNode p = queue.removeFirst();\r\n if (!\"null\".equals(strs[i])) {\r\n p.left = new TreeNode(Integer.parseInt(strs[i]));\r\n queue.addLast(p.left);\r\n }\r\n i++;\r\n if (!\"null\".equals(strs[i])) {\r\n p.right = new TreeNode(Integer.parseInt(strs[i]));\r\n queue.addLast(p.right);\r\n }\r\n i++;\r\n }\r\n return root;\r\n }", "title": "" }, { "docid": "d76e000c7608a17b0867bc100582496c", "score": "0.5542517", "text": "public TreeNode deserialize(String data) {\n\n if (data == null || data.length() == 0) {\n return null;\n }\n Queue<TreeNode> q = new LinkedList<>();\n String[] strs = data.split(\",\");\n TreeNode root = new TreeNode(Integer.parseInt(strs[0]));\n q.offer(root);\n\n boolean isLeft = true;\n for (int i = 1; i < strs.length; i++) {\n if (!strs[i].equals(\"#\")) {\n TreeNode child = new TreeNode(Integer.parseInt(strs[i]));\n\n if (isLeft) {\n q.peek().left = child;\n } else {\n q.peek().right = child;\n }\n q.offer(child);\n }\n if (!isLeft) {\n q.poll();\n }\n isLeft = !isLeft;\n }\n\n return root;\n }", "title": "" }, { "docid": "401f007465bf6769b19f8fe925ab6d3f", "score": "0.5529549", "text": "public TreeNode deserializeLOI(String data) {\n String[] nodes = data.split(COMMA);\n Deque<TreeNode> q = new LinkedList<>();\n TreeNode root = readNode(nodes[0]);\n if (root == null) return null; // need handle 0 node in the tree, empty string case\n int count = 0;\n q.add(root);\n while (!q.isEmpty()) {\n int size = q.size();\n for (int i = 0; i < size; i++) {\n TreeNode n = q.remove();\n n.left = readNode(nodes[count + 1]);\n n.right = readNode(nodes[count + 2]);\n if (n.left != null) q.add(n.left);\n if (n.right != null) q.add(n.right);\n count += 2;\n }\n }\n return root;\n }", "title": "" }, { "docid": "f065889a0ce6ac563100bed64c51d3c7", "score": "0.5512065", "text": "public static TreeNode deserialize(String data) {\n\t\tif (data.isEmpty()) return null;\n\t\tQueue<String> q = new LinkedList<String>(Arrays.asList(data.split(\",\")));\n\t\treturn deserialize(q, Integer.MIN_VALUE, Integer.MAX_VALUE);\n\t}", "title": "" }, { "docid": "25a9e3b13438496d12f58dd8e1967a95", "score": "0.548808", "text": "public TreeNode deserialize1(String data) {\n if (data == null || data.length() == 0) return null;\n String[] vals = data.split(\",\");\n if (vals == null || vals.length == 0) return null;\n\n String n = \"null\";\n TreeNode root = new TreeNode(Integer.parseInt(vals[0]));\n TreeNode cur, next;\n Deque<TreeNode> dq = new ArrayDeque<>();\n int size = 0, index = 1;\n dq.offer(root);\n\n while (!dq.isEmpty()) {\n size = dq.size();\n for (int i = 0; i < size; ++i) {\n cur = dq.poll();\n\n for (int j = index; j < index + 2 && j < vals.length; ++j) {\n if (vals[j].equals(n)) {\n if (j % 2 == 1) {\n cur.left = null;\n } else {\n cur.right = null;\n }\n } else {\n next = new TreeNode(Integer.parseInt(vals[j]));\n dq.offer(next);\n if (j % 2 == 1) {\n cur.left = next;\n } else {\n cur.right = next;\n }\n }\n }\n\n index += 2;\n }\n }\n\n return root;\n }", "title": "" }, { "docid": "e51c9bc7abde20908260b20c5faacced", "score": "0.5486203", "text": "public MorseCodeTree() {\n\t\troot = null;\n\t\tbuildTree();\n\t}", "title": "" }, { "docid": "26c65e3cb397b808e999e9116e559844", "score": "0.5453946", "text": "public TreeNode deserialize(String data) {\n if (data == null || data.length() < 2 || data.equals(\"[]\")) {\n return null;\n }\n data = data.trim().substring(1, data.length() - 1);\n String[] vals = data.split(\",\");\n boolean left = true;\n Deque<TreeNode> queue = new LinkedList<>();\n TreeNode head = null;\n for (int i = 0; i < vals.length; ++i) {\n if (vals[i].equals(\"null\")) {\n if (!left) {\n queue.poll();\n }\n } else {\n if (queue.isEmpty()) {\n head = new TreeNode(Integer.valueOf(vals[i]));\n queue.offer(head);\n continue;\n } else {\n if (left) {\n TreeNode node =\n new TreeNode(Integer.valueOf(vals[i]));\n queue.peek().left = node;\n queue.offer(node);\n } else {\n TreeNode node =\n new TreeNode(Integer.valueOf(vals[i]));\n queue.peek().right = node;\n queue.offer(node);\n queue.poll();\n }\n }\n }\n left = !left;\n }\n\n return head;\n }", "title": "" }, { "docid": "372062f7522c7c753e6900667bdfb9a6", "score": "0.5442385", "text": "public TreeNode deserialize(String data) {\n if (data == null || data.equals(\"\") || data.length() <= 2) {\n return null;\n }\n String s = data.replaceAll(\"\\\\[\", \"\").replaceAll(\"\\\\]\", \"\");\n String[] split = s.split(\",\");\n if (split.length == 0) {\n return null;\n }\n TreeNode treeNode = null;\n LinkedList<String> linkedList = new LinkedList();\n LinkedList<TreeNode> nodeLinkedList = new LinkedList();\n for (String val : split) {\n linkedList.add(val);\n }\n TreeNode head = null;\n while (!linkedList.isEmpty()) {\n String val = linkedList.pop();\n if (treeNode == null) {\n treeNode = new TreeNode(Integer.valueOf(val));\n nodeLinkedList.push(treeNode);\n head = treeNode;\n } else {\n if (!nodeLinkedList.isEmpty()) {\n TreeNode node = nodeLinkedList.peekLast();\n node.left = val.trim().equals(\"null\") ? null : new TreeNode(Integer.valueOf(val.trim()));\n val = linkedList.pop();\n node.right = val.trim().equals(\"null\") ? null : new TreeNode(Integer.valueOf(val.trim()));\n nodeLinkedList.pollLast();\n if (node.left != null) {\n nodeLinkedList.push(node.left);\n }\n if (node.right != null) {\n nodeLinkedList.push(node.right);\n }\n\n }\n }\n }\n return head;\n }", "title": "" }, { "docid": "b032d2e7fa7ad392e232dca80a868d80", "score": "0.5386363", "text": "protected Tree(Object data) {\n\tthis.data = data;\n }", "title": "" }, { "docid": "f0042766c91fef7b772b3af0ed836d9a", "score": "0.53785", "text": "public TreeNode deserialize(String data) {\n if (data.equals(\"null\")) {\n return null;\n }\n\n String[] strings = data.split(\",\");\n Queue<Integer> queue = new LinkedList<>();\n\n for (String string : strings) {\n queue.offer(Integer.parseInt(string));\n }\n\n return getNode(queue);\n }", "title": "" }, { "docid": "4367c3460844f52ea0e711441230afe4", "score": "0.53627366", "text": "public LeafTree(Object data) {\n\tsuper(data);\n }", "title": "" }, { "docid": "45909f8e519acf0d351ec4dfd77edec4", "score": "0.5351595", "text": "public static TreeNode deserialize(String data) {\n Deque<String> queue = new LinkedList<>();\n\n queue.addAll(Arrays.asList(data.split(DELIMIT)));\n return doDeserialize(queue);\n }", "title": "" }, { "docid": "711ec954fffc99e0314da1bae3777db6", "score": "0.5323019", "text": "@Test\n public void testSerialize() {\n // 7,3,5,null,null,8\n /*\n TreeNode root = new TreeNode(7);\n root.left = new TreeNode(3);\n root.right = new TreeNode(8);\n root.left.left = new TreeNode(5);\n root.left.right = new TreeNode(4);\n root.left.left.left = null;\n root.left.left.right = null;\n System.out.println(\"----root--\"+serialize(root));\n */\n\n /*\n // -1,0,1\n TreeNode root = new TreeNode(-1);\n root.left = new TreeNode(0);\n root.right = new TreeNode(1);\n //System.out.println(\"----root--\"+serialize(root));\n String str = serialize(root);\n TreeNode node = deserialize(str.split(\",\"));\n System.out.println(node);\n */\n\n // [1,2]\n TreeNode root = new TreeNode(1);\n root.left = new TreeNode(2);\n System.out.println(\"----root--\"+serialize(root));\n String str = serialize(root);\n str = \"1,2\";\n TreeNode node = deserialize(str.split(\",\"));\n\n }", "title": "" }, { "docid": "1762c438f33ef3c495b7c30f94c8171a", "score": "0.5320662", "text": "public String decode(String input){\n String message = \"\";\n Tree tmpTree = encoder;\n\n for (int i=0; i<input.length(); i++) {\n if (input.charAt(i) == '0') {\n tmpTree = tmpTree.left;\n } else if (input.charAt(i) == '1') {\n tmpTree = tmpTree.right;\n } else {\n throw new BadDecoding(\"Non-zero found in encoded message\");\n }\n\n if (tmpTree.isLeaf()) {\n message = message + tmpTree.data;\n tmpTree = encoder;\n }\n\n }\n return message;\n }", "title": "" }, { "docid": "472d19331639d69d328d67c4455f26be", "score": "0.52876645", "text": "public String getTreeData() {\n return treeData;\n }", "title": "" }, { "docid": "b7b24a07843619578671fdc37c134e7b", "score": "0.52518046", "text": "public static void decompress(CodeTree code, BitInputStream in, OutputStream out) throws IOException {\n HuffmanDecoder dec = new HuffmanDecoder(in);\n dec.codeTree = code;\n while (true) {\n int symbol = dec.read();\n if (symbol == 256) // EOF symbol\n break;\n out.write(symbol);\n }\n }", "title": "" }, { "docid": "52a52a33155f128a0de3fffa4fb45056", "score": "0.5219869", "text": "public Vector<Instruction> decodeTree(Tree gene) {\n\t// initialize what we will be returning:\n\tVector<Instruction> ret = new Vector<Instruction>();\n\t// collect together the 2 layers, loop because we will do this\n\t// all the way down\n\tVector<Tree> currentLayer = new Vector<Tree>();\n\tcurrentLayer.add(gene); // start at the root\n\tint instructionPointer = 1;\n\twhile(currentLayer.size() > 0) {\n\t Vector<Tree> nextLayer = new Vector<Tree>();\n\t for(int i=0; i<currentLayer.size(); i++) {\n\t\tfor(Tree t : currentLayer.get(i).getChildren()) {\n\t\t nextLayer.add(t);\n\t\t}\n\t }\n\n\t // rest of code here\n\t int nodesExplored = 0; // how many nextLayer nodes have\n\t // been accounted for\n\t for(int i=0; i<currentLayer.size(); i++) {\n\t\tTree node = currentLayer.get(i);\n\t\t\n\t\t// add instruction\n\t\tret.add(decodeString(node.getValue()));\n\t\tinstructionPointer++;\n\t\t\n\t\t// calculate the amount of nodes in the current layer\n\t\t// not reached yet\n\t\tint nodesToGo = currentLayer.size() - (i + 1);\n\t\t\n\t\t// ifwall\n\t\tif(node.get(0) != null) { // make sure there is a node\n\t\t int pointer = instructionPointer + 6 +\n\t\t\t7*( nodesToGo + nodesExplored);\n\t\t ret.add(new Instruction(6, pointer));\n\t\t nodesExplored++;\n\t\t} else {\n\t\t ret.add(new Instruction(6, 1));\n\t\t}\n\t\tinstructionPointer++;\n\n\t\t// ifsame\n\t\tif(node.get(1) != null) {\n\t\t int pointer = instructionPointer + 5 + \n\t\t\t7*( nodesToGo + nodesExplored);\n\t\t ret.add(new Instruction(7, pointer));\n\t\t nodesExplored++;\n\t\t} else {\n\t\t ret.add(new Instruction(7,1));\n\t\t}\n\t\tinstructionPointer++;\n\t\t\n\t\t// ifenemy, we want to skip the next instruction,\n\t\t// infect, and then jump to our post-enemy\n\t\t// instructions\n\t\tret.add(new Instruction(8, instructionPointer + 2));\n\t\tinstructionPointer++;\n\t\t\n\t\t// default\n\t\tif(node.get(2) != null) {\n\t\t int pointer = instructionPointer + 3 +\n\t\t\t7*( nodesToGo + nodesExplored);\n\t\t ret.add(new Instruction(10, pointer));\n\t\t nodesExplored++;\n\t\t} else {\n\t\t ret.add(new Instruction(10, 1));\n\t\t}\n\t\tinstructionPointer++;\n\t\t\n\t\t// infect\n\t\tif(node.get(3) != null) {\n\t\t int pointer = instructionPointer + 2 + \n\t\t\t7*(nodesToGo + nodesExplored);\n\t\t ret.add(new Instruction(4, pointer));\n\t\t nodesExplored++;\n\t\t} else {\n\t\t ret.add(new Instruction(4, 1));\n\t\t}\n\t\tinstructionPointer++;\n\t\t\n\t\t// ifenemy (this is really a go, but only reachable if\n\t\t// an enemy was seen)\n\t\tif(node.get(4) != null) {\n\t\t int pointer = instructionPointer + 1 + \n\t\t\t7*(nodesToGo + nodesExplored);\n\t\t ret.add(new Instruction(10, pointer));\n\t\t nodesExplored++;\n\t\t} else {\n\t\t ret.add(new Instruction(10, 1));\n\t\t}\n\t\tinstructionPointer++;\n\t }\n\t \n\t currentLayer = nextLayer;\n\t}\n\treturn ret;\n }", "title": "" }, { "docid": "525f34bd7600c93bf6ba290acc6b719e", "score": "0.52138174", "text": "public BinaryTree(E data) {\r\n\t\tthis.data = data; this.parent = null; this.left = null; this.right = null;\r\n\t}", "title": "" }, { "docid": "ebede5547e5fa19460643b2231f15e6e", "score": "0.52135473", "text": "@Override\n\tpublic void postDecode() {\n\t\t\n\t}", "title": "" }, { "docid": "370dbd397bc9741bcbbec55419b481d8", "score": "0.5199224", "text": "private HuffNode readTree(BitInputStream in){\n\t\tint bits = in.readBits(1);\n\t\t//in case tree has no bits\n\t\tif (bits == -1) {\n\t\t\tthrow new HuffException(\"no bits in tree\");\n\t\t}\n\t\tif (bits == 0) {\n\t\t\tHuffNode left = readTree(in);\n\t\t\tHuffNode right = readTree(in);\n\t\t\treturn new HuffNode(0, 0, left, right);\n\t\t}\n\t\telse{\n\t\t\tint value = in.readBits(BITS_PER_WORD + 1);\n\t\t\treturn new HuffNode(value, 0, null, null);\n\t\t}\n\t}", "title": "" }, { "docid": "e3a433e909493e0d5ea11959df11a99e", "score": "0.515506", "text": "public String decodeFile(String code, HuffTree huffTree) throws Exception{\n //Create new stringbuilder object and tempnode\n StringBuilder sb = new StringBuilder(100000);\n HuffNode tempNode = huffTree.root();\n\n //convert line to character array\n Scanner sc = new Scanner(code);\n while(sc.hasNext()){\n char lineArr[] = sc.nextLine().toCharArray();\n //for 1 or 0, traverse huffman tree until a leaf is reached.\n for ( char c : lineArr){\n if (c == '1'){\n tempNode = tempNode.right();\n }\n else {\n tempNode = tempNode.left();\n }\n if (tempNode.left() == null && tempNode.right() == null){\n sb.append(tempNode.value());\n tempNode = huffTree.root();\n }\n }\n //sb.append(tempNode.value());\n sb.append(\"\\n\");\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "e258b3872064dc610a1d1d3a1e74dd81", "score": "0.5150778", "text": "public HuffmanDecoder(HuffmanDB t) {\n root = t.getRoot();\n }", "title": "" }, { "docid": "56e2148141683f81ebe58b424b2ae302", "score": "0.514698", "text": "public void setTreeData(String treeData) {\n this.treeData = treeData;\n }", "title": "" }, { "docid": "7e16f36e81a158397f3a19db30b261a2", "score": "0.5137057", "text": "@Override\r\n\tpublic void setTree(T rootData) {\n\t\troot = new BinaryNode(rootData);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2e4b51d230e1287c4bdaa0a65562bda0", "score": "0.5068294", "text": "public static void Decompression(String pathName, BinaryTree<TreeElement> HuffmanTree) throws IOException {\n BufferedBitReader bitInput = new BufferedBitReader(pathName+\"_compressed.txt\"); // Open buffered bit reader to read compressed file\n BufferedWriter Output = new BufferedWriter(new FileWriter(pathName+\"_decompressed.txt\")); // open Buffered writer to write translated bits\n BinaryTree<TreeElement> HuffmanTree1 = HuffmanTree; // create copy of tree that will be used for setting back to original tree after going down a path\n\n if (HuffmanTree1 != null && HuffmanTree1.isLeaf()){ // check if tree is one character or repeating one character\n int i = 0;\n while (i < HuffmanTree1.data.getFrequency()){ // get frequency of that character\n Output.write(HuffmanTree1.data.getCharacter()); // write character number of times of its frequency\n i+=1;\n }\n }\n\n try{\n while (bitInput.hasNext()) { // while there are still bits to read\n boolean bit = bitInput.readBit(); // use read bit to cycle through bits\n if (bit) {\n HuffmanTree = HuffmanTree.getRight(); // if bit value true, get right child\n }\n if (!bit) {\n HuffmanTree = HuffmanTree.getLeft(); // if bit value is false, get left child\n }\n if (HuffmanTree.isLeaf()) {\n Output.write(HuffmanTree.data.getCharacter()); // If the tree is at a leaf, get the character from that leaf\n HuffmanTree = HuffmanTree1; // reset tree to its original setting\n }\n\n }\n }\n catch(IOException e){\n System.err.println(\"Could not read and convert compressed file to decompressed file\"+e.getMessage()); // catch error if there was error reading and decompressing\n }\n finally {\n bitInput.close(); // use finally to close file, need it to close regardless of whether there was an error\n Output.close();\n }\n\n }", "title": "" }, { "docid": "f100d206eb441fff4e88bbc479796b4d", "score": "0.50601673", "text": "public Node deserialize(String data) {\n if (data.equals(\"\")) {\n return null;\n }\n\n int[] index = new int[1];\n String[] strs = data.split(\",\");\n return deserializeDfs(strs, index);\n }", "title": "" }, { "docid": "55fadf7c78a5abed5b6b5455364a334c", "score": "0.50564134", "text": "private void convertToTree(NewickTree nw) {\n getTree(nw,nw);\n }", "title": "" }, { "docid": "f3f0e2d779ebf31a01a240b5465fed3e", "score": "0.5023441", "text": "public void buildTree() {\r\n\r\n\t\t_basesDatos = new NodeDDBB(AcideLanguageManager.getInstance().getLabels().getString(\"s2024\"),_treeModel);\t\t\r\n\t\t_root.add(_basesDatos); \t\t\t\t\r\n\t\t_basesDatos.setAllowsChildren(false);\r\n\t\t_basesDatos.setBuilt(false);\r\n\t}", "title": "" }, { "docid": "99b14301f8b196bd614c60ed780b1e90", "score": "0.50209296", "text": "private void initEncoderDecoder(Node node, String osf) { // osf - output so far\n\t\tif(node.data != '\\0') { \n\t\t\tthis.encoder.put(node.data, osf);\n\t\t\tthis.decoder.put(osf, node.data);\n\t\t\treturn;\n\t\t}\n\t\tinitEncoderDecoder(node.left, osf + 0);\n\t\tinitEncoderDecoder(node.right, osf + 1);\n\t}", "title": "" }, { "docid": "290d52aa99bb6d469b772fe825aab226", "score": "0.50094473", "text": "public Node deserialize(String data) {\n if (data.isEmpty()) return null;\n final String[] partitionedData = data.split(\"#\");\n final Queue<Node> queue = new LinkedList<>();\n final Node root = new Node(partitionedData[0].charAt(0) - '0', new ArrayList<>());\n queue.offer(root);\n for (int i = 1; i < partitionedData.length; i++) {\n final Node curr = queue.poll();\n final String siblings = partitionedData[i];\n for (char sibling : siblings.toCharArray()) {\n final Node siblingNode = new Node(sibling - '0', new ArrayList<>());\n curr.children.add(siblingNode);\n queue.offer(siblingNode);\n }\n }\n return root;\n }", "title": "" }, { "docid": "f120d1590df6b5de31ce62cf9bfb95a0", "score": "0.5003718", "text": "public String decode(String encodedValue);", "title": "" }, { "docid": "05cf5cc75e1fa885680704884b056db6", "score": "0.49839735", "text": "public TrieNode deserialize(String data) {\n TrieNode root = new TrieNode();\n StringBuilder sb = new StringBuilder(data);\n deserialize(root, sb);\n \n return root;\n }", "title": "" }, { "docid": "bfd1ef6c570a09652d3d088d8c534137", "score": "0.49577147", "text": "public static void decompress() {\n Node root = readTrie(); // Read the Huffman trie\n int numBytes = binaryIn.readInt(); // Bytes in original message\n int i = 0;\n while (i++ < numBytes) {\n Node node = root;\n // Traverse Huffman trie until a leaf node is reached\n while (node.isInternal()) {\n node = binaryIn.readBoolean() ? node.getRight() : node.getLeft();\n }\n binaryOut.write(node.getChar(), 8);\n }\n binaryOut.close();\n }", "title": "" }, { "docid": "72781d53a0400417e2aa9e628e5b5420", "score": "0.49458385", "text": "public void decode(BitInputStream input, PrintStream output, int eof){\t\t\t\n\t\t\t// create a loop to read the input\n\t\t\tint n = input.readBit();\n\t\t\tNode current = queue.peek();\n\t\t\t\twhile(n!=-1){\n\t\t\t\t// check for end of file\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\t\t// go left\n\t\t\t\t\t\tcurrent = current.left;\t\n\t\t\t\t\t\t//System.out.println(\"n=0\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// go right\n\t\t\t\t\t\tcurrent = current.right;\n\t\t\t\t\t\t//System.out.println(\"n=1\");\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(current.left == null);\n\t\t\t\t\t//System.out.println(current.right == null);\n\t\t\t\t\tif (current.left == null && current.right == null){\n\t\t\t\t\t\t// you've reached a leaf node and can print it out\n\t\t\t\t\t\t//print out character at the end of the tree in the node\n\t\t\t\t\t\tif (eof!=1){\n\t\t\t\t\t\t\toutput.write(current.c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(current.c);\n\t\t\t\t\t\t//current = root;\t\n\t\t\t\t\t\tcurrent = queue.peek();\n\t\t\t\t\t}\n\t\t\t\t\tn = input.readBit();\n\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t}", "title": "" }, { "docid": "4a85911f82194a9ea8275dd404c55920", "score": "0.49217594", "text": "public abstract void deserialize(String data);", "title": "" }, { "docid": "d6ad2d7c4bdbcf46d67d6667abacc916", "score": "0.49046385", "text": "@Override\n\tprotected MAVLinkMessage decode(byte[] data) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6ca4eedc59a9460a7cedd8dd2f7d8a62", "score": "0.49037695", "text": "public MultiTree<List<Tensor>> locallyDecodeFactors();", "title": "" }, { "docid": "d8e0ce5d2847b63cd59560dcecb612df", "score": "0.48965898", "text": "public static BinaryMessageDecoder<account_parent_related> getDecoder() {\n return DECODER;\n }", "title": "" }, { "docid": "fb0ac70d5306d716c5af1770f63fee17", "score": "0.48961973", "text": "@Override\n\tprotected DecodeResult decode(Element element, Node thisNode) {\n\t\tsetSupplementalDataOnNode(element, thisNode, SupplementalType.ETHNICITY);\n\n\t\treturn DecodeResult.TREE_CONTINUE;\n\t}", "title": "" } ]
60b795d27537e8056d86d7cc713d5f8d
Insere um registro na tabela
[ { "docid": "cd8f99894fc42adc003742353624664c", "score": "0.0", "text": "public boolean insert(Fop_forma_pagamentoT fop_forma_pagamentoT) throws Exception {\n \n try {\n if (!valide(\"insert\")) {\n\tthrow new BusinessException(\"Falha na seguranca !\");\n }\n Fop_forma_pagamentoDAO fop_forma_pagamentoDAO = getFop_forma_pagamentoDAO();\n fop_forma_pagamentoDAO.insert(fop_forma_pagamentoT);\t \n return true;\n } catch (Exception e) {\n e.printStackTrace();\n throw e;\n } finally {\n\tclose();\n }\n }", "title": "" } ]
[ { "docid": "d935d58e81bc6f9ca1ed37666ce07e0d", "score": "0.6979303", "text": "Empleado insertEmpleado(Empleado empleado);", "title": "" }, { "docid": "c2d0fe336c301b5f14554954020c8ea2", "score": "0.6923952", "text": "public void insertar(){\n\t\tgetOtrogastoService().addOtrogasto(getOtrogasto());\n\t\trefrescarOtrogastos();\n\t\tlimpiarCampos();\n\t}", "title": "" }, { "docid": "080f8231ef8836f8d41f632a46d9444f", "score": "0.6923743", "text": "private void insertar() {\r\n\t\tObject mnsj = \"Id ya existe\";\r\n\t\tif(modelo.buscarEmpleado(vista.getTextIdInser())!= null){\r\n\t\t\tJOptionPane.showMessageDialog(vista, mnsj, \"Error\",JOptionPane.WARNING_MESSAGE);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tmodelo.introducirEmpleado(vista.getTextIdInser(),\r\n\t\t\t\t\tvista.getTextNombreInser(), vista.getTextSalarioInser());\r\n\t\t\tJOptionPane.showMessageDialog(vista, \"Empleado insertado con éxito\");\r\n\t\t}\r\n\t\tvista.vaciarCajastInser();\r\n\t}", "title": "" }, { "docid": "355bac854fabbe7fba2d658f930d30e7", "score": "0.68636805", "text": "public abstract void insertarEnTablaAtrib1(String origen,String nombre, String valor, String tipo, String fechaIni,String horaIni, String fechaFin, String horaFin);", "title": "" }, { "docid": "55d0d4d84f7189e90eaf16fd23d20e82", "score": "0.6861887", "text": "int insert(Usuario record);", "title": "" }, { "docid": "d898b12e3c7c2f8f59c7e25afcf7c26e", "score": "0.67957336", "text": "private void guardar(){\n //trato de acceder a la BD para luego hacer una query de insert\n try{\n conn.conexion();\n Statement query = conn.conexion().createStatement();\n \n String nombre = this.txtNombre.getText();\n String cedula = this.txtCedula.getText();\n String direccion = this.txtDirecc.getText();\n String telefono = this.txtTel.getText();\n String correo = this.txtCorreo.getText();\n String sexo = this.cboSexo.getSelectedItem().toString();\n \n //Inserta los valores a la tabla\n query.execute(\"INSERT INTO cliente VALUES('\"+nombre+\"','\"+cedula+\"','\"+direccion+\"','\"+\n telefono+\"','\"+correo+\"','\"+sexo+\"');\");\n \n \n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"El error es: \"+e);\n }\n }", "title": "" }, { "docid": "28fda12a76f19eae335a96e94b5efd90", "score": "0.67852485", "text": "public long inserir(ContentValues valores) {\n\t\t\tlong id = db.insert(NOME_TABELA, \"\", valores);\n\t\t\treturn id;\n\t\t}", "title": "" }, { "docid": "2f5cb971dc5daf8952ce714748927028", "score": "0.6779755", "text": "public void insertData () throws SQLException\n {\t\n \tConnect connect = new Connect();\n Connection connection = connect.getConnection();\n // check if table exists\n if (!this.doesTableExist(connection))\n { // create the table\n System.out.println(\"Table doesn't exist. Creating it.....\");\n createTable(connection);\n }\n \n \n // create the INSERT SQL\n StringBuffer sbInsert = new StringBuffer();\n sbInsert.append(\" INSERT INTO AIRPORT \");\n sbInsert.append(\" VALUES \");\n sbInsert.append(\" ('\" + airportCode + \"', '\" + city + \"', '\" + country + \"')\");\n\n // create the statement\n Statement statement = connection.createStatement();\n try\n {\n statement.executeUpdate (sbInsert.toString());\n } catch (SQLException e)\n {\n throw e;\n } finally\n {\n statement.close();\n connect.close(connection);\n }\n }", "title": "" }, { "docid": "f5bd631a7fc48152de34df5c123ab7cb", "score": "0.67498153", "text": "int insert(DltbEmpleador record);", "title": "" }, { "docid": "133483a2c7110defeffe3c6d1c6d7d75", "score": "0.67147416", "text": "private void insertData() {\n \n contrato = factory.manufacturePojo(ContratoHotelEntity.class);\n contrato.setId(1L);\n contrato.setHorasHotel(new ArrayList<>());\n em.persist(contrato);\n \n for (int i = 0; i < 3; i++) {\n HoraHotelEntity entity = factory.manufacturePojo(HoraHotelEntity.class);\n entity.setContratosHotel(new ArrayList<>());\n entity.getContratosHotel().add(contrato);\n em.persist(entity);\n horasData.add(entity);\n contrato.getHorasHotel().add(entity);\n }\n }", "title": "" }, { "docid": "1b80b88bf0e4c6bffb991165386f2690", "score": "0.6707345", "text": "private void insertData() {\r\n fatherEntity = factory.manufacturePojo(MedicoEntity.class);\r\n fatherEntity.setId(1L);\r\n em.persist(fatherEntity);\r\n for (int i = 0; i < 3; i++) {\r\n CitaEntity entity = factory.manufacturePojo(CitaEntity.class);\r\n entity.setMedico(fatherEntity);\r\n Date hoy = new Date();\r\n Date mañana = new Date(hoy.getTime()+ 86400000 + i);\r\n entity.setFecha(mañana);\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "title": "" }, { "docid": "7e3ceb46fd04b2116766ba9fcf979d81", "score": "0.67024237", "text": "private void insereCelular (String nid, String celular){\r\n\t\r\n\t try {\r\n\t\t // inicilizando a conex�o\r\n\t conn = ConexaoODBC.getConnection();\r\n\r\n\t Statement st = conn.createStatement();\r\n\t \r\n \r\n\t \r\n\t \t st.executeUpdate(\" \"\r\n\t \t \t\t+ \"INSERT INTO \"\r\n\t \t \t\t+ \" t_adulto (nid, telefone) VALUES \"\r\n\t \t \t\t+ \"(\\'\"\r\n\t \t \t\t+ nid +\"\\', \\'\"\r\n\t \t \t\t+ celular +\"\\'\"\r\n\t \t \t\t+ \") \"\r\n\t \t \t \r\n\t \t \t\t+ \" \");\r\n\t \r\n\t\t\r\n\t \r\n\t \r\n \r\n\r\n\t} catch (Exception e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t\r\n\t}\r\n}", "title": "" }, { "docid": "f75777d8c4c9ac4318c2d735e73669b8", "score": "0.6692151", "text": "public void Inserir(T entity){\n SQLiteDatabase db = getWritableDatabase();\n db.insert(ObterNomeTabela(), null, MontarDadosInserir(entity));\n }", "title": "" }, { "docid": "505f321cdae4dc3d4eb7abb820a74265", "score": "0.6659044", "text": "public void crear(){\r\n con.setInsertar(\"insert into Peliculas(fecha_estreno,duracion,titulo,estado) values('\"+this.getNombre_pelicula()+\"','\"+this.getDuracion()+\"','\"+this.getTitulo()+\"','activo')\");\r\n }", "title": "" }, { "docid": "2ecd368f5c2020de8dccfa7efdabbccb", "score": "0.6652806", "text": "public void inserir() {\n String sql = \"INSERT INTO Cidadao(nome, endereco,\"\n + \" dataNascimento, email, celular, cpf,\"\n + \"associado_saude, nomeVacina, dosesTomadas, dataVacinacao) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n//2: Abrir uma conexão\n ConnectionFactory factory = new ConnectionFactory();\n try ( Connection c = factory.obtemConexao()) {\n//3: Pré compila o comando\n PreparedStatement ps = c.prepareStatement(sql);\n//4: Preenche os dados faltantes\n ps.setString(1, nome);\n ps.setString(2, endereco);\n ps.setString(3, dataNascimento);\n ps.setString(4, email);\n ps.setString(5, celular);\n ps.setString(6, cpf);\n ps.setString(7, associado_saude);\n ps.setString(8, nomeVacina);\n ps.setString(9, dosesTomadas);\n ps.setString(10, dataVacinacao);\n\n//5: Executa o comando\n ps.execute();\n JOptionPane.showMessageDialog(null, \"Cidadão Cadastrado\", \"Cidadão cadastrado com sucesso\", JOptionPane.INFORMATION_MESSAGE);\n } catch (Exception e) {\n e.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Erro ao conectar\", \"Banco de Dados não conectado\", JOptionPane.ERROR_MESSAGE);\n }\n }", "title": "" }, { "docid": "64e591e70e11de6ecf5102ca281769df", "score": "0.66260046", "text": "public void create(Pedidos pe){\n \n Connection con = ConnectionFactory.getConnection();\n PreparedStatement stmt = null;\n \n try {\n String sql = \"INSERT INTO pedidos (data,status,sessao) VALUES (?,?,?)\";\n stmt = con.prepareStatement(sql);\n stmt.setDate(1, pe.getData());\n stmt.setString(2, pe.getStatus());\n stmt.setString(3, pe.getSessao());\n stmt.executeUpdate();\n } catch (SQLException e) {\n System.err.println(\"errp ao inserir pedido\" +e);\n }finally{\n ConnectionFactory.CloseConnection(con, stmt);\n }\n }", "title": "" }, { "docid": "ef92acdf72fedc90c1df7cde739f386c", "score": "0.6623304", "text": "private void insertTable( ) {\n\tif ( vertalersId == 0 ) {\n\t logger.severe( \"Vertalers not selected\" );\n\t return;\n\t}\n\n\ttry {\n\t // Insert new rows in the vertalers_persoon table\n\t Statement statement = connection.createStatement( );\n\t for ( int vertalerIndex = 0; vertalerIndex < vertalerRecordList.size( ); vertalerIndex++ ) {\n\t\tint persoonId = ( ( VertalerRecord )vertalerRecordList.get( vertalerIndex ) ).persoonId;\n\t\tint nUpdate = statement.executeUpdate( \"INSERT INTO vertalers_persoon SET \" +\n\t\t\t\t\t\t \"vertalers_id = \" + vertalersId +\n\t\t\t\t\t\t \", persoon_id = \" + persoonId );\n\t\tif ( nUpdate == 0 ) {\n\t\t logger.severe( \"Could not insert in vertalers_persoon for index \" + vertalerIndex );\n\t\t return;\n\t\t}\n\t }\n\t} catch ( SQLException sqlException ) {\n\t logger.severe( \"SQLException: \" + sqlException.getMessage( ) );\n\t}\n }", "title": "" }, { "docid": "d40cdc294213edf5069dbc7d7fbd72d0", "score": "0.65892285", "text": "private void inserir() throws Exception {\n\n con = new ConexaoDAO();\n cli = new Cliente();\n util = new Utilidades();\n\n if (txt_Nome.getText().isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Preencha o campo NOME!\", \"Campo NOME Vazio\", 2);\n txt_Nome.requestFocus();\n } else {\n if (txt_Sobrenome.getText().isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Preencha o campo SOBRENOME!\", \"Campo SOBRENOME Vazio\", 2);\n txt_Sobrenome.requestFocus();\n } else {\n try {\n cli.setNome(txt_Nome.getText());\n cli.setSobrenome(txt_Sobrenome.getText());\n\n cli = con.salvar(cli);\n\n util.limparTodosCampos(pnl_Add);\n consultaTudo();\n } catch (Exception ex) {\n Logger.getLogger(CRUD.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n }", "title": "" }, { "docid": "fafef2ab5d910b856bf09098012f339e", "score": "0.6565396", "text": "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n \r\n for (int i = 0; i < 4; i++) {\r\n ClienteEntity cliente = factory.manufacturePojo(ClienteEntity.class);\r\n ReservaEntity entity = factory.manufacturePojo(ReservaEntity.class);\r\n entity.setCliente(cliente);\r\n \r\n em.persist(cliente);\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "title": "" }, { "docid": "63d7d688d38de72bcbdb00c395b03042", "score": "0.6564041", "text": "@Override\r\n public void agregarNuevoDonante(Donante nuevoDonante){\r\n con.comprobarConexionBD();\r\n /*Convertimos Date para trabajar*/\r\n java.sql.Timestamp fecha_Nacimiento = new java.sql.Timestamp(nuevoDonante.obtenerFechaNac().getTime());\r\n java.sql.Timestamp fecha_Activacion = new java.sql.Timestamp(nuevoDonante.obtenerFechaInscripcion().getTime());\r\n \r\n try {\r\n instruccion = (Statement) con.conexion().createStatement();\r\n /*Introducimos la parte de Usuario*/\r\n\r\n instruccion.executeUpdate(\"INSERT INTO Usuario VALUES (\\\"\"+nuevoDonante.obtenerNIFCIF() + \"\\\",\\\"\"\r\n + nuevoDonante.obtenerNombre() + \"\\\",\\\"\" + nuevoDonante.obtenerApellidos() + \"\\\",\\\"\" + fecha_Nacimiento\r\n + \"\\\",\\\"\" + nuevoDonante.obtenerLocalidad() + \"\\\",\\\"\" + nuevoDonante.obtenerActivo() + \"\\\", NULL, \\\"\" + nuevoDonante.obtenerEmail() + \"\\\",\\\"\" + nuevoDonante.obtenerTelefono() + \"\\\")\");\r\n \r\n /*Introducimos la parte de Donante*/\r\n instruccion.executeUpdate(\"INSERT INTO Donante VALUES (\\\"\"+nuevoDonante.obtenerNIFCIF() + \"\\\",\\\"\"\r\n + nuevoDonante.obtenerTipoDonante() + \"\\\",\\\"\" + fecha_Activacion + \"\\\",\\\"\" + nuevoDonante.obtenerObservaciones()\r\n + \"\\\",\\\"\" + nuevoDonante.obtenerPeriodicidadDonaciones() + \"\\\",\\\"\" + nuevoDonante.obtenerCuantiaDonaciones()\r\n + \"\\\",\\\"\" + nuevoDonante.obtenerTipoPeriodicidad()+\"\\\")\"); \r\n }\r\n /*Captura de errores*/\r\n catch(SQLException e){ System.out.println(e); }\r\n catch(Exception e){ System.out.println(e);}\r\n \r\n }", "title": "" }, { "docid": "96b08fdb945341b7f3d47d4f1bc1fa3a", "score": "0.654802", "text": "public void add(Contato contato) {\n\r\n\t\ttry {\r\n\t\t\tconnection.setAutoCommit(false);\r\n\t\t\t\r\n\t\t\tString stringDeInseracaoContato = \"insert into contatos (nome, cpf) values ( ?, ?)\"; \r\n\t\t\tString stringDeInsercaoTelefone = \"insert into telefones (id_contato, numero, tipo) values ( ?, ?, ?)\";\r\n\t\t\t\r\n\t\t\tString identificadores[] = new String[] { \"id_contato\" };\r\n\t\t\t\r\n\t\t\tPreparedStatement inserirContato = connection.prepareStatement(stringDeInseracaoContato, identificadores );\t\t\t\r\n\t\t\tinserirContato.setString(1, contato.getNome());\r\n\t\t\tinserirContato.setString(2, contato.getCpf());\r\n\r\n\t\t\t// Executa o comando de cadastro do contato\r\n\t\t\tinserirContato.executeUpdate();\r\n\t\t\t\r\n\t\t\t// Obtem o id do contato inserido\r\n\t\t\tResultSet teste = inserirContato.getGeneratedKeys();\r\n\t\t\tteste.next();\r\n\t\t\tint id_contato = teste.getInt(1);\r\n\t\t\t\r\n\t\t\t// Insere os dados dos telefones\r\n\t\t\tif (id_contato != 0) {\r\n\t\t\t\tfor (Telefone telefone : contato.getTelefones()) {\r\n\t\t\t\t\tPreparedStatement inserirTelefone = connection.prepareStatement(stringDeInsercaoTelefone);\r\n\t\t\t\t\tinserirTelefone.setInt(1, id_contato);\r\n\t\t\t\t\tinserirTelefone.setString(2, telefone.getNumero());\r\n\t\t\t\t\tinserirTelefone.setString(3, telefone.getTipo().toString());\r\n\t\t\t\t\tinserirTelefone.executeUpdate();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Executa \r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7a5da6a0756e675b3266db9ddd74f64c", "score": "0.6547423", "text": "private void insertIntoTheDatabase() {\n orderPizzaService.insertPizzaDatabase(pizzaDAO, extraToppings, extraSouce);\n }", "title": "" }, { "docid": "134636e0adf19b5f66608f2979d38d82", "score": "0.65321594", "text": "public static void insert_propietario() {\n //var \n Propietario p1;\n\n p1 = teclado_propietario(); //llamando metodo teclado_propietario\n propietarioDao.insert(p1);//llamando metodo insert donde de verdad agregaremos a la bd el propietario\n \n }", "title": "" }, { "docid": "4098e5c323c40c898081e268d359f035", "score": "0.65129274", "text": "@Override\n\tpublic void insert(Mercadorias obj) {\n\t\t\n\t\tPreparedStatement st = null;\n\t\t\n\t\ttry {\n\t\t\tst = conn.prepareStatement(\" INSERT INTO produtos \" \n\t\t\t\t\t\t\t\t\t\t+\"(codProduct,descricao,preco)\" \n\t\t\t\t\t\t\t\t\t\t+ \" VALUES \" \n\t\t\t\t\t\t\t\t\t\t+ \" (null,?,?) \", \n\t\t\t\t\t\t\t\t\t\tStatement.RETURN_GENERATED_KEYS \n\t\t\t\t\t\t\t\t\t\t);\n\t\t//\tst.setInt(1, (Integer) null);\n\t\t\tst.setString(1, obj.getNomeProduto());\n\t\t\tst.setDouble(2, obj.getPrecoProduto());\n\t\t\tint linhasModificadas = st.executeUpdate();\n\t\t\tif(linhasModificadas > 0) {\n\t\t\t\tSystem.out.println(\"Elemento inserido com sucesso\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Nenhuma linha foi modificada\");\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tDB.closeStatement(st);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "047c9e292bcc4207ec173f99a6ccde66", "score": "0.65098596", "text": "private void insertData() {\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n dataUsuario.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n TarjetaEntity entity = factory.manufacturePojo(TarjetaEntity.class);\r\n entity.setUsuario(dataUsuario.get(1));\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "title": "" }, { "docid": "8e67852edf221ff99716ae536e5450b0", "score": "0.6509147", "text": "public void insereFuncionario(Funcionario funcionario){\n funcionario.setFuncCadDt(new Date());\r\n \r\n //nova conexão\r\n Connection connection = new ConnectionFactory().getConnection();\r\n \r\n //consulta\r\n String query = \"INSERT INTO funcionario\"\r\n + \"(func_matr_cod,\"\r\n + \"func_cpf,\"\r\n + \"func_rg,\"\r\n + \"func_cnh,\"\r\n + \"func_nasc_dt,\"\r\n + \"func_cad_dt,\"\r\n + \"func_nm,\"\r\n + \"func_end_ds,\"\r\n + \"func_cid_ds,\"\r\n + \"func_uf,\"\r\n + \"func_telefone_ds,\"\r\n + \"func_telefone_ddd,\"\r\n + \"func_telefone_ddi,\"\r\n + \"func_login,\"\r\n + \"func_senha)\"\r\n \r\n + \"VALUES(\"\r\n + \"?,\" //func_matr_cod\r\n + \"?,\" //func_cpf\r\n + \"?,\" //func_rg\r\n + \"?,\" //func_cnh\r\n + \"?,\" //func_nasc_dt\r\n + \"?,\" //func_cad_dt\r\n + \"?,\" //func_nm\r\n + \"?,\" //func_end_ds\r\n + \"?,\" //func_cid_ds\r\n + \"?,\" //func_uf\r\n + \"?,\" //func_telefone_ds\r\n + \"?,\" //func_telefone_ddd\r\n + \"?,\" //func_telefone_ddi\r\n + \"?,\" //func_login\r\n + \"?)\";//func_senha\r\n \r\n try{\r\n PreparedStatement stmt = connection.prepareStatement(query);\r\n //mátricula do funcionário\r\n stmt.setString(1, funcionario.getFuncMatrCod());\r\n //CPF\r\n stmt.setString(2, funcionario.getFuncCPF());\r\n //RG\r\n stmt.setString(3, funcionario.getFuncRG());\r\n //CNH\r\n stmt.setString(4, funcionario.getFuncCNH());\r\n \r\n //Data de nascimento\r\n stmt.setString(5, this.converteDataSimples(funcionario.getFuncNascDt()));\r\n //Data de cadastro no sistema\r\n stmt.setString(6, this.converteDataSimples(funcionario.getFuncCadDt()));\r\n \r\n //Nome do funcionario\r\n stmt.setString(7, funcionario.getFuncNm());\r\n \r\n //Endereço do funcionario(logradouro e número)\r\n stmt.setString(8, funcionario.getFuncEndDs());\r\n //Cidade do funcionario\r\n stmt.setString(9, funcionario.getFuncCidDs());\r\n //UF do funcionario\r\n stmt.setString(10, funcionario.getFuncUf());\r\n //Telefone do funcionario\r\n stmt.setString(11, funcionario.getFuncTelefoneDs());\r\n //DDD do telefone\r\n stmt.setString(12, funcionario.getFuncTelefoneDDD());\r\n //DDI\r\n stmt.setString(13, funcionario.getFuncTelefoneDDI());\r\n //Login\r\n stmt.setString(14, funcionario.getFuncLogin());\r\n //Senha\r\n stmt.setString(15, funcionario.getFuncSenha());\r\n \r\n stmt.execute(); //executa transação\r\n stmt.close(); //fecha conexção com o banco de dados\r\n \r\n }catch(SQLException u){\r\n throw new RuntimeException(u);\r\n }\r\n }", "title": "" }, { "docid": "a0e9928ec86cfd0d5a2b69b714d07f16", "score": "0.65086997", "text": "private void insertData() {\r\n for (int i = 0; i < 3; i++) {\r\n ReservaEntity reservas = factory.manufacturePojo(ReservaEntity.class);\r\n em.persist(reservas);\r\n reservasData.add(reservas);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n ClienteEntity entity = factory.manufacturePojo(ClienteEntity.class);\r\n em.persist(entity);\r\n data.add(entity);\r\n if (i == 0) {\r\n reservasData.get(i).setCliente(entity);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3544a10aa8892f3fb89d873b0f3f8aa0", "score": "0.6499994", "text": "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into modelos (nombre, marca_id,creado_por ,estado) values ('\"+this.getNombre()+\"','\"+this.getMarca_id() +\"','\"+this.getCreado_por()+\"' ,'activo')\");\n }", "title": "" }, { "docid": "e345d90d6e36fe1280a4dd0db3970a17", "score": "0.64621186", "text": "int insert(UnidadesContratacion record);", "title": "" }, { "docid": "c40e8dc2bb3d118271e891509e4c3b49", "score": "0.6455545", "text": "void insertar();", "title": "" }, { "docid": "18dd11a02ebbd4aaa2ba05aa2547794c", "score": "0.6451726", "text": "int insert(Pkfields record);", "title": "" }, { "docid": "8df6bb2d61621355a79574059dd5f484", "score": "0.64494807", "text": "public void insertVenta(com.farmacia.domain.Venta venta);", "title": "" }, { "docid": "1511646c870c2e40ff41cafd9eb12640", "score": "0.6446681", "text": "void insert(Patients record) throws SQLException;", "title": "" }, { "docid": "533f78997a2d505d668d551080a50156", "score": "0.64283854", "text": "private void insertData() {\n for (int i = 0; i < 3; i++) {\n AgendaEntity entity = factory.manufacturePojo(AgendaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n AgendaEntity agenda = data.get(2);\n EventoEntity entity = factory.manufacturePojo(EventoEntity.class);\n entity.getAgendas().add(agenda);\n em.persist(entity);\n agenda.setEventos(entity);\n\n InvitadoEspecialEntity inv = factory.manufacturePojo(InvitadoEspecialEntity.class);\n inv.getAgenda().add(data.get(1));\n em.persist(inv);\n data.get(1).getInvitadosEspeciales().add(inv);\n }", "title": "" }, { "docid": "60cfefb6d8c3611bafe9642cb4d05109", "score": "0.64241207", "text": "public void inserisciDati(Object o) throws SQLException {\r\n Risposta r = (Risposta) o;\r\n PreparedStatement prepared = (PreparedStatement) con.prepareStatement(\"insert into risposta (\"\r\n + \"Contenuto,\"\r\n + \"Allegato,Visualizzata,Valutazione) values (?,?,?,'');\");\r\n prepared.setString(1, r.getTesto());\r\n prepared.setString(2, r.getAllegato());\r\n prepared.setString(3, r.getVis());\r\n prepared.executeUpdate();\r\n }", "title": "" }, { "docid": "7fdc7bd0d1ebe1d302232e05614a61e0", "score": "0.6411732", "text": "public void insertar (Inmueble in){\n Uri uri=Contrato.TablaInmueble.CONTENT_URI;\n ContentValues valores = new ContentValues();\n valores.put(Contrato.TablaInmueble.DIRECCION, in.getDireccion());\n valores.put(Contrato.TablaInmueble.TIPO, in.getTipo());\n valores.put(Contrato.TablaInmueble.PRECIO, in.getPrecio());\n valores.put(Contrato.TablaInmueble.SUBIDO, in.getSubido());\n valores.put(Contrato.TablaInmueble.USUARIO, in.getUsuario());\n Uri urielemento= getContentResolver().insert(uri,valores);\n Cursor cursor=getContentResolver().query(\n urielemento,null,null,null,null);\n }", "title": "" }, { "docid": "272d54368a2cf96d8cbfcc0d15984871", "score": "0.63959813", "text": "private void TambahData(String judul, String penulis, String harga){\n try{//try digunakan untuk mencoba mengeksekusi program dalam try\n String sql =\"INSERT INTO buku VALUES (NULL,'\"+judul+\"','\"+penulis+\"',\"+harga+\")\";//mendeklarasikan variabel sql dengan tipe data string yang digunakan untuk memasukkan nilai ke dalam field judul, penulis dan harga\n stt = con.createStatement();//membuat statement koneksi\n stt.executeUpdate(sql);//mengeksekusi query database dengan mengeksekusi\n model.addRow(new Object[]{judul,penulis,harga});//menambahkan data kedalam field judul, penulis dan harga\n }\n catch(SQLException e){//catch digunakan saat program tidak dapat mengeksekusi try, maka dilakukan Exception untuk mengatasi error\n System.out.println(e.getMessage());//ketika error maka exception handler akan menampilkan pesan\n }\n }", "title": "" }, { "docid": "8ccdc87f7d6008c53f5dcace8fa60fee", "score": "0.6390175", "text": "public void inserir(Doacao doacao) throws SQLException {\n conexao = new Conexao().conectar();\n String sql = \"INSERT INTO doacao (doador_id, tipo_doacao_id, quantidade, observacao) VALUES (?,?,?,?)\";\n PreparedStatement pst = conexao.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n pst.setInt(1, doacao.getDoador().getId());\n pst.setInt(2, doacao.getTipoDoacao().getId());\n pst.setBigDecimal(3, doacao.getQuantidade());\n pst.setString(4, doacao.getObservacao());\n \n pst.execute();\n ResultSet rs = pst.getGeneratedKeys();\n if (rs.next()) {\n doacao.setId(rs.getInt(1));\n }\n conexao.close();\n\n }", "title": "" }, { "docid": "28a35729948426d505b9a2245b0e07b1", "score": "0.6390163", "text": "public void insertar(Asignatura a) {\n\t\t\n\t}", "title": "" }, { "docid": "98a0da7f0801498cabaf5cc2867d7235", "score": "0.63825834", "text": "int insert(Cliente record);", "title": "" }, { "docid": "950b090a37b43e68204571490f3374b4", "score": "0.6370989", "text": "@Override\n\tpublic void crear(Medico medico) throws Exception {\n\t\ttry {\n\n\t\t\tString sql = \"INSERT INTO medico(id_medico, nombre_medico, apellido_medico, telefono_medico,direccion_medico, email_medico, telefono_emergencia_medico, fecha_nacimiento_medico, numero_documento_medico, id_tipo_documento) VALUES(?,?,?,?,?,?,?,?,?,?)\";\n\t\t\t// System.out.println(sql);\n\n\t\t\tConnection con = Conexion.getConexion();\n\t\t\tPreparedStatement stm = con.prepareStatement(sql);\n\n\t\t\t/*\n\t\t\t * Tipodocumento tipo_documento= paciente.getTipodocumento();\n\t\t\t * Municipio municipio = paciente.getMunicipio(); Genero genero=\n\t\t\t * paciente.getGenero();\n\t\t\t */\n\n\t\t\tstm.setString(1, medico.getIdMedico());\n\t\t\tstm.setString(2, medico.getNombreMedico());\n\t\t\tstm.setString(3, medico.getApellidoMedico());\n\t\t\tstm.setString(4, medico.getTelefonoMedico());\n\t\t\tstm.setString(5, medico.getDireccionMedico());\n\t\t\tstm.setString(6, medico.getEmailMedico());\n\t\t\tstm.setString(7, medico.getTelefonoEmergenciaMedico());\n\t\t\tstm.setObject(8, medico.getFechaNacimientoMedico());\n\t\t\tstm.setObject(9, medico.getNumeroDocumentoMedico());\n\t\t\tstm.setObject(10, medico.getTipodocumento().getIdTipoDocumento());\n\t\t\tstm.executeUpdate();\n\n\t\t} catch (SQLException ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t// Logger.getLogger(UsuarioDao.class.getName()).log(Level.SEVERE,\n\t\t\t// null, ex);\n\t\t} finally {\n\t\t\tJOptionPane.showMessageDialog(null, \"Usuario registrado\", \"Info\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t}", "title": "" }, { "docid": "23cb2dbf8e4de9b40517750f54f0c154", "score": "0.63642895", "text": "private void executeInsert() {\n\n\t\t}", "title": "" }, { "docid": "18d47db7f0c4a2fd0c20941256611b34", "score": "0.63628423", "text": "void insert(Vehicle record);", "title": "" }, { "docid": "6f771f8308a98a80c2e71c9f625b8e75", "score": "0.6350274", "text": "int insert(Vehice record);", "title": "" }, { "docid": "0d27d6b534ef392c3d92c6a5024295c7", "score": "0.6342025", "text": "public final void inserir(Entidade objeto) {\r\n\t\tEntityTransaction tx = getEntityManager().getTransaction();\t\t\r\n\t\ttry {\r\n\t\t\ttx.begin();\r\n\t\t\tgetEntityManager().persist(objeto);\r\n\t\t\ttx.commit();\r\n\t\t\tSystem.out.println(classePersistente.getSimpleName() + \" salvo com sucesso\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tif (tx != null && tx.isActive()){\r\n\t\t\t\ttx.rollback();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "389420ff615f2a795c56d322583456b2", "score": "0.6339571", "text": "@Transactional\n\t@Override\n\tpublic void insertar(Turista turista) {\n\t\tem.persist(turista);\n\t}", "title": "" }, { "docid": "88e4431d09392db8041978bde4c6242c", "score": "0.6323909", "text": "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n\r\n ExamenMedicoEntity entity = factory.manufacturePojo(ExamenMedicoEntity.class);\r\n\r\n em.persist(entity);\r\n\r\n data.add(entity);\r\n }\r\n }", "title": "" }, { "docid": "d9c6b3c607bcb67bc1695a4de1cda828", "score": "0.6321392", "text": "int insert(AuditoriaIncidencia record);", "title": "" }, { "docid": "7b83082f63000e872d88dae3ecd25f1c", "score": "0.63166076", "text": "private void insertData()\n {\n for( int i = 0 ; i < 3 ; i ++)\n {\n AdministradorEntity entity = factory.manufacturePojo(AdministradorEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "title": "" }, { "docid": "3e6960f53de62c4e8534eac9f12adfd5", "score": "0.6305688", "text": "int insert(RhtbcSindicato record);", "title": "" }, { "docid": "94e1446668d65be4b16b210688b15313", "score": "0.630373", "text": "public void addejemplo(ejemplo ejemplo) throws SQLException, Exception {\n\n\t\tString sql = \"INSERT INTO ejemplo VALUES (\";\n\t\tsql += ejemplo.getId() + \"')\";\n\n\t\tPreparedStatement prepStmt = conn.prepareStatement(sql);\n\t\trecursos.add(prepStmt);\n\t\tprepStmt.executeQuery();\n\n\t}", "title": "" }, { "docid": "9f6f2ccfa0ec0e2b19dafeeb6a667ccf", "score": "0.62971777", "text": "int insert(MikuSalesRecordDO record);", "title": "" }, { "docid": "cdc872f7d8158a8f1e3c54db63ba96e4", "score": "0.6286703", "text": "int insertSelective(Usuario record);", "title": "" }, { "docid": "124c95cbbf537aaf91571868ac2bd584", "score": "0.6283819", "text": "@Override\n\tpublic int insertar(UsuarioPersonaDto prmIns) throws SQLException {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d0a6869dabfbe4a66420dc1cadeb5e0f", "score": "0.6279049", "text": "public int insertRow() ;", "title": "" }, { "docid": "b451ef0bc86150b81d5e2f74d3b78c91", "score": "0.6270938", "text": "private void insertData() {\r\n for (int i = 0; i < 3; i++) {\r\n ArticuloEntity entity = factory.manufacturePojo(ArticuloEntity.class);\r\n if(i == 0){\r\n entity.setPrecio(\"1000\");}\r\n if(i == 1){\r\n entity.setPrecio(\"1500\");}\r\n if(i == 2){\r\n entity.setPrecio(\"2000\");}\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n AutomovilEntity automovilEntity = factory.manufacturePojo(AutomovilEntity.class);\r\n em.persist(automovilEntity);\r\n automovilData.add(automovilEntity);\r\n }\r\n }", "title": "" }, { "docid": "0b5607c891206799400a32a571973b30", "score": "0.626086", "text": "public void insert(Paises paisFormulario) {\n\t\tRepository repository = new Repository();\n\t\t/*Paises paisInDatabase = repository.search(paisFormulario);\n\t\t\n\t\tif(null == paisInDatabase){*/\n\t\t\trepository.insert(paisFormulario);\n\t\t/*}else{\n\t\t\trepository.update(paisFormulario);\n\t\t}*/\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4cffbbbd54157d546111ff6263a5fb64", "score": "0.62605935", "text": "private void insertToDatabase() {\n HashMap<String, ByteIterator> values = new HashMap<String, ByteIterator>();\n\n // The number of field in container info is 10\n for (int i = 0; i < FIELD_COUNT; i++) {\n values.put(VALUE_COLUMN_NAME_PREFIX + i, new StringByteIterator(\"value\" + i));\n }\n myClient.insert(TEST_TABLE, DEFAULT_ROW_KEY, values);\n }", "title": "" }, { "docid": "d70085b86382e16448807938be73da82", "score": "0.6248663", "text": "public void insereT_tarvTransferidoDE(Vector medicamentos, String nid, String datatarv, int qtdComp, String regime, int dias, \r\n \t\tString tipotarv, String dataproxima, int idade, String dataoutroservico, String linha) {\r\n\r\n\t\ttry {\r\n // inicilizando a conex�o\r\n Connection conn = ConexaoODBC.getConnection();\r\n \r\n Statement st = conn.createStatement();\r\n System.out.println(\"++++++ A Preparar a Insercao de dados na tabela T_TARV do MS ACESS.....\");\r\n //insere dados \r\n \r\n switch(medicamentos.size())\r\n {\r\n case 1:\r\n \t st.executeUpdate(\"\"\r\n \t \t+ \"insert into t_tarv\"\r\n \t \t+ \"(\"\r\n \t\t+ \"nid,\"\r\n \t\t+ \"datatarv,\"\r\n \t\t+ \"codregime,\"\r\n \t\t+ \"dias,\"\r\n \t\t+ \"tipotarv,\"\r\n \t\t+ \"dataproxima,\"\r\n \t \t + \"QtdComp,\"\r\n \t\t+ \"dataoutroservico, \"\r\n \t \t \t+ \"idade,\"\r\n \t\t+ \"compromido, \"\r\n \t\t+ \"linhaTerapeutica\"\r\n \t \t\t+ \") \"\r\n \t + \"values (\" \t \r\n + \"\\'\"+nid+\"\\',\\'\"+datatarv+\"\\',\\'\"+regime+\"\\',\"+dias+\",\\'\"+tipotarv+\"\\',\\'\"+dataproxima+\"\\',\"+qtdComp+\",\\'\"+dataoutroservico+\"\\',\"+idade+\",\\'\"+(String)medicamentos.get(0)+\"\\',\\'\"+linha+\"\\')\");\r\n System.out.println(\"++++++ Os Dado inseridos com sucesso na tabela T_TARV.....\");\r\n \r\n break;\r\n \r\n case 2: \r\n \t st.executeUpdate(\"\"\r\n \t\t+ \"insert into t_tarv\"\r\n \t\t+ \"(\"\r\n \t\t+ \"nid,\"\r\n \t\t+ \"datatarv,\"\r\n \t\t+ \"codregime,\"\r\n \t\t+ \"dias,\"\r\n \t\t+ \"tipotarv,\"\r\n \t\t+ \"dataoutroservico,\"\r\n \t\t+ \"QtdComp,\"\r\n \t\t+ \"codmudanca, \"\r\n \t\t+ \"idade,\"\r\n \t\t+ \"compromido,\"\r\n \t\t+ \"compromido1, \"\r\n \t\t+ \"linhaTerapeutica\"\r\n \t\t+ \") \"\r\n + \"values (\"\r\n + \"\\'\"+nid+\"\\',\\'\"+datatarv+\"\\',\\'\"+regime+\"\\',\"+dias+\",\\'\"+tipotarv+\"\\',\\'\"+dataproxima+\"\\',\"+qtdComp+\",\\'\"+dataoutroservico+\"\\',\"+idade+\",\\'\"+(String)medicamentos.get(0)+\"\\',\\'\"+(String)medicamentos.get(1)+\"\\',\\'\"+linha+\"\\')\");\r\n System.out.println(\"++++++ Os Dado inseridos com sucesso na tabela T_TARV.....\");\r\n \r\n break;\r\n \r\n case 3:\r\n \t st.executeUpdate(\"\"\r\n \t\t+ \"insert into t_tarv\"\r\n \t\t+ \"(\"\r\n \t\t+ \"nid,\"\r\n \t\t+ \"datatarv,\"\r\n \t\t+ \"codregime,\"\r\n \t\t+ \"dias,\"\r\n \t\t+ \"tipotarv,\"\r\n \t\t+ \"dataproxima,\"\r\n \t\t+ \"QtdComp,\"\r\n \t\t+ \"dataoutroservico, \"\r\n \t\t+ \"idade,\"\r\n \t\t+ \"compromido,\"\r\n \t\t+ \"compromido1,\"\r\n \t\t+ \"compromido2, \"\r\n \t\t+ \"linhaTerapeutica\"\r\n \t\t+ \") \"\r\n + \"values (\"\r\n + \"\\'\"+nid+\"\\',\\'\"+datatarv+\"\\',\\'\"+regime+\"\\',\"+dias+\",\\'\"+tipotarv+\"\\',\\'\"+dataproxima+\"\\',\"+qtdComp+\",\\'\"+dataoutroservico+\"\\',\"+idade+\",\\'\"+(String)medicamentos.get(0)+\"\\',\\'\"+(String)medicamentos.get(1)+\"\\',\\'\"+(String)medicamentos.get(2)+\"\\',\\'\"+linha+\"\\')\");\r\n System.out.println(\"++++++ Os Dado inseridos com sucesso na tabela T_TARV.....\");\r\n \r\n break;\r\n default: \r\n \t st.executeUpdate(\"\"\r\n \t\t+ \"insert into t_tarv\"\r\n \t\t+ \"(\"\r\n \t\t+ \"nid,\"\r\n \t\t+ \"datatarv,\"\r\n \t\t+ \"codregime,\"\r\n \t\t+ \"dias,\"\r\n \t\t+ \"tipotarv,\"\r\n \t\t+ \"dataproxima,\"\r\n \t\t+ \"QtdComp,\"\r\n \t\t+ \"dataoutroservico, \"\r\n \t\t+ \"idade,\"\r\n \t\t+ \"compromido,\"\r\n \t\t+ \"compromido1,\"\r\n \t\t+ \"compromido2, \"\r\n \t\t+ \"linhaTerapeutica\"\r\n \t\t+ \") \"\r\n + \"values (\"\r\n + \"\\'\"+nid+\"\\',\\'\"+datatarv+\"\\',\\'\"+regime+\"\\',\"+dias+\",\\'\"+tipotarv+\"\\',\\'\"+dataproxima+\"\\',\"+qtdComp+\",\\'\"+dataoutroservico+\"\\',\"+idade+\",\\'\"+(String)medicamentos.get(0)+\"\\',\\'\"+(String)medicamentos.get(1)+\"\\',\\'\"+(String)medicamentos.get(2)+\"\\',\\'\"+linha+\"\\')\");\r\n System.out.println(\"++++++ Os Dado inseridos com sucesso na tabela T_TARV.....\");\r\n \r\n break;\r\n \r\n }\r\n \t\r\n updateTPacienteTransferidoDe(nid, datatarv, regime,linha);\r\n // fechando a conex�o\r\n ConexaoODBC.close();\r\n }\r\n\r\n\r\ncatch (Exception e)\r\n\r\n{\r\n\t System.out.println(\"++++++ Houve erro na Insercao de dados na tabela T_TARV do MS ACESS.....\");\r\n\t log.error(e.toString());\r\n e.printStackTrace();\r\n\r\n/*\tMessageBox conexaoACCESS = new MessageBox(new Shell(), SWT.ICON_ERROR\r\n\t\t\t| SWT.OK);\r\n\tconexaoACCESS.setText(\"Conex�o com Base de Dados SESP\");\r\n\tconexaoACCESS\r\n\t.setMessage(\"O iDART n�o est� a se conectar com o SESP.\\n Por favor verifique se os cabos da rede est�o ligados no seu \\ncomputador ou se o computador com SESP est� ligado!\\n Saia do iDART e verifique estes apectos depois volte a entrar,\\n se o problema persistir, todos registos de FILAS e registo dos novos pacientes n�o ser�o actualizados no SESP! \\n N�o foi poss�vel actualizada a �ltima opera��o no SESP!\");\r\n\tconexaoACCESS.open();\r\n\te.printStackTrace();*/\r\n \r\n}\r\n\t}", "title": "" }, { "docid": "49548ab14cc31cb83c4538c2106cb00a", "score": "0.62446296", "text": "@Override\n\tpublic RegraTributaria insert(RegraTributaria entidade) throws Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d64dad12eb71bc377b0f772ea58430d8", "score": "0.62429947", "text": "@Override\r\n public void agregarNuevoBeneficiario(Beneficiario nuevoBeneficiario){\r\n con.comprobarConexionBD();\r\n /*Convertimos Date para trabajar*/\r\n java.sql.Timestamp fecha_Nacimiento = new java.sql.Timestamp(nuevoBeneficiario.obtenerFechaNac().getTime());\r\n java.sql.Timestamp fecha_Activacion = new java.sql.Timestamp(nuevoBeneficiario.obtenerFechaInscripcion().getTime());\r\n \r\n try {\r\n instruccion = (Statement) con.conexion().createStatement();\r\n \r\n /*Introducimos la parte de Usuario*/\r\n instruccion.executeUpdate(\"INSERT INTO Usuario VALUES (\\\"\"+nuevoBeneficiario.obtenerNIFCIF() + \"\\\",\\\"\"\r\n + nuevoBeneficiario.obtenerNombre() + \"\\\",\\\"\" + nuevoBeneficiario.obtenerApellidos() + \"\\\",\\\"\" + fecha_Nacimiento\r\n + \"\\\",\\\"\" + nuevoBeneficiario.obtenerLocalidad() + \"\\\",\\\"\" + nuevoBeneficiario.obtenerActivo() + \"\\\", NULL, \\\"\" + nuevoBeneficiario.Email + \"\\\",\\\"\" + nuevoBeneficiario.Telefono + \"\\\")\");\r\n \r\n /*Introducimos la parte de Beneficiario*/\r\n instruccion.executeUpdate(\"INSERT INTO Beneficiario VALUES (\\\"\"+nuevoBeneficiario.obtenerNIFCIF() + \"\\\",\\\"\"\r\n + nuevoBeneficiario.obtenerNacionalidad() + \"\\\",\\\"\" + nuevoBeneficiario.obtenerEstadoCivil() + \"\\\",\\\"\" + nuevoBeneficiario.obtenerDomicilio()\r\n + \"\\\",\\\"\" + nuevoBeneficiario.obtenerCodigoPostal() + \"\\\",\\\"\" + fecha_Activacion + \"\\\",\\\"\" + nuevoBeneficiario.obtenerExpediente()\r\n + \"\\\",\\\"\" + nuevoBeneficiario.obtenerMotivo() + \"\\\",\\\"\" + nuevoBeneficiario.obtenerPrecioVivienda() + \"\\\",\\\"\" + nuevoBeneficiario.obtenerTipoVivienda()\r\n + \"\\\",\\\"\" + nuevoBeneficiario.obtenerObservacionesDatosPersonales() + \"\\\",\\\"\" + nuevoBeneficiario.obtenerObservacionesFamiliares()\r\n + \"\\\",\\\"\" + nuevoBeneficiario.obtenerObservacionesVivienda() + \"\\\",\\\"\" + nuevoBeneficiario.obtenerCiudadNacimiento()\r\n + \"\\\",\\\"\" + nuevoBeneficiario.obtenerSituacionEconomica() + \"\\\",\\\"\" + nuevoBeneficiario.obtenerNivelEstudios()\r\n + \"\\\",\\\"\" + nuevoBeneficiario.obtenerProfesion() + \"\\\",\\\"\" + nuevoBeneficiario.obtenerExperienciaLaboral() +\"\\\")\"); \r\n }\r\n /*Captura de errores*/\r\n catch(SQLException e){ System.out.println(e); }\r\n catch(Exception e){ System.out.println(e);}\r\n \r\n }", "title": "" }, { "docid": "aba91ff957209750cbd06adabe6a06a3", "score": "0.6232262", "text": "public void agregarTipoSancion(TipoSancion dato) throws Exception{\n\t\t@SuppressWarnings(\"static-access\")\n\t\tSession em = sesionPostgres.getSessionFactory().openSession(); \n Transaction tx = null; \n try { \n \t tx = em.beginTransaction();\n em.save( dato); \n tx.commit(); \n } catch (Exception e) { \n tx.rollback(); \n e.printStackTrace();\n throw e;\n } finally { \n em.close(); \n } \n\t}", "title": "" }, { "docid": "8ed16fc1f0ebcc6defc676a7e92161a6", "score": "0.62298673", "text": "public abstract void insertarGuardarEnTablaAtrib(boolean origen,String nombre, String valor, String tipo, String fechaIni,String horaIni, String fechaFin, String horaFin, NodeGraph node, Relation arco);", "title": "" }, { "docid": "27a2ccbbbdf59faf430b0dd2ef532c5c", "score": "0.62278306", "text": "@Override\r\n\tpublic void inserir(Usuario t) {\n\t\tentityManager.persist(t);\r\n\t}", "title": "" }, { "docid": "cb069400c3c4e9c988736bdbc69b1949", "score": "0.6224873", "text": "int insert(Servicesharetemporary record);", "title": "" }, { "docid": "dd4dea6a3c54197dbebeadbea316daf8", "score": "0.6221648", "text": "private void insertionPersonne(int id, String nom, String anniv, String lieu, String photo, String bio) {\n try {\n stInsertPersonne.setInt(1, id);\n stInsertPersonne.setString(2, nom);\n stInsertPersonne.setDate(3, (anniv != null ? Date.valueOf(anniv) : null));\n stInsertPersonne.setString(4, lieu);\n stInsertPersonne.setString(5, photo);\n stInsertPersonne.setString(6, bio);\n\n stInsertPersonne.addBatch();\n } catch (SQLException ex) {\n System.out.println(\"Error inserting person: \" + ex.getMessage());\n }\n }", "title": "" }, { "docid": "11062eb275f20a1e5c2429d409989251", "score": "0.62201184", "text": "@Override\n\tpublic void adicionarTabela() {\n\t\t\n\t}", "title": "" }, { "docid": "32311efa879d83e7e439e2b44de26b44", "score": "0.6219347", "text": "public void TambahData(String judul,String Penulis,String Harga){\n try {//try jika terjadi error\n \n String sql = \"INSERT INTO buku VALUES(NULL,'\"+judul+\"','\"+Penulis+\"',\"+Harga+\")\"; //menginisiasi atau menentukan query sql untuk menambahkan data\n stt = con.createStatement();//untuk membuat statment mengambil koneksi\n stt.executeUpdate(sql);// mengeksekusi dan mengupdtae query sql yg telah di buat dengan nama sql\n } catch (SQLException e) {//exception untuk mengatasi error sql\n System.out.println(e.getMessage());//untuk menapilkan error \n }\n\n\n}", "title": "" }, { "docid": "91ae5e52a509265c4c5ac1075d777694", "score": "0.6216846", "text": "Entidad createEntidad();", "title": "" }, { "docid": "91ae5e52a509265c4c5ac1075d777694", "score": "0.6216846", "text": "Entidad createEntidad();", "title": "" }, { "docid": "797f7fb51a31dcea7869023052ce5c09", "score": "0.6212124", "text": "void insert(TDepartmentsInfor record);", "title": "" }, { "docid": "9938a45228f64a78e2e6d00fea38de4c", "score": "0.6201455", "text": "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for(int i = 0; i < 3; i++) {\n LibroEntity entity = factory.manufacturePojo(LibroEntity.class);\n EditorialEntity editorial = factory.manufacturePojo(EditorialEntity.class);\n \n entity.setEditorial(editorial);\n \n em.persist(entity);\n em.persist(editorial);\n \n data.add(entity);\n editoriales.add(editorial);\n \n //Se crean nuevas editoriales en la base de datos, pero no al libro.\n //Que se utilizaran en los metodos create y update.\n editorialCreate = factory.manufacturePojo(EditorialEntity.class);\n editorialUpdate = factory.manufacturePojo(EditorialEntity.class);\n em.persist(editorialCreate);\n em.persist(editorialUpdate);\n }\n \n }", "title": "" }, { "docid": "22ae7e93ca54b317f68e3065fbaf8b71", "score": "0.61980665", "text": "public void insertData() throws SQLException{\n //get the connection\n Connection connection = getConnection();\n System.out.println(\"Got Connection\");\n //check if table exists\n if(!this.doesTableExist(connection)){\n //create the TABLE\n System.out.println(\"Hotel Table doesn't exist. Creating it.....\");\n createTable(connection);\n }\n\n //create the INSERT SQL\n String sql = \"INSERT INTO Hotel VALUES(?, ?, ?, ?, ?, ?, ?)\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n //if SQL statement does not return any records\n try{\n //PreparedStatement pStmt = connection.prepareStatement(sql);\n //instantiate parameters with values\n System.out.println(\"Inserting data now\");\n pStmt.clearParameters();\n pStmt.setString(1, this.hotel_name);\n pStmt.setString(2, this.branch_id);\n pStmt.setString(3, this.city);\n pStmt.setString(4, this.state);\n pStmt.setString(5, this.zip);\n pStmt.setString(6, this.address);\n pStmt.setString(7, this.phone);\n int numRows = pStmt.executeUpdate();\n }\n catch(SQLException sqle){\n throw sqle;\n }\n finally{\n pStmt.close();\n close(connection);\n }\n }", "title": "" }, { "docid": "cd50c24dcd9ce7e6016334a40fc249a9", "score": "0.61926955", "text": "@Override\n public void insert(Object obj) {\n doctor doctor = (doctor)obj;\n try{\n Statement st = this.getC().createStatement();\n st.executeUpdate(\"insert into doctor (name, surname, branch, hospital) values('\" + doctor.getName() + \"', '\" + doctor.getSurname()+\"', '\" + doctor.getBranch() + \"', \" + doctor.getHospital().getId() + \")\");\n \n }catch(SQLException e){\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "a8ec9dd54628f67f8bc6e40f97d3ed34", "score": "0.6189334", "text": "private void insertData() {\r\n for (int i = 0; i < 3; i++) {\r\n OrganizadorEntity organizador = factory.manufacturePojo(OrganizadorEntity.class);\r\n em.persist(organizador);\r\n data.add(organizador);\r\n }\r\n\r\n \r\n }", "title": "" }, { "docid": "bace45a5106895ca0995a469a118fe5e", "score": "0.61885315", "text": "private void insertarUsuario() {\n try {\n pvo.setNombre_producto(vista.jtxfNombrePt.getText());\n pvo.setTipo_producto(vista.jtxfTipoPt.getText());\n pvo.setDescripcion_producto(vista.jtxaDescripcionPt.getText());\n pvo.setFk_id_proveedor(Integer.parseInt(vista.cbxIdProveedores.getSelectedItem().toString()));\n pvo.setPrecio_producto(Double.parseDouble(vista.txtPresio.getText()));\n pdao.insertar(pvo);\n vista.jtxfNombrePt.setText(\"\");\n vista.jtxfTipoPt.setText(\"\");\n vista.jtxaDescripcionPt.setText(\"\");\n vista.cbxIdProveedores.setSelectedIndex(0);\n vista.txtPresio.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }", "title": "" }, { "docid": "80367b7ea62ce131c688110e7a41405b", "score": "0.61836773", "text": "public boolean inserir(Modelo obj) {\r\n String sql = \" insert into modelo ( nome, marca) values\"\r\n + \"(?,?)\";\r\n try {\r\n PreparedStatement pst = Conexao.getPreparedStatement(sql);\r\n pst.setString(1, obj.getDescricao());\r\n pst.setInt(2, obj.getMarca().getCodigoMarca());\r\n\r\n //executa update para mostrar as linhas alteradas\r\n if (pst.executeUpdate() > 0) {\r\n System.out.println(\"Modelo inserido com sucesso!!!\");\r\n return true;\r\n } else {\r\n //nada aconteceu feijoada, tem que retornar falso. Não alterou nenhuma linha\r\n return false;\r\n }\r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Erro SQL: \" + e.getMessage());\r\n return false;\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "74ecea0065a65fdaa293834aeeb0534e", "score": "0.61738884", "text": "int insert(ContentSupplierTbl record);", "title": "" }, { "docid": "5a4c2df5036eb047b4b17ac025f1acf3", "score": "0.6173882", "text": "private void insertarEnTabla(JTable jTableAtributos){\n //añado los atributos del node\n if (jTableAtributos!=null){\n int numberRows = jTableAtributos.getModel().getRowCount();\n for (int i=0;i<numberRows;i++){ //recorro la tabla\n String nombre = (String)jTableAtributos.getModel().getValueAt(i, 0);\n String tipo = (String)jTableAtributos.getModel().getValueAt(i, 1);\n String valor = (String)jTableAtributos.getModel().getValueAt(i, 2);\n String fSim = (String)jTableAtributos.getModel().getValueAt(i, 3);\n String fechaIni = (String)jTableAtributos.getModel().getValueAt(i, 4);\n String horaIni = (String)jTableAtributos.getModel().getValueAt(i, 5);\n String fechaFin = (String)jTableAtributos.getModel().getValueAt(i, 6);\n String horaFin = (String)jTableAtributos.getModel().getValueAt(i, 7);\n float value = (float)1/numberRows;\n //float cero = (float) 0.0;\n Object[] rowData = new Object[]{nombre, tipo, valor,fSim,fechaIni, horaIni, fechaFin,horaFin,value};\n ((DefaultTableModel)jTablePesoAtrib.getModel()).addRow(rowData);\n }\n }\n }", "title": "" }, { "docid": "77040eb0b954290a1fcc94c42eecd81e", "score": "0.6163543", "text": "public void insert(Cliente cliente){\n\t}", "title": "" }, { "docid": "7d2e14d48ede22cea92ae840e3133322", "score": "0.6161512", "text": "int insert(Yhrole record);", "title": "" }, { "docid": "b0e1e149d911e2098bec2486e6cc7bf3", "score": "0.6155745", "text": "public void insert();", "title": "" }, { "docid": "ddf3513c3cfbb9a9d70ce4e39add23de", "score": "0.61441004", "text": "public void insertarFundacion(int id,String nit, String nombre, double representante , String telefono ,String direccion, String correo, String des) throws SQLException{\n \n Conectar co= new Conectar();\n Connection reg= co.conexion();\n String sql=\"INSERT INTO fundacion (idFundacion,nit, nombre, representante , telefono ,direccion, correo, descripcion)VALUES (?,?,?,?,?,?,?,?)\";\n \n try{\n \n PreparedStatement pst=reg.prepareStatement(sql);\n pst.setInt(1, id);\n pst.setString(2,nit);\n pst.setString(3, nombre);\n pst.setDouble(4,representante);\n pst.setString(5,telefono);\n pst.setString(6, direccion);\n pst.setString(7, correo);\n pst.setString(8, des);\n int n=pst.executeUpdate();\n if (n>0){\n //System.out.println(\"registrado con exito\");\n \n }\n \n } catch (SQLException ex) {\n Logger.getLogger(FundacionDao.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n reg.close();\n }", "title": "" }, { "docid": "d7029283825ebc80bef78dd6e41cc889", "score": "0.6144013", "text": "public void agregarDatosTablaProyectos(DefaultTableModel modelo){\n try {\n conexion.setAutoCommit(false);\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT * FROM PROYECTO\");\n ResultSet resultado = declaracion.executeQuery();\n Proyecto proyecto;\n while (resultado.next()) {// ejecuta el reslutado \n proyecto = new Proyecto(resultado.getInt(\"Id\"), resultado.getString(\"Nombre\"), resultado.getBoolean(\"Activo\"), resultado.getString(\"Administrador_Proyecto\"));\n String datos[] = new String[4];// maneja datos \n datos[0]=Integer.toString(proyecto.getId());\n datos[1]=proyecto.getNombre();// maneja datos \n datos[2]=Boolean.toString(proyecto.isActivo());\n datos[3]=proyecto.getAdministradorProyecto();// maneja datos \n modelo.addRow(datos);\n }\n conexion.commit();// pone el commit true \n } catch (SQLException ex) {\n ex.printStackTrace();\n }finally{\n try {// autocommit\n conexion.setAutoCommit(true);\n } catch (SQLException ex) {\n Logger.getLogger(ValidacionProyecto.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "title": "" }, { "docid": "f805c54dbc99c73013f6433571a8d6ae", "score": "0.61426556", "text": "public boolean insertJPA(Cuenta cuenta) throws SQLException {\r\n\t\tem.persist(cuenta);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4c232d7b23721f10f6164cedcaa3b1a7", "score": "0.6141121", "text": "public UtentePk insert(Utente dto) throws UtenteDaoException;", "title": "" }, { "docid": "868a0648ea307d99c89c4d7b5a2d0beb", "score": "0.6139692", "text": "void insert(IrpChat record) throws SQLException;", "title": "" }, { "docid": "d9d0af06d19510896185594572bd2304", "score": "0.61392397", "text": "public void insertPrestamo(PrestamoModel prestamo) {\n try {\n if (conecta == null) {\n conecta = connectionDB.getConnection();\n }\n\n String sql = \"INSERT INTO prestamo (pre_id, pre_usuario, pre_rec, pre_fecha) VALUES (?, ?, ?, ?);\";\n PreparedStatement statement = conecta.prepareStatement(sql);\n statement.setInt(1, prestamo.getPre_id());\n statement.setString(2, prestamo.getPre_usuario());\n statement.setInt(3, prestamo.getPre_rec());\n statement.setString(4, prestamo.getPre_fecha());\n\n int rowsInserted = statement.executeUpdate();\n if (rowsInserted > 0) {\n JOptionPane.showMessageDialog(null, \"El prestamo fue agregado exitosamente !\");\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Código ..: \" + ex.getErrorCode()\n + \"\\nError :\" + ex.getMessage());\n }\n }", "title": "" }, { "docid": "a634836a4665b46f84f30055150615f5", "score": "0.6134502", "text": "public void guardarVenta(Venta venta) throws DataBaseException;", "title": "" }, { "docid": "f475bcde83cb2cf7071fa0fe5143f4f4", "score": "0.6130522", "text": "public void insereNaTabelaPedido(Produto prod, int qtdProd, JTable tabela) \n {\n ((DefaultTableModel) tabela.getModel()).addRow(new Object[4]);\n int linhaAtual = tabela.getRowCount() - 1;\n int i = 0;\n \n tabela.setValueAt(prod, linhaAtual, i++);\n tabela.setValueAt(qtdProd, linhaAtual, i++);\n tabela.setValueAt(prod.getCategoria().getNome(), linhaAtual, i++);\n tabela.setValueAt(prod.getPreco(), linhaAtual, i++);\n tabela.setValueAt(qtdProd * prod.getPreco(), linhaAtual, i++);\n }", "title": "" }, { "docid": "66c66697aa567c77257b60a0ccf18f64", "score": "0.6119603", "text": "public void insert() throws Exception {\n StockHistoryDao.insert(this);\n }", "title": "" }, { "docid": "a1cf54c103449aa837c333c8e097c33a", "score": "0.6119499", "text": "public void inserirProduto() {\n if (this.viewCompras.getJcbProduto().getSelectedIndex() != 0) {\n Produto produto = listaProdutos.get(this.viewCompras.getJcbProduto().getSelectedIndex() - 1);\n int quantidade = 0;\n if (!Valida.verificarVazio(this.viewCompras.getJtfQuantidade().getText())) {\n quantidade = Integer.parseInt(this.viewCompras.getJtfQuantidade().getText());\n }\n Double desconto = 0.0;\n if (!Valida.verificarVazio(this.viewCompras.getJtfDescontoProduto().getText())) {\n desconto = Double.parseDouble(this.viewCompras.getJtfDescontoProduto().getText());\n }\n Double valorTotal = ((produto.getValorCusto() * quantidade) - desconto);\n DefaultTableModel modelo = (DefaultTableModel) this.viewCompras.getTabelaProdutos().getModel();\n modelo.addRow(new String[]{this.viewCompras.getJcbProduto().getSelectedItem().toString(), quantidade + \" UN\", \"R$ \" + produto.getValorCusto(), \"R$ \" + this.viewCompras.getJtfDescontoProduto().getText(), \"R$ \" + valorTotal});\n ItemCompra itemCompra = new ItemCompra();\n itemCompra.setProdutoIdProduto(produto);\n itemCompra.setCompraIdCompra(compra);\n itemCompra.setQuantidadeProduto(quantidade + \"\");\n itemCompra.setValorTotal(valorTotal);\n listaItemCompra.add(itemCompra);\n ItemCompraDAO itemCompraDAO = new ItemCompraDAO();\n itemCompraDAO.salvar(itemCompra);\n habilitarFormaPagamento();\n campoValorTotal();\n } else {\n JOptionPane.showMessageDialog(null, Mensagem.produtoNaoSelecionado);\n }\n }", "title": "" }, { "docid": "da6ad1ca94b6b2920c8ce0dff92c8afb", "score": "0.61193246", "text": "public void insertarDetSolicitudCajaChCR(DetSolicitudCajaChCRBean detSolicitudCajaChCRBean) throws Exception;", "title": "" }, { "docid": "0149729f2e6c907552fc2076167ae13e", "score": "0.61162925", "text": "public Costo inserisci(Costo costo);", "title": "" }, { "docid": "5c6c20f7ff6b54b1b807fbcb9b893bb3", "score": "0.611156", "text": "private void adicionar() {\n String sql = \"insert into tbclientes(nomecli,endcli,fonecli,emailcli) values(?,?,?,?)\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtCliNome.getText());\n pst.setString(2, txtCliend.getText());\n pst.setString(3, txtCliFone.getText());\n pst.setString(4, txtCliEmail.getText());\n\n //validacao dos campos obrigatorios\n if ((txtCliNome.getText().isEmpty()) || (txtCliFone.getText().isEmpty())) {\n JOptionPane.showMessageDialog(rootPane, \"Preencha todos os campos Obrigatorio\");\n } else {\n\n //atualiza a tabela Dados do Formularios \n int adicionado = pst.executeUpdate();\n //confirma a insercao de dados\n //System.out.println(adicionado);\n if (adicionado > 0) {\n JOptionPane.showMessageDialog(rootPane, \"Cliente adicioando com sucesso\");\n txtCliNome.setText(null);\n txtCliend.setText(null);\n txtCliFone.setText(null);\n txtCliEmail.setText(null);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(rootPane, e);\n }\n }", "title": "" }, { "docid": "1a058013fc00fc869758a8f4f98049ae", "score": "0.6109846", "text": "public abstract void insertarEnTablaModAtrib(boolean esNodo, String valor, String fechaIni, String horaIni, String fechaFin, String horaFin, NodeGraph nodo, Relation arco);", "title": "" }, { "docid": "56044cb4ef41c0dc70299e7e05a360c5", "score": "0.61056244", "text": "int insert(TbIndustry record);", "title": "" }, { "docid": "a8d6d0f0caab83936407f70c74c0046b", "score": "0.6104957", "text": "@Override\r\n public void insertar(Participante_Campana entidad) throws SQLException {\r\n\r\n String query = \"INSERT INTO Participante_Campana (codigo_de_campana, identificacion_paciente) VALUES (?, ?)\";\r\n\r\n conn = this.conexionTransaccional != null ? this.conexionTransaccional : getConnection();\r\n if (insertar == null) {\r\n insertar = conn.prepareStatement(query);\r\n }\r\n\r\n insertar.setString(1, entidad.getCodigo_de_campana());\r\n insertar.setString(2, entidad.getIdentificacion_paciente());\r\n insertar.executeUpdate();\r\n\r\n }", "title": "" }, { "docid": "0c63f5236ac00b517efc7391e28523c1", "score": "0.61037004", "text": "private void saveData(Connection conn) {\r\n\t\ttry {\r\n\t\t\tPreparedStatement stmt = conn.prepareStatement(\"INSERT INTO employees \" +\r\n\t\t\t\"(employeeId, password, firstName, lastName, phoneNumber, email) VALUES(?, ?, ?, ?, ?, ?);\");\r\n\t\t\tstmt.setInt(1, employeeId);\r\n\t\t\tstmt.setString(2, password);\r\n\t\t\tstmt.setString(3, firstName);\r\n\t\t\tstmt.setString(4, lastName);\r\n\t\t\tstmt.setString(5, phoneNumber);\r\n\t\t\tstmt.setString(6, email); \r\n\t\t\t\t\t\r\n\t\t\tstmt.executeUpdate();\r\n\t\t\t}\r\n\t\tcatch(SQLException exception) {\r\n\t\t\tSystem.out.println(exception);\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "3d52ab8fbfb8eeb8fd69211f7b568cb6", "score": "0.6098636", "text": "@Override\r\n\tpublic void insertar() {\n\t\t\r\n\t\t\tStudent student1 = new Student(\"Ana Caro\", 1, 20);\r\n\t\t\tStudent student2 = new Student(\"Juan Arcos\", 2, 21);\r\n\t\t\tStudent student3 = new Student(\"Jhon Ruiz\", 3, 20);\r\n\t\t\tStudent student4 = new Student(\"Oscar Mayo\", 4, 18);\r\n\t\t\tStudent student5 = new Student(\"Lina Perez\", 5, 20);\r\n\t\t\tStudent student6 = new Student(\"Camila Castro\", 6, 19);\r\n\r\n\t\t\tstudents.add(student1);\r\n\t\t\tstudents.add(student2);\r\n\t\t\tstudents.add(student3);\r\n\t\t\tstudents.add(student4);\r\n\t\t\tstudents.add(student5);\r\n\t\t\tstudents.add(student6);\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "7c03f5ee492ed59154623cb0842ac0ec", "score": "0.60981894", "text": "int insertSelective(DltbEmpleador record);", "title": "" } ]
034cdc028d6d93d5cd87ff9e974f685c
Returns the modulation transmission range by transmission rate
[ { "docid": "eaf785f8b84a7430480353a0dd48c5db", "score": "0.0", "text": "public double getModulationDistanceByBandwith(Modulation modulation, double bandwidth) {\n \tDouble distance = null;\n \t\n \tif (physicalLayer.isActiveQoT()) {\n \t\tdistance = modTrDistance.get(modulation.getName()).get(bandwidth);\n \t\t\n \t\tif(distance == null) {\n \t\t\tdistance = physicalLayer.computeModulationDistanceByBandwidth(modulation, bandwidth, this);\n \t\t\tmodTrDistance.get(modulation.getName()).put(bandwidth, distance);\n \t\t}\n\t\t\t\n \t} else {\n \t\tdistance = modulation.getMaxRange();\n \t}\n \t\n \treturn distance;\n }", "title": "" } ]
[ { "docid": "61974cdccdce73596fcd7901b8cb1584", "score": "0.6927523", "text": "Range getRateRange();", "title": "" }, { "docid": "39b289f8196717f2107cfd9684c25f34", "score": "0.6202332", "text": "public int getRetransmissionIntervals() {\n return (relayIntervalSteps + 1) * 10;\n }", "title": "" }, { "docid": "727772fb34ceb2681fc2f4fa2f73e890", "score": "0.5798377", "text": "public int getTransmissionPower() {\n return transmissionPower;\n }", "title": "" }, { "docid": "e88ce51bfdf440a175bfb51e2bd5dfc6", "score": "0.57680064", "text": "public int getNetworkTransmissionInterval() {\n return (networkIntervalSteps + 1) * 10;\n }", "title": "" }, { "docid": "be661f53ad9777effeda884295058e37", "score": "0.57455516", "text": "int getSmpRate();", "title": "" }, { "docid": "b22b90d303f36a38f156793e6dacf39d", "score": "0.56845653", "text": "float getRange();", "title": "" }, { "docid": "5cc26ef78b495c23fd9b1fcee1c8333d", "score": "0.5638", "text": "public double getRange(){\n double rangeMeasured = sensor.getRangeMM();\n if (sensor.isRangeValid()){\n return rangeMeasured;\n }else{\n return 0.0; // INVALID RANGE MEASUREMENT. NOTHING CAN BE 0M CLOSE TO THE SENSOR\n }\n }", "title": "" }, { "docid": "68e2fe5ea12729793ab1b5b38447d21b", "score": "0.55907077", "text": "public double getRatePeriod(){\n return this.ratePeriod;\n }", "title": "" }, { "docid": "a57f8dd2a25c4783ceb3eeaf4bdfd031", "score": "0.5566395", "text": "public float getEmitterFlowRate(){\n return flowRate;\n }", "title": "" }, { "docid": "3cc98073749144c9db1a5a0600136fca", "score": "0.5542286", "text": "public double getTransmissionPowerThreshold() {\n return transmissionPowerThreshold;\n }", "title": "" }, { "docid": "7d850dbc643584fa5da9408376e8a0f2", "score": "0.55138946", "text": "public String computeTargetHeartRateRange() {\n String result = \"\";\n // FILL IN CODE\n\n\n return result;\n }", "title": "" }, { "docid": "15bb74e148af544fef42d39709041ef6", "score": "0.54959464", "text": "public double getRate()\r\n {\r\n return -(lEncoder.getRate() + rEncoder.getRate()) / 2;\r\n }", "title": "" }, { "docid": "07f31c212dd536aaffc1bc92ede049b2", "score": "0.5478751", "text": "int[] getMotorsSpeed();", "title": "" }, { "docid": "0593e37ef18653e8253c28c8ea277fa0", "score": "0.5430167", "text": "@Override\n public Optional<Range<Double>> getTargetPowerRange(PortNumber port, Object component) {\n double targetMin = -20;\n double targetMax = 5;\n return Optional.of(Range.open(targetMin, targetMax));\n }", "title": "" }, { "docid": "9d991cb382902bd1bda77a58a9f4042f", "score": "0.54105896", "text": "public synchronized double getRate()\n {\n return encoderRate;\n }", "title": "" }, { "docid": "2ca723524ab933d0c5d049922ce4c0ba", "score": "0.54065335", "text": "public double getRange()\r\n\t{\r\n\t\treturn range;\r\n\t}", "title": "" }, { "docid": "38893908cb99222d7eb1e35c975036d0", "score": "0.53802705", "text": "float getPeriod();", "title": "" }, { "docid": "76ec84b7e506ffa195536c7b5b437502", "score": "0.53782433", "text": "int getBaudRate();", "title": "" }, { "docid": "b856bf0ea66fd3cc16209315b909dae2", "score": "0.5320921", "text": "public int getTelemetryTransmissionInterval() {\n return telemetryTransmissionInterval;\n }", "title": "" }, { "docid": "1378636b7161eed6ed4bf1716a3b27f5", "score": "0.5319625", "text": "Mono<ExchangeRate> getRate(String base, String to);", "title": "" }, { "docid": "8ac180979702d9907e10ed0e6b85befa", "score": "0.5307355", "text": "public VariableDecimal getEmitRate() {\r\n return emit_rate;\r\n }", "title": "" }, { "docid": "2a9d5500bba8f9aff88dd205487ec4ad", "score": "0.5247951", "text": "double getRateResponse();", "title": "" }, { "docid": "754a7293a8c0b7e9d42f27ba6333e5fd", "score": "0.5231011", "text": "public double getRXValue()\n {\n return m_stick.getRawAxis(4) * driveLimiter;\n }", "title": "" }, { "docid": "a9d05ecc3bb97e1056f50ab56d331f87", "score": "0.5224621", "text": "int getVibrationMotorDeviceMinSpeed();", "title": "" }, { "docid": "d624adcb6adb3e7b59354577a9e941cb", "score": "0.52155465", "text": "public float getRange() {\n\t\treturn range;\n\t}", "title": "" }, { "docid": "2e92e8366687f71b1d67e7e4b697e279", "score": "0.52035946", "text": "public int getBitRate() {\n return bitRate;\n }", "title": "" }, { "docid": "6125e787e66e53e85b7e77a250acdef3", "score": "0.51778054", "text": "public float getRawDelay() {\n return rawDelay / srate;\n }", "title": "" }, { "docid": "a1ceb9029ce06eb1ba6d984587699937", "score": "0.51720965", "text": "private double RPMtoTalonUnits(double rpm)\n { \n // So the TalonFX uses \"encoder units/100ms\", not RPM in the Velocity control mode\n \n // there are 2048 units per revolution on a Falcon\n double unitsPerMinute = rpm * 2048;\n \n // and 60000 ms per min\n // so, 1/60000 min per ms\n // so, 1/600 min per 100ms\n double unitsPer100ms = unitsPerMinute / 600;\n\n return unitsPer100ms;\n }", "title": "" }, { "docid": "796330912e005b33a8a9c795a2c70ed6", "score": "0.51718473", "text": "gfp2p.Api.EventSetRate getSetRate();", "title": "" }, { "docid": "79640898e047107e049b0e304ab120c7", "score": "0.5168064", "text": "int getIntervalUs();", "title": "" }, { "docid": "01c05edd8d700d5b4516110ae078444f", "score": "0.5138825", "text": "public int getSamplingRate();", "title": "" }, { "docid": "9cc40220c619b6f3713bd71ec1c5324d", "score": "0.5136999", "text": "@Override\r\n\tpublic double getRX() {\n\t\treturn 2*this.a;\r\n\t}", "title": "" }, { "docid": "305a3357ea37110e1446936871d3dbdf", "score": "0.51276255", "text": "double getMaxMotorPowerPortVoltage();", "title": "" }, { "docid": "510d3f6e50a37c0b49e19b82bbdf8535", "score": "0.5112663", "text": "public double get15mEWMAThp() {\n tickIfNecessary();\n return m15Thp.getRate(TimeUnit.SECONDS);\n }", "title": "" }, { "docid": "083de8e3bf69bb738e4a37d3608192fb", "score": "0.50697505", "text": "Ratio getRateRatio();", "title": "" }, { "docid": "e11b4c1bab9bfd9242152711e20a1e8e", "score": "0.5050974", "text": "public entity.ExchangeRate getTransToReservingExchangeRate() {\n return ((gw.cc.financials.check.entity.Check)__getDelegateManager().getImplementation(\"gw.cc.financials.check.entity.Check\")).getTransToReservingExchangeRate();\n }", "title": "" }, { "docid": "97003de903f0a0f3e14e440b34430972", "score": "0.5049619", "text": "public double getAdjustedTransmissionRate(double specificTransmission,\n\t\t\tlong timeDelta) {\n\t\treturn (specificTransmission * ((double) timeDelta / (double) getTimePeriod()));\n\t}", "title": "" }, { "docid": "3f6107171b6f65e720d9fd4e375a21ce", "score": "0.5033431", "text": "public entity.ExchangeRate getTransToReservingExchangeRate() {\n return ((gw.cc.financials.check.entity.Check)__getDelegateManager().getImplementation(\"gw.cc.financials.check.entity.Check\")).getTransToReservingExchangeRate();\n }", "title": "" }, { "docid": "b2f9ef25b044f76ae7f0419a9087fa3b", "score": "0.5031714", "text": "public double getLocalScrubRateLimit() {\n return this.getDouble(LOCAL_SCRUB_RATE_LIMIT, 60);\n }", "title": "" }, { "docid": "01a0ecb435fd5aed04e810cb4945b27e", "score": "0.50215393", "text": "public default int getPowerToTransfer(PowerBurstInterface burst, ThrownEntity entity, ItemStack stack, PowerReceiverInterface receiver) {\n return burst.getPower();\n }", "title": "" }, { "docid": "1caa4c015401801c7914f9be3fa41ccb", "score": "0.5020149", "text": "public Rate getRate();", "title": "" }, { "docid": "8ba123e97e4dbdd0e8e1de63741b439d", "score": "0.50122774", "text": "gfp2p.Api.RequestSetRate getSetRate();", "title": "" }, { "docid": "a5ae08f1b12f3bbbc4608601c2774c75", "score": "0.4996433", "text": "public double getPeriod();", "title": "" }, { "docid": "1866042b7a5b32944f8e0eb0cc7bdade", "score": "0.49914998", "text": "public Integer getThrottlingBurstLimit() {\n return this.throttlingBurstLimit;\n }", "title": "" }, { "docid": "f9cc5d6381984a58520f34042804b34a", "score": "0.49907738", "text": "public static int getSensorRange() {\r\n\t\tsensorRange = Integer.valueOf(sensorRangeInput.getText());\r\n\t\treturn sensorRange;\r\n\t}", "title": "" }, { "docid": "22783aca8b22ea93f6c587e1885dcd0a", "score": "0.49900416", "text": "public static int getScanRange() {\r\n return scanRange;\r\n }", "title": "" }, { "docid": "467e52a563d51574b71053ba6a280c23", "score": "0.49882397", "text": "int getVibrationMotorDeviceMaxSpeed();", "title": "" }, { "docid": "c5a71fc645fdce2e73b1a6bc7087459d", "score": "0.4980312", "text": "public double getRightEncoderRate() {\r\n\t\treturn rightDriveEncoder.getRate();\r\n\t}", "title": "" }, { "docid": "89735b3891d5046502875764055d9979", "score": "0.4979856", "text": "public Integer getTimeRange() {\n return timeRange;\n }", "title": "" }, { "docid": "679322da727ed67338678e077a610b4d", "score": "0.49670765", "text": "@Field(17) \n\tpublic AVRational r_frame_rate() {\n\t\treturn this.io.getNativeObjectField(this, 17);\n\t}", "title": "" }, { "docid": "3a79fd6a29fe65830b8f0f649e8dce55", "score": "0.49667594", "text": "int getMotorDeviceMinVelocity();", "title": "" }, { "docid": "4abf855c17944fcc1d04ca336a95f37a", "score": "0.49664548", "text": "public Bandwidth getRate() {\n\t\treturn rate;\n\t}", "title": "" }, { "docid": "7fec8dd95e8fd6a1c0b47f3a2d8b2ff0", "score": "0.496439", "text": "public abstract double getRate();", "title": "" }, { "docid": "479e88c2d4174f803234c636111c5af3", "score": "0.49557173", "text": "public int getRange() {\n\t\treturn range;\n\t}", "title": "" }, { "docid": "3a900114a0e340b0fb2fa39ff1e842da", "score": "0.49548188", "text": "public Integer getRange() {\n return range;\n }", "title": "" }, { "docid": "565d79e70a109e998ab70fca2606d6c8", "score": "0.49540678", "text": "public Number getRate() {\r\n return (Number) getAttributeInternal(RATE);\r\n }", "title": "" }, { "docid": "35b9738bb99d9b4d0397b59216617a44", "score": "0.4952039", "text": "public NumericRange[] getRange() {\n return range;\n }", "title": "" }, { "docid": "588fd326be9f70595e72b462d9b21659", "score": "0.4943183", "text": "int getCurrentSampleRate();", "title": "" }, { "docid": "ac4805346d7ca9432487b0e480e2caa6", "score": "0.4933931", "text": "double getNiveauRadiation();", "title": "" }, { "docid": "37b43c930b3b497510a2f6c5ecb23aa8", "score": "0.49270666", "text": "com.google.protobuf.Int64Value getTargetSpendMicros();", "title": "" }, { "docid": "08875d54b406a59eca57327048ca3ce7", "score": "0.4918866", "text": "public final int getRange()\n{\n\treturn _range;\n}", "title": "" }, { "docid": "e21993faf918b70f235647b69d6a5750", "score": "0.49045515", "text": "public abstract double getExchRate();", "title": "" }, { "docid": "a6076a8a3f4bec609451b0686608a9b5", "score": "0.49040335", "text": "Integer[] getAvailableSampleRates();", "title": "" }, { "docid": "05c65050ecfb61edc756d5cffbf31100", "score": "0.49010807", "text": "float getSampleRateOverride();", "title": "" }, { "docid": "a6c0b950a0fab92e647d5ebbc60796fd", "score": "0.4900536", "text": "public int getSamplingRate() {\n return samplingRate;\n }", "title": "" }, { "docid": "0623ac906f3d41825c3730a08dfcd95e", "score": "0.489973", "text": "public long getRssiReportingRate() {\n return rssiReportingRate;\n }", "title": "" }, { "docid": "db2434df83532be315430f236a1d78ef", "score": "0.48971093", "text": "public abstract int getSampleRate();", "title": "" }, { "docid": "04fa6e46ff7318031a39a1409a38842e", "score": "0.48886502", "text": "@Model\r\n\tprivate double capacityStrengthBetween1020(double strength){\r\n\t\tif (strength>10 && strength<=11){return 115;}\r\n\t\telse if (strength>11 && strength<=12){return 130;}\r\n\t\telse if (strength>12 && strength<=13){return 150;}\r\n\t\telse if (strength>13 && strength<=14){return 175;}\r\n\t\telse if (strength>14 && strength<=15){return 200;}\r\n\t\telse if (strength>15 && strength<=16){return 230;}\r\n\t\telse if (strength>16 && strength<=17){return 260;}\r\n\t\telse if (strength>17 && strength<=18){return 300;}\r\n\t\telse if (strength>18 && strength<=19){return 350;}\r\n\t\telse if (strength>19 && strength<=20){return 400;}\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "a6f02f25b93138e401836663ce23187f", "score": "0.48846963", "text": "public float getInterval() {\n return interval;\n }", "title": "" }, { "docid": "8a9a831e88384072b373cb6797af1b79", "score": "0.48841056", "text": "@Override\n\t\tpublic double get()\n\t\t{\n\t\t\tDouble rate = m_encoder.getRate();\n\t\t\tif (Double.isFinite(rate))\n\t\t\t{\n\t\t\t\treturn rate * m_gain;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}", "title": "" }, { "docid": "f3694842c5dabf0c1b9f76eb13d1e825", "score": "0.48675188", "text": "int getRssi();", "title": "" }, { "docid": "f675014d501ff4207189e3252d799d25", "score": "0.4862661", "text": "public int getIntervalUs() {\n return intervalUs_;\n }", "title": "" }, { "docid": "828350b60eb4374a2aed5824068338d8", "score": "0.48625124", "text": "public IborRateCalculation getCalculation() {\n return calculation;\n }", "title": "" }, { "docid": "9644e78e3079bad0f27dfc413cfa1cdc", "score": "0.485523", "text": "public int getUnblockOutputDelayMicros() {\n \tif (isEnded()) {\r\n \t\treturn 0;\r\n \t}\r\n \tfloat delaySecs = (getSampleLength() - getSourceSampleOffset()) / (float) getSampleRate();\r\n \tint delayMicros = (int) (delaySecs * 1000000);\r\n \r\n \treturn delayMicros;\r\n }", "title": "" }, { "docid": "17be4769fbec3d193826af5bcad9ed7a", "score": "0.48518872", "text": "private double getTrafficLevel() {\r\n\t\tswitch (jComboBox5.getSelectedIndex()) {\r\n\t\tcase 0:\r\n\t\t\treturn 0.85;\r\n\t\tcase 1:\r\n\t\t\treturn 0.6;\r\n\t\tcase 2:\r\n\t\t\treturn 0.3;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "4861fd520b29ae12f256fa82a0c343ad", "score": "0.48494416", "text": "int getTctToneCmas();", "title": "" }, { "docid": "0cd6bc83a1ed8e19de00db77b4aaec5b", "score": "0.48466328", "text": "public double[] getTPS() {\n/* 2212 */ return new double[] {\n/* 2213 */ (MinecraftServer.getServer()).tps1.getAverage(), \n/* 2214 */ (MinecraftServer.getServer()).tps5.getAverage(), \n/* 2215 */ (MinecraftServer.getServer()).tps15.getAverage()\n/* */ };\n/* */ }", "title": "" }, { "docid": "f4898a1a3543ce131e4a988e2fddd0a0", "score": "0.48443812", "text": "public BigDecimal getSampleRate() {\n return sampleRate;\n }", "title": "" }, { "docid": "c612231f0e213a29042436d8be2fee5c", "score": "0.48439217", "text": "Interval1 getPeriod();", "title": "" }, { "docid": "4ec29e72769ec8139f08d98a0c8bca0a", "score": "0.48410532", "text": "public static int decodeNetworkTransmissionInterval(final int interval) {\n if ((interval >= 10 && interval <= 320) && (interval % 10 != 0))\n throw new IllegalArgumentException(\"Network Transmission Interval must be 10-320 ms with a step of 10 ms\");\n return (interval / 10) - 1;\n }", "title": "" }, { "docid": "5dace67de9157fb9453f097f2b71897d", "score": "0.4837261", "text": "public double getSignalStrength () {\n\t\treturn signalStrength;\n\t}", "title": "" }, { "docid": "e983ff1b2ded2b30d402a6cd65527091", "score": "0.48352975", "text": "public String getBitRate() {\n return mBitRate;\n }", "title": "" }, { "docid": "477b0c61c4feb5d6633a18f0bd604b1e", "score": "0.4828009", "text": "public double magnetisation(){\n\t\tdouble m=0;\n\t\tfor (Spin s: all()){\n\t\t\tm+=s.getSpin()?1:-1;\n\t\t}\n\t\treturn m;\n\t}", "title": "" }, { "docid": "cf38898ce73ee36672c8b80925d42f71", "score": "0.48245054", "text": "public int getSampleRate(){\r\n return sampleRate;\r\n }", "title": "" }, { "docid": "c59a27f6f15e0136af701e1295541cfa", "score": "0.4823662", "text": "public double getRate()\r\n {\r\n \treturn recycleBinClawEncoder.getRate();\r\n }", "title": "" }, { "docid": "4bcf04e08129b5bf2dbc0c17833d3e8b", "score": "0.48211142", "text": "double getNiveauRadiationCumule();", "title": "" }, { "docid": "e90f81a70fe1d197e50fc1f3535d2de7", "score": "0.48145035", "text": "public int getIntervalUs() {\n return intervalUs_;\n }", "title": "" }, { "docid": "edc49ca949a799dd99ad73d59ec42133", "score": "0.48031828", "text": "public ArrayList<SubOption> getTransmissions() {\n return transmissions;\n }", "title": "" }, { "docid": "626eb3a29acb549f7a80c14fa525779d", "score": "0.48023108", "text": "public double getConversionRate() {\r\n return conversionRate;\r\n }", "title": "" }, { "docid": "a1caee8d927592aae65818c46e05ac5d", "score": "0.4802281", "text": "public int getBaseRangedAttack() {\n return baseRangedAttack;\n }", "title": "" }, { "docid": "42b56cb4006e915c4b32cd36f17150e3", "score": "0.48017478", "text": "public double getRatePerAdditionalMinutes() {\n return this.ratePerAdditionalMinutes;\n }", "title": "" }, { "docid": "6b1d4d4759a6e4cfb3200036489c2995", "score": "0.48012286", "text": "@java.lang.Override\n public io.envoyproxy.envoy.type.v3.PercentOrBuilder getIntervalJitterOrBuilder() {\n return getIntervalJitter();\n }", "title": "" }, { "docid": "c366af7ffcbdb30fe582a794bff34fd8", "score": "0.47950652", "text": "public int getTalkInterval() {\n/* 505 */ return 400;\n/* */ }", "title": "" }, { "docid": "b5ee94106b5597f889474cc3723cb001", "score": "0.4793993", "text": "public Short getTempRange() {\n return tempRange;\n }", "title": "" }, { "docid": "dbf8ddc701354668d7a3281461d77f26", "score": "0.47926506", "text": "public org.apache.axis.types.UnsignedInt getRange() {\n return range;\n }", "title": "" }, { "docid": "65a5a388a3594f186b4bf9b1754293fb", "score": "0.4790804", "text": "public double getRangeMin(int tileType){\n return rangeMins[tileType];\n }", "title": "" }, { "docid": "c4a76581d9ef78cc72d115bceaeb42a6", "score": "0.4790073", "text": "public Long getBaudRate() {\n\t\treturn baudRate;\n\t}", "title": "" }, { "docid": "89592f4443134c772311f71bc940ff43", "score": "0.47788173", "text": "public int getInterval();", "title": "" }, { "docid": "f7744bea0ae0b591a13390a839dbee5e", "score": "0.47784907", "text": "gfp2p.Api.ResponseSetRate getSetRate();", "title": "" }, { "docid": "961e2876a418bf392f8eb0a80df2d59c", "score": "0.47757897", "text": "public com.vmware.converter.NumericRange[] getVlanSupportSwitchMtu() {\r\n return vlanSupportSwitchMtu;\r\n }", "title": "" }, { "docid": "8b4b5ad24b455f8b7abceb52d742be98", "score": "0.47749376", "text": "int getMotorDeviceMaxVelocity();", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "253851cd3d9f7d772c8a5358b03e2d04", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tMethodOverlodingExample m=new MethodOverlodingExample();\n\t\tm.Shape(5);\n\t\tm.shape(5, 3);\n\t\tm.shape(0.5, 3, 2);\n\n\t}", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6831473", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.67589027", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.6593355", "text": "@Override\r\n\tpublic int attaquer() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.649512", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64787245", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.6443756", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "592b765f0188dd7fa8d3f1f3683fa9d7", "score": "0.62889814", "text": "@Override\n\tprotected void generateData() {\n\t\t\n\t}", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6277223", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.6273419", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6230557", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6218078", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.61277896", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.60921794", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.6052283", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.60330045", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60203654", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60185045", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.60134614", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.59843665", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.598327", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "8a997a9a187c71891dd8b44afdbaa2a2", "score": "0.59794915", "text": "private void noOtomatis(){\n\n \n \n \n\n }", "title": "" }, { "docid": "0056b38abf02cf94e7a1afab1755d909", "score": "0.59666646", "text": "@Override\r\n\tpublic void defendre() {\n\t\t\r\n\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.596291", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.59580564", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.5951102", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.59232795", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "fb8e5a5b14d5c382d38f4afcb6d4f55d", "score": "0.59119946", "text": "@Override\r\n\tpublic void reculer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.58930063", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.5845612", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "c34617230b51592fc8652a6c8fc39d7b", "score": "0.5841976", "text": "@Override\n\t\t public int describeContents() { \n\t\t return 0;\n\t\t }", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.58368444", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74acf90efa52ac7bee2d28c6dee180bf", "score": "0.5808944", "text": "public void mo25302P() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805753", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "4958a5331fdb65d09e333f006441f701", "score": "0.57990485", "text": "@Override\n public int size() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "2a790ebdc342a2b85b21b58d99e8bb02", "score": "0.57934815", "text": "@Override\n\tpublic void landen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.5790544", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "925ab02db0448f51f913efd603e7b5b4", "score": "0.57877386", "text": "@Override\n\tpublic void breathe() {\n\n\t\t\n\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7dbef6468de164eadd6d220b4ed2936", "score": "0.57625693", "text": "@Override\n\tpublic void vegetais() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5754491", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.57471", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "bf96ef68c4dc727efe52fcae4e20a6c6", "score": "0.5736261", "text": "@Override\r\n public int getType() {\n return 1;\r\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b16d59a149827c698e510477f7a4e9d", "score": "0.57292205", "text": "public void mo9585b() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.57232136", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.5712038", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.5705727", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.5699155", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.56942755", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.56936175", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "ddd8d8a26991b887b8f19171d700e1d3", "score": "0.56922704", "text": "@Override\n\tpublic void proveerdatos() {\n\t\t\n\t}", "title": "" }, { "docid": "e21063ae833db842230f1d37006a0359", "score": "0.56854326", "text": "@Override public int getAtaque(){\n\n return 0;\n\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56631064", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "2aed4e4b25907c376dc30c486b4f975f", "score": "0.5657416", "text": "public final void mo73469b() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
a30d447b5ab53b21cf14653a7d256af3
to get the element at a given position
[ { "docid": "a9e8c8457271abe9dc804ba3922507e9", "score": "0.6718154", "text": "public Entry<K,V> get_element(Position<Entry<K,V>> p) {\r\n\treturn p.getElement();\r\n\t\r\n}", "title": "" } ]
[ { "docid": "a1a6c545284fd2ca5fc38f9e878a3112", "score": "0.7796932", "text": "public Elem<?> retrieve(Pos<?> pos);", "title": "" }, { "docid": "909a90ff78c2e014dcd3ea2c872cebbf", "score": "0.76281536", "text": "T at(int position);", "title": "" }, { "docid": "9ad4f8fa128215fb23170252ecb0f8c9", "score": "0.7455708", "text": "public T get(int position);", "title": "" }, { "docid": "c19a13d9bcdc9fe48d4fe90c17b9cda1", "score": "0.72587186", "text": "ELEMENT_TYPE get(int index);", "title": "" }, { "docid": "86d6db650ac39188254e221891885e3c", "score": "0.7222366", "text": "@Override\n\tpublic WebElement get(int position) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9840c6d4c70f6f7f1e5ecc92dea2bea4", "score": "0.721917", "text": "abstract public Element get(int i);", "title": "" }, { "docid": "7aab43064bee6de3a7fd32b564d715f1", "score": "0.7215587", "text": "public Element get(Position position){\n return board[position.line][position.column];\n }", "title": "" }, { "docid": "a4c57fc151ffa2110fc5e4483c3601c9", "score": "0.7125493", "text": "public Element getElement(Position pos) {\n\t\treturn carte[pos.getX()][pos.getY()];\n\t}", "title": "" }, { "docid": "83454f4e31fc48ca9342dc66f17651c6", "score": "0.7077392", "text": "E get(int index);", "title": "" }, { "docid": "83454f4e31fc48ca9342dc66f17651c6", "score": "0.7077392", "text": "E get(int index);", "title": "" }, { "docid": "83454f4e31fc48ca9342dc66f17651c6", "score": "0.7077392", "text": "E get(int index);", "title": "" }, { "docid": "be206a57172c1b33c761cf6dfc72f3aa", "score": "0.7053474", "text": "public T getElement( int pos) \n\t{\n\t\t//si esta vacio o el indice no es correcto, devuelve null\n if (isEmpty() || (pos < 0 || pos >= size())) {\n return null;\n } else if (pos == 0) {\n return firstElement();\n } else if (pos == size() - 1) {\n return lastElement(); \n } else {\n \n Nodo<T> buscado = getNode(pos);\n \n return buscado.getDato();\n }\n\t}", "title": "" }, { "docid": "97fdf9570254229a6718cde5e8521db4", "score": "0.6994916", "text": "public Integer getPosition();", "title": "" }, { "docid": "52b941a18804dad767eaec42702a2ee0", "score": "0.6990372", "text": "public MapElement getElement(int position)\n {\n if (position > (map[0].length * map.length)-1)\n {\n throw new IllegalArgumentException(\"No such map element.\");\n }\n\n return map[position/map[0].length][position%map[0].length];\n\n }", "title": "" }, { "docid": "b386444650498d926aa24ce33a8ceb44", "score": "0.69491255", "text": "public T getElement(int pos)\n {\n return heap[pos]; \n }", "title": "" }, { "docid": "47cecf3ae1e8524dfedbac4f1057d424", "score": "0.6898804", "text": "Integer getPosition();", "title": "" }, { "docid": "dbf50cb914e244ddd49db5a1b3e3fbae", "score": "0.68776405", "text": "public int getPosition();", "title": "" }, { "docid": "dbf50cb914e244ddd49db5a1b3e3fbae", "score": "0.68776405", "text": "public int getPosition();", "title": "" }, { "docid": "dbf50cb914e244ddd49db5a1b3e3fbae", "score": "0.68776405", "text": "public int getPosition();", "title": "" }, { "docid": "dbf50cb914e244ddd49db5a1b3e3fbae", "score": "0.68776405", "text": "public int getPosition();", "title": "" }, { "docid": "dbf50cb914e244ddd49db5a1b3e3fbae", "score": "0.68776405", "text": "public int getPosition();", "title": "" }, { "docid": "f24dcc5fa9cfa9f71661ac83ace1e88b", "score": "0.687589", "text": "Object get(int index);", "title": "" }, { "docid": "f24dcc5fa9cfa9f71661ac83ace1e88b", "score": "0.687589", "text": "Object get(int index);", "title": "" }, { "docid": "f24dcc5fa9cfa9f71661ac83ace1e88b", "score": "0.687589", "text": "Object get(int index);", "title": "" }, { "docid": "098b8ba225f3ff0789f16a6c0ee7ad69", "score": "0.6836892", "text": "Optional<Integer> elementOffset();", "title": "" }, { "docid": "cc6108a736e833e1e50114eba738beb4", "score": "0.6825097", "text": "protected abstract Vector2 getPosition(E element);", "title": "" }, { "docid": "dcf2bd36d124e223b95c734f20f5d26a", "score": "0.680069", "text": "public int element();", "title": "" }, { "docid": "eb06bce95a846df9ac0e292f34d8351b", "score": "0.67807287", "text": "public E get(int index) {\n checkPositionElementIndex(index);\n return node(index).item;\n }", "title": "" }, { "docid": "79e4fe6db45acb75844ae8772e3113bc", "score": "0.6762407", "text": "public E get(int index) {\n // rangeCheck(index) not necessary - would fail with AIOOBE anyway\n return elementData[(index < gapStart) ? index : (index + gapLength)];\n }", "title": "" }, { "docid": "1874fc8928128422bb101e34b749b933", "score": "0.6760353", "text": "E get(int index) throws IndexOutOfBoundsException;", "title": "" }, { "docid": "dfd3cfd05191942e2911eea13e93e884", "score": "0.67522436", "text": "public T get(int pos) {\n return lst.get(pos);\n }", "title": "" }, { "docid": "1e965df604e2d5bf6b811502d0f7d0bf", "score": "0.6748402", "text": "public int get(int index);", "title": "" }, { "docid": "58329246bb258184f91a85de8ca1bf15", "score": "0.67144847", "text": "K getElement(int index);", "title": "" }, { "docid": "d71fb04dc7e386eb902632ea21b87583", "score": "0.669465", "text": "public E get(int index);", "title": "" }, { "docid": "8c25b81f8ca398ba11dc25652c01d1d4", "score": "0.6685691", "text": "public T get(int i) {\r\n\t\tif (i < 0 || i > size - 1)\r\n\t\t\tthrow new IllegalArgumentException(\"Index is out of range.\");\r\n\t\tLocation getLoc = locate(i);\r\n\t\treturn getBlock(getLoc.blockIndex).getElement(getLoc.elementIndex);\r\n\t}", "title": "" }, { "docid": "400d1255d87c7d754a006cbe0125ee40", "score": "0.66798156", "text": "public Element getElement(ElementLocation location);", "title": "" }, { "docid": "8c8b8de5a84c9831be6b20fafd508a40", "score": "0.66730994", "text": "public K get(int posicion);", "title": "" }, { "docid": "3c54041f5eb4c885e617b58c6f6d1b3c", "score": "0.6652036", "text": "T get(int index);", "title": "" }, { "docid": "3c54041f5eb4c885e617b58c6f6d1b3c", "score": "0.6652036", "text": "T get(int index);", "title": "" }, { "docid": "3c54041f5eb4c885e617b58c6f6d1b3c", "score": "0.6652036", "text": "T get(int index);", "title": "" }, { "docid": "3c54041f5eb4c885e617b58c6f6d1b3c", "score": "0.6652036", "text": "T get(int index);", "title": "" }, { "docid": "3c54041f5eb4c885e617b58c6f6d1b3c", "score": "0.6652036", "text": "T get(int index);", "title": "" }, { "docid": "3c54041f5eb4c885e617b58c6f6d1b3c", "score": "0.6652036", "text": "T get(int index);", "title": "" }, { "docid": "d0877f07d6a3a3d26b2805c16a392250", "score": "0.6647632", "text": "public Object get(int index) {\n return elementVector.get(index);\n }", "title": "" }, { "docid": "4613d2d0e45891c5b7cbd32b63d2c143", "score": "0.6628389", "text": "int get(int index);", "title": "" }, { "docid": "4613d2d0e45891c5b7cbd32b63d2c143", "score": "0.6628389", "text": "int get(int index);", "title": "" }, { "docid": "e2ca54aef245359c568e3401ea4d9051", "score": "0.66205907", "text": "public T get(int pos) throws Exception {\n if (pos < 0 || pos >= this.size)\n throw new Exception();\n return arr[pos];\n }", "title": "" }, { "docid": "ba9f46ceb33c578129f45e9fb453987c", "score": "0.6616938", "text": "String getPosition();", "title": "" }, { "docid": "ba9f46ceb33c578129f45e9fb453987c", "score": "0.6616938", "text": "String getPosition();", "title": "" }, { "docid": "dd45f1e1df1e3e12824460327ff2d217", "score": "0.66156256", "text": "public abstract int getint(int pos);", "title": "" }, { "docid": "8aae0c92dc7e14bdb70e7febae52af51", "score": "0.66127187", "text": "public T get(int index);", "title": "" }, { "docid": "e9307ee63837de43d9d13eb7b1fff3cb", "score": "0.660903", "text": "public T get(int index) {\r\n RangeCheck(index);\r\n \r\n return elementData[index];\r\n }", "title": "" }, { "docid": "7365176a7781faba4a3367d200d001e5", "score": "0.65821654", "text": "protected T getElement(int index)\r\n\t{\r\n\t\tif (index < 0 || index >= this.elements.size()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Element index \" + index + \" is out of bounds.\");\r\n\t\t}\r\n\t\treturn this.elements.get(index);\r\n\t}", "title": "" }, { "docid": "d31a7ad29219f4e3207789cdd5253a4f", "score": "0.6563226", "text": "int getPosition();", "title": "" }, { "docid": "d31a7ad29219f4e3207789cdd5253a4f", "score": "0.6563226", "text": "int getPosition();", "title": "" }, { "docid": "d31a7ad29219f4e3207789cdd5253a4f", "score": "0.6563226", "text": "int getPosition();", "title": "" }, { "docid": "d31a7ad29219f4e3207789cdd5253a4f", "score": "0.6563226", "text": "int getPosition();", "title": "" }, { "docid": "d31a7ad29219f4e3207789cdd5253a4f", "score": "0.6563226", "text": "int getPosition();", "title": "" }, { "docid": "cd480f9417a8caacd68ba0043d6a2c58", "score": "0.65575725", "text": "public TemplateVectorElement getElement(int index);", "title": "" }, { "docid": "2e66ad7a6c9c7af546cb0d66a2b4516e", "score": "0.6529651", "text": "private T get(int index)\r\n {\r\n if (index >= size || index < 0)\r\n return null;\r\n else\r\n return elements[index];\r\n }", "title": "" }, { "docid": "f34bf66d293edffc3824636812277f35", "score": "0.6526461", "text": "public Object getObject(int pos) { return internal[pos]; }", "title": "" }, { "docid": "e7019f185943c1ea65fe22e4869a05c8", "score": "0.65023375", "text": "T getItemAt(int position);", "title": "" }, { "docid": "2bef38d37cdf847abb77c1a177718ec3", "score": "0.65006244", "text": "Expr getElem();", "title": "" }, { "docid": "749a4191cadb7d8f9e042b6deff4a1ea", "score": "0.6499336", "text": "public HudElement getElement(int index) {\n\t\treturn contents.get(index);\n\t}", "title": "" }, { "docid": "bf4903c4445a8fada013294557d97e52", "score": "0.64984703", "text": "public OtpErlangObject elementAt(int i) {\n if ((i >= arity()) || (i < 0)) return null;\n return elems[i];\n }", "title": "" }, { "docid": "939c4387419755b0dc9e2ba29af66e5b", "score": "0.6497316", "text": "public TrainingElement elementAt(int idx) {\n\t\treturn this.elements.elementAt(idx);\n\t}", "title": "" }, { "docid": "603f799ad2623c394773ade4ea5f010f", "score": "0.64948076", "text": "public abstract int position();", "title": "" }, { "docid": "72a463b2bff76c249fae3ec64269719b", "score": "0.6489544", "text": "@Override\n\tpublic T get(int i) {\n\t\tif (i >= 0 && i < this.len) {\n\t\t\treturn (T) this.element[i];\n\t\t} else\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "90a9b0ba645dce3cbebbc0528169c587", "score": "0.648319", "text": "@Override\n\tpublic E elementAt(int anOrder) {\n\t\tif(isEmpty()){\n\t\t\treturn null;\n\t\t} else {\n\t\t\tE returnElement;\n\t\t\tNode<E> searchNode = this._head;\n\t\t\tfor(int i=0; i<anOrder; i++) {\n\t\t\t\tsearchNode= searchNode.next();\n\t\t\t}\n\t\t\treturnElement = searchNode.element();\n\t\t\treturn returnElement;\n\t\t}\n\t}", "title": "" }, { "docid": "5adb2e33a414087289070cabc5b8c710", "score": "0.6468694", "text": "public int getPosition() throws XQException;", "title": "" }, { "docid": "94b973e60faadac225c9321d5686af64", "score": "0.64665985", "text": "public int position();", "title": "" }, { "docid": "ea53ac314a9206d158f781b82b4808c9", "score": "0.646543", "text": "double getPositionAt(double x);", "title": "" }, { "docid": "b104630cac6b1a614781aba6d27e3946", "score": "0.6402903", "text": "public Object getElementAt(int arg0) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "24a21cabbea0851a48272d1509319b1d", "score": "0.6394515", "text": "public T getEntry(int givenPosition) {\n\t\tif((givenPosition >= 1) && (givenPosition<= numberOfEntries)){\n\t\t\treturn list[givenPosition];\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9bfaec4f432a4f8690e370a14ddce72c", "score": "0.6384763", "text": "public int getPosition() {\r\n if(isEmpty()){\r\n throw new java.util.NoSuchElementException();\r\n }\r\n return currentPosition;\r\n }", "title": "" }, { "docid": "1b780285b0352957dc0485062ede2e3c", "score": "0.6381618", "text": "@Override\n\tpublic WebElement get(String label, int position) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "78e688f6254845354cc47b12ba8f50d9", "score": "0.63740534", "text": "@SuppressWarnings({\"unchecked\", \"cast\"})\n public Element getElement(int i) {\n return (Element)getElementList().getChild(i);\n }", "title": "" }, { "docid": "3f19d6ec0d5039072d1d3cbbc79de790", "score": "0.63686967", "text": "@Override\n\tpublic E getAt(int index) {\n\t\tif (index < this.getSize() && index >= 0) {\n\t\t\tint i = 0;\n\t\t\tfor (DNode<E> nodeTraveler = header.nextNode; nodeTraveler != trailer; nodeTraveler = nodeTraveler.nextNode) {\n\t\t\t\tif (i == index) {\n\t\t\t\t\treturn nodeTraveler.getElement();\n\t\t\t\t}\n\t\t\t\t++i;\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Index Out of Bounds.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "600b7766ee03d30e16b45c45bb0de501", "score": "0.636558", "text": "public ListElement retrieveElement(int indexPosition)\n\t{\n\t\tif (indexPosition < 0 || indexPosition > listLength)\n\t\t\treturn null;\n\t\t\n\t\telse\n\t\t{\n\t\t\tcurrentNode = head; // sets currentNode equal to the start of the list\n\t\t\t\n\t\t\t// iterates currentNode until correct node is found\n\t\t\tfor (int i = 0; i < indexPosition - 1; i++)\n\t\t\t\tcurrentNode = currentNode.getNext();\n\t\t\t\n\t\t\treturn currentNode; // returns the correct node back to main\n\t\t}\n\t}", "title": "" }, { "docid": "6d80a32484f566b438d7889c101d03e1", "score": "0.63576716", "text": "public E getElementAt(int index) throws SLLBoundsException {\n\t\tSLLNode<E> node = findNodeAt(index);\t\t\n\t\treturn node.getElement();\n\t\t\n\t}", "title": "" }, { "docid": "8c4b95e67d9b8f6e2b44ab8a3c49b557", "score": "0.6353351", "text": "public E get(int i) throws IndexOutOfBoundsException;", "title": "" }, { "docid": "ae7835136c8629445be51bb7c9edcb50", "score": "0.6321042", "text": "public Item itemAt(int n);", "title": "" }, { "docid": "d7e85e1551dca898c5450989465e6da6", "score": "0.6311417", "text": "@Override\n public T get(final int index) {\n if (index > size()) {\n return null;\n }\n Item<T> current = first;\n for (int i = 0; i <= index; i++) {\n if (i == index) {\n return current.element;\n }\n current = current.getNext();\n }\n return null;\n // END\n }", "title": "" }, { "docid": "f5cb107594f046bd0827618260f4c4d7", "score": "0.6309098", "text": "@Override\n public T obtenirElement(int idGroupe, int position){\n T element = null;\n if(groupeExiste(idGroupe)){\n Boolean trouver = false;\n int i = 0;\n while (i < this.elements.size() && !trouver){\n int z = 1;\n MaillonListe<T> maillonListe = this.elements.get(i);\n MaillonGroupe<T> maillon = maillonListe.getInfo();\n int gId = maillon.getInfo().getId();\n if(gId == idGroupe){\n while (maillon != null && !trouver){\n if(z == position){\n element = maillon.getInfo();\n trouver = true;\n }\n maillon = maillon.getSuivant();\n z++;\n }\n if (!trouver){\n throw new NoSuchElementException();\n }\n }\n i++;\n }\n }else{\n throw new NoSuchElementException();\n }\n return element;\n }", "title": "" }, { "docid": "5e0b18089af3c305c13855c81311dd68", "score": "0.6307396", "text": "public T get(int index) {\n if (index >= size) {\n return null;\n }\n return items[(startPos + index) % items.length];\n }", "title": "" }, { "docid": "0f8eabd75dedb61675109ae8d9c42793", "score": "0.630455", "text": "@Override\n public E get(int index) {\n Node<E> result = null;\n for (int i = 0; i <= index; i++) {\n result = (Node<E>) iterator().next();\n }\n return result.getElement();\n }", "title": "" }, { "docid": "b6ab57c22de20d96a99172800d5c45d6", "score": "0.6303828", "text": "Element get(Number representant);", "title": "" }, { "docid": "e81467c712ce8b2e89d8fed3b94f01e3", "score": "0.6297847", "text": "public long getPosition();", "title": "" }, { "docid": "74246db8325ebe09f77f8444ab11bca3", "score": "0.628906", "text": "public E get(int index){\n if(index < 0 || index >= length)\n throw new IndexOutOfBoundsException();\n return this.getNode(index).get();\n }", "title": "" }, { "docid": "5eadddc59a598092345841498b29aec1", "score": "0.62867504", "text": "public T getAt(int position) {\n if (position >= size()) {\n String msg = String.format(\"Can't access element at position %d from list of size %d\", position, size());\n throw new ArrayIndexOutOfBoundsException(msg);\n }\n\n SLLNode currentNode = head;\n T targetNode = null;\n\n for (int i = 0; i <= position; i++) {\n if (i == position) {\n targetNode = currentNode.data;\n break;\n } else {\n currentNode = currentNode.next;\n }\n }\n\n return targetNode;\n }", "title": "" }, { "docid": "ded2e270cf72c3c5ec13d75091f8fa3d", "score": "0.6285223", "text": "public Object get(int index) {\n/* 338 */ return getListableAt(index).value();\n/* */ }", "title": "" }, { "docid": "0598bdc92be59aee14f198a2104f3b4a", "score": "0.6276017", "text": "String get(int index);", "title": "" }, { "docid": "63444a90b9ab675c35ef64f3404d724f", "score": "0.6273605", "text": "@Override\n\tpublic E get(int index) {\n\t\t// TODO: Complete\n\t\treturn array[index];\n\t}", "title": "" }, { "docid": "b31484ec5c48564606ab130e9d0e134c", "score": "0.62650025", "text": "public int get(int index) {\n if (index < 0 || index >= size) {\n return -1;\n }\n return findNode(index).element;\n }", "title": "" }, { "docid": "db785708fdd7eabdbf04ebf760fcc2bd", "score": "0.6263657", "text": "@Override\n public T get(int index) {\n if (index >= size) { return null;\n } else {\n int i = (index + first >= items.length) ? (index + first - items.length) : index + first;\n return items[i];\n }\n }", "title": "" }, { "docid": "bf53c38c0e972de9d9bb2232641c01df", "score": "0.6257898", "text": "public double getPositionAt(int index) {\n return elements.get(index).position;\n }", "title": "" }, { "docid": "1612c45bbbc56441c4a900fadde8324d", "score": "0.6254471", "text": "public int getX(){\n return pos[0];\n }", "title": "" }, { "docid": "16fbc6584086781bb20c7b5672ab20b2", "score": "0.6246134", "text": "long position();", "title": "" }, { "docid": "16fbc6584086781bb20c7b5672ab20b2", "score": "0.6246134", "text": "long position();", "title": "" }, { "docid": "4a0c0a29ed8012e59aa53a408156b02d", "score": "0.6242544", "text": "public E get(int index) {\n if (index > this.index) {\n throw new NoSuchElementException();\n }\n return (E) container[index];\n }", "title": "" } ]
bf8a4c2791840fbd5f4d3ef0ab6cc6aa
optional int32 netId = 2;
[ { "docid": "33f6b8d981c95f2a4358ed53c8e515b2", "score": "0.54403585", "text": "public boolean hasNetId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" } ]
[ { "docid": "28c8d1dea9f06f065c77555bc98a16f5", "score": "0.74225146", "text": "int getNetId();", "title": "" }, { "docid": "28c8d1dea9f06f065c77555bc98a16f5", "score": "0.74225146", "text": "int getNetId();", "title": "" }, { "docid": "28c8d1dea9f06f065c77555bc98a16f5", "score": "0.74225146", "text": "int getNetId();", "title": "" }, { "docid": "28c8d1dea9f06f065c77555bc98a16f5", "score": "0.74225146", "text": "int getNetId();", "title": "" }, { "docid": "a22c5851f1b44a817420767c2c69764d", "score": "0.699637", "text": "public int getNetworkID();", "title": "" }, { "docid": "790b93ddf39dc91d75291131980d745c", "score": "0.6668773", "text": "public int getNetId() {\n return netId_;\n }", "title": "" }, { "docid": "790b93ddf39dc91d75291131980d745c", "score": "0.6668773", "text": "public int getNetId() {\n return netId_;\n }", "title": "" }, { "docid": "790b93ddf39dc91d75291131980d745c", "score": "0.6668773", "text": "public int getNetId() {\n return netId_;\n }", "title": "" }, { "docid": "790b93ddf39dc91d75291131980d745c", "score": "0.6668773", "text": "public int getNetId() {\n return netId_;\n }", "title": "" }, { "docid": "06438ee11ac4a69f39aeecfe7e09f453", "score": "0.6563605", "text": "int getNetworkValue();", "title": "" }, { "docid": "06438ee11ac4a69f39aeecfe7e09f453", "score": "0.6563605", "text": "int getNetworkValue();", "title": "" }, { "docid": "662159bedcdbb8d5f78e3a74698e9ac9", "score": "0.64869344", "text": "public int getNetId() {\n return netId_;\n }", "title": "" }, { "docid": "662159bedcdbb8d5f78e3a74698e9ac9", "score": "0.64869344", "text": "public int getNetId() {\n return netId_;\n }", "title": "" }, { "docid": "662159bedcdbb8d5f78e3a74698e9ac9", "score": "0.64869344", "text": "public int getNetId() {\n return netId_;\n }", "title": "" }, { "docid": "662159bedcdbb8d5f78e3a74698e9ac9", "score": "0.64869344", "text": "public int getNetId() {\n return netId_;\n }", "title": "" }, { "docid": "6e0e5bb748dc834fb442b877ef569bd4", "score": "0.6450342", "text": "java.lang.String getNetId();", "title": "" }, { "docid": "5c3e20b936e93e18a083cf44239829bc", "score": "0.6283116", "text": "public Long getNetGridID()\n/* */ {\n/* 447 */ return this.netGridID;\n/* */ }", "title": "" }, { "docid": "bbf8fb02b3ed25dc670e628f194ac926", "score": "0.627765", "text": "int getNetwork();", "title": "" }, { "docid": "bbf8fb02b3ed25dc670e628f194ac926", "score": "0.627765", "text": "int getNetwork();", "title": "" }, { "docid": "2801d4f6997806773edeae85a71e965e", "score": "0.6211794", "text": "public Long getNetGridID()\n/* */ {\n/* 1171 */ return this.netGridID;\n/* */ }", "title": "" }, { "docid": "a910626cd87ab7fc2e3ffd0b91a94954", "score": "0.6148801", "text": "int getNetworkType();", "title": "" }, { "docid": "36541fe699931072dc34f046a75d378c", "score": "0.61127853", "text": "public void setNetGridID(Long netGridID)\n/* */ {\n/* 458 */ this.netGridID = netGridID;\n/* */ }", "title": "" }, { "docid": "1f6a757bf2384ccc7275bdb9d73d8a77", "score": "0.60012776", "text": "public void setNetGridID(Long netGridID)\n/* */ {\n/* 1183 */ this.netGridID = netGridID;\n/* */ }", "title": "" }, { "docid": "a23f4f3be3bee50f9f96a2fc3c72ca12", "score": "0.59940517", "text": "public Builder setNetId(int value) {\n bitField0_ |= 0x00000002;\n netId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a23f4f3be3bee50f9f96a2fc3c72ca12", "score": "0.5993782", "text": "public Builder setNetId(int value) {\n bitField0_ |= 0x00000002;\n netId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a23f4f3be3bee50f9f96a2fc3c72ca12", "score": "0.5993782", "text": "public Builder setNetId(int value) {\n bitField0_ |= 0x00000002;\n netId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6efa21d63aee24e6edd21fb52816f531", "score": "0.5935134", "text": "int getProtocolValue();", "title": "" }, { "docid": "9704f4e6ec42afd4aa6f7d94451a34fb", "score": "0.59253454", "text": "public Builder setNetId(int value) {\n bitField0_ |= 0x00000001;\n netId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e749eb87c9c19148c4238381191853d6", "score": "0.59023327", "text": "public interface BSPRPCProtocolVersion extends VersionedProtocol {\n public static final long versionID = 0L;\n}", "title": "" }, { "docid": "8114f5f03dd547c55e41cdc9445c9341", "score": "0.5887227", "text": "public Long getNetworkId() {\n return networkId;\n }", "title": "" }, { "docid": "d1d53fb83822c984aa3ee6d3721a8f2b", "score": "0.5877074", "text": "public String getIpNetId( ) {\n\t\treturn this.ipNetId;\n\t}", "title": "" }, { "docid": "a23166ec37bb534256be99516cf089cf", "score": "0.57931834", "text": "public int getRequiredNetworkType() {\n \t\treturn requiredNetworkType;\n \t}", "title": "" }, { "docid": "e8d10dd7d74addc8d1058ed555ff3e3f", "score": "0.5774741", "text": "int getPreferredNetworkType(int subId);", "title": "" }, { "docid": "93e74704900d115e1828e644e4627dab", "score": "0.5730857", "text": "public byte getPacketManager_lengthInteger__var() {\nreturn PacketManager_lengthInteger__var;\n}", "title": "" }, { "docid": "ebe31c9e9b6b884916416f435a409518", "score": "0.562204", "text": "public String getNetworkId() {\n return networkId;\n }", "title": "" }, { "docid": "f16faf6c699b3c587e2b850987aa5673", "score": "0.55797005", "text": "public interface Device_AddrFamily {\n\n public static final int DEVICE_TCP = 0;\n public static final int DEVICE_UDP = 0+1;\n\n}", "title": "" }, { "docid": "f8f9e18e8348f0c9eca28c720816763f", "score": "0.5542365", "text": "int getNetState();", "title": "" }, { "docid": "f4942d09963adcbd8322823d652b15a6", "score": "0.5537138", "text": "@java.lang.Override public int getNetworkValue() {\n return network_;\n }", "title": "" }, { "docid": "f4942d09963adcbd8322823d652b15a6", "score": "0.5537138", "text": "@java.lang.Override public int getNetworkValue() {\n return network_;\n }", "title": "" }, { "docid": "d8367eee172b72a3e64b2b682f21e047", "score": "0.55333084", "text": "int getRecvID();", "title": "" }, { "docid": "69c2bf2ef5ea4f4f1b08dc7f16e9982d", "score": "0.5531651", "text": "@Override\n public int getPacketId() {\n return 0x00;\n }", "title": "" }, { "docid": "fe2e039c5bf825f5cbbee7b4dbdb6ca0", "score": "0.5510942", "text": "public java.lang.String getNetId() {\n java.lang.Object ref = netId_;\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 netId_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "c4f6aa747617031e07b52f238e153cc1", "score": "0.54900837", "text": "boolean hasNetId();", "title": "" }, { "docid": "417d47861cbec194bd1e5608372cffd6", "score": "0.54898804", "text": "long getInternalNumericId(){\n return internalNumericId;\n }", "title": "" }, { "docid": "c4f6aa747617031e07b52f238e153cc1", "score": "0.54882014", "text": "boolean hasNetId();", "title": "" }, { "docid": "c4f6aa747617031e07b52f238e153cc1", "score": "0.54882014", "text": "boolean hasNetId();", "title": "" }, { "docid": "c4f6aa747617031e07b52f238e153cc1", "score": "0.54882014", "text": "boolean hasNetId();", "title": "" }, { "docid": "c4f6aa747617031e07b52f238e153cc1", "score": "0.54882014", "text": "boolean hasNetId();", "title": "" }, { "docid": "6cd7bb7a8d4583488eb2e7f080256066", "score": "0.54613286", "text": "public void setNetCostCode(java.lang.String param){\n localNetCostCodeTracker = param != null;\n \n this.localNetCostCode=param;\n \n\n }", "title": "" }, { "docid": "ac56f8614f0c164c1b30ea817156d5f9", "score": "0.5458348", "text": "NFP_Integer createNFP_Integer();", "title": "" }, { "docid": "df399571c44b0bed02b4355b8fa02a9a", "score": "0.5441803", "text": "public Builder setNetId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n netId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ae700a4a15de19dd26b42817231ab833", "score": "0.5428905", "text": "public int getDefaultVip() {\n/* 136 */ return this.defaultVip;\n/* */ }", "title": "" }, { "docid": "eae62618e822ad723363021638d89f71", "score": "0.54283845", "text": "final public String getNetworkID(){\n\t\treturn _hashCode+\"@\"+getKernelAddress().hashCode();\n\t}", "title": "" }, { "docid": "3f8e28660f7aa7ee4b46efba03935fac", "score": "0.5424688", "text": "public void setNonPositiveInteger(org.apache.axis2.databinding.types.soapencoding.NonPositiveInteger param){\n \n this.localNonPositiveInteger=param;\n \n\n }", "title": "" }, { "docid": "2ae8bccb7118393101bee6ed63f55126", "score": "0.5415127", "text": "@java.lang.Override public int getNetworkValue() {\n return network_;\n }", "title": "" }, { "docid": "2ae8bccb7118393101bee6ed63f55126", "score": "0.5415127", "text": "@java.lang.Override public int getNetworkValue() {\n return network_;\n }", "title": "" }, { "docid": "829519c420ce79f99229191bc6f40175", "score": "0.5391617", "text": "public int getLBR_BP_Ship_ID();", "title": "" }, { "docid": "b9f945be915e44e82ce0b2364736309d", "score": "0.53822327", "text": "public boolean hasNetId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "b9f945be915e44e82ce0b2364736309d", "score": "0.53820115", "text": "public boolean hasNetId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "45d0ca197b19f2dcd60f62e353b39f75", "score": "0.5381374", "text": "public boolean hasNetId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "45d0ca197b19f2dcd60f62e353b39f75", "score": "0.538045", "text": "public boolean hasNetId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "45d0ca197b19f2dcd60f62e353b39f75", "score": "0.538045", "text": "public boolean hasNetId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "cfed3b02f50c14e4c8a586758adabd3f", "score": "0.5374489", "text": "public interface RequestNumber {\n\n public static final int REQUEST_CAMERA = 1;\n\n}", "title": "" }, { "docid": "514458b9bd13621633d594110eb570fd", "score": "0.53737164", "text": "short uniqueAddressTypeId();", "title": "" }, { "docid": "ad8aba3160fb1efd912c94907846e20f", "score": "0.5365706", "text": "public int getC_BPartner_ID() \n{\nInteger ii = (Integer)get_Value(\"C_BPartner_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "title": "" }, { "docid": "ad8aba3160fb1efd912c94907846e20f", "score": "0.5365706", "text": "public int getC_BPartner_ID() \n{\nInteger ii = (Integer)get_Value(\"C_BPartner_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "title": "" }, { "docid": "0b5c7ad2834e0bdb42ae4c0d8c64c616", "score": "0.53452027", "text": "public Integer getNnid() {\n return nnid;\n }", "title": "" }, { "docid": "2730ed5b3e6cc469d56060da5bf04b00", "score": "0.53403395", "text": "NetworkType networkType();", "title": "" }, { "docid": "a42d74427d5fd629aad30c1b44a3c388", "score": "0.5336334", "text": "public void setIdType(java.lang.String param){\n \n this.localIdType=param;\n \n\n }", "title": "" }, { "docid": "1510be10d75b7029d2cf2c41a1199173", "score": "0.53346276", "text": "public boolean hasNetId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "1510be10d75b7029d2cf2c41a1199173", "score": "0.53339815", "text": "public boolean hasNetId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "8697b484217a91676d66730001843b72", "score": "0.53334075", "text": "protected abstract byte retrieveProtocolId(I input) throws SerDesException;", "title": "" }, { "docid": "a87cfc4358bbcf499bb39d091d6cae30", "score": "0.53331745", "text": "public java.lang.String getNetId() {\n java.lang.Object ref = netId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n netId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a16ca7e35a65867dfb490f9ca52f60bd", "score": "0.5331804", "text": "int getChainID();", "title": "" }, { "docid": "3b1ca9a6ba2c720cf3fe49fda7827f8f", "score": "0.5308046", "text": "public void setIdNo(java.lang.String param){\n \n this.localIdNo=param;\n \n\n }", "title": "" }, { "docid": "00a171a3f5256dbaf49285650798830a", "score": "0.52997917", "text": "int getChainId();", "title": "" }, { "docid": "5e75957ccad85ab7e6e7e8da36855484", "score": "0.5293956", "text": "public int getM_LotCtl_ID() \n{\nInteger ii = (Integer)get_Value(\"M_LotCtl_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "title": "" }, { "docid": "bdb6a5e869c0987c1a7f4f15a2ddb6fa", "score": "0.5291787", "text": "public Builder setNetIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n netId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "df9d307bf9a5a5d33dc65447d7217d51", "score": "0.5288875", "text": "public int getBagBoxFirstId(int type) {\n/* 114 */ return ((Integer)this.bagBoxFirstId.getOrDefault(Integer.valueOf(type), Integer.valueOf(0))).intValue();\n/* */ }", "title": "" }, { "docid": "17f37eef93a8841d3ba6fe374e44f146", "score": "0.52750117", "text": "@Nullable\n NetworkId getNetworkRef();", "title": "" }, { "docid": "2ee9c59d8b8a144e81f09c03a4526fc0", "score": "0.5271214", "text": "public void setSubnet(int s){\n subnet = s;\n }", "title": "" }, { "docid": "e8d4bc994a4cd9c8710b522b95b4f373", "score": "0.5251982", "text": "public int getDNI() {return DNI_;}", "title": "" }, { "docid": "5ae6688eb8ed984f9bb2d7b64e6ccd6b", "score": "0.5249871", "text": "public Long getnId() {\n return nId;\n }", "title": "" }, { "docid": "68e1af2b33e5f58e8a86b10341906274", "score": "0.5249629", "text": "private static int getId() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "64561b9dfd68d39cb2617c18e1aac571", "score": "0.5249457", "text": "public void setNonNegativeInteger(org.apache.axis2.databinding.types.soapencoding.NonNegativeInteger param){\n \n this.localNonNegativeInteger=param;\n \n\n }", "title": "" }, { "docid": "f6689f8861b78c8b2bac2dd3d40f2ab2", "score": "0.5238625", "text": "public java.lang.String getIdType(){\n return localIdType;\n }", "title": "" }, { "docid": "f171bd0059ca739a4a6df6da5264f8d0", "score": "0.52342325", "text": "public int getM_DiscountSchemaLine_ID() \n{\nInteger ii = (Integer)get_Value(\"M_DiscountSchemaLine_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "title": "" }, { "docid": "c6726f921c9614a14912cd02b8841e16", "score": "0.5220668", "text": "int getSocketId();", "title": "" }, { "docid": "fc581f6b15a108e5051b50dd45622980", "score": "0.51890653", "text": "private TRANSPORT_PROTOCOL(int value, String name, String literal)\n {\n this.value = value;\n this.name = name;\n this.literal = literal;\n }", "title": "" }, { "docid": "5936c6e997e0ebc526b3d51a876e8779", "score": "0.51862377", "text": "public int getMobileNetworkCode()\n {\n return this.mobileNetworkCode;\n }", "title": "" }, { "docid": "c1d842aa03b9b24b056240da9f2c0af9", "score": "0.51815176", "text": "public abstract java.lang.Integer getAddressID() ;", "title": "" }, { "docid": "155212211d5ea949e31ca4145331f65a", "score": "0.5172668", "text": "long getId ();", "title": "" }, { "docid": "5df2c8146dd124f236492d9270a89a10", "score": "0.5168388", "text": "public void setId(long param){\n \n this.localId=param;\n \n\n }", "title": "" }, { "docid": "5df2c8146dd124f236492d9270a89a10", "score": "0.5168388", "text": "public void setId(long param){\n \n this.localId=param;\n \n\n }", "title": "" }, { "docid": "5df2c8146dd124f236492d9270a89a10", "score": "0.5168388", "text": "public void setId(long param){\n \n this.localId=param;\n \n\n }", "title": "" }, { "docid": "5df2c8146dd124f236492d9270a89a10", "score": "0.5168388", "text": "public void setId(long param){\n \n this.localId=param;\n \n\n }", "title": "" }, { "docid": "5df2c8146dd124f236492d9270a89a10", "score": "0.5168388", "text": "public void setId(long param){\n \n this.localId=param;\n \n\n }", "title": "" }, { "docid": "5df2c8146dd124f236492d9270a89a10", "score": "0.5168388", "text": "public void setId(long param){\n \n this.localId=param;\n \n\n }", "title": "" } ]
d9ac4aecab833cee4488c961b0aa0604
Starts the RecipientSelectionActivity and passes a request object to the next activity
[ { "docid": "63197302dc05b94ea9530f3471781271", "score": "0.69704396", "text": "public void selectRecipients(View view){\n\t\tif (checkInfo()){\n\t\t\tIntent selectionIntent = new Intent(this, RecipientSelectionActivity.class);\n\t\t\tselectionIntent.putExtra(\"help_request\", request);\t\t\n\t\t\tstartActivity(selectionIntent);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "e9c20fe2d8293a6b68c274c564d69be7", "score": "0.55687493", "text": "public void request(int itemSelection) {\r\n MeetingPoint chosenItem = meetingPointArrayList.get(itemSelection - 1);\r\n String contact = \"\";\r\n for (Meeting meeting : Meeting.meetingArrayList) {\r\n if (chosenItem.getName().equals(meeting.getMeetingPointName())) {\r\n contact = meeting.getContact();\r\n }\r\n }\r\n\r\n System.out.println(\"This item was booked by: \" + contact);\r\n System.out.println(\"Please get in contact with the user to request meeting point.\");\r\n }", "title": "" }, { "docid": "be427cf2ca8e4f858fdf3dc52a8691d3", "score": "0.5372236", "text": "public void setRecipient(String recipient) {\n this.recipient = recipient;\n }", "title": "" }, { "docid": "675b6fbf1ba5c562e11c247ab5a9fc68", "score": "0.5291544", "text": "public void _startRequest() {\n requestId = requestService.startRequest();\n }", "title": "" }, { "docid": "02edac37cff40a0959542a1b0674526d", "score": "0.52732944", "text": "private void makeCall() {\n\t\tif (typeOfUser.equals(\"potential_member\")) {\n\t\t\trequestSendMessage.setIsBasicDetailsShared(true);\n\n\t\t\trequestSendMessage.setIsRequestedByVisitor(true);\n\t\t\trequestSendMessage.setVisitorTitle(titleType);\n\t\t\trequestSendMessage.setVisitorFirstName(new_first_name.getText()\n\t\t\t\t\t.toString().trim());\n\t\t\trequestSendMessage.setVisitorLastName(new_last_name.getText()\n\t\t\t\t\t.toString().trim());\n\t\t\trequestSendMessage.setVisitorGender(gender);\n\t\t\trequestSendMessage.setVisitorDateOfBirth(newDobValue);\n\t\t\trequestSendMessage.setVisitorEmail(new_email.getText().toString()\n\t\t\t\t\t.trim());\n\t\t\trequestSendMessage.setVisitorCellNumber(new_phone.getText()\n\t\t\t\t\t.toString().trim());\n\t\t\trequestSendMessage.setVisitorGender(gender);\n\t\t} else {\n\n // remove all values of visitor\n requestSendMessage.setIsBasicDetailsShared(false);\n\n requestSendMessage.setIsRequestedByVisitor(false);\n requestSendMessage.setVisitorTitle(null);\n requestSendMessage.setVisitorFirstName(null);\n requestSendMessage.setVisitorLastName(null);\n requestSendMessage.setVisitorGender(null);\n requestSendMessage.setVisitorDateOfBirth(null);\n requestSendMessage.setVisitorEmail(null);\n requestSendMessage.setVisitorCellNumber(null);\n requestSendMessage.setVisitorGender(null);\n\n // end\n\n\n\t\t\trequestSendMessage.setByMemberId(String.valueOf(session\n\t\t\t\t\t.getMemberId()));\n\n\t\t\tif (consult_for_type.equalsIgnoreCase(\"Self\")) {\n\t\t\t\trequestSendMessage.setForMemberId(String.valueOf(session\n\t\t\t\t\t\t.getMemberId()));\n\t\t\t\trequestSendMessage.setForAge(session.getAge());\n\t\t\t\trequestSendMessage.setForGender(session.getGender());\n\t\t\t\trequestSendMessage.setForName(session.getName());\n\n\t\t\t\trequestSendMessage.setIsBasicDetailsShared(basic_info_checkbox\n\t\t\t\t\t\t.isChecked());\n\t\t\t\trequestSendMessage.setIsMedicalInfoShared(medical_info_checkbox\n\t\t\t\t\t\t.isChecked());\n\t\t\t\trequestSendMessage.setIsHealthTrackShared(health_info_checkbox\n\t\t\t\t\t\t.isChecked());\n\t\t\t\tList<CallToActionMessage> messages = requestSendMessage\n\t\t\t\t\t\t.getMessages();\n\t\t\t\tif (messages != null) {\n\t\t\t\t\tmessages.get(0).setFromMemberId(\n\t\t\t\t\t\t\trequestSendMessage.getByMemberId());\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (forMemberId > 0) {\n\t\t\t\t\trequestSendMessage.setForMemberId(String\n\t\t\t\t\t\t\t.valueOf(forMemberId));\n\t\t\t\t\trequestSendMessage\n\t\t\t\t\t\t\t.setIsBasicDetailsShared(basic_info_checkbox\n\t\t\t\t\t\t\t\t\t.isChecked());\n\t\t\t\t\trequestSendMessage\n\t\t\t\t\t\t\t.setIsMedicalInfoShared(medical_info_checkbox\n\t\t\t\t\t\t\t\t\t.isChecked());\n\t\t\t\t\trequestSendMessage\n\t\t\t\t\t\t\t.setIsHealthTrackShared(health_info_checkbox\n\t\t\t\t\t\t\t\t\t.isChecked());\n\t\t\t\t} else {\n\t\t\t\t\trequestSendMessage.setIsBasicDetailsShared(true);\n\t\t\t\t}\n\t\t\t\trequestSendMessage.setForAge(age_consumer.getText().toString());\n\t\t\t\trequestSendMessage.setForGender(gender);\n\t\t\t\trequestSendMessage.setForName(name_consumer.getText()\n\t\t\t\t\t\t.toString().trim());\n\t\t\t\tList<CallToActionMessage> messages = requestSendMessage\n\t\t\t\t\t\t.getMessages();\n\t\t\t\tif (messages != null) {\n\t\t\t\t\tmessages.get(0).setFromMemberId(\n\t\t\t\t\t\t\trequestSendMessage.getByMemberId());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (session.getLoggedInStatus()) {\n\t\t\tif (!CommonCode.isNullOrEmpty(session.getCellNumber())) {\n\t\t\t\tif (session.getUserPhoneVerifyStatus()) {\n\t\t\t\t\t// cell no is available and verified -- make service call\n\t\t\t\t\tmakeServiceCall(requestSendMessage);\n\t\t\t\t} else {\n\t\t\t\t\t// cell no is available but not verified\n\t\t\t\t\tToast.makeText(SendMessageStepTwo.this,\n\t\t\t\t\t\t\t\"Cell no not verified , show verification screen\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\tgoToCellVerificationScreen(session.getCellNumber());\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// cell no not available -- show the user cell no capture screen\n\n\t\t\t\ttry {\n\t\t\t\t\tCellNumberCaptureDialog showDialog = CellNumberCaptureDialog\n\t\t\t\t\t\t\t.newInstance();\n\t\t\t\t\tshowDialog.show(getSupportFragmentManager(),\n\t\t\t\t\t\t\t\"context_dialog_frag\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tmakeServiceCall(requestSendMessage);\n\t\t}\n\t}", "title": "" }, { "docid": "9e4a1963200837689240693f811ef145", "score": "0.515662", "text": "public void OpenDonatorRequest(View view) {\n Intent intent = new Intent(requestForm.this,DonatorRequests.class);\n //intent.putExtra(\"user\", userId);\n // startActivity(new Intent(requestForm.this,DonatorRequests.class));\n startActivity(intent);\n }", "title": "" }, { "docid": "b8e97dc8743c171610fe89f2ac1b87c2", "score": "0.5156042", "text": "public void setRecipient(String recipient)\n\t{\n\t\tthis.recipient = recipient;\n\t}", "title": "" }, { "docid": "e62132e0e31e0add592516ec1dcd96f5", "score": "0.50956404", "text": "public void selectMessageRecipient() {\n \t\tContactSelecter contactSelecter = new ContactSelecter(this.uiController);\n \t\tfinal boolean shouldHaveEmail = false;\n \t\tcontactSelecter.show(InternationalisationUtils.getI18NString(FrontlineSMSConstants.SENTENCE_SELECT_MESSAGE_RECIPIENT_TITLE), \"setRecipientTextfield(contactSelecter_contactList, contactSelecter)\", null, this, shouldHaveEmail);\n \t}", "title": "" }, { "docid": "66d30b4e0ca58245573286c3dcc02d9e", "score": "0.5087379", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n // Check which request we're responding to\n switch (requestCode) {\n case TRANSFER_REQUEST_CODE:\n Log.d(TAG, \"transfer request arrived\");\n if (resultCode == Activity.RESULT_OK) {\n if (data != null) {\n int callId = data.getIntExtra(CALL_ID, 0);\n String target = data.getStringExtra(TARGET);\n Log.d(TAG, \"Call transfered: \" + callId + \" Target: \" + target);\n mCallViewAdaptor.transferCall(callId, target);\n\n GoogleAnalyticsUtils.logEvent(GoogleAnalyticsUtils.Event.FEATURE_TRANSFER_EVENT);\n\n } else {\n Log.e(TAG, \"not enough data to perform transfer\");\n }\n ActiveCallFragment activeCallFragment = (ActiveCallFragment) getSupportFragmentManager().findFragmentByTag(CallStateEventHandler.ACTIVE_CALL_TAG);\n if (activeCallFragment != null) {\n activeCallFragment.dismissMenu();\n }\n }\n break;\n case CONFERENCE_REQUEST_CODE:\n Log.d(TAG, \"conference request arrived\");\n if (resultCode == Activity.RESULT_OK) {\n if (data != null) {\n int callId = data.getIntExtra(CALL_ID, 0);\n String target = data.getStringExtra(TARGET);\n mCallViewAdaptor.conferenceCall(callId, target);\n\n GoogleAnalyticsUtils.logEvent(GoogleAnalyticsUtils.Event.FEATURE_CONFERENCE_EVENT);\n\n } else {\n Log.e(TAG, \"not enough data to perform conference\");\n }\n }\n ActiveCallFragment activeCallFragment = (ActiveCallFragment) getSupportFragmentManager().findFragmentByTag(CallStateEventHandler.ACTIVE_CALL_TAG);\n if (activeCallFragment != null) {\n activeCallFragment.dismissMenu();\n }\n if (mSectionsPagerAdapter.isCallAddParticipant()) {\n //noinspection ConstantConditions\n if (activeCallFragment != null) {\n cancelContactPicker();\n activeCallFragment.setVisible();\n }\n CallStatusFragment callStatusFragment = (CallStatusFragment) getSupportFragmentManager().findFragmentByTag(CallStateEventHandler.CALL_STATUS_TAG);\n if (callStatusFragment != null) {\n callStatusFragment.hideCallStatus();\n Utils.hideKeyboard(this);\n }\n }\n\n break;\n default:\n super.onActivityResult(requestCode, resultCode, data);\n }\n\n }", "title": "" }, { "docid": "73a7e401a48261be300a65ef79f1cd73", "score": "0.5081518", "text": "@Override\n protected void start ()\n {\n if (contacts == null) {\n contacts = new Contacts (Lifeguard.getDatabaseHelper ());\n }\n ContactInterface recipient = getNextContact ();\n Log.d (this.getClass ().toString (), \"doProcess ALarmingState\");\n Log.d (this.getClass ().toString (),\n \"Try to notify \" + recipient.getName () + \" (\"\n + recipient.getPhone () + \")\");\n notifyRecipient (recipient);\n \n getAlarmContext ().setNext (new AwaitingState (recipient));\n }", "title": "" }, { "docid": "e91435cb4b21d68ddad7d2ad4bc42fd1", "score": "0.5079554", "text": "private void sendResultAndFinishActivity()\r\n {\r\n dismissDialog(ApiHandler.SEARCH_DIALOG_ID);\r\n Intent intent = new Intent();\r\n \r\n if(this.currentRequestType == ApiHandler.UPC_LOOKUP || this.currentRequestType == ApiHandler.ID_LOOKUP){\r\n intent.putExtra(\"scanResults\", this.beerDetails);\r\n }\r\n else if(this.currentRequestType == ApiHandler.KEYWORD_SEARCH){\r\n intent.putExtra(\"searchResults\", this.searchResults);\r\n }\r\n intent.putExtra(\"requestType\", this.currentRequestType);\r\n setResult(Activity.RESULT_OK, intent);\r\n finish();\r\n }", "title": "" }, { "docid": "49b71c535ee32bbd791449e24d8d8fe3", "score": "0.5031288", "text": "@Override\n public void onClick(View view, final int position) {\n\n Intent newRequestIntent = new Intent(getContext(), NewRequest.class);\n newRequestIntent.putExtra(\"action\", \"view\");\n newRequestIntent.putExtra(\"userID\",allRequests.get(position).getUserID());\n newRequestIntent.putExtra(\"title\",allRequests.get(position).getTitle());\n newRequestIntent.putExtra(\"description\",allRequests.get(position).getDescription());\n newRequestIntent.putExtra(\"comments\",allRequests.get(position).getComments());\n newRequestIntent.putExtra(\"quantity\",Integer.toString(allRequests.get(position).getQuantity()));\n newRequestIntent.putExtra(\"priority\",allRequests.get(position).getPriority());\n newRequestIntent.putExtra(\"requestID\",allRequests.get(position).getRequestID());\n newRequestIntent.putExtra(\"type\",allRequests.get(position).getType());\n newRequestIntent.putExtra(\"completed\",allRequests.get(position).isCompleted());\n startActivity(newRequestIntent);\n getActivity().finish();\n }", "title": "" }, { "docid": "495add4c1555be4e7ae37cc3335bf5a9", "score": "0.5025271", "text": "public void sendRequestsToStaff() {\n Database.getInstance()\n .sendRequestsToMatches(Person.Kind.STAFF, null, null, null, null, null);\n }", "title": "" }, { "docid": "70a0e5eb91b438d55bfc004528e39aa0", "score": "0.5014763", "text": "public void send(View view) {\n Intent intent = new Intent(this, ChooseContactActivity.class);\r\n startActivity(intent);\r\n }", "title": "" }, { "docid": "4fd9208ad04c57ad85a5323bb41d08c1", "score": "0.49995148", "text": "public void launchFilter() {\n Intent intent = new Intent(this, FilterActivity.class);\n startActivityForResult(intent, REQUEST_CODE);\n }", "title": "" }, { "docid": "75430cac7f288a66c437d5f271efe598", "score": "0.498996", "text": "@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"payment_initiation/recipient/get\")\n Call<PaymentInitiationRecipientGetResponse> paymentInitiationRecipientGet(\n @retrofit2.http.Body PaymentInitiationRecipientGetRequest paymentInitiationRecipientGetRequest\n );", "title": "" }, { "docid": "b0f625fbc1184a89159000174af989d0", "score": "0.4974456", "text": "public void loadConversation(String recipient) {\n\n }", "title": "" }, { "docid": "f603d428c420a61e40b907e33a4f8471", "score": "0.49663144", "text": "@Override\n\tpublic void request() {\n\t\tadaptee.specificRequest();\n\t}", "title": "" }, { "docid": "3a0926a0c8565d6467446a7d35324f82", "score": "0.495414", "text": "private void goToReqs() {\n Intent intent = new Intent(this.getActivity(), FriendRequestActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "9470eb8cdc0e4b966c1d1f89e3a1c2bd", "score": "0.4951431", "text": "public Intent emailAttatchmentIntent(int code, File pdfAttatchment, @Nullable String recipientEmail, String subject) {\n\n Uri uri = Uri.fromFile(pdfAttatchment);\n\n String userEmail;\n String ccEmail = \"\";\n\n SharedPreferences sharedPreferences = context.getSharedPreferences(\"userProfileData\", context.MODE_PRIVATE);\n\n //set supervisor/user email\n userEmail = sharedPreferences.getString(userProfileActivity.EMAIL, \"default\");\n\n switch (code) {\n case 0:\n ccEmail = sharedPreferences.getString(userProfileActivity.CC_PROTECT, \"default\");\n break;\n case 1:\n ccEmail = sharedPreferences.getString(userProfileActivity.CC_TAKE5, \"default\");\n break;\n case 2:\n ccEmail = sharedPreferences.getString(userProfileActivity.CC_HAZARD, \"default\");\n break;\n case 3:\n //No emailing feature for incident procedure\n break;\n case 4:\n break;\n }\n\n //create recipients array, adding in recipientEmail if != null\n String[] recipients;\n if (recipientEmail != null) {\n recipients = new String[]{userEmail, recipientEmail};\n } else {\n recipients = new String[]{userEmail};\n }\n\n /* TO VIEW AS PDF\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setDataAndType(uri, \"application/pdf\");\n intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);\n return intent;\n */\n\n if (uri != null) {\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n// emailIntent.setType(\"text/plain\");\n emailIntent.setType(\"message/rfc822\");\n emailIntent.putExtra(Intent.EXTRA_EMAIL, recipients);\n emailIntent.putExtra(Intent.EXTRA_CC, new String[] {ccEmail});\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n emailIntent.putExtra(Intent.EXTRA_STREAM, uri);\n\n return emailIntent;\n } else {\n Toast.makeText(context, \"ERROR\", Toast.LENGTH_SHORT).show();\n return null;\n }\n }", "title": "" }, { "docid": "463ccb8a467a6d91f9811609e8f0bdf1", "score": "0.49451163", "text": "@Override\r\n\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\tAdapterView.AdapterContextMenuInfo menuInfo = (AdapterContextMenuInfo) item.getMenuInfo();\r\n\t\tperson = (_Contact) getListView().getItemAtPosition(menuInfo.position);\r\n\t\tIntent addWorker = new Intent(this, AddEventWorkerActivity.class);\r\n\r\n\t\taddWorker.putExtra(\"name\", person.getName());\r\n\t\taddWorker.putExtra(\"number\", person.getNumber());\r\n\t\t\r\n\t\tstartActivityForResult(addWorker, 0);\r\n\t\t\r\n\r\n\t\treturn super.onContextItemSelected(item);\r\n\t}", "title": "" }, { "docid": "1bd0b0b53dcc7bff0c40e3b220ddc35d", "score": "0.49322242", "text": "R getRecipientCursor();", "title": "" }, { "docid": "eb4b630d931323002cf1e9f978f27bcf", "score": "0.49292764", "text": "private void initiateEmailSending(View view) {\n EditText emailId = (EditText)view;\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setType(\"text/plain\");\n /** recipients **/\n emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] {emailId.getText().toString()});\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Email subject\");\n emailIntent.putExtra(Intent.EXTRA_TEXT, \"Email message text\");\n\n\n /** Verify it resolves **/\n PackageManager packageManager = getPackageManager();\n List<ResolveInfo> activities = packageManager.queryIntentActivities(emailIntent, 0);\n boolean isIntentSafe = activities.size() > 0;\n /** Start an activity if it's safe **/\n if (isIntentSafe) {\n startActivity(emailIntent);\n }\n }", "title": "" }, { "docid": "3f38e7d1205f01a233ccc802141ded0b", "score": "0.49233037", "text": "public void startCall(View view){\n // Make sure the user has an id and the sinch client is up\n if (userID != null && sinchClient.isStarted()) {\n // Create an intent for the calling class\n Intent i = new Intent(getApplicationContext(), CallActivity.class);\n\n // Get the id of the opponent\n // If the user is a client, get the admin with the same id and vice-versa\n String CallID = \"\";\n switch(userType) {\n case \"client\":\n CallID = \"admin\" + userID;\n break;\n case \"admin\":\n CallID = \"client\" + userID;\n break;\n }\n\n // Start the call\n if (!CallID.isEmpty()) {\n VoiceCall.setCall(sinchClient.getCallClient().callUser(CallID));\n startActivity(i);\n }\n\n }\n\n }", "title": "" }, { "docid": "2f4c01fd35b9f4ca0577dbea78830027", "score": "0.49085462", "text": "@Override\n public void onClick(View v) {\n MainActivity.searchData = \"mailto:\"+sender.get(0);\n EventBus.getDefault().post(new StartProcessDial());\n activity.findViewById(R.id.share_template_message).setVisibility(View.GONE);\n }", "title": "" }, { "docid": "d79a6064fdfe3a960c90707664e898b2", "score": "0.4901175", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n // Check for the request code, we might be usign multiple startActivityForReslut\n switch (requestCode) {\n case RESULT_PICK_CONTACT:\n contactPicked(data);\n break;\n }\n } else {\n Log.e(\"MainActivity\", \"Failed to pick contact\");\n }\n }", "title": "" }, { "docid": "adf24554df0bb763031c0b892058e8a2", "score": "0.48977402", "text": "private void getIncomingIntent() {\n Log.d(TAG, \"getIncomingIntent: checking for incoming intents\");\n if (getIntent().hasExtra(\"group\")) {\n Log.d(TAG, \"getIncomingIntent: found intent extras.\");\n\n this.currentGroup = (Group) getIntent().getSerializableExtra(\"group\");\n refreshView();\n }\n }", "title": "" }, { "docid": "d644cd28b9471dbcf5a5134690a99f22", "score": "0.48802853", "text": "@Override\n public void onClick(View v) {\n if(currentSMS.getReadState().contains(\"0\")) {\n Uri uri = Uri.parse(\"content://sms\");\n String selection = \"thread_id = \" + currentSMS.getThread_id() + \" OR address = \" + currentSMS.getNumber();\n\n ContentValues values = new ContentValues();\n values.put(\"read\", true);\n\n context.getContentResolver().update(uri, values, selection, null);\n MainActivity.refreshRequired=true;\n }\n\n MainActivity.choosen_sms = currentSMS.getThread_id();\n MainActivity.choosen_contact = currentSMS.getNumber();\n\n context.startActivity(new Intent(context,ChatActivity.class));\n }", "title": "" }, { "docid": "c86352093dfd1819c23ee81bb897df6c", "score": "0.48686853", "text": "@Override\n public void onResponse(User user) {\n Intent intent = new Intent(view.getContext(), ClassSelection.class);\n intent.putExtra(\"User\", user); //Add User to ClassSelection intent\n startActivity(intent);\n }", "title": "" }, { "docid": "f1663b0b6d116c47fdeb1cf49e5c90db", "score": "0.48567405", "text": "@Override\n public void onClick(View v)\n {\n Intent i = new Intent(mActivity, ItemSelectionActivity.class);\n i.putExtra(ItemSelectionActivity.INTENT_SELECT_FROM, ItemSelectionActivity.INTNET_LOCATIONS);\n i.setFlags(i.getFlags() | Intent.FLAG_ACTIVITY_NO_HISTORY);\n mActivity.startActivity(i);\n }", "title": "" }, { "docid": "a8320e6b1025bfb60f352b53fd6668e3", "score": "0.48537964", "text": "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (requestCode == BT_SEL_DEVICE_REQ && resultCode == RESULT_OK) {\n\t\t\tif (deviceSelectedContinuation != null) {\n\t\t\t\tdeviceSelectedContinuation.run(data);\n\t\t\t\tdeviceSelectedContinuation = null;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "97f0f55ece6c40f230fbba27c63082ec", "score": "0.4853654", "text": "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (resultCode == Activity.RESULT_OK) {\n\t\t\tUri contactData = data.getData();\n\t\t\tContentResolver cr = this.getContentResolver();\n\t\t\tCursor c = cr.query(contactData, null, null, null, null);\n\t\t\tif (c.moveToFirst()) {\n\n\t\t\t\tUri smsToUri = Uri.parse(\"smsto:\"\n\t\t\t\t\t\t+ c.getString(c.getColumnIndex(\"data1\")));\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_SENDTO, smsToUri);\n\t\t\t\tintent.putExtra(\"sms_body\", inviteMsg);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t}\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "title": "" }, { "docid": "7781be7fdc96682933f5a26184834812", "score": "0.4848215", "text": "public void sendRequest(){\n\n String origin = startEdit.getText().toString();\n String destination = endEdit.getText().toString();\n\n if(origin.isEmpty()){\n return;\n }\n if(destination.isEmpty()){\n return;\n }\n\n try {\n new DirectionFinder(this, origin, destination).execute();\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n\n\n }", "title": "" }, { "docid": "e5ace9f2d16c695d0c12d2f8b36bf025", "score": "0.48480532", "text": "public void goToPlayerSelection(View view) {\n startActivity(new Intent(ActivityChoice.this, Multiplayer.class));\n }", "title": "" }, { "docid": "3d1c7f48c15f955f06c27b86c7fd1cc5", "score": "0.48372853", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(FirstPage.this,\n\t\t\t\t\t\tSelectionActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "title": "" }, { "docid": "687ade052b079fd9032fd67988d824c7", "score": "0.48265126", "text": "@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(getApplicationContext(), AddParticipant.class);\n startActivity(myIntent);\n }", "title": "" }, { "docid": "0657af7843dfca698bc3706a27e99a1f", "score": "0.47938251", "text": "@Override\n public void onClick(View arg0) {\n\n try {\n to_id = object_to_1.getString(\"to_id\");\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n // startActivity(new Intent(context, Rider_Complite.class));\n }", "title": "" }, { "docid": "e8d7de98fd4f4e78ff0fdb14e2266b44", "score": "0.4791114", "text": "@Override\r\n\t\tpublic void onItemClick(AdapterView<?> parentView, View clickedView, int clickedViewPosition, long id) {\n\t\t\tContact selectedContact = contacts.get(clickedViewPosition);\r\n\t\t\t\r\n\t\t\tIntent intent = new Intent();\r\n\t\t\t//if c (the list that is created when the search function is called) exists\r\n\t\t\tif (c != null) {\r\n\t\t\t\t//pass the clicked contact from 'c' into the intent 'contact'\r\n\t\t\tintent.putExtra(\"contact\", c.get(clickedViewPosition));\r\n\t\t\t} else {\r\n\t\t\t\t//pass the clicked contact from 'contacts' into the intent 'contact'\r\n\t\t\t\tintent.putExtra(\"contact\", contacts.get(clickedViewPosition));\r\n\t\t\t}\r\n\t\t\t//switch screen to the View Contact screen\r\n\t\t\tintent.setClass(MainActivity.this, ViewContactActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\tfinish();\r\n\t\t\t}", "title": "" }, { "docid": "e5dc76c9edbec01b5678a8b1649c198a", "score": "0.4782814", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == Constants.REQUEST_INVITE) {\n if (resultCode == RESULT_OK) {\n // Get the invitation IDs of all sent messages\n String[] ids = AppInviteInvitation.getInvitationIds(resultCode, data);\n\n for (String id : ids) {\n Log.d(TAG, \"onActivityResult: sent invitation \" + id);\n }\n }\n }\n }", "title": "" }, { "docid": "cff74dc1d3546f0032b97cd3ec48bdda", "score": "0.47809702", "text": "public AchieveREInitiator(Agent agent, ACLMessage request) {\n\t\tsuper(agent);\n//\t\tif (request.getConversationId() == null) {\n//\t\t\trequest.setConversationId(System.currentTimeMillis() + \"_\" + myAgent);\n//\t\t}\n\t\tthis.request = request;\n\t\tthis.responders = new ArrayList<AID>(request.getReceivers());\n\t\tthis.protocolState = State.SEND_REQUEST;\n\t}", "title": "" }, { "docid": "694c9895a6674d7c41e2540863bce71a", "score": "0.4774226", "text": "public void MenuAddContact()\r\n {\r\n Intent I = new Intent(this, CView.class);\r\n startActivityForResult(I, CView.REQUEST_NEW_CONTACT);\r\n }", "title": "" }, { "docid": "140a576312fbc57d562c8bc76399045a", "score": "0.4772862", "text": "private void requestActivities() {\n ActivityRecognition.ActivityRecognitionApi.requestActivityUpdates(mGoogleApiClient, 0,\n getActivityDetectionPendingIntent()).setResultCallback(this);\n }", "title": "" }, { "docid": "f914bb37afa40e691004542215ec5ba4", "score": "0.4766291", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\trecordLaunch(v.getContext());\n\n\t\t\t\tString url = \"sms:\" + contactHolder.phone;\n\t\t\t\tIntent i = new Intent(Intent.ACTION_SENDTO, Uri.parse(url));\n\t\t\t\ti.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\tv.getContext().startActivity(i);\n\t\t\t}", "title": "" }, { "docid": "ea6f1067bdbe3b4a749d9ccdd29732d7", "score": "0.4760241", "text": "public static void startTo(final Activity activity, final AdvertiseItem params, String target, final boolean toHome, CompositeSubscription compositeSubscription, String pageSource) {\n if (params == null || activity == null) return;\n Intent intent;\n if (!toHome) {\n ArenaDataCache.getInstance().onclick_ZtkSchemeTargetStartTo = true;\n }\n Log.i(TAG, target);\n HTRouterEntry entity = HTRouterManager.findRouterEntryByUrl(target);\n // ztk://h5/active ztk://arena/home ztk://h5/simulate ztk://course/detail\n //为了防止匹配不上后循环跳,这里需要有个判断\n if (entity != null) {\n HTPageRouterCall.newBuilderV2(target)\n .context(activity).sourceIntent(new Intent().setData(Uri.parse(target + \"?\" + params.formatString(toHome, pageSource))))\n .build()\n .start();\n return;\n }\n switch (target) {\n case \"ztk://estimatePaper\": // 估分做题页面\n if (!CommonUtils.checkLogin(activity)) {\n return;\n }\n int requestType = ArenaConstant.EXAM_ENTER_FORM_TYPE_MOKAOGUFEN;\n Bundle bundle1 = new Bundle();\n bundle1.putLong(\"point_ids\", params.paperId);\n ArenaExamActivityNew.show(activity, requestType, bundle1);\n// if (params.estimatePaper!=null){\n// SimulationListItem item = params.estimatePaper;\n// UserMetaBean userMetaBean = item.userMeta;\n// Bundle arg = new Bundle();\n// arg.putBoolean(\"toHome\", toHome);\n// int requestType = ArenaConstant.EXAM_ENTER_FORM_TYPE_MOKAOGUFEN;\n// arg.putLong(\"point_ids\", item.id);\n// // 1、未开始,\n// // 2、正在进行,\n// // 3、已经结束,\n// // 4、已经下线,\n// // 5、可继续做题,\n// // 6、查看报告,可\n// // 7、未出报告\n// switch (item.status) {\n// case 1: // 1、未开始\n// if (!TextUtils.isEmpty(item.url)) {\n// intent = new Intent(activity, AdvertiseActivity.class);\n// intent.putExtra(\"url\", item.url);\n// intent.putExtra(\"type\", 1);\n// intent.putExtra(\"name\", item.name);\n// intent.putExtra(\"toHome\", toHome);\n// activity.startActivity(intent);\n// }\n// break;\n// case 2: // 2、正在进行\n// ArenaExamActivityNew.show(activity, requestType, arg);\n// break;\n// case 5: // 5、可继续做题\n// arg.putBoolean(\"continue_answer\", true);\n// arg.putLong(\"practice_id\", userMetaBean.currentPracticeId);\n// ArenaExamActivityNew.show(activity, requestType, arg);\n// break;\n// case 6: // 6、可查看报告\n// if (userMetaBean != null && userMetaBean.practiceIds != null && userMetaBean.practiceIds.length > 0) {\n// arg.putLong(\"practice_id\", userMetaBean.practiceIds[userMetaBean.practiceIds.length - 1]);\n// ArenaExamReportActivity.show(activity, requestType, arg);\n// }\n// break;\n// }}\n break;\n case \"ztk://pastPaper\": // 真题做题页面\n if (!CommonUtils.checkLogin(activity)) {\n return;\n }\n //真题演练 type 3|id 真题试卷id\n // 必添加字段action,常规做题为0 不做题直接看答题报告和解析为1(直接看解析需要增加practiseId属性,即练习/答题卡id)\n //必添加字段freshness,新做一份题为0,继续做题为1(继续做题需要增加practiseId属性,即练习/答题卡id)\n final Bundle bundle = new Bundle();\n final long mPaperId = params.paperId;\n ServiceProvider.getCurrentPracticeId(compositeSubscription, params.paperId, new NetResponse() {\n @Override\n public void onSuccess(BaseResponseModel model) {\n super.onSuccess(model);\n if (model != null && model.data != null) {\n PracticeIdBean practiceIdBean = (PracticeIdBean) model.data;\n if (practiceIdBean != null && practiceIdBean.practiceId > 0) {\n bundle.putLong(\"practice_id\", practiceIdBean.practiceId);\n bundle.putBoolean(\"continue_answer\", true);\n } else {\n bundle.putLong(\"point_ids\", mPaperId);\n }\n bundle.putBoolean(\"toHome\", toHome);\n ArenaExamActivityNew.show(activity, ArenaConstant.EXAM_ENTER_FORM_TYPE_ZHENTI_YANLIAN, bundle);\n } else {\n if (toHome) {\n MainTabActivity.newIntent(activity);\n }\n }\n if (toHome) {\n activity.finish();\n }\n }\n\n @Override\n public void onError(Throwable e) {\n super.onError(e);\n if (toHome) {\n MainTabActivity.newIntent(activity);\n activity.finish();\n }\n }\n\n });\n\n break;\n case \"ztk://simulatePaper\": // 模考做题页面\n if (!CommonUtils.checkLogin(activity)) {\n return;\n }\n Bundle arg2 = new Bundle();\n int paperId = params.paperId;\n arg2.putLong(\"point_ids\", paperId);\n arg2.putBoolean(\"toHome\", toHome);\n\n ArenaExamActivityNew.show(activity, ArenaConstant.EXAM_ENTER_FORM_TYPE_SIMULATION_CONTEST, arg2);\n break;\n case \"ztk://match/detail\": // 模考大赛首页\n if (!CommonUtils.checkLogin(activity)) {\n return;\n }\n\n Intent intentSc = new Intent(activity, SimulationContestActivityNew.class);\n intentSc.putExtra(\"mToHome\", toHome);\n intentSc.putExtra(\"showSubject\", params.subject);\n intentSc.putExtra(\"subject\", SignUpTypeDataCache.getInstance().getCurSubject());\n activity.startActivity(intentSc);\n if (toHome) {\n activity.finish();\n }\n break;\n case \"ztk://match/essay\": // 申论模考大赛首页\n if (!CommonUtils.checkLogin(activity)) {\n return;\n }\n if (SpUtils.getUserCatgory() == Type.SignUpType.CIVIL_SERVANT) {\n Intent intentScA = new Intent(activity, SimulationContestActivityNew.class);\n intentScA.putExtra(\"mToHome\", toHome);\n intentScA.putExtra(\"subject\", Type.CS_ExamType.ESSAY_TESTS_FOR_CIVIL_SERVANTS);\n activity.startActivity(intentScA);\n if (toHome) {\n activity.finish();\n }\n } else {\n ToastUtils.showMessage(\"配置错误,请正确配置跳转地址\");\n }\n break;\n case \"ztk://live/home\": // 直播列表\n if (!CommonUtils.checkLogin(activity)) {\n return;\n }\n if (activity instanceof SplashActivity) {\n MainTabActivity.newIntent(activity);\n TimeUtils.delayTask(new Runnable() {\n @Override\n public void run() {\n EventBusUtil.sendMessage(MeMsgMessageEvent.MMM_MSG_ME_MESSAGE_SEL_LIVE_TAB, new MeMsgMessageEvent());\n }\n }, 500);\n } else {\n SpUtils.setSelectedLiveCategory(params.cateId);\n AppContextProvider.addFlags(AppContextProvider.BANNRCOURSETYPE);\n EventBusUtil.sendMessage(MeMsgMessageEvent.MMM_MSG_ME_MESSAGE_SEL_LIVE_TAB, new MeMsgMessageEvent());\n }\n break;\n case \"ztk://recording/home\": // 录播列表\n if (!CommonUtils.checkLogin(activity)) {\n return;\n }\n if (activity instanceof SplashActivity) {\n MainTabActivity.newIntent(activity);\n TimeUtils.delayTask(new Runnable() {\n @Override\n public void run() {\n EventBusUtil.sendMessage(MeMsgMessageEvent.MMM_MSG_ME_MESSAGE_SEL_RECORDING_TAB, new MeMsgMessageEvent());\n }\n }, 500);\n } else {\n EventBusUtil.sendMessage(MeMsgMessageEvent.MMM_MSG_ME_MESSAGE_SEL_RECORDING_TAB, new MeMsgMessageEvent());\n }\n break;\n /* case \"ztk://course/collection\": // 课程合集页面\n CourseCollectSubsetFragment.show(activity, params.rid + \"\", params.shortTitle, params.title, toHome);\n break;*/\n case \"ztk://course/seckill\": // 秒杀课程\n if (!CommonUtils.checkLogin(activity)) {\n return;\n }\n BaseFrgContainerActivity.newInstance(activity,\n SecKillFragment.class.getName(),\n SecKillFragment.getArgs(params.rid + \"\", params.title, toHome));\n break;\n case \"ztk://essay/home\":// 申论首页\n if (SpUtils.getUserCatgory() == Type.SignUpType.CIVIL_SERVANT) {\n if (!toHome) {\n // SignUpTypeDataCache.getInstance().curSubject = Type.CS_ExamType.ESSAY_TESTS_FOR_CIVIL_SERVANTS;\n SignUpTypeDataCache.getInstance().setCurSubject(Type.CS_ExamType.ESSAY_TESTS_FOR_CIVIL_SERVANTS);\n SpUtils.setUserSubject(Type.CS_ExamType.ESSAY_TESTS_FOR_CIVIL_SERVANTS);\n EventBus.getDefault().post(new MessageEvent(MessageEvent.HOME_FRAGMENT_CHANGE_TO_ESSAY));\n } else {\n //SignUpTypeDataCache.getInstance().curSubject = Type.CS_ExamType.ESSAY_TESTS_FOR_CIVIL_SERVANTS;\n SignUpTypeDataCache.getInstance().setCurSubject(Type.CS_ExamType.ESSAY_TESTS_FOR_CIVIL_SERVANTS);\n SpUtils.setUserSubject(Type.CS_ExamType.ESSAY_TESTS_FOR_CIVIL_SERVANTS);\n MainTabActivity.newIntent(activity);\n }\n } else {\n ToastUtils.showMessage(\"配置错误,请正确配置跳转地址\");\n }\n break;\n case \"ztk://essay/paper\":// 申论套题\n if (SpUtils.getUserCatgory() == Type.SignUpType.CIVIL_SERVANT) {\n Bundle bundles = new Bundle();\n bundles.putLong(\"areaId\", params.areaId);\n bundles.putBoolean(\"toHome\", toHome);\n BaseFrgContainerActivity.newInstance(activity,\n MultExamEssay.class.getName(), bundles);\n } else {\n ToastUtils.showMessage(\"配置错误,请正确配置跳转地址\");\n }\n break;\n case \"ztk://essay/argument\":// 申论文章写作\n if (SpUtils.getUserCatgory() == Type.SignUpType.CIVIL_SERVANT) {\n Bundle bundles = new Bundle();\n bundles.putBoolean(\"toHome\", toHome);\n BaseFrgContainerActivity.newInstance(activity,\n ArgumentEssay.class.getName(), null);\n } else {\n ToastUtils.showMessage(\"配置错误,请正确配置跳转地址\");\n }\n break;\n case \"ztk://small/estimate\":// 小模考\n if (!CommonUtils.checkLogin(activity)) {\n return;\n }\n if (SpUtils.getUserCatgory() == Type.SignUpType.CIVIL_SERVANT) {\n Bundle args = new Bundle();\n args.putBoolean(\"toHome\", true);\n SmallMatchActivity.show(activity, ArenaConstant.EXAM_ENTER_FORM_TYPE_SMALL_MATCH, args);\n } else {\n ToastUtils.showMessage(\"配置错误,请正确配置跳转地址\");\n }\n break;\n case \"ztk://pastPaper/province\": //真题演练具体省份列表\n int requestTypes = ArenaConstant.EXAM_ENTER_FORM_TYPE_ZHENTI_YANLIAN;\n ExamAreaItem examAreaItem = new ExamAreaItem();\n examAreaItem.area = params.area;\n examAreaItem.areaName = params.areaName;\n intent = new Intent(activity, ExamPaperActivity.class);\n intent.putExtra(\"examAreaData\", examAreaItem);\n intent.putExtra(\"request_type\", requestTypes);\n activity.startActivity(intent);\n break;\n\n default:\n break;\n }\n }", "title": "" }, { "docid": "d907333412160840d121feea8897100a", "score": "0.47599176", "text": "private void goToAddressConfirmActivity() {\n addressSelectorImageSwitcher.setVisibility(View.INVISIBLE);\n\n // Setting flags back to default values\n SpeechRecognizerManager.resultValue = 0;\n SpeechRecognizerManager.noSpeechInput = 0;\n activityChangeFlag = true;\n\n // Spawning the intent to change activities\n Intent myIntent = new Intent(this, AddressConfirmVoice.class);\n Bundle bundle = new Bundle();\n bundle.putDouble(\"Latitude\", latitude);\n bundle.putDouble(\"Longitude\", longitude);\n bundle.putString(\"Address\", choosenAddress);\n bundle.putString(\"Site_Id\", choosenSiteId);\n myIntent.putExtras(bundle);\n startActivity(myIntent);\n }", "title": "" }, { "docid": "fafa6cd5714e34d60251a27f28d5e368", "score": "0.47392592", "text": "private void findSenderRequest() {\n pd = ProgressDialog.show(context, \"\", \"Loading. Please wait...\", true);\n pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n pd.setIndeterminate(true);\n pd.setCancelable(false);\n pd.show();\n try {\n JSONObject jsonObjectReq = new JSONObject()\n .put(\"AgentID\", agentID)\n .put(\"Key\", txnKey)\n .put(\"SenderId\", mobileNumber);\n\n Log.e(\"Request\", jsonObjectReq.toString());\n L.m2(\"url-called\", url_find_sender);\n JsonObjectRequest jsonrequest = new JsonObjectRequest(Request.Method.POST, url_find_sender, jsonObjectReq,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject object) {\n pd.dismiss();\n L.m2(\"url data\", object.toString());\n MainActivity.jsonObjectStatic = object;\n try {\n if (object.getString(\"Status\").equalsIgnoreCase(\"0\")) {\n Intent intent = new Intent(context, MoneyTransferActivity.class);\n startActivity(intent);\n finish();\n } else {\n Toast.makeText(context, object.getString(\"message\"), Toast.LENGTH_SHORT).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n pd.dismiss();\n Toast.makeText(context, \"Server Error : \" + error.toString(), Toast.LENGTH_SHORT).show();\n }\n });\n BaseActivity.getSocketTimeOut(jsonrequest);\n Mysingleton.getInstance(getApplicationContext()).addToRequsetque(jsonrequest);\n\n } catch (JSONException e) {\n pd.dismiss();\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "c26311619f68d580a08f726a3bd2bcdf", "score": "0.472996", "text": "@Override\n public void onClick(View view) {\n String teamA = teamASpinner.getSelectedItem().toString();\n String teamB = teamBSpinner.getSelectedItem().toString();\n /*\n * Start a new Intent\n * */\n Intent sentIntent = new Intent(MainActivity.this, CounterActivity.class);\n\n /*\n * Sending Data to the Second Activity\n * */\n sentIntent.putExtra(\"teamAKey\", teamA);\n sentIntent.putExtra(\"teamBKey\", teamB);\n\n startActivity(sentIntent);\n }", "title": "" }, { "docid": "9455d93910e51d35cb9094180d24e053", "score": "0.4722286", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == EMAIL_REQUEST_CODE) {\n Intent mainIntent = new Intent(ReportIssueActivity.this, MainActivity.class);\n startActivity(mainIntent);\n }\n\n }", "title": "" }, { "docid": "6e44f0fa32aa8d239e4a56bb00973c8c", "score": "0.47143623", "text": "private void gotoDisqList(){\r\n\r\n Intent intent = new Intent(getApplicationContext(), WebViewer.class);\r\n intent.putExtra(\"url\",KP.dqAddr+\"chat/listCurrentThreads\");\r\n intent.putExtra(\"flag\", true);\r\n\r\n startActivity(intent);\r\n }", "title": "" }, { "docid": "22f6cdce2d96992dac32015297582572", "score": "0.4706024", "text": "@Override\n public void onClick(View arg0) {\n try {\n to_id = object_to_2.getString(\"to_id\");\n // startActivity(new Intent(context, Rider_Complite.class));\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0f8e05ff4ba9c77f6865d94190c1f065", "score": "0.46920592", "text": "private void startIntent() {\n\n\t\tfinal EditText input = new EditText(_ctx);\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(_ctx);\n\n\t\tbuilder.setView(input); // set textbox\n\t\tbuilder.setPositiveButton(R.string.ok,\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinal Editable string = input.getText();\n\t\t\t\t\t\t// call the listener in separated thread,\n\t\t\t\t\t\t// cause this could be called by UI Thread\n\t\t\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tuseData(string);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).start();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tAlertDialog dialog = builder.create();\n\t\tdialog.getWindow()\n\t\t\t\t.setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);\n\t\tdialog.show();\n\n\t}", "title": "" }, { "docid": "bf4ab5ec495a6fe690dc8204bfc67c8d", "score": "0.46902245", "text": "@Override\n public void onClick(View view) {\n Intent it = new Intent(getBaseContext(), NewPersonActivity.class);\n it.putExtra(\"userId\", userId);\n startActivity(it);\n }", "title": "" }, { "docid": "89180a3495162f0bb0cf54d123638532", "score": "0.4690116", "text": "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\tString temp_name = array_name.getItem(arg2);\n\t\t\tIntent it = new Intent(LihuibngActivity.this, Make_Call.class);\n\t\t\tit.putExtra(\"selected_name\", temp_name);\n\t\t\t\n\t\t\tstartActivityForResult(it, 6);\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "842498ed4c8dfdb84386b10b737a07fa", "score": "0.46854177", "text": "private void openCompletedEntriesActivity() {\n Intent intent = new Intent(this, CalendarEntriesActivity.class);\n intent.putExtra(\"user\", contextUser);\n intent.putExtra(\"authenticationToken\", AUTHENTICATION_TOKEN);\n intent.putExtra(\"date\", date);\n startActivity(intent);\n }", "title": "" }, { "docid": "1c5d64cfb7815c55eb7ce1ba17371bf2", "score": "0.4680812", "text": "private void getIncomingIntent()\n {\n //Checks if the intent has an extra with the reference thread\n if(this.getIntent().hasExtra(\"thread\"))\n {\n //Grabs the data in the extra\n thread = (ForumThread) this.getIntent().getSerializableExtra(\"thread\");\n\n //Sets the text of the EditText\n threadName.setText(Objects.requireNonNull(thread).getTitle());\n threadDesc.setText(thread.getDesc());\n }\n }", "title": "" }, { "docid": "8a5c347037c058636c425e56ddb59eb2", "score": "0.46706578", "text": "@Override\n public void onClick(View v) {\n Intent phoneIntent = new Intent(Intent.ACTION_DIAL, Uri.fromParts(\n \"tel\", contact, null));\n phoneIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n MyApplication.getAppContext().startActivity(phoneIntent);\n\n }", "title": "" }, { "docid": "274b17f000a66f554afc2249e780a8df", "score": "0.46638846", "text": "protected void addSelected() {\n\n List<InternetAddress> emails = new ArrayList<>();\n\n // perform club switches\n acceptClubSwitches(emails);\n\n C<Player> ps = new C<>(Player.class);\n // C<Club> cs = new C<Club>(Club.class);\n C<User> us = new C<>(User.class);\n Stream<Object> selected = getSelected();\n\n // add the remaing new account applications\n\n for (Object id : selected.toArray()) {\n MembershipApplication a = applications.get(id);\n try {\n emails.add(new InternetAddress(a.getUser().getEmail()));\n } catch (AddressException e) {\n e.printStackTrace();\n }\n String code = Player.getNewFedCode();\n a.getPlayer().setFederationCode(code);\n\n Object pid = ps.add(a.getPlayer());\n Object uid = us.add(a.getUser());\n ShiroRole.addRoles(uid, ShiroRole.r[1]);\n us.set(uid, \"player\", ps.get(pid));\n ps.set(pid, \"user\", us.get(uid));\n ps.set(pid, \"club\", a.getPlayer().getClub());\n\n applications.rem(id);\n\n }\n // send applications information about\n BridgeUI.o(\n \"Email notifications disabled in addSelected in ApplicationView\");\n // InternetAddress[] emailsAr = new InternetAddress[emails.size()];\n // EmailNotification.send(emails.toArray(emailsAr), \"Bridgetili luotu -\n // Your account is ready\", \"Message\");\n }", "title": "" }, { "docid": "2e526035f2bd3bccccf863e99ab5d7dc", "score": "0.4661134", "text": "private void loginRequest(String userName, String email, String gender, String type) {\n Map<String, String> pairs = new HashMap<>();\n pairs.put(METHOD_PARAM, SIGNUP_METHOD);\n pairs.put(USERNAME_PARAM, userName);\n pairs.put(EMAIL_PARAM, email);\n pairs.put(GENDER_PARAM, gender);\n pairs.put(BIRTHDAY_PARAM, \"0000-00-00\");\n pairs.put(DEV_TYPE_PARAM, AppConstant.DEVICE_TYPE);\n pairs.put(DEV_TOKEN_PARAM, sharePrefs.getDeviceToken());\n pairs.put(LAT_PARAM, sharePrefs.getLatitude());\n pairs.put(LON_PARAM, sharePrefs.getLongitude());\n pairs.put(USER_TYPE_PARAM, \"6\");\n pairs.put(OPTION_PARAM, type);\n pairs.put(PASS_PARAM, \"\");\n\n RestInteraction intraction = new RestInteraction(this);\n intraction.setCallBack(new IAsyncResponse() {\n @Override\n public void onRestInteractionResponse(String response) {\n try {\n JSONObject object = new JSONObject(response);\n if (object.getString(SUCCESS_PARAM).equalsIgnoreCase(ONE_RESP)) {\n getJsonData(object);\n } else {\n Utility.showAlertDialog(LoginActivity.this, object.getString(MESSAGE_KEY));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onRestInteractionError(String message) {\n Utility.showAlertDialog(LoginActivity.this, message);\n }\n });\n intraction.makeServiceRequest(AppUrls.COMMON_URL, pairs, TAG, \"Dialog\");\n\n\n Bundle bundle = new Bundle();\n bundle.putString(FirebaseAnalytics.Param.ITEM_ID, \"1\");\n bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, \"Test di login\");\n bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, \"image\");\n mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);\n }", "title": "" }, { "docid": "a031b207eca0a4fed113a33b767f5b72", "score": "0.46546018", "text": "@Override\n public void onClick(View arg0) {\n try {\n to_id = object_to_3.getString(\"to_id\");\n // startActivity(new Intent(context, Rider_Complite.class));\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7d6e3c4c6b8e5238412a5819745eb6a9", "score": "0.46499804", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, DisplayContacts.class);\n intent.putExtra(CONTACTS_LIST_KEY, contacts);\n startActivity(intent);\n }", "title": "" }, { "docid": "4040dd049afcbce4bbbe73ecae64ee09", "score": "0.4647322", "text": "public void sendRequestActiveSource() {\n sendCommand(HdmiCecMessageBuilder.buildRequestActiveSource(getSourceAddress()), new HdmiControlService.SendMessageCallback() {\n /* class com.android.server.hdmi.$$Lambda$ArcInitiationActionFromAvr$ysMwShprSV2Ejk2WTyEkZxajr8c */\n\n @Override // com.android.server.hdmi.HdmiControlService.SendMessageCallback\n public final void onSendCompleted(int i) {\n ArcInitiationActionFromAvr.this.lambda$sendRequestActiveSource$1$ArcInitiationActionFromAvr(i);\n }\n });\n }", "title": "" }, { "docid": "6a37031ecee7773b95cb08b4162e1fcd", "score": "0.46469265", "text": "private void sendResult(){\n\n if (getTargetFragment() == null){\n return;\n }\n\n Intent intent = new Intent();\n\n Log.d(TAG, \"sendResult: \"+ selectedCategories.size());\n Long start = selectedDates.size() >= 1 ? selectedDates.get(0).getTime() : null;\n Long end = selectedDates.size() >= 2 ? selectedDates.get(1).getTime() : null;\n Log.d(TAG, \"sendResult: startdate\" + start);\n Log.d(TAG, \"sendResult: enddate \" + end);\n intent.putIntegerArrayListExtra(CATEGORIES,(ArrayList<Integer>)selectedCategories);\n intent.putExtra(START_DATE, start);\n intent.putExtra(END_DATE, end);\n getTargetFragment().onActivityResult(getTargetRequestCode(),RESULT_OK,intent);\n\n // presenter.closeFilters();\n }", "title": "" }, { "docid": "d7b5f8cfa99c16f85091a7bf87e9a320", "score": "0.46388766", "text": "public void startAccountDetailsActivity(AccountsObject account){\n\n Activity activity = (Activity) this.getContext();\n MoneyAppApp app = (MoneyAppApp) activity.getApplication();\n if (!((MoneyAppApp) activity.getApplication()).pdvApiRequestQueue.isRequestPending()){\n String accountObjJson = account.toString();\n Intent intent= new Intent(getContext(), AccountDetailsActivity_.class);\n intent.putExtra(\"com.wise.moneyapp.data.PdvAccountResponse.AccountsObject\", accountObjJson);\n activity.startActivityForResult(intent, MoneyAppApp.ACCOUNT_DETAILS_ACTIVITY );\n }\n else\n {\n Toast.makeText(this.getContext(), R.string.pdvapi_request_inprogress, Toast.LENGTH_SHORT).show();\n }\n\n }", "title": "" }, { "docid": "2df797bc15d8998a135ba1961c8f4a45", "score": "0.46363658", "text": "@Override\n public void onClick(View v) {\n\n StringBuilder query = new StringBuilder (getString(R.string.baseUrl)).append(getString(R.string.baseQuery))\n .append(\"?kw=\").append(subjectField.getText().toString())\n .append(\"&z=\").append(zipField.getText().toString())\n .append(\"&d=\").append(distSpinner.getSelectedItem().toString())\n .append(\"&mina=\").append(lowerAge.getText().toString())\n .append(\"&maxa=\").append(upperAge.getText().toString())\n .append(\"&minh=\").append(lowerRange.getText().toString().substring(1))\n .append(\"&maxh=\").append(upperRange.getText().toString().substring(1))\n .append(\"&im=\").append(genderSpinner.getLastVisiblePosition() - 1)\n .append(\"&bgCheck=\").append(checkBox.isChecked() ? \"true\" : \"false\");\n\n //TextView test = (TextView) findViewById(R.id.queryPreview);\n // test.setText(query);\n/*\n // Launches browser intent\n\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(query.toString()));\n startActivity(i);\n*/\n Intent i = new Intent(QueryActivity.this, TutorListActivity.class);\n i.putExtra(\"URL\", query.toString());\n startActivity(i);\n\n }", "title": "" }, { "docid": "70709fcae0d684f0ba5d20296521f8da", "score": "0.4632731", "text": "public void returnChanges(){\n //Intended selection by user\n Intent result = new Intent();\n //result + 'From Unit\" displayed\n result.putExtra(\"FromUnit\", inputSpinner1.getSelectedItem().toString());\n result.putExtra(\"ToUnit\", inputSpinner2.getSelectedItem().toString());\n setResult(Activity.RESULT_OK, result);\n finish();\n }", "title": "" }, { "docid": "8a97dc0a298d099628dda2e630fc53a9", "score": "0.46295428", "text": "public void startAdapter(){\n adapter = new RequestAdapter(getApplicationContext(), requestList, listener);\n\n mList.setAdapter(adapter);\n\n adapter.notifyDataSetChanged();\n\n }", "title": "" }, { "docid": "892240efb1a5cb76ff510f05b192ba28", "score": "0.4626394", "text": "@Override\n public void onClick(View view) {\n listener.onContactSelected(docLists.get(getAdapterPosition()));\n }", "title": "" }, { "docid": "9ca9d8e343faeec17ff093241a028921", "score": "0.46157032", "text": "public void addIntRequest() {\n if(intLocation.getText().isEmpty() || langMenu.equals(null)){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error Submitting Interpreter Request\");\n alert.setHeaderText(\"Error occurred while adding request to database.\");\n alert.setContentText(\"Please fill out all fields\");\n alert.showAndWait();\n }else{\n String notes = \"\";\n if(!intNotesArea.getText().isEmpty()){\n notes = intNotesArea.getText();\n }\n Language language = Language.valueOf(langMenu.getValue().toString().toUpperCase());\n requestEntity.submitInterpreterRequest(intLocation.getText(), loginEntity.getCurrentLoginID(), notes, language);\n System.out.println(\"location: \" + intLocation.getText() + \". language: \" + language.toString() + \". Assigner: \" + loginEntity.getCurrentLoginID());\n if(!intEmail.getText().isEmpty()){\n String location = \"\";\n try {\n location = MapEntity.getInstance().getNode(intLocation.getText()).getLongName();\n } catch (NotFoundException e) {\n e.printStackTrace();\n }\n Email.Builder builder = new Email.Builder(intEmail.getText());\n builder.setSubject(\"New Interpreter Request\");\n builder.setBody(\"Language: \" + langMenu.getValue().toString()+ \"\\nAt: \"+ location+\n \"\\nAdditional Notes: \"+notes+ \"\\nSent By: \"+loginEntity.getCurrentUsername());\n Email email = new Email(builder);\n EmailSender.sendEmail(email);\n }\n clearButton();\n }\n\n }", "title": "" }, { "docid": "8384da15b3257eb1e26650e81a6b1799", "score": "0.46138757", "text": "@Override\n public void onClick(View view) {\n listener.onContactSelected(contactListFiltered.get(getAdapterPosition()));\n }", "title": "" }, { "docid": "8978bf57cd4fd200a0101d8cca54a937", "score": "0.46134183", "text": "@ResponseBody\n @RequestMapping(value = \"autosubscribe/launch\", method = RequestMethod.POST)\n public ResultDto launchAutoSubscriberInfo(HttpServletRequest request, Model model) {\n \tLOGGER.debug(\"launchAutoSubscriberInfo() invoked\");\n this.autoSubscriberService.launchPendingSubscribeParams();\n return ResultDtoFactory.toAck(ApplicationConstant.SAVE_SUCCESS_MESSAGE);\n }", "title": "" }, { "docid": "8543c8f4f8f7d281341b8084472f4ce7", "score": "0.46090135", "text": "private void startSignInIntent() {\n startActivityForResult(mGoogleSignInClient.getSignInIntent(), RC_SIGN_IN);\n }", "title": "" }, { "docid": "5d4268db29031e7036f2312b65621b2e", "score": "0.46056134", "text": "public void onClick(View v){\n Intent intent_s = new Intent(Course_Template.this, Course_Assignments.class);//\n intent_s.putExtra(\"coursecode1\", message);//course code message\n Re req = new Re(intent_s,Course_Template.this,\"/courses/course.json/\"+message+\"/assignment\",1);//course assignment api\n req.request();\n //startActivity(intent_s);\n }", "title": "" }, { "docid": "e94b1b599db9a93347fb22e962ed56ea", "score": "0.46045908", "text": "@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"payment_initiation/recipient/list\")\n Call<PaymentInitiationRecipientListResponse> paymentInitiationRecipientList(\n @retrofit2.http.Body PaymentInitiationRecipientListRequest paymentInitiationRecipientListRequest\n );", "title": "" }, { "docid": "a3062f72ae1662166659c4221936a9a5", "score": "0.4588909", "text": "private void getLoadInvitaion() {\n\n\t\ttry {\n\n\t\t\tJSONObject aRequestJson = new JSONObject();\n\t\t\tLog.d(\"InvitationListActivity\", \"MyAppConstants.PHONE\"\n\t\t\t\t\t+ MyAppConstants.PHONE);\n\t\t\taRequestJson.put(\n\t\t\t\t\tMyAppConstants.PHONE,\n\t\t\t\t\tgetSharedPreferences(MyAppConstants.APP_PREFERENCE,\n\t\t\t\t\t\t\tMODE_PRIVATE).getString(MyAppConstants.PHONE, \"\"));\n\t\t\taRequestJson\n\t\t\t\t\t.put(MyAppConstants.MEMBER_ID, itsSharedPreference\n\t\t\t\t\t\t\t.getString(MyAppConstants.MEMBER_ID, \"\"));\n\n\t\t\tAppAsyncTask aAsyncTask = new AppAsyncTask(this,\n\t\t\t\t\tMyAppConstants.LOAD_INVITATION,\n\t\t\t\t\tMyAppConstants.API_POST_TYPE,\n\t\t\t\t\tMyAppConstants.INVITAION_LOADING);\n\t\t\taAsyncTask.setListener(new AppAsyncTask.AsyncTaskListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onPreExecuteConcluded() {\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onPostExecuteConcluded(String theResult) {\n\n\t\t\t\t\tif (theResult != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tJSONObject aFollowersJson = new JSONObject(\n\t\t\t\t\t\t\t\t\ttheResult);\n\n\t\t\t\t\t\t\tString aResponseStatus = aFollowersJson\n\t\t\t\t\t\t\t\t\t.getString(MyAppConstants.RESULT);\n\n\t\t\t\t\t\t\tif (aResponseStatus.equals(\"true\")) {\n\t\t\t\t\t\t\t\tisInvited = true;\n\t\t\t\t\t\t\t\t// Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t// \"isInvited '\"+isInvited+\"'\",\n\t\t\t\t\t\t\t\t// Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (isInvited) {\n\t\t\t\t\t\t\t\tMyAppConstants.IS_ON_WELCOME = true;\n\t\t\t\t\t\t\t\tIntent aCreateInvitationIntent = new Intent()\n\t\t\t\t\t\t\t\t\t\t.setClass(WelcomeActivity.this,\n\t\t\t\t\t\t\t\t\t\t\t\tInvitationListActivity.class);\n\t\t\t\t\t\t\t\tstartActivity(aCreateInvitationIntent);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLog.i(this.getClass().getName(),\n\t\t\t\t\t\t\t\t\t\tMyAppConstants.TEAM_ACTIVITY_LOAD_INFO);\n\t\t\t\t\t\t\t\tIntent aTeamIntent = new Intent().setClass(\n\t\t\t\t\t\t\t\t\t\tWelcomeActivity.this,\n\t\t\t\t\t\t\t\t\t\tTeamViewActivity.class);\n\t\t\t\t\t\t\t\taTeamIntent.putExtra(MyAppConstants.MEMBER_ID,\n\t\t\t\t\t\t\t\t\t\titsSharedPreference.getString(\n\t\t\t\t\t\t\t\t\t\t\t\tMyAppConstants.MEMBER_ID, \"\"));\n\t\t\t\t\t\t\t\tstartActivity(aTeamIntent);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (JSONException theJsonException) {\n\t\t\t\t\t\t\ttheJsonException.printStackTrace();\n\t\t\t\t\t\t\tLog.e(this.getClass().getName(),\n\t\t\t\t\t\t\t\t\t\"JSON Exception while retrieving response from getMyTeam webservice\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\tMyAppConstants.CONNECTION_ERROR,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t});\n\t\t\taAsyncTask.execute(aRequestJson.toString());\n\t\t} catch (JSONException theJsonException) {\n\t\t\ttheJsonException.printStackTrace();\n\t\t\tLog.e(this.getClass().getName(),\n\t\t\t\t\t\"JSON Exception while constructing request for getMyTeam webservice\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "34143d0ec033c0f7d52918f72f75bc4d", "score": "0.45855224", "text": "@Override\n public void onClick(View v) {\n Intent i = new Intent(context, SignaturePad.class);\n i.putExtra(\"receiver_name\", receiverName);\n i.putExtra(\"client_id\", id);\n i.putExtra(\"receiver_id\", receiver_id);\n i.putExtra(\"phone_number\", receiverPhoneNumber);\n\n context.startActivity(i);\n }", "title": "" }, { "docid": "12388ba983fd346f071371d0a8339a46", "score": "0.45854288", "text": "private void sendRequest(SearchQuery searchQuery) {\n Intent intent = new Intent(getActivity(), ActivityResult.class);\n intent.putExtra(ActivityResult.KEY_TITLE, searchQuery.getJobName());\n intent.putExtra(ActivityResult.KEY_REQUEST, searchQuery.getQuery());\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "title": "" }, { "docid": "df6f528ab28d21acde26fc08787010e8", "score": "0.4580299", "text": "private void createRequest() {\n GoogleSignInOptions gso = new GoogleSignInOptions\n .Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n GoogleSignInClient = GoogleSignIn.getClient(this, gso);\n }", "title": "" }, { "docid": "236957c41c4c1b7c7480346ac3a41c65", "score": "0.4578324", "text": "private void openCompleteEntryCreationActivity() {\n Intent intent = new Intent(this, CompletedEntryCreationActivity.class);\n intent.putExtra(\"user\", contextUser);\n intent.putExtra(\"authenticationToken\", AUTHENTICATION_TOKEN);\n intent.putExtra(\"calendarEntry\", calendarEntryDetails);\n intent.putExtra(\"date\", date);\n startActivity(intent);\n }", "title": "" }, { "docid": "9e1169499413aba2acf0c5cba695304c", "score": "0.45741254", "text": "@Override\n public void run() {\n Intent mainIntent = new Intent(TermsAndAgreement.this,myActivity);\n TermsAndAgreement.this.startActivity(mainIntent);\n TermsAndAgreement.this.finish();\n }", "title": "" }, { "docid": "a617a0bd59a30a729b2452dc316f650e", "score": "0.4566885", "text": "public void firstQuesSetSending() {\n\t\t\n\t\t//String url= \"http://\" + request.getServerName() + \":\" + request.getServerPort() + request.getContextPath()+\"/login\";\n\t\tList<Candidate> remCandidateList = new ArrayList<Candidate>();\n\t\t\n\t\tList<Candidate> candidateList = (List<Candidate>)(Object)\n\t\t\t\tcommonService.getObjectListByAnyColumn(\"Candidate\", \"status\", JOINED);\n\t\t\n\t\tDate now = new Date();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(now);\n\t\tcal.add(Calendar.DAY_OF_MONTH, -1);\n\t\tDate laterDate = cal.getTime();\n\t\t\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tString reminderDate = df.format(laterDate);\n\t\t\n\t\tfor (Candidate candidate : candidateList) {\n\t\t\tif(candidate.getEjmsJoiningDate().toString().equals(reminderDate.toString())) {\n\t\t\t\tremCandidateList.add(candidate);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Candidate candidate : remCandidateList) {\n\t\t\t//ques sent\n\t\t\tcandidate.setModifiedBy(SYSTEM_USER);\n\t\t\tcandidate.setModifiedDate(new Date());\n\t\t\tcandidate.setStatus(QUES_SET_ONE_SEND);\n\t\t\tcommonService.saveOrUpdateModelObjectToDB(candidate);\n\t\t\t\n\t\t\t//send email\n\t\t\tSendEmail se = new SendEmail();\t\n\t\t\ttry {\n\t\t\t\tif(candidate.getCompany().getCompanyKeyword().equals(DCIMCH)) {\t\n\t\t\t\t\tse.candidate1stQuestSentMail(mailSender, candidate, commonEmailAddressDCIMCH);\n\t\t\t\t}else {\n\t\t\t\t\tse.candidate1stQuestSentMail(mailSender, candidate, commonEmailAddress);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (MessagingException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//send sms\n\t\t\tString mobileNo = candidate.getCandMobileNo();\t\t\t\n\t\t\tString formatedMobileNo = \"\";\t\t\t\n\t\t\tif(mobileNo != null && !mobileNo.equals(\"\")) {\n\t\t\t\tformatedMobileNo = getFormatedMobileNo(mobileNo);\n\t\t\t}\t\t\t\n\t\t\tif(!formatedMobileNo.equals(\"\")){\n\t\t\t\tSendSms sendSms = new SendSms();\n\t\t\t\tsendSms.sendSmsTo(mobileNo, \"Dear Mr./Ms. \" + candidate.getCandName() + \",\\nYour First Feedback Quest has been sent to Synergy EJMS. Please Check Your Email for Login Info. Thank You.\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "8fe937290db6c2c97154562177f146b0", "score": "0.45658022", "text": "void askSquareSelection(SquareRequest request) {\n // Set the text of the square request message\n squareRequestMessage.setText(request.getMessage());\n // First retrieve all the squares the user can select among and create a pool of observable overlays\n Collection<SelectableOverlay<CoordPair>> selectableSquares = Arrays.stream(squareOverlays).flatMap(Arrays::stream).filter(Objects::nonNull).filter(overlay -> request.getChoices().contains(overlay.getData())).collect(Collectors.toList());\n // Then create a selection handler to handle the request and set it as the current one in the view\n clientView.setSelectionHandler(new SelectionHandler<CoordPair>(selectableSquares));\n }", "title": "" }, { "docid": "d7d634ff75e1bf577a08d18b961556ce", "score": "0.45651957", "text": "private void sendRequest() {\n if (origin.isEmpty()) {\n Toast.makeText(this, \"Please enter origin address!\", Toast.LENGTH_SHORT).show();\n return;\n }\n if (destination.isEmpty()) {\n Toast.makeText(this, \"Please enter destination address!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n try {\n new DirectionFinder(this, origin, destination).execute();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "3854323f0e89184645d242f233dfa9cc", "score": "0.456293", "text": "@Override\n public void onClick(View view)\n {\n\n ArrayList<BusStop> busStopsDataPass = ((BusLine) dataObject[0]).getBusStops();\n BusRoute currentSelectedRoute = ((BusLine) dataObject[0]).getBusRoutes().get(position);\n Bundle bundle = new Bundle();\n bundle.putParcelableArrayList(Constants.intentdata.intent_bus_stops_selectable_adapter, busStopsDataPass);\n bundle.putString(Constants.intentdata.intent_bus_route_selectable_adapter, currentSelectedRoute.getRouteName());\n\n// chosenType = \"L\";\n//\n// Intent intent = new Intent(\"UPCOMING\");\n// intent.putExtra(Constants.intentdata.intent_bus_stops_selectable_adapter, busStopsDataPass);\n// mContext.sendBroadcast(intent);\n\n Intent dashboardActivityIntent = new Intent(mContext, DashboardActivity.class);\n dashboardActivityIntent.putExtra(Constants.intentdata.intent_bus_stops_selectable_adapter, busStopsDataPass);\n dashboardActivityIntent.putExtra(Constants.intentdata.intent_bus_route_selectable_adapter, currentSelectedRoute.getRouteName());\n dashboardActivityIntent.putExtra(Constants.intentdata.intent_bus_line_selectable_adapter, ((BusLine) dataObject[0]));\n\n\n mContext.startActivity(dashboardActivityIntent);\n }", "title": "" }, { "docid": "10426544678026f92a4822b7040e2443", "score": "0.45603687", "text": "@Override\n public void onConnectionRequestInteraction(Bundle b) {\n mDataHandler.updateContacts();\n\n ConnectionRequestsFragment crf = new ConnectionRequestsFragment();\n Bundle args = new Bundle();\n args.putSerializable(getString(R.string.ARGS_CREDENTIALS), mCredentials);\n\n Connection[] conns = mDataHandler.getContactList(mJsonData.get(getString(R.string.ARGS_CONNECTIONS))); //TODO: MAY RETURN NULL IF CONNECTIONS\n if(null == conns){\n conns = new Connection[0];\n }\n\n args.putSerializable(ConnectionFragment.ARG_CONNECTION_LIST, conns);\n crf.setArguments(args);\n loadFragment(crf);\n }", "title": "" }, { "docid": "6ddfb01d09c0e3e914669dfcd775f11b", "score": "0.4560318", "text": "public void inviteReceived(LinphoneCore lc,String from);", "title": "" }, { "docid": "8b8a8f783c2df832319cef6ad55f8617", "score": "0.45570344", "text": "void onRequestStarted();", "title": "" }, { "docid": "7158d5ae971e48c416a8129b3deedea3", "score": "0.45567393", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\trequest = requestText.getText().toString();\n\t\t\t\tif(request != null){\n\t\t\t\tString[] parameter = {request,mobileNumb};\n\t\t\t\tnew WebData().execute(parameter);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "5a4aa542cadeee15905992f6f6e3ffba", "score": "0.4554251", "text": "public void importParticipant(View v) {\n\t\tBundle bundle = getIntent().getExtras();\n\t\tparticipant = bundle.getString(\"send_participant\");\n\t}", "title": "" }, { "docid": "4ff172e1a84105ec2616fdf8f9d424ea", "score": "0.45490998", "text": "private void LaunchEvent(Event event, ArrayList<User> participants) {\n Intent intent = new Intent(MainActivity.this, EventActivity.class);\n // TODO read from event\n String currentUserUID = auth.getUid();\n // add the uid\n intent.putExtra(\"eventUID\", event.getId());\n // add the title\n intent.putExtra(\"Title\", event.getTitle());\n // add the event owner\n intent.putExtra(\"Owner\", event.getOwner());\n // is event completed?\n boolean completed = event.isCompleted();\n if (completed){\n intent.putExtra(\"Completed\", completed);\n }\n // add the destination\n String destination = (String) event.getDestination().get(\"street\");\n GeoPoint destinationGP = (GeoPoint) event.getDestination().get(\"LatLng\");\n LatLng destinationLatLng = new LatLng(destinationGP.getLatitude(), destinationGP.getLongitude());\n Bundle destinationBundle = new Bundle();\n destinationBundle.putParcelable(\"destinationLatLng\", destinationLatLng);\n destinationBundle.putString(\"destinationAddress\", destination);\n intent.putExtra(\"Destination\", destinationBundle);\n // differentiate current User from other participants\n ArrayList<User> eventParticipants = participants;\n User user = new User();\n for (Iterator<User> iterator= eventParticipants.iterator(); ((Iterator) iterator).hasNext(); ){\n User u = iterator.next();\n if (u.getId().equals(currentUserUID)){\n iterator.remove();\n user = u;\n }\n }\n /*for(User u : participants){\n if (u.getId().equals(currentUserUID)){\n eventParticipants.remove(u);\n user = u;\n }\n }*/\n // add the participants\n Bundle participantsBundle = new Bundle();\n participantsBundle.putParcelableArrayList(\"Participants\", eventParticipants);\n // add the user\n participantsBundle.putParcelable(\"User\", user);\n intent.putExtra(\"Participants\", participantsBundle);\n // start\n startActivity(intent);\n }", "title": "" }, { "docid": "f7baf5cfa4d8d9336cbda309470504db", "score": "0.45474586", "text": "public ChatActionChoosingContact() {\n }", "title": "" }, { "docid": "95079ee89793c8d62f47e4cd46540866", "score": "0.45471522", "text": "public synchronized Recipient getRecipient(int thread) {\r\n\t\tRecipient recipient = null;\r\n\t\tfor (Iterator<Recipient> it = this.recipients.iterator(); it.hasNext();) {\r\n\t\t\tRecipient returnedRecipient = it.next();\r\n\t\t\t//testLog.info(\"i = \"+thread+\", iteracja recipient \" + r.toString());\r\n\t\t\tif (returnedRecipient.getRecipientStatus() == RecipientStatus.READY) {\r\n\t\t\t\trecipient = returnedRecipient;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn recipient;\r\n\t}", "title": "" }, { "docid": "520ac464abbf95752658a78050780968", "score": "0.45462823", "text": "private void openNextActivity() {\n Intent receiptIntent = new Intent(this, ReceiptActivity.class);\n //getting the resource in second activity\n //sending data from activity\n receiptIntent.putExtra(\"EXTRA_OUTPUT\", output);\n receiptIntent.putExtra(\"EXTRA_AMOUNT\", amount);\n\n //ready to start activity\n startActivity(receiptIntent);\n\n }", "title": "" }, { "docid": "79d909b2beea46d07f55ec07e89ddb39", "score": "0.45461652", "text": "public void onClick(View v) {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tsendRequestDialog(resultList.get(finalPosition).getString(\"facebookId\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\t//mViewHolder.intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://m.facebook.com/messages/\"+resultList.get(finalPosition).getString(\"facebookId\")));\n\t\t\t\t\t\t//context.startActivity(mViewHolder.intent);\n\t\t\t }catch(Exception e){\n\t\t\t \t\n\t\t\t }\n\t\t\t }", "title": "" }, { "docid": "13e9586b09bb4688aff60ebb7f38daa4", "score": "0.45399615", "text": "public static void doStartActivityForResultWithPassIntent(Activity activity, int request_code, Intent intent) {\n activity.startActivityForResult(intent, request_code);\n }", "title": "" }, { "docid": "dde048a24ddab4677e67ebf5afb55a8f", "score": "0.45393893", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(), Select_Item_Activity.class);\n\t\t\t\tintent.putExtra(\"user_id\",user_id);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "title": "" }, { "docid": "ef171b652d10e610f078cda8f1af393b", "score": "0.45369175", "text": "public void onInviteEvent(javax.sip.RequestEvent requestEvent,\n\t\t\tActivityContextInterface aci) {\n\n\t\tfinal ServerTransaction serverTransaction = requestEvent\n\t\t\t\t.getServerTransaction();\n\t\ttry {\n\t\t\t// send \"trying\" response\n\t\t\tResponse response = messageFactory.createResponse(Response.TRYING,\n\t\t\t\t\trequestEvent.getRequest());\n\t\t\tserverTransaction.sendResponse(response);\n\t\t\t// get local object\n\t\t\tfinal SbbLocalObject sbbLocalObject = this.sbbContext\n\t\t\t\t\t.getSbbLocalObject();\n\t\t\t// detach from the server tx activity\n\t\t\taci.detach(sbbLocalObject);\n\t\t\t// create dialog activity and attach to it\n\t\t\tfinal DialogActivity dialog = (DialogActivity) sleeSipProvider\n\t\t\t\t\t.getNewDialog(serverTransaction);\n\t\t\tfinal ActivityContextInterfaceExt dialogAci = (ActivityContextInterfaceExt) sipActivityContextInterfaceFactory\n\t\t\t\t\t.getActivityContextInterface(dialog);\n\t\t\tdialogAci.attach(sbbLocalObject);\n\t\t\t// set timer of 60 secs on the dialog aci\n\t\t\ttimerFacility.setTimer(dialogAci, null,\n\t\t\t\t\tSystem.currentTimeMillis() + 60000L, getTimerOptions());\n\t\t\t// send 180\n\t\t\tresponse = messageFactory.createResponse(Response.RINGING,\n\t\t\t\t\trequestEvent.getRequest());\n\t\t\tserverTransaction.sendResponse(response);\n\t\t\t// send 200 ok\n\t\t\tresponse = messageFactory.createResponse(Response.OK,\n\t\t\t\t\trequestEvent.getRequest());\n\t\t\tresponse.addHeader(getContactHeader());\n\t\t\tserverTransaction.sendResponse(response);\n\t\t} catch (Exception e) {\n\t\t\tgetTracer().severe(\"failure while processing initial invite\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "8124751aca87af15bda9fe63e9f0fffa", "score": "0.45356286", "text": "@Override\n public void onClick(View arg0) {\n try {\n to_id = object_to_1.getString(\"to_id\");\n to_rs = object_to_1.getString(\"individual_price\");\n to_count = \"1\";\n to_address = object_to_1.getString(\"to_address\");\n startActivity(new Intent(context, CompleteDeliveryActivity.class));\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "df74ca75008167f409e2b279bb2212f5", "score": "0.45350745", "text": "public void askForTransfert() {\n\n\t\tString transfer = QInputDialog.getItem(this, \"Transfer\", \"Select the recipient number :\", this.directory, 0, false);\n\t\tif (transfer != null) {\n\t\t\tthis.line.addTransfertRules(transfer);\n\t\t\tthis.logBrowser.append(\"Add transfer to \" + transfer);\n\n\t\t} else {\n\t\t\tthis.line.removeTransfertRules();\n\t\t\tthis.logBrowser.append(\"Remove transfer rule\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "0efc7b2f98e2d505105361c70e75b779", "score": "0.4532048", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(GroupInfoActivity.this,InviteGroupMembersActivity.class);\n\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\tbundle.putSerializable(\"groupname\",groupname);\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tGroupInfoActivity.this.finish();\n\t\t\t}", "title": "" }, { "docid": "d5113531f6f71b2d86448377ec98fd46", "score": "0.4528233", "text": "private void JoinEvent(String identifier) {\n\n if (identifier.matches(\"\")){\n Toast.makeText(MainActivity.this, \"The provided identifier is an invalid one. Please try again.\", Toast.LENGTH_SHORT).show();\n } else if (eventUIDList.contains(identifier)){\n Toast.makeText(MainActivity.this, \"Your already taking part in this event.\", Toast.LENGTH_SHORT).show();\n } else {\n Intent intent = new Intent(MainActivity.this, JoinEventActivity.class);\n intent.putExtra(\"eventUID\", identifier);\n // Get data from server\n DocumentReference eventRef = db.collection(\"events\").document(identifier);\n eventRef.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n if (task.isSuccessful()) {\n DocumentSnapshot document = task.getResult();\n if (document.exists()) {\n Log.d(TAG, \"DocumentSnapshot data: \" + document.getData());\n\n intent.putExtra(\"Title\", document.getString(\"title\"));\n intent.putExtra(\"Owner\", document.getString(\"owner\"));\n intent.putExtra(\"Destination\", createJoinActivityDestinationBundle(document));\n db.collection(\"events\")\n .document(document.getId())\n .collection(\"participants\")\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n intent.putExtra(\"Participants\", createJoinActivityParticipantsBundle(task));\n // Drop the menu down\n menuEvent.toggle(true);\n // start the activity\n startActivity(intent);\n } else {\n Log.d(TAG, \"Error getting documents: \", task.getException());\n }\n }\n });\n } else {\n Log.d(TAG, \"No such document\");\n // Show Toast to inform of incorrect identifier\n Toast.makeText(MainActivity.this, \"The provided identifier is an invalid one. Please try again.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n Log.d(TAG, \"get failed with \", task.getException());\n }\n }\n });\n }\n }", "title": "" }, { "docid": "c74257d476a732cbf292ebf5b1eefef8", "score": "0.45280668", "text": "@Override\n public void onClick(View view) {\n Log.i(\"Clicked:\", \"Reached\");\n final Intent i = new Intent(context, MainActivity.class);\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n switch (t_search.getType()){\n case \"Category\":\n i.putExtra(\"frgToLoad\", 2);\n break;\n\n default:\n i.putExtra(\"frgToLoad\", 1);\n break;\n }\n\n i.putExtra(\"fragID\", t_search.getId());\n context.startActivity(i);\n }", "title": "" } ]
b29502a2efb1df8464bb9f5d580d429c
The average amount you pay per interaction. This amount is the total cost of your ads divided by the total number of interactions. .google.protobuf.DoubleValue average_cost = 8;
[ { "docid": "6c463dac7723a08dcbd44649749a6f2c", "score": "0.0", "text": "public Builder clearAverageCost() {\n if (averageCostBuilder_ == null) {\n averageCost_ = null;\n onChanged();\n } else {\n averageCost_ = null;\n averageCostBuilder_ = null;\n }\n\n return this;\n }", "title": "" } ]
[ { "docid": "64202b82ecb32ba92be0e97263d3839d", "score": "0.7131868", "text": "public com.google.protobuf.DoubleValue getAverageCost() {\n if (averageCostBuilder_ == null) {\n return averageCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCost_;\n } else {\n return averageCostBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "601bb1f8757062fc1ca4f303ba318b22", "score": "0.7081077", "text": "public com.google.protobuf.DoubleValue getAverageCost() {\n return averageCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCost_;\n }", "title": "" }, { "docid": "17a3941564d6a5d819ef071f8573c092", "score": "0.7075749", "text": "public com.google.protobuf.DoubleValueOrBuilder getAverageCostOrBuilder() {\n return getAverageCost();\n }", "title": "" }, { "docid": "0656048758f356ebaa147e690edb6ec3", "score": "0.7040507", "text": "public double averageTransactionCost() {\n\n int totalAmount = 0;\n\n for(Transaction t : transactions){\n totalAmount += t.getAmount();\n }\n return totalAmount / transactions.size();\n }", "title": "" }, { "docid": "1dd9d2a5c69db139e00f48b9f3d83261", "score": "0.67741627", "text": "public com.google.protobuf.DoubleValueOrBuilder getAverageCostOrBuilder() {\n if (averageCostBuilder_ != null) {\n return averageCostBuilder_.getMessageOrBuilder();\n } else {\n return averageCost_ == null ?\n com.google.protobuf.DoubleValue.getDefaultInstance() : averageCost_;\n }\n }", "title": "" }, { "docid": "8cedbadbd49eb25284bb2000a138e278", "score": "0.6236769", "text": "public double average() {\n int i; \n double total = 0;\n double average;\n\n for (i = 0; i < gdpData.size(); i++) {\n // Finding the total \n total = total + gdpData.get(i).getGdpPerCapita();\n }\n\n // Finding the average\n average = Math.round((total / gdpData.size()) * 100.0) / 100.0;\n\n return average;\n\n }", "title": "" }, { "docid": "0c4872b3b08d21937168b7dd1d8bdb5a", "score": "0.6153842", "text": "public double getAveragePrice(){\n double sum = 0;\n double average = 0;\n Iterator<StockPurchase> it = stockPurchases.iterator();\n while(it.hasNext()){\n StockPurchase s = it.next();\n sum+= s.getTotalCost();\n }\n if(stockPurchases.size() > 0){\n average = sum/ stockPurchases.size();\n }\n \n return average;\n }", "title": "" }, { "docid": "d257ef2d1a4aca00d5c0f35aed503d27", "score": "0.6111679", "text": "double getAveragePrice();", "title": "" }, { "docid": "5e821c1a7e2b5d1fcd6086008d899961", "score": "0.60587794", "text": "public double returnAvgOverallSpent() throws SQLException {\r\n\t\tString query = \"select FORMAT(AVG(BookStore2021.Orders.orderTotalCost),2) as cost \" + \r\n\t\t\t\t\"\t\t\t\t\t\tfrom BookStore2021.Orders \" + \r\n\t\t\t\t\"\t\t\t\t\twhere BookStore2021.Orders.status = 'PROCESSED' \";\r\n\t\tPreparedStatement p = this.con.prepareStatement(query);\r\n\t\tResultSet r = p.executeQuery(query);\r\n\t\tdouble spent = 0;\r\n\t\tList<AdminBean> rv = new ArrayList<AdminBean>();\r\n\t\twhile(r.next()){\r\n\t\t\tspent = r.getDouble(\"cost\");\r\n\t\t}\r\n\t\t\r\n\t\treturn spent;\r\n\t}", "title": "" }, { "docid": "1b30bd283b438f8fa50231743223171d", "score": "0.6056499", "text": "private double getAverageRating(){\n\t\tdouble totalRating = 0;\n\t\tfor(int i = 0; i < _teams.length; i++){\n\t\t\ttotalRating += _teams[i].getRating();\n\t\t}\n\t\treturn (double)totalRating / _teams.length;\n\t}", "title": "" }, { "docid": "d96ecf67780f52434b3c0882440e6a25", "score": "0.6002066", "text": "public double getAvg() {\n if (this.count == 0) {\n return 0;\n }\n BigDecimal bd = new BigDecimal(this.sum / this.count);\n bd = bd.setScale(4, RoundingMode.HALF_UP);\n return bd.doubleValue();\n }", "title": "" }, { "docid": "b765154837636bbf9e0cb9b5afc911c9", "score": "0.5999096", "text": "public double findAvg(){\n int sum = sumAll();\n return sum/100;\n }", "title": "" }, { "docid": "054722f3684b628db78fa640d5e9bbad", "score": "0.5998955", "text": "public double getAvg() {\n return avg;\n }", "title": "" }, { "docid": "8c63168517593c3e4768dea749917fe6", "score": "0.5968075", "text": "public void computeAverage() {\n averageRating = Util.calculateAverage(ratings);\n }", "title": "" }, { "docid": "eff88cac44f8e95a6ed3e04b23efab65", "score": "0.59386885", "text": "private void calculateAverage() {\n\t\t\n\t}", "title": "" }, { "docid": "c94a6348507518c4ce8235c1f6004b6b", "score": "0.5929224", "text": "public Builder setAverageCost(com.google.protobuf.DoubleValue value) {\n if (averageCostBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n averageCost_ = value;\n onChanged();\n } else {\n averageCostBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "2d2af864480d90d96a4f615c19e545e6", "score": "0.5928368", "text": "@JsonIgnore\n public double getAverageVote() {\n Integer sum = 0;\n for (Vote vote : votes) {\n sum += vote.getValue();\n }\n return sum.doubleValue() / votes.size();\n }", "title": "" }, { "docid": "0a19385d35dd6bfc454f3a0e397df79c", "score": "0.5910832", "text": "public Float getAvg() {\r\n return avg;\r\n }", "title": "" }, { "docid": "fd95717a282d1f70b83dcd0e35072164", "score": "0.59106404", "text": "public double calculate_avg (){\n double total = 0;\n if(app_response_time.size() > 0) {\n for (Map.Entry<Long, Long> entry : app_response_time.entrySet()) {\n //System.out.println(\"entry\" + i + \"...\"+entry.getValue());\n total = total + entry.getValue();\n }\n total = total/app_response_time.size();\n }\n return total;\n }", "title": "" }, { "docid": "809f9c91a2b1e978c5395a269734ab40", "score": "0.5906003", "text": "double getAverageConsumption();", "title": "" }, { "docid": "71f01b62943ce95b7699065cf2dabc39", "score": "0.5896918", "text": "public double calcAvgRating() {\n\t\tdouble sum = 0;\n\t\t\n\t\tfor (Integer userID : ratings.keySet()) {\n\t\t\tsum += ratings.get(userID);\n\t\t}\n\t\t\n\t\treturn sum / ratings.size();\n\t}", "title": "" }, { "docid": "c71d9f3b7d2449058de4638ccb763902", "score": "0.58935875", "text": "public double getAverage(){\n return average;\n }", "title": "" }, { "docid": "959a68cd1a4f5c0512ac46730e72a24f", "score": "0.5884625", "text": "private static double average_edge() {\n\t\tdouble ave = (double) graph.edges.size() / graph.nodes.size(); \n\t\treturn(Math.round(ave * 100.0)/100.0);\n\t}", "title": "" }, { "docid": "2a974b948e948d057c8507aaf46f6527", "score": "0.5867789", "text": "double getObjectWaitTimeAvg();", "title": "" }, { "docid": "8dde5a11509021d7d7304d04a1b2f7e0", "score": "0.5861306", "text": "private double getAvg(ArrayList<Double> arrayList) {\r\n\t\tdouble avg = 0.0;\r\n\t\r\n\t\tfor (Double rewardsOfStateActionPair : arrayList) {\r\n\t\t\tavg += rewardsOfStateActionPair;\r\n\t\t}\r\n\r\n\t\tavg = avg / arrayList.size();\r\n\t\treturn avg;\r\n\t}", "title": "" }, { "docid": "1a1ad147ab652c6a317c1b7f2da2da43", "score": "0.5837593", "text": "@Test\n public void average() throws Throwable\n {\n try( Driver driver = GraphDatabase\n .driver( neo4j.boltURI() , Config.build().withEncryptionLevel( Config.EncryptionLevel.NONE ).toConfig() ) )\n {\n Session session = driver.session();\n\n Double result = session.run(\n \"RETURN example.average(['a1:1, b1:1', 'a2:2, b2:2', 'a3:3, b3:3']) AS result\")\n .single().get(\"result\").asDouble();\n assertThat( result, equalTo( 2.0 ) );\n }\n }", "title": "" }, { "docid": "4f34ff616f6a68c08c473b24549eaacc", "score": "0.5828478", "text": "public double average() {\n return (sum / (double) numberOfReadings);\n }", "title": "" }, { "docid": "86b54d40511fc49ab96b474a6e863ed8", "score": "0.58235735", "text": "public double averageCalc()\n\t{\n\t\tdouble sum = 0.0;\n\t\tfor (int i = 0; i < listArray.length; i++)\n\t\t{\n\t\t\tsum += listArray[i];\n\t\t}\n\t\t\n\t\treturn sum / list.getCounter();\n\t}", "title": "" }, { "docid": "6e266256e5e9f73e76bfb31e797ee425", "score": "0.579781", "text": "public double getAvg(MetricEvent event) {\n return getSum(event) / data.getIntervalInSecond();\n }", "title": "" }, { "docid": "b6d9b79e72a4fa6fcf369f1b140868a4", "score": "0.5792673", "text": "public double getAverage() {\r\n\t\treturn (score1+score2)/2;\r\n\t}", "title": "" }, { "docid": "4d2d3fc7fbcb5571af6a86a4299498a8", "score": "0.579006", "text": "public double avgSpeed(){\n\t\treturn travel / time;\n\t}", "title": "" }, { "docid": "320ef75bd40ecf207a4a2eac3eddd4ff", "score": "0.57823837", "text": "public double getAverage() {\r\n return average;\r\n }", "title": "" }, { "docid": "9845f66a08e6e6a1ba3db3825e78549b", "score": "0.57811713", "text": "public double getAverage(){\n\t\treturn averageCal;\n\t}", "title": "" }, { "docid": "79fde40430099516427c1b5dd682bb8e", "score": "0.578089", "text": "public BigDecimal getRowsExaminedAvg() {\n return rowsExaminedAvg;\n }", "title": "" }, { "docid": "0c0652c5dd76b3e19f0714c56105155f", "score": "0.5775818", "text": "double getEstimatedCost();", "title": "" }, { "docid": "cf362ceef62b8d9d0d86b9e19d89c9de", "score": "0.5765621", "text": "default double average() {\n return sum() * 1d / size();\n }", "title": "" }, { "docid": "287860be0849d234db580f50d8edd944", "score": "0.5733046", "text": "public int averagePropertyPrice()\n {\n int averagePrice = (sumOfPrices / propertiesViewed); //calculates average price using all properties seen so far and stored in a local variable\n return averagePrice;\n }", "title": "" }, { "docid": "626593f14cc4fb3e94239335d3b3b942", "score": "0.5723114", "text": "public double getAverageResponse(){\n\t\treturn sumOfResponse / numOfCompletedProcesses;\n\t}", "title": "" }, { "docid": "94e61dae572202691f81f44dad36fb80", "score": "0.5712412", "text": "public com.google.protobuf.DoubleValue.Builder getAverageCostBuilder() {\n \n onChanged();\n return getAverageCostFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "7b1dfcb1ac5ee50d4683427653a71300", "score": "0.57091707", "text": "public double getAvg() {\r\n\t\tdouble tot = 0;\r\n\t\tdouble avg;\r\n\t\tfor (int i = 0; i < scores.length; i++) {\r\n\t\t\ttot += scores[i];\r\n\t\t}\r\n\t\tavg = tot / scores.length;\r\n\t\treturn avg;\r\n\t}", "title": "" }, { "docid": "5f3c723e485d2b1cd7d0b90e18e2cde0", "score": "0.570678", "text": "public static double getCustomerWaitTimeAverage() {\n return customerWaitTimeAverage;\n }", "title": "" }, { "docid": "57484ba7f2c4c5b29ba227768d2b4c19", "score": "0.5684121", "text": "public double getAvgEnergyInSystem(){return (totalEnergy / (double)arrayOfBalls.size());}", "title": "" }, { "docid": "65191238bf5a9cfe8be050f9e14be86a", "score": "0.56816876", "text": "private int getAveragePricePerNight() {\n int totalPrice = 0;\n int numberOfProperties = 0;\n int averagePricePerNight;\n\n for(AirbnbListing p: propertiesAtPriceRange)\n {\n totalPrice = totalPrice + p.getPrice();\n numberOfProperties ++;\n }\n\n averagePricePerNight = totalPrice/numberOfProperties;\n return averagePricePerNight;\n }", "title": "" }, { "docid": "bcac88619f8dbda7817f1c8d1cf7da32", "score": "0.5674736", "text": "@Override\n\tpublic double getAverage() {\n\t\treturn this.sum/this.queue.size();\n\t}", "title": "" }, { "docid": "52c2d0c357db0de256c7df5f420a6738", "score": "0.5668857", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> \n getAverageCostFieldBuilder() {\n if (averageCostBuilder_ == null) {\n averageCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(\n getAverageCost(),\n getParentForChildren(),\n isClean());\n averageCost_ = null;\n }\n return averageCostBuilder_;\n }", "title": "" }, { "docid": "33d1fd284daae1b81f164214f018acb0", "score": "0.5667668", "text": "public BigDecimal getRowsSentAvg() {\n return rowsSentAvg;\n }", "title": "" }, { "docid": "b3f94d1e771a324e911d8d3bd79930fb", "score": "0.5645897", "text": "public double get_averageValue()\n {\n return _avgVal;\n }", "title": "" }, { "docid": "6a77127a9ab5c0e9e3279ce2bb5dc36d", "score": "0.5644811", "text": "public double getAverageScore(){\n\t\treturn averageScore;\n\t}", "title": "" }, { "docid": "83a226c094912209ca8ddb885efe2e93", "score": "0.5630925", "text": "public double getAverageTimeInModule(){\n double average = 0;\n if (servedClients > 0) {\n average = totalTimeInModule / servedClients;\n }\n return average;\n }", "title": "" }, { "docid": "6b58f7f33228f830c3dd6030b0a4e3df", "score": "0.56282574", "text": "public double getAveragePrice() {\n double sum = 0;\n for (Offer offer : productOffers) {\n sum += offer.getTotalPrice();\n }\n\n return sum / productOffers.size();\n }", "title": "" }, { "docid": "076695d9cd6b296c8b39f097c738587d", "score": "0.5625506", "text": "public double getAverage( )\n {\n return ( double )getTotalOfOpinions( ) / getNumberOfOpinions( );\n }", "title": "" }, { "docid": "c6e3bf1951df438999f47cc3d6981e20", "score": "0.56188047", "text": "public float calculateAverageAttendedPersonBeforeAnother() {\r\n\t\t\t\r\n\t\t\tfloat ntr = getAverageAttendedCustomer()/getAttendedCustomerList().size();\t\t\t\r\n\t\t\treturn ntr;\r\n\t\t}", "title": "" }, { "docid": "bf0b003608d52e0057801ba50a064a3e", "score": "0.5597558", "text": "public abstract Double getAverageOfRatings();", "title": "" }, { "docid": "78177e5423fe8c50427f3ec81aac60d6", "score": "0.55956143", "text": "public void computeAverage() {\n\t\tdouble sum =0; //reset sum value to 0\n\t\tfor(int i=0; i <salesmanList.size();i++) { //make for construction which will repeat in salesmanList size amount\n\t\t\tsum = sum + (salesmanList.get(i)).getSales(); //add all sales on sum value\n\t\t}\n\t\tthis.averageSales = sum/salesmanList.size(); //divide sum with number of salesman and save averageSales\n\t}", "title": "" }, { "docid": "1da8b70a34cb1ce7a8005532bdad32c8", "score": "0.559505", "text": "public int aTotal()\n {\n return total += cost;\n }", "title": "" }, { "docid": "ad9ce2feb67e498dc13f3d0622470fe4", "score": "0.5586299", "text": "public Double returnAverage(){\r\n\t\treturn averageCGPA;\r\n\t}", "title": "" }, { "docid": "faf55c8d07dd643d114b1e0fdddc8e6d", "score": "0.55778307", "text": "double average(){\n\tdouble sum=0.0;\n\n\n\tfor(int i=0;i<nums.length;i++)\n\t\tsum+=nums[i].doubleValue();\n\treturn sum/nums.length;\n }", "title": "" }, { "docid": "0c6cd76711f81ffa77c07864f8240019", "score": "0.5574034", "text": "public double aveRating() {\n // if there is no rating, we just return 0\n if (this.ratings.size() == 0) return 0;\n int sum = this.ratings.stream().mapToInt(Integer::intValue).sum();\n return sum * 1.0 / this.ratings.size();\n\n// // use average() in stream to get the result,\n// // pay attention!!! since the return is OptionalDouble,\n// // we need to define an OptionalDouble object.\n// OptionalDouble ave = this.ratings.stream().mapToDouble(Integer::doubleValue).average();\n// return ave.getAsDouble();\n }", "title": "" }, { "docid": "fc2e31f9eb54f07ecf0554dbcc3f5fed", "score": "0.55667144", "text": "public static void calculateAverageGenderCost() {\n\t\tif(!genderInvalid) {\r\n\t\t\tint n = (validGenderCount - 1) % MOD_BY_FIFTY + 1;\r\n\t\t\t// Reset the averagegenderCost if we're looking at a new data group\r\n\t\t\tif(n == 1) {\r\n\t\t\t\tMain.averageGenderCost = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Sum the current genderCost into the average\r\n\t\t\taverageGenderCost += genderCost;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a276221c95a38a4b726bfb020abea07e", "score": "0.55602795", "text": "public com.google.protobuf.DoubleValue getAverageCpe() {\n if (averageCpeBuilder_ == null) {\n return averageCpe_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpe_;\n } else {\n return averageCpeBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "f13bf560004bc771455338e4668041c8", "score": "0.55505455", "text": "public static double getAvgAssortativityCoefficient(\n IDynamicGraph<IVertex,IEdge<IVertex>> pIGraph, TimeFrame tf) {\n\n HashMap<IVertex, Integer> hmapVertexDegrees = new HashMap<>();\n for (int vtxCurrentId : pIGraph.getGraph(tf).getAllVertexIds()) {\n IVertex vtxCurrent = pIGraph.getVertex(vtxCurrentId);\n hmapVertexDegrees.put(vtxCurrent, pIGraph.getDegree(vtxCurrent, tf));\n }\n \n double dblX = 0.0 ;\n double dblY = 0.0 ;\n double dblDensity = 0.0 ;\n for (int edgeCurrentId : pIGraph.getGraph(tf).getAllEdgeIds()){\n IEdge edgeCurrent = pIGraph.getEdge(edgeCurrentId);\n double dblSourceDegree = hmapVertexDegrees.get(edgeCurrent.getSource());\n double dblDestinationDegree = hmapVertexDegrees.get(edgeCurrent.getDestination());\n \n dblX += dblSourceDegree * dblDestinationDegree ;\n dblY += dblSourceDegree + dblDestinationDegree ;\n dblDensity += (dblSourceDegree * dblSourceDegree) + (dblDestinationDegree * dblDestinationDegree) ;\n }\n \n // Average the co-eficeint\n dblX /= pIGraph.getGraph(tf).getEdgeCount() ;\n dblDensity /= pIGraph.getGraph(tf).getEdgeCount() ;\n dblY = Math.pow(dblY / (2 * pIGraph.getGraph(tf).getEdgeCount()), 2.0) ;\n \n return (dblX - dblY) / (dblDensity - dblY) ;\n }", "title": "" }, { "docid": "d3fc8ff81c57d37498c4e3ad92197db0", "score": "0.5547951", "text": "public double getAverage() {\n double total = 0;\n for (int i = 0; i < numbers.length; i++) {\n total = total + numbers[i];\n }\n total = total / numbers.length;\n return total;\n }", "title": "" }, { "docid": "cd059bffa7519e43436d69b6b7aca4ff", "score": "0.553545", "text": "float getSpeedAvg();", "title": "" }, { "docid": "3f45d6fe1762ece9896a31bb238063f9", "score": "0.55326664", "text": "public double averageBMI() {\n double sum = 0;\n double avg = 0;\n for (int i = 0; i < data.length; i++) {\n sum += data[i].getBmiValue();\n }\n avg = sum / data.length;\n return avg;\n }", "title": "" }, { "docid": "cfff24671d05a94d16342818daa6ca30", "score": "0.5532655", "text": "public double average() {\n if (isEmpty()) return Double.NaN;\n double sum = 0;\n for (int i = 0; i < data.length; i++) {\n sum += data[i];\n }\n return sum / data.length;\n }", "title": "" }, { "docid": "05b035ff38d6efb65345c8b1c3a7556d", "score": "0.5517689", "text": "public void computeAverageGrades();", "title": "" }, { "docid": "9361445d8398da33de5d6d0bad937be4", "score": "0.5515604", "text": "public double getAverageRating() {\n return averageRating;\n }", "title": "" }, { "docid": "2cfd1b9098000243557bced263652a09", "score": "0.5514318", "text": "public double getAverageClientInService(){\n return this.generateAverageClientsInModule() - this.generateAverageQueueSize();\n }", "title": "" }, { "docid": "cbcf50d8e80903f5ed29852860136f94", "score": "0.5507468", "text": "public static double avgAge(){\r\n\t\tdouble averageAge;\r\n\t\taverageAge = totalAge/totalPersons;\r\n\t\treturn averageAge;\r\n\t}", "title": "" }, { "docid": "cdc7a15f467132a4c046db16a17ad75d", "score": "0.5494944", "text": "public double calcAverageFitness(){\n openga.Fitness.calcAverageFitness calcAverageFitness1 = new openga.Fitness.calcAverageFitness();\n calcAverageFitness1.setData(pop);\n calcAverageFitness1.startCalcFitness();\n return calcAverageFitness1.getcalcFitness();\n }", "title": "" }, { "docid": "2a067627c82f5c5836d7f1cfc933ee64", "score": "0.54814726", "text": "public double getAverage() { //average will be a double\n int total = 0;\n\n //sum grades for one student\n for (int grade : grades) { //for each grade in grades\n total += grade; //the total of all the grade in the array grades\n }\n //return average of grades\n return (double) total / grades.length; //this is the mean\n }", "title": "" }, { "docid": "721438e9d9555a01a013236b4677e677", "score": "0.54760534", "text": "double calculateBonus();", "title": "" }, { "docid": "b9a66317e1156f80b991edea7d8b5e9d", "score": "0.5470375", "text": "public void setAvg(Float avg) {\r\n this.avg = avg;\r\n }", "title": "" }, { "docid": "21f7031ff9df501d333a74c4e73d031d", "score": "0.5466889", "text": "public double getAvgWait();", "title": "" }, { "docid": "d0c8af2c70c840aeef225d47788204b7", "score": "0.546132", "text": "private int getAverageNumberOfReviews() {\n int numberOfReviews = 0;\n int totalNumberOfReviews = 0;\n int numberOfProperties = 0;\n\n for(AirbnbListing p: propertiesAtPriceRange) {\n numberOfReviews = p.getNumberOfReviews();\n totalNumberOfReviews += numberOfReviews;\n numberOfProperties++;\n }\n\n int average = totalNumberOfReviews / numberOfProperties;\n\n return average;\n }", "title": "" }, { "docid": "9a014515924c9078c1c69ab43eb08fa0", "score": "0.54499066", "text": "double getAccumWeight() {\n return sum / count;\n }", "title": "" }, { "docid": "03fec4d398b0a24d69b6e5bbc73860a1", "score": "0.54493564", "text": "default double average() {\n return Math2.summaryStatistics(values()).getAverage();\n }", "title": "" }, { "docid": "85f58303531c07629700f98f950c9e99", "score": "0.5444986", "text": "public void setAvg(double avg) {\n this.avg = avg;\n }", "title": "" }, { "docid": "10e4e19e488b4af827132b832eb5d4c1", "score": "0.54420274", "text": "private double average(ArrayList<Double> responseTimeList){\n double total = 0;\n for (Double value : responseTimeList) {\n total += value;\n }\n return total/responseTimeList.size();\n // Return the total divided by the size of the arrayList\n }", "title": "" }, { "docid": "cdec2fc5cc7a98910abc67297a0b6e40", "score": "0.54395276", "text": "public double getAverageScore() \n\t{\n\t\treturn averageScore;\n\t}", "title": "" }, { "docid": "7e5e6764c25ea205f6547dac3de491c8", "score": "0.5438335", "text": "private void computeMean() {\n\t\tmean = totalClicks / (double) totalMinutes;\t\t\n\t}", "title": "" }, { "docid": "5d1ae18831bb4a2fe89b6dbe3c09cf66", "score": "0.5437473", "text": "public double avgFitness() {\n\t\tevalTotalFitness();\n\t\treturn fitness/size;\n\t}", "title": "" }, { "docid": "0d5cd610e81c649cccddfc38530b8f90", "score": "0.54297084", "text": "public float getSpeedAvg() {\n return speedAvg_;\n }", "title": "" }, { "docid": "f679d7c87be5fe7945849c7ad3f12a7f", "score": "0.5429338", "text": "public float getSpeedAvg() {\n return speedAvg_;\n }", "title": "" }, { "docid": "b7767d92ce17f851ab4c10877337b592", "score": "0.54222447", "text": "public float getAverage_friends_ratings()\n\t{\n\t\t\n\t\tfloat total = (float) 0.0;\n\t\t\n\t\tfor(int i=0; i< friends_ratings.size(); i++)\n\t\t{\n\t\t\ttotal += (float) friends_ratings.get(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total: \" + total + \" Size: \" + friends_ratings.size());\n\t\t\n\t\treturn (float) total/(float) friends_ratings.size();\n\t}", "title": "" }, { "docid": "39884b79c0ed66aeda6ada4b69d2707a", "score": "0.54142", "text": "public int getAveragePrice()\n {\n int total = 0;\n for (int i=0;i<validListings.size();i++)\n {\n total += validListings.get(i).getPrice();\n }\n return (total/validListings.size());\n }", "title": "" }, { "docid": "c7d4f9747f1484f0628ddefa7f2b495d", "score": "0.5411125", "text": "public double getAverageTurnaround(){\n\t\treturn sumOfTurnaround / numOfCompletedProcesses;\n\t}", "title": "" }, { "docid": "0819ccd253904a3493ea705461c03ba3", "score": "0.54021096", "text": "public double calculateTestAvg(){\n double[] scores = gettScores();\n double gradeAvg = 0 ;\n\n for (double score: scores) {\n gradeAvg += score;\n }\n gradeAvg = gradeAvg / scores.length;\n setAvg(gradeAvg);\n setClassAvg(getClassAvg() + getAvg());\n return getAvg();\n }", "title": "" }, { "docid": "f7aad697e6393124f444d44be89ae597", "score": "0.5400217", "text": "public double getAverageServiceTime() {\n double average = totalTimeInModule - totalTimeInQueue;\n if (average > 0) {\n average = average/servedClients;\n }\n return average;\n }", "title": "" }, { "docid": "ba2325591786381d3c9ca9fba2dc3eab", "score": "0.53871757", "text": "public double calcAverage() {\n int x;\n double average = 0.0;\n for (x=0; x<5; x++) {\n average = average + objStud[x].calcAverage(); \n }\n average = average/5;\n return average;\n }", "title": "" }, { "docid": "50fb16b80f3f118c3ea2173d32989738", "score": "0.5384918", "text": "public com.google.protobuf.DoubleValue getAverageCpv() {\n if (averageCpvBuilder_ == null) {\n return averageCpv_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpv_;\n } else {\n return averageCpvBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "3621cace2dc57681f3f1de11a332bc48", "score": "0.5384524", "text": "public int getVoteAverage() {\n return voteAverage;\n }", "title": "" }, { "docid": "ec03bf53aac9852e647ae1f1805ab395", "score": "0.53838205", "text": "double getTotalCost(){ // Get function for the total cost\n return totalCost;\n }", "title": "" }, { "docid": "238b6dbf142d9b9382ee1daa08e2db81", "score": "0.53751", "text": "public double average(){\n\t\t\treturn (double)total/timesRolled;\n\t\t}", "title": "" }, { "docid": "7e03c6f13a28e8642b7ff3eca47d5472", "score": "0.5368699", "text": "public double getAverageWaitTime() {\n\t\tdouble sum = .0;\n\t\tfor (Packet task : proc.obsoletePackets) {\n\t\t\tsum += task.getWaitTime();\n\t\t}\n\t\tfor (Packet task : proc.donePackets) {\n\t\t\tsum += task.getWaitTime();\n\t\t}\n\t\treturn sum / (proc.obsoletePackets.size() + proc.donePackets.size());\n\t}", "title": "" }, { "docid": "c3aea377a6aae0e520f951993f4d0f4b", "score": "0.5359444", "text": "public double generateAverageClientsInModule() {\n return arrivalRate * this.getAverageTimeInModule();\n }", "title": "" }, { "docid": "114296c5bfc5d2050f8c6b1112e26609", "score": "0.5355106", "text": "public com.google.protobuf.DoubleValue getAverageCpc() {\n if (averageCpcBuilder_ == null) {\n return averageCpc_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpc_;\n } else {\n return averageCpcBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "d6e8ff45d3335ee19a3439e377b1030f", "score": "0.5352723", "text": "public int averageSpeed ()\n {\n double time = travelTime().getHour() + (double)travelTime().getMinute()/60;\n double speed = distance/time;\n return (int)speed;\n }", "title": "" }, { "docid": "3d9efd5a584db6ca5e9d73ebe65a8492", "score": "0.5352299", "text": "public double avgSpeed() {\r\n double avgSpeed = 0;\r\n double totSpeed = 0;\r\n\r\n \r\n for (int n = 0; n < races; n++) {\r\n totSpeed += speed[n];\r\n }\r\n \r\n avgSpeed = totSpeed / races;\r\n \r\n System.out.print(\"Average speed: \");\r\n System.out.format(\"%.2f\", avgSpeed);\r\n System.out.println(\"Km/h\\n\");\r\n \r\n return avgSpeed;\r\n }", "title": "" }, { "docid": "a7f3d766da1c048bde9ff6c1bcd260c3", "score": "0.53464377", "text": "@Override\n\tpublic double getAverage() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "3f3890bd0e40c3b0eb6998f69652bdcf", "score": "0.5340906", "text": "public static double getClassAvg() {\n return classAvg;\n }", "title": "" } ]
45c2c471bd66af42653e63d70f8da15b
string uid = 1;
[ { "docid": "c1b75197e290bc03a1ec24bac869523d", "score": "0.0", "text": "public Builder clearUid() {\n \n uid_ = getDefaultInstance().getUid();\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "f35045bbab7a47295a572c9bf7e3ca2a", "score": "0.74895436", "text": "String getUid();", "title": "" }, { "docid": "109077bc1e176b7fc46bd588deff418d", "score": "0.7470179", "text": "int getUid();", "title": "" }, { "docid": "858bd8279e1c052b9bbb9587266d0b41", "score": "0.74085146", "text": "int getUid2();", "title": "" }, { "docid": "a49acc1c6b2befb554d54faa0c4744b3", "score": "0.7408316", "text": "public int GetUID () { return user_id; }", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.7377555", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.7377555", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.7377555", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.7377555", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.7377555", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.7377555", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.7377555", "text": "java.lang.String getUid();", "title": "" }, { "docid": "c62c210a2da1c8eb2370e8a503b1b262", "score": "0.7273531", "text": "public int getUid();", "title": "" }, { "docid": "48b79277cb5e40658b1c40cc7dcefe6c", "score": "0.7254007", "text": "public void setUid(int uid)\n/* */ {\n/* 117 */ this.uid = uid;\n/* */ }", "title": "" }, { "docid": "5cb7d7e3b6aef82f48621cb35b872fcc", "score": "0.72039324", "text": "long getUid();", "title": "" }, { "docid": "5cb7d7e3b6aef82f48621cb35b872fcc", "score": "0.72039324", "text": "long getUid();", "title": "" }, { "docid": "4632eb6c826b1783fb4be619f270cf3d", "score": "0.71306014", "text": "public int getUid()\n/* */ {\n/* 70 */ return this.uid;\n/* */ }", "title": "" }, { "docid": "093c05d609317dec53f2a85888811c3c", "score": "0.7003898", "text": "String getUserID();", "title": "" }, { "docid": "ceffb42f02695179f2bcf8a4d830b174", "score": "0.68818367", "text": "public void setUID(String uid) {\n this.UID = uid;\n }", "title": "" }, { "docid": "8ac621f1961af6506fe19c6ac151de11", "score": "0.6878119", "text": "String getUser_id();", "title": "" }, { "docid": "1938e0854b209b09f8cb7ac926f6f70d", "score": "0.6870789", "text": "public String getUIDL() {return uidl;}", "title": "" }, { "docid": "6c1e34640127eda41d50c66a3e2436fc", "score": "0.68024224", "text": "public int getUID(){\n return this.UID;\n }", "title": "" }, { "docid": "18914ff78af54ff6851a0e09518b8abd", "score": "0.6776504", "text": "public static String GetUserID()\n {\n return userID;\n }", "title": "" }, { "docid": "5370bb121b7c375b4dccae8e5943e6b9", "score": "0.67448443", "text": "public void setUid(String uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "5370bb121b7c375b4dccae8e5943e6b9", "score": "0.67448443", "text": "public void setUid(String uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "5370bb121b7c375b4dccae8e5943e6b9", "score": "0.67448443", "text": "public void setUid(String uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "c59c44b7868eecb5ab2ea04e67d3fa87", "score": "0.6744006", "text": "public void setUid(String uid) {\r\n\t\tthis.uid = uid;\r\n\t}", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.67179614", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.67179614", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.67179614", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.67179614", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.67179614", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.67179614", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.67179614", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.67179614", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.67179614", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "93b79e0dba2e0694c49e652d5c004bd0", "score": "0.6716637", "text": "public String getUserID();", "title": "" }, { "docid": "8669068f3edd347a26034d212e5b6df0", "score": "0.6671238", "text": "public String getUID() {\n return this.UID;\n }", "title": "" }, { "docid": "0e6dd615bbf49cc3fbc32a5d6b2768cb", "score": "0.66302955", "text": "BigInteger getUID();", "title": "" }, { "docid": "efcee4bb0de62c7cffdf8977871c4a6e", "score": "0.6620757", "text": "public void setUid(Integer uid) {\n\t\tthis.uid = uid;\n\t}", "title": "" }, { "docid": "5752b8569895da2693283ddcf585c219", "score": "0.6618852", "text": "public String getUid() {\n return uid;\n }", "title": "" }, { "docid": "5752b8569895da2693283ddcf585c219", "score": "0.6618852", "text": "public String getUid() {\n return uid;\n }", "title": "" }, { "docid": "5752b8569895da2693283ddcf585c219", "score": "0.6618852", "text": "public String getUid() {\n return uid;\n }", "title": "" }, { "docid": "5752b8569895da2693283ddcf585c219", "score": "0.6618852", "text": "public String getUid() {\n return uid;\n }", "title": "" }, { "docid": "5752b8569895da2693283ddcf585c219", "score": "0.6618852", "text": "public String getUid() {\n return uid;\n }", "title": "" }, { "docid": "5752b8569895da2693283ddcf585c219", "score": "0.6618852", "text": "public String getUid() {\n return uid;\n }", "title": "" }, { "docid": "5752b8569895da2693283ddcf585c219", "score": "0.6618852", "text": "public String getUid() {\n return uid;\n }", "title": "" }, { "docid": "f0c26dd8cc121c099b9ec5fc32f5035f", "score": "0.6527744", "text": "public long getUid() {\n return uid_;\n }", "title": "" }, { "docid": "e3bdd5001c11b365928c5951b0684f47", "score": "0.6472991", "text": "public final void setuid(java.lang.String uid)\n\t{\n\t\tsetuid(getContext(), uid);\n\t}", "title": "" }, { "docid": "8819e6fb929c9d0743c39f0995e7a872", "score": "0.6467382", "text": "public Integer getUid() {\n return uid;\n }", "title": "" }, { "docid": "8819e6fb929c9d0743c39f0995e7a872", "score": "0.6467382", "text": "public Integer getUid() {\n return uid;\n }", "title": "" }, { "docid": "8819e6fb929c9d0743c39f0995e7a872", "score": "0.6467382", "text": "public Integer getUid() {\n return uid;\n }", "title": "" }, { "docid": "8819e6fb929c9d0743c39f0995e7a872", "score": "0.6467382", "text": "public Integer getUid() {\n return uid;\n }", "title": "" }, { "docid": "8819e6fb929c9d0743c39f0995e7a872", "score": "0.6467382", "text": "public Integer getUid() {\n return uid;\n }", "title": "" }, { "docid": "8819e6fb929c9d0743c39f0995e7a872", "score": "0.6467382", "text": "public Integer getUid() {\n return uid;\n }", "title": "" }, { "docid": "8819e6fb929c9d0743c39f0995e7a872", "score": "0.6467382", "text": "public Integer getUid() {\n return uid;\n }", "title": "" }, { "docid": "8819e6fb929c9d0743c39f0995e7a872", "score": "0.6467382", "text": "public Integer getUid() {\n return uid;\n }", "title": "" }, { "docid": "8819e6fb929c9d0743c39f0995e7a872", "score": "0.6467382", "text": "public Integer getUid() {\n return uid;\n }", "title": "" }, { "docid": "17a678b5c6cb1866e9162561f5acc496", "score": "0.64210474", "text": "public int getUid() {\n return uid_;\n }", "title": "" }, { "docid": "ea44225693a56eba9d02be7e2fa73d95", "score": "0.64036334", "text": "int getUId();", "title": "" }, { "docid": "4ceab5480ed59e8794b3e6cb578ef587", "score": "0.6384277", "text": "String getIDfromUsername(String username);", "title": "" }, { "docid": "16caa76dc1a922dcdc7404c8cfc8ffd7", "score": "0.63664764", "text": "public long getUid() {\n return uid;\n }", "title": "" }, { "docid": "3edb0a09c3fdfdb14f9fadda29a06713", "score": "0.6345731", "text": "public void setUid(String uid) {\n this.uid = uid == null ? null : uid.trim();\n }", "title": "" }, { "docid": "3edb0a09c3fdfdb14f9fadda29a06713", "score": "0.6345731", "text": "public void setUid(String uid) {\n this.uid = uid == null ? null : uid.trim();\n }", "title": "" }, { "docid": "3edb0a09c3fdfdb14f9fadda29a06713", "score": "0.6345731", "text": "public void setUid(String uid) {\n this.uid = uid == null ? null : uid.trim();\n }", "title": "" }, { "docid": "570e611b1544b2133cd6fc5c7a0c8fad", "score": "0.6329803", "text": "public abstract String getUserID(String username);", "title": "" }, { "docid": "ab7d7ead8ab37d6e1bf4121b61fcb984", "score": "0.63291603", "text": "public int getUniqueIdentifier() {\n\t\treturn uid;\n\t}", "title": "" }, { "docid": "cbfa3380ec90bfc64641d0b70b66eec0", "score": "0.6328873", "text": "public Integer getUid() {\n\t\treturn uid;\n\t}", "title": "" }, { "docid": "1383f7b605e2434c54117cdc6b803fbb", "score": "0.6318807", "text": "public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "1383f7b605e2434c54117cdc6b803fbb", "score": "0.6318807", "text": "public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "9f369d9e46128ddb027c7ed833a4a7ae", "score": "0.6311368", "text": "public void setUid(Long uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "813ba5beed9377aced72904e1ace3840", "score": "0.62921226", "text": "@Override\n\tpublic int getUID() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d817d145fc61b7fb59f3b219c1b3344a", "score": "0.6278387", "text": "public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "d817d145fc61b7fb59f3b219c1b3344a", "score": "0.6278387", "text": "public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "8830a36559ba21a72fba4e3406c1f052", "score": "0.62714", "text": "public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "8830a36559ba21a72fba4e3406c1f052", "score": "0.62714", "text": "public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "8830a36559ba21a72fba4e3406c1f052", "score": "0.62714", "text": "public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "8830a36559ba21a72fba4e3406c1f052", "score": "0.62714", "text": "public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "d8626606c043a6d131ba459e80ea2a90", "score": "0.6270097", "text": "public Long getUid() {\n return uid;\n }", "title": "" }, { "docid": "16f5bde7a4bb4bb5b7208f060025de71", "score": "0.62538975", "text": "@java.lang.Override\n public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "85381f6145a7bac840870f43afb3d1e2", "score": "0.62497276", "text": "public String getUserid() {\n return userid;\n }", "title": "" }, { "docid": "85381f6145a7bac840870f43afb3d1e2", "score": "0.62497276", "text": "public String getUserid() {\n return userid;\n }", "title": "" }, { "docid": "85381f6145a7bac840870f43afb3d1e2", "score": "0.62497276", "text": "public String getUserid() {\n return userid;\n }", "title": "" }, { "docid": "85381f6145a7bac840870f43afb3d1e2", "score": "0.62497276", "text": "public String getUserid() {\n return userid;\n }", "title": "" }, { "docid": "e81caa1a30ce21c66cbd31869d5d1f7a", "score": "0.6241816", "text": "public Integer getUserID(){\n Integer userID = pref.getInt(KEY_ID, 0);\n // return userID\n return userID;\n }", "title": "" }, { "docid": "53e4a4f9fecaf748307c24a8063a123e", "score": "0.6220309", "text": "@Override\n\tpublic void setUserId(String uid) {\n\n\t}", "title": "" }, { "docid": "683c4667717443005fcdf9e0de2457dc", "score": "0.6212316", "text": "@JavascriptInterface\n public void setUid(String uid) {\n SharedPreferences.Editor editor = pref.edit();\n editor.putString(\"uid\", uid);\n editor.apply();\n\n AVObject testObject = new AVObject(\"UberAuth\");\n testObject.put(\"installationId\", AVInstallation.getCurrentInstallation().getInstallationId());\n testObject.put(\"uid\", uid);\n testObject.saveInBackground();\n\n Log.v(\"[UID]\", uid);\n Toast.makeText(mContext, \"登录成功!\", Toast.LENGTH_SHORT).show();\n finish();\n }", "title": "" }, { "docid": "226d226ae50d879a6959ae99b65a3c51", "score": "0.6209432", "text": "public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "226d226ae50d879a6959ae99b65a3c51", "score": "0.6209432", "text": "public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "226d226ae50d879a6959ae99b65a3c51", "score": "0.6209432", "text": "public java.lang.String getUid() {\n java.lang.Object ref = uid_;\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 uid_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "7d289c65b6b331b3baaafa49262f3cd5", "score": "0.6185124", "text": "java.lang.String getUserUuid();", "title": "" }, { "docid": "fbc1f23361ccb32cc5fdb83c1eb64439", "score": "0.61826414", "text": "public int getUid() {\n return uid_;\n }", "title": "" }, { "docid": "43c857b524624e64dfa3181dec6b36a7", "score": "0.6175961", "text": "java.lang.String getCUIDISTR();", "title": "" }, { "docid": "2205a78e567ce08b3c492e35a3d341d4", "score": "0.6168915", "text": "String getEntityUid();", "title": "" }, { "docid": "f57813a736ab40077e379ca190bcfcea", "score": "0.61669445", "text": "@NonNull\n String getUid();", "title": "" }, { "docid": "0a2d3d5e6c64865239b5fefd602e6596", "score": "0.6161756", "text": "public long getUid() {\n return uid_;\n }", "title": "" }, { "docid": "0a2d3d5e6c64865239b5fefd602e6596", "score": "0.6161756", "text": "public long getUid() {\n return uid_;\n }", "title": "" }, { "docid": "6c7c83b4bc920f17e69622a74ca0690e", "score": "0.6127216", "text": "java.lang.String getUserIdPubk();", "title": "" }, { "docid": "6c7c83b4bc920f17e69622a74ca0690e", "score": "0.6127216", "text": "java.lang.String getUserIdPubk();", "title": "" }, { "docid": "43bb13decf11b77073d7a3690a1a9812", "score": "0.61186737", "text": "public final void setuid(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String uid)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.uid.toString(), uid);\n\t}", "title": "" }, { "docid": "ba1bfe305d6b779092d6564f4a702755", "score": "0.60919034", "text": "public void setUserID(String u) {\r\n userID = u;\r\n }", "title": "" }, { "docid": "1ce00b577d1e2fa4f39020b64fd032e7", "score": "0.60692", "text": "public void setUserid() {\n\t\tTimeZone tz = TimeZone.getTimeZone(\"UTC\");\n\t\tDateFormat df = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n\t\tdf.setTimeZone(tz);\n\t\tthis.userid = \"U-\"+df.format(new Date());\n\t}", "title": "" } ]
970289bc55c0b1de4fd008fa716aa1a7
Set up FxBody2 as a single DBody with compound geometry. Interaction between robot components is kinematic, accomplished by changing the offsets of the various DGeom objects belonging to the DBody. Disadvantage: Contact joints between the component DGeoms and external objects are between the DBody objects, so friction doesn't work to move (e.g., lift) an external object when the offset of the contacting DGeom is moved. Possible solution: Add additional DBody objects (e.g., for the hand) that are kinematic, and track the position of the kinematicallycontrolled components.
[ { "docid": "ba93b176764d89e06dcdfc081af852ca", "score": "0.7962386", "text": "protected void setUpFxBody(){\n\n //Create new FxBody2 object to represent the chassis. This will contain the DBody (for physics sim),\n //a Group object for display, and multiple DGeom objects (for collision handling). It will\n //also have children--these will be other FxBody2 objects that represent robot components other than\n //the chassis.\n DWorld world = controller.getWorld();\n fxBody = FxBody.newInstance(world, botSpace);\n DBody chassisBody = fxBody;\n DMass chassisMass = OdeHelper.createMass();\n chassisMass.setMass(TOTAL_MASS);\n chassisMass.setI(new DMatrix3(TOTAL_Z_INERTIA, 0, 0, 0, TOTAL_Z_INERTIA, 0, 0, 0, TOTAL_Z_INERTIA));\n chassisBody.setMass(chassisMass);\n\n\n float tetrixWidth = 1.25f * 2.54f;\n float sliderLength = 16f * 2.54f;\n\n float pltThk = 0.125f * 2.54f;\n float halfPltHt = 2 * 2.54f;\n float halfPltLen1 = 8.5f * 2.54f;\n float halfPltLen2 = 7.5f * 2.54f;\n float pltXOffset1 = 5.5f * 2.54f;\n float pltXOffset2 = 8.5f * 2.54f;\n float pltZOffset = 0.25f * 2.54f;\n double sideBoxLength = 2.0 * halfPltLen1;\n double sideBoxWidth = pltXOffset2 - pltXOffset1 + pltThk;\n double sideBoxHeight = 2.0 * halfPltHt;\n double sideboxXOffset = 0.5 * (pltXOffset1 + pltXOffset2);\n\n float shortRailLength = 3.125f * 2.54f;\n float longRailLength = 17.125f * 2.54f;\n float shortRailXOffset = 7 * 2.54f;\n float railYOffset = 7.875f * 2.54f;\n float wheelDiam = 4 * 2.54f;\n float wheelWidth = 2 * 2.54f;\n float wheelXOffset = 7 * 2.54f;\n float wheelYOffset = 6.5f * 2.54f;\n\n float liftThk = 0.6f*2.54f;\n float liftHt = 13f * 2.54f;\n float liftXOffset = 5.8625f * 2.54f;\n float liftBaseYOffset = 2.0f * 2.54f;\n float liftZOffset = 4.75f * 2.54f;\n\n float crossBarZOffset = liftHt/2 - liftThk/2;\n float crossBarLength = 2 * liftXOffset - liftThk;\n\n PhongMaterial liftMaterial0 = new PhongMaterial(Color.color(0.6, 0.6, 0.6));\n PhongMaterial liftMaterial1 = new PhongMaterial(Color.color(0.8, 0.8, 0.8));\n\n //Create Group for display of chassis\n\n Group botGroup = new Group();\n\n Group[] plates = new Group[4];\n PhongMaterial plateMaterial = new PhongMaterial(Color.color(0.6, 0.3, 0));\n for (int i=0; i<4; i++){\n plates[i] = Util3D.polygonBox(pltThk, new float[]{halfPltHt ,-halfPltLen1, halfPltHt, halfPltLen1, halfPltHt/2,\n halfPltLen1, -halfPltHt, halfPltLen2, -halfPltHt, -halfPltLen2, halfPltHt/2, -halfPltLen1},\n plateMaterial);\n float x = (i<2? -1.0f : 1.0f) * (i%2 == 0? pltXOffset2:pltXOffset1);\n plates[i].getTransforms().addAll(new Translate(x, 0, pltZOffset), new Rotate(-90, Rotate.Y_AXIS));\n }\n\n Group frontLeftRail = Parts.tetrixBox(shortRailLength, tetrixWidth, tetrixWidth, tetrixWidth);\n frontLeftRail.getTransforms().addAll(new Translate(-shortRailXOffset, railYOffset, halfPltHt+pltZOffset+0.5*tetrixWidth));\n Group frontRightRail = Parts.tetrixBox(shortRailLength, tetrixWidth, tetrixWidth, tetrixWidth);\n frontRightRail.getTransforms().addAll(new Translate(shortRailXOffset, railYOffset, halfPltHt+pltZOffset+0.5*tetrixWidth));\n Group frontRail = Parts.tetrixBox(longRailLength, tetrixWidth, tetrixWidth, tetrixWidth);\n frontRail.getTransforms().addAll(new Translate(0, railYOffset, halfPltHt+pltZOffset+1.5*tetrixWidth));\n Group backLeftRail = Parts.tetrixBox(shortRailLength, tetrixWidth, tetrixWidth, tetrixWidth);\n backLeftRail.getTransforms().addAll(new Translate(-shortRailXOffset, -railYOffset, halfPltHt+pltZOffset+0.5*tetrixWidth));\n Group backRightRail = Parts.tetrixBox(shortRailLength, tetrixWidth, tetrixWidth, tetrixWidth);\n backRightRail.getTransforms().addAll(new Translate(shortRailXOffset, -railYOffset, halfPltHt+pltZOffset+0.5*tetrixWidth));\n Group backRail = Parts.tetrixBox(longRailLength, tetrixWidth, tetrixWidth, tetrixWidth);\n backRail.getTransforms().addAll(new Translate(0, -railYOffset, halfPltHt+pltZOffset+1.5*tetrixWidth));\n\n botGroup.getChildren().addAll(plates);\n botGroup.getChildren().addAll(frontLeftRail, frontRightRail, frontRail, backLeftRail, backRightRail, backRail);\n\n Group[] wheels = new Group[4];\n for (int i=0; i<4; i++){\n wheels[i] = Parts.mecanumWheel(wheelDiam, wheelWidth, i);\n wheels[i].setRotationAxis(new Point3D(0, 0, 1));\n wheels[i].setRotate(90);\n wheels[i].setTranslateX(i<2? -wheelXOffset : wheelXOffset);\n wheels[i].setTranslateY(i==0 || i==3? -wheelYOffset : wheelYOffset);\n wheels[i].getTransforms().add(wheelRotates[i]);\n }\n\n\n botGroup.getChildren().addAll(wheels);\n\n PhongMaterial slideMaterial = Util3D.imageMaterial(\"/virtual_robot/assets/rev_slide.jpg\");\n\n Box leftLiftBase = new Box(liftThk, liftThk, liftHt);\n leftLiftBase.setMaterial(liftMaterial0);\n leftLiftBase.getTransforms().addAll(new Translate(-liftXOffset, liftBaseYOffset, liftZOffset));\n Box rightLiftBase = new Box(liftThk, liftThk, liftHt);\n rightLiftBase.setMaterial(liftMaterial0);\n rightLiftBase.getTransforms().addAll(new Translate(liftXOffset, liftBaseYOffset, liftZOffset));\n botGroup.getChildren().addAll(leftLiftBase, rightLiftBase);\n\n //For display purposes, set the Node object of fxBody to the display group\n\n fxBody.setNode(botGroup, false);\n\n //Generate DGeom objects (they happen to all be boxes) for chassis collision handling\n\n DBox rightSideBox = OdeHelper.createBox(sideBoxWidth, sideBoxLength, sideBoxHeight);\n DBox leftSideBox = OdeHelper.createBox(sideBoxWidth, sideBoxLength, sideBoxHeight);\n DBox leftFrontRailBox = OdeHelper.createBox(0.9*shortRailLength, tetrixWidth, 0.9*tetrixWidth);\n DBox rightFrontRailBox = OdeHelper.createBox(0.9*shortRailLength, tetrixWidth, 0.9*tetrixWidth);\n DBox frontRailBox = OdeHelper.createBox(0.9*longRailLength, tetrixWidth, 0.9*tetrixWidth);\n DBox leftBackRailBox = OdeHelper.createBox(0.9*shortRailLength, tetrixWidth, 0.9*tetrixWidth);\n DBox rightBackRailBox = OdeHelper.createBox(0.9*shortRailLength, tetrixWidth, 0.9*tetrixWidth);\n DBox backRailBox = OdeHelper.createBox(0.9*longRailLength, tetrixWidth, 0.9*tetrixWidth);\n DBox leftLiftBaseBox = OdeHelper.createBox(liftThk, liftThk, liftHt);\n DBox rightLiftBaseBox = OdeHelper.createBox(liftThk, liftThk, liftHt);\n\n DTriMeshData botBottomData = FxBodyHelper.getParametricTriMeshData(1, -1, -1, 1, 5, 5,\n false, false, new Util3D.Param3DEqn() {\n @Override\n public float x(float s, float t) {\n return s * halfPltLen1;\n }\n\n @Override\n public float y(float s, float t) {\n return t * halfPltLen1;\n }\n\n @Override\n public float z(float s, float t) {\n return 0;\n }\n });\n\n DTriMesh botBottomMesh = OdeHelper.createTriMesh(botSpace, botBottomData, null, null, null);\n botBottomMesh.setData(\"Bot Bottom Mesh\");\n\n //Add the chassis DGeom objects to fxBody, with appropriate offsets\n\n fxBody.addGeom(rightSideBox, sideboxXOffset, 0, pltZOffset);\n fxBody.addGeom(leftSideBox, -sideboxXOffset, 0, pltZOffset);\n fxBody.addGeom(leftFrontRailBox, -shortRailXOffset, railYOffset, pltZOffset+halfPltHt+tetrixWidth/2.0);\n fxBody.addGeom(rightFrontRailBox, shortRailXOffset, railYOffset, pltZOffset+halfPltHt+tetrixWidth/2.0);\n fxBody.addGeom(frontRailBox, 0, railYOffset, pltZOffset+halfPltHt+1.5*tetrixWidth);\n fxBody.addGeom(leftBackRailBox, -shortRailXOffset, -railYOffset, pltZOffset+halfPltHt+tetrixWidth/2.0);\n fxBody.addGeom(rightBackRailBox, shortRailXOffset, -railYOffset, pltZOffset+halfPltHt+tetrixWidth/2.0);\n fxBody.addGeom(backRailBox, 0, -railYOffset, pltZOffset+halfPltHt+1.5*tetrixWidth);\n fxBody.addGeom(leftLiftBaseBox, -liftXOffset, liftBaseYOffset, liftZOffset);\n fxBody.addGeom(rightLiftBaseBox, liftXOffset, liftBaseYOffset, liftZOffset);\n fxBody.addGeom(botBottomMesh, 0, 0, -halfPltHt);\n\n\n lift = new GroupWithDGeoms(\"lift\");\n GroupWithDGeoms[] liftStages = new GroupWithDGeoms[3];\n\n for (int i=0; i<3; i++){\n liftStages[i] = new GroupWithDGeoms(\"lift stage \" + i);\n BoxWithDGeom left = new BoxWithDGeom(liftThk, liftThk, liftHt, fxBody, \" left box\");\n left.getTransforms().addAll(new Translate(-liftXOffset, 0, 0));\n BoxWithDGeom right = new BoxWithDGeom(liftThk, liftThk, liftHt, fxBody, \" right box\");\n right.getTransforms().addAll(new Translate(liftXOffset, 0, 0));\n left.setMaterial(i%2 == 0? liftMaterial1 : liftMaterial0);\n right.setMaterial(i%2 == 0? liftMaterial1 : liftMaterial0);\n liftStages[i].getChildren().addAll(left, right);\n liftStages[i].getTransforms().addAll(liftTranslates[i], new Translate(0, liftThk, 0));\n if (i>0) liftStages[i-1].getChildren().add(liftStages[i]);\n }\n\n lift.getChildren().add(liftStages[0]);\n\n BoxWithDGeom crossBar = new BoxWithDGeom(crossBarLength, liftThk, liftThk, fxBody, \" cross bar\");\n crossBar.setMaterial(liftMaterial0);\n crossBar.getTransforms().addAll(new Translate(0, 0, crossBarZOffset));\n Box box = new Box(7, 3, 3);\n box.setMaterial(new PhongMaterial(Color.color(0.3, 0.3, 0.3)));\n box.getTransforms().add(new Translate(0, 0, crossBarZOffset-liftThk));\n liftStages[2].getChildren().addAll(crossBar, box);\n\n GroupWithDGeoms slideGroup = new GroupWithDGeoms(\"slideGroup\");\n\n BoxWithDGeom slider = new BoxWithDGeom(tetrixWidth, sliderLength, tetrixWidth, fxBody, \" slider\");\n slider.setMaterial(liftMaterial1);\n BoxWithDGeom boxWithDGeom = new BoxWithDGeom(3.2, 6.4, 10, fxBody, \" slider box 1\");\n boxWithDGeom.setMaterial(new PhongMaterial(Color.color(0.3, 0.3, 0.3)));\n boxWithDGeom.getTransforms().add(new Translate(0, 0.2*sliderLength, -tetrixWidth/2 - 5));\n slideGroup.getChildren().addAll(slider, boxWithDGeom);\n boxWithDGeom = new BoxWithDGeom(16,12.5, 0.4, fxBody, \" slider box 2\");\n boxWithDGeom.setMaterial(new PhongMaterial(Color.color(0.6, 0.6, 0, 0.5)));\n boxWithDGeom.getTransforms().add(new Translate(0, 0.2*sliderLength, -tetrixWidth/2 - 10));\n slideGroup.getChildren().add(boxWithDGeom);\n BoxWithDGeom leftHand = new BoxWithDGeom(0.4, 12.5, 16, fxBody, OdeHelper.createBox(1, 12.5, 16));\n leftHand.setRelGeomOffset(new Translate(0.3, 0, 0));\n leftHand.setMaterial(new PhongMaterial(Color.color(0.6, 0, 0.6, 0.5)));\n leftHand.getTransforms().addAll(new Translate(-8, 0.2*sliderLength, -tetrixWidth/2-18), leftHandTranslate);\n slideGroup.getChildren().add(leftHand);\n BoxWithDGeom rightHand = new BoxWithDGeom(0.4, 12.5, 16, fxBody, OdeHelper.createBox(1, 12.5, 16));\n rightHand.setRelGeomOffset(new Translate(-0.3, 0, 0));\n rightHand.setMaterial(new PhongMaterial(Color.color(0.6, 0, 0.6, 0.5)));\n rightHand.getTransforms().addAll(new Translate(8, 0.2*sliderLength, -tetrixWidth/2-18), rightHandTranslate);\n slideGroup.getChildren().add(rightHand);\n slideGroup.getTransforms().addAll(sliderTranslate, new Translate(0, 0, liftHt/2 - 3));\n\n DGeom rightHandGeom = rightHand.getDGeom();\n DGeom leftHandGeom = leftHand.getDGeom();\n\n liftStages[2].getChildren().add(slideGroup);\n\n lift.getTransforms().add(new Translate(0, liftBaseYOffset, liftHt/2 - halfPltHt + pltZOffset));\n\n botGroup.getChildren().add(lift);\n\n lift.updateGeomOffsets();\n\n GroupWithDGeoms intakeGroup = new GroupWithDGeoms(\"Intake Group\");\n GroupWithDGeoms leftIntakeGroup = new GroupWithDGeoms(\"Left Intake Group\");\n GroupWithDGeoms rightIntakeGroup = new GroupWithDGeoms(\"Right Intake Group\");\n PhongMaterial intakeMaterial = new PhongMaterial(Color.GREEN);\n\n for (int i = 0; i<3; i++){\n CylWithDGeom leftIntakeWheel = new CylWithDGeom(2.5, 5, fxBody,\n \"Left Intake Wheel\" + i, OdeHelper.createCylinder(botSpace, 2.5, 5));\n leftIntakeWheel.setMaterial(intakeMaterial);\n leftIntakeWheel.getTransforms().addAll(new Translate(-7.5, (1-i)*6.5, 0), new Rotate(90, Rotate.X_AXIS));\n leftIntakeGroup.getChildren().add(leftIntakeWheel);\n CylWithDGeom rightIntakeWheel = new CylWithDGeom(2.5, 5, fxBody,\n \"Right Intake Wheel\" + i, OdeHelper.createCylinder(botSpace, 2.5, 5));\n rightIntakeWheel.setMaterial(intakeMaterial);\n rightIntakeWheel.getTransforms().addAll(new Translate(7.5, (1-i)*6.5, 0), new Rotate(90, Rotate.X_AXIS));\n rightIntakeGroup.getChildren().add(rightIntakeWheel);\n }\n\n BoxWithDGeom intakeRoof = new BoxWithDGeom(20, 18, 3, fxBody, \"intakeRoof\");\n intakeRoof.setMaterial(new PhongMaterial(Color.color(0.1, 0, 0, 0)));\n intakeRoof.getTransforms().add(new Translate(0, -0.5, 8 ));\n\n intakeGroup.getChildren().addAll(leftIntakeGroup, rightIntakeGroup, intakeRoof);\n intakeGroup.getTransforms().add(new Translate(0, -12.5, pltZOffset));\n\n intakeGroup.updateGeomOffsets();\n\n botGroup.getChildren().add(intakeGroup);\n\n zBase = 5.08;\n\n fxBody.setCategoryBits(CBits.BOT);\n fxBody.setCollideBits(0xFF);\n botBottomMesh.setCategoryBits(CBits.BOT_BOTTOM);\n botBottomMesh.setCollideBits(CBits.FLOOR);\n leftHand.getDGeom().setCategoryBits(CBits.BOT_HANDS | CBits.BOT_LEFT_HAND);\n rightHand.getDGeom().setCategoryBits(CBits.BOT_HANDS | CBits.BOT_RIGHT_HAND);\n for (Node n : leftIntakeGroup.getChildren()) {\n ((CylWithDGeom) n).getDGeom().setCategoryBits(CBits.BOT_INTAKE | CBits.BOT_LEFT_INTAKE);\n }\n for (Node n: rightIntakeGroup.getChildren()) {\n ((CylWithDGeom) n).getDGeom().setCategoryBits(CBits.BOT_INTAKE | CBits.BOT_RIGHT_INTAKE);\n }\n intakeRoof.getDGeom().setCategoryBits(CBits.BOT_INTAKE | CBits.BOT_INTAKE_ROOF);\n\n }", "title": "" } ]
[ { "docid": "ce15e55153f4bdc5123539b941789242", "score": "0.58980656", "text": "public Box2D(){\n this.bDef = new BodyDef();\n this.fDef = new FixtureDef();\n }", "title": "" }, { "docid": "9c2a2c02b3c3a7140b401d4926fe38f2", "score": "0.58913577", "text": "@Override\n public void create() {\n world = new World(new Vector2(0, -10), true);\n\n /*\n libgdx does come with a Box2D debug renderer which is extremely handy for debugging\n your physics simulations, or even for testing your game-play before writing any rendering code.\n */\n debugRenderer = new Box2DDebugRenderer();\n\n /*\n Create an orthographic camera\n */\n camera = new OrthographicCamera();\n camera.viewportHeight = 320;\n camera.viewportWidth = 480;\n camera.position.set(camera.viewportWidth * .5f, camera.viewportHeight * .5f, 0f);\n camera.update();\n\n /*\n In Box2D our objects are called bodies, and each body is made up of one of more\n fixtures, which have a fixed position and orientation within the body. Our fixtures can\n be any shape you can imagine or you can combine a variety of different shaped fixtures\n to make the shape you want.\n */\n\n /*\n Dynamic bodies are objects which move around and are affected by forces and other\n dynamic, kinematic and static objects. Dynamic bodies are suitable for any object which\n needs to move and be affected by forces.\n */\n\n // First we create a body definition\n BodyDef bodyDef = new BodyDef();\n\n // We set our body to dynamic\n bodyDef.type = BodyDef.BodyType.DynamicBody;\n\n // Set our body's starting position in the world\n bodyDef.position.set(100, 300);\n\n // Create our body in the world using the body definition\n Body body = world.createBody(bodyDef);\n\n // Create a circle shape and set its radius to 6\n CircleShape circle = new CircleShape();\n circle.setRadius(6f);\n\n /*\n A fixture has a shape, density, friction and restitution attached to it.\n Shape is obvious.\n Density is the mass per square metre: a bowling ball is very dense, yet a balloon isn’t\n very dense at all as it is mainly filled with air.\n Friction is the amount of opposing force when the object rubs/slides along something: a\n block of ice would have a very low friction but a rubber ball would have a high\n friction.\n Restitution is how bouncy something is: a rock would have a very low restitution but\n a basketball would have a fairly high restitution. A body with a restitution of 0\n will come to a halt as soon as it hits the ground, whereas a body with a\n restitution of 1 would bounce to the same height forever.\n */\n\n // Create a fixture definition to apply our shape to\n FixtureDef fixtureDef = new FixtureDef();\n fixtureDef.shape = circle;\n fixtureDef.density = 0.5f;\n fixtureDef.friction = 0.4f;\n fixtureDef.restitution = 0.6f;\n\n // Create our fixture and attach it to the body\n body.createFixture(fixtureDef);\n\n // Remember to dispose of any shapes after you're done with them!\n // BodyDef and FixtureDef don't need disposing, but shapes do.\n circle.dispose();\n\n /*\n Static bodies are objects which do not move and are not affected by forces. Dynamic\n bodies are affected by static bodies. Static bodies are perfect for ground, walls, and\n any object which does not need to move. Static bodies require less computing power.\n */\n\n // Create our body definition\n BodyDef groundBodyDef = new BodyDef();\n\n // Set its world position\n groundBodyDef.position.set(new Vector2(0, 10));\n\n // Create a body from the definition and add it to the world\n Body groundBody = world.createBody(groundBodyDef);\n\n // Create a polygon shape\n PolygonShape groundBox = new PolygonShape();\n\n // Set the polygon shape as a box which is twice the size of the viewport and 20 high\n // (setAsBox takes half-width and half-height as arguments)\n groundBox.setAsBox(camera.viewportWidth, 10.0f);\n\n // Create a fixture from the polygon and add it to the body\n groundBody.createFixture(groundBox, 0.0f);\n\n // Dispose shape!\n groundBox.dispose();\n }", "title": "" }, { "docid": "94786bb7b329a52cdc6d4d9fe3979eb4", "score": "0.5767757", "text": "public void initBody() {\n BodyDef bodyDef = new BodyDef();\n bodyDef.type = BodyDef.BodyType.DynamicBody;\n bodyDef.fixedRotation = true;\n bodyDef.position.set(enemy.getX(), enemy.getY());\n\n //creates the shape of the bodyDef\n shape = new PolygonShape();\n shape.setAsBox(enemy.getBodyWidth() / PPM, enemy.getBodyHeight() / PPM, new Vector2(0, enemy.getBodyY()), 0);\n\n // FixtureDef sets physical properties\n FixtureDef fixtureDef = new FixtureDef();\n fixtureDef.shape = shape;\n fixtureDef.density = 50f;\n fixtureDef.friction = 0.2f;\n fixtureDef.restitution = 0f;\n\n body = WorldConstants.CURRENT_WORLD.createBody(bodyDef);\n body.setUserData(this);\n body.createFixture(fixtureDef).setUserData(this); //naming the fixture\n\n // WorldConstants.BODIES.add(body);\n\n //disposes shape to save memory\n shape.dispose();\n\n weaponSensorFixtureDef = new FixtureDef();\n\n timer = new Timer();\n attackReady = true;\n }", "title": "" }, { "docid": "866a41aa2bab2184f6f2e60485d3437e", "score": "0.56376714", "text": "public void update(){\n state.getEnvEffect().setRealSpeed(body.getLinearVelocity());\n body.getFixtureList().get(1).getShape().setRadius(state.getEnvEffect().getNoise());\n body.getFixtureList().get(2).getShape().setRadius(state.getEnvEffect().getEarshot());\n state.getLocation().setPosition(new Position2(body.getPosition()));\n if (!body.getLinearVelocity().equals(bodyVelocity)){\n clearVelocity();\n }\n }", "title": "" }, { "docid": "520d16abdd978291486ba71997e637e2", "score": "0.5619433", "text": "public void defineTrap()\n {\n BodyDef bdef = new BodyDef();\n // this is temporary\n bdef.position.set(getPosition().x + (getImage().getWidth() / 2), getPosition().y + (getImage().getHeight() / 2));\n bdef.type = BodyDef.BodyType.DynamicBody;\n\n b2Body = world.createBody(bdef);\n\n FixtureDef fdef = new FixtureDef(); // Needed for collision detection\n CircleShape shape = new CircleShape();\n shape.setRadius(8 / FinalStand.PPM);\n\n fdef.filter.categoryBits = FinalStand.SPIKE_BIT;\n fdef.filter.maskBits = FinalStand.DEFAULT | FinalStand.CREEP_BIT | FinalStand.ROADBOUNDS_BIT;\n\n fdef.shape = shape;\n fdef.isSensor = true;\n b2Body.createFixture(fdef).setUserData(this);\n\n getImage().setSize(trapSize.x, trapSize.y);\n getImage().setOrigin(getImage().getWidth() / 2, getImage().getHeight() / 2);\n b2Body.setUserData(getImage());\n }", "title": "" }, { "docid": "f36762f7352ef65e1e32073e127e5ce8", "score": "0.56164885", "text": "private void createPhysics()\r\n {\r\n physicsWorld = new FixedStepPhysicsWorld(60, new Vector2(0, -17), false); \r\n registerUpdateHandler(physicsWorld);\r\n }", "title": "" }, { "docid": "b299d031a0d933959a1d3a3a68b22178", "score": "0.5546236", "text": "public void define(){\n\n bdef.type = BodyDef.BodyType.DynamicBody;\n bdef.position.set((bounds.getX() + bounds.getWidth() / 2) / Game.PPM, (bounds.getY() + bounds.getHeight() / 2) / Game.PPM );\n\n body = world.createBody(bdef); //Crea el Body en el mundo\n\n shape.setAsBox(bounds.getWidth() / 2 / Game.PPM, bounds.getHeight() / 2 / Game.PPM); //Define la forma como una caja\n fdef.shape = shape;\n fdef.filter.maskBits = Game.ROCK_BIT | Game.MC_BIT;\n fixture = body.createFixture(fdef);\n }", "title": "" }, { "docid": "5347f800163f2d40ef98711a0bd6a162", "score": "0.5543353", "text": "public void actionPerformed(ActionEvent e){\r\n\t\t//loop gets force exprienced on each planet to other on the frame\r\n\t\tfor(int i = 0; i<newList.size(); i++){\r\n\t\t\t// changes in velocity\r\n\t\t\tdouble xVelocityC = 0.0;\r\n\t\t\tdouble yVelocityC = 0.0;\r\n\t\t\tCelestialBody planet1 = newList.get(i);\r\n\t\t\tfor(int m = 0; m<newList.size(); m++){\r\n\t\t\t\tif(i != m){\r\n\t\t\t\t\tCelestialBody planet2= newList.get(m);\r\n\t\t\t\t\tdouble xDist= findXDistance(planet1,planet2);\r\n\t\t\t\t\tdouble yDist= findYDistance(planet1,planet2);\r\n\t\t\t\t\tdouble zDist= findZDistance(xDist,yDist);\r\n\r\n\t\t\t\t\t//Does the math for x force and y force but will be same since hypotnuses distacne will be used for radius\r\n\t\t\t\t\tdouble xForce= gravity*((planet1.getMass()*planet2.getMass())/Math.pow(xDist,2));\r\n\t\t\t\t\tdouble yForce= gravity*((planet1.getMass()*planet2.getMass())/Math.pow(yDist,2));\r\n\t\t\t\t\t//using xDist, yDist or zDist gives same results\r\n\r\n\t\t\t\t\tif(planet1.getXPos()-planet2.getXPos()==0){\r\n\t\t\t\t\t\txForce = 0.0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(planet1.getXPos()<planet2.getXPos()){\r\n\t\t\t\t\t\txVelocityC -= xForce;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\txVelocityC += xForce;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(planet1.getYPos()-planet2.getYPos()==0){\r\n\t\t\t\t\t\tyForce = 0.0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(planet1.getYPos()<planet2.getYPos()){\r\n\t\t\t\t\t\tyVelocityC -= yForce;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tyVelocityC += yForce;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//planet1.setXVelocity and setY Velocity cannot be removed becuase it won't update without it\r\n\t\t\tSystem.out.println(planet1.getXVelocity());\r\n\t\t\tplanet1.setXVelocity(planet1.getXVelocity() + (xVelocityC/scale)/planet1.getMass());\r\n\t\t\tSystem.out.println(planet1.getYVelocity());\r\n\t\t\tplanet1.setYVelocity(planet1.getYVelocity() + (yVelocityC/scale)/planet1.getMass());\r\n\t\t\tSystem.out.println(\"Origional X coordinate:\");\r\n\t\t\tSystem.out.println(planet1.getXPos());\r\n\r\n\t\t\t//the planet1.getXPos()+ and getYPos()+ can be removed\r\n\t\t\t\r\n\t\t\tplanet1.setxCoord(planet1.getXPos() + planet1.getXVelocity());\r\n\t\t\tSystem.out.println(\"X place Changes to:\");\r\n\t\t\tSystem.out.println(planet1.getXPos());\r\n\r\n\t\t\tSystem.out.println(\"Origional Y Coordinate:\");\r\n\t\t\tSystem.out.println(planet1.getYPos());\r\n\t\t\tplanet1.setyCoord(planet1.getYPos() + planet1.getYVelocity());\r\n\t\t\tSystem.out.println(\"New Y Coordinate:\");\r\n\t\t\tSystem.out.println(planet1.getYPos());\r\n\t\t}\r\n\t\trepaint();\r\n\t}", "title": "" }, { "docid": "07270ee70e855adb8688e1f22417fdcf", "score": "0.5512832", "text": "public void merge(Body body) {\n\t\tdouble sumMass = getMass() + body.getMass();\n\t\tdouble sumVolume = getVolume() + body.getVolume();\n\n\t\t// move to barycenter\n\t\tBarycenter barycenter = new Barycenter();\n\t\tbarycenter.add(this);\n\t\tbarycenter.add(body);\n\t\tsetPosition(barycenter.getPosition());\n\n\t\t// calculate net velocity\n\t\tVector2D velocity1 = getVelocity().scalarMultiply(getMass() / sumMass);\n\t\tVector2D velocity2 = body.getVelocity().scalarMultiply(body.getMass() / sumMass);\n\t\tsetVelocity(velocity1.add(velocity2));\n\n\t\t// recalculate density and radius\n\t\tsetDensity(sumMass / sumVolume);\n\t\tsetRadius(Math.cbrt((3 * sumVolume) / (4 * Math.PI)));\n\t}", "title": "" }, { "docid": "73f87055b6d2ce98ca5a7a2de3b04989", "score": "0.5508546", "text": "private void create(){\n ImagePattern wheelImage = new ImagePattern(new Image(getClass().getResource(\"../../views/assets/wheel.png\").toString()));\n ImagePattern carImage = new ImagePattern(new Image(getClass().getResource(\"../../views/assets/car.png\").toString()));\n //#####################################\n Stop[] stops = new Stop[] { new Stop(0, Color.BLACK), new Stop(1, Color.RED)};\n LinearGradient lg1 = new LinearGradient(0, 0, 1, 0, true, CycleMethod.NO_CYCLE, stops);\n\n Circle right = new Circle(radius);\n right.setLayoutX(posXJavaFx+widthJavaFx*5/6);\n right.setLayoutY(posYJavaFx+heightJavaFx);\n right.setFill(lg1);\n\n CircleShape cs = new CircleShape();\n cs.m_radius = radius * 0.1f;\n\n BodyDef bd2 = new BodyDef();\n bd2.type = BodyType.DYNAMIC;\n bd2.position.set(posXJbox2d+widthJbox2d*5/6,posYJbox2d-heightJbox2d);\n\n FixtureDef fd2 = new FixtureDef();\n fd2.shape = cs;\n fd2.density = 50f;\n fd2.friction = 0.3f;\n fd2.restitution = 0f;\n fd2.filter.categoryBits = 0x0001;\n fd2.filter.maskBits = 0x0004;\n\n Body bodyR = PlaygroundLayout.world.createBody(bd2);\n bodyR.createFixture(fd2);\n right.setUserData(bodyR);\n\n rightWheel = right;\n //##################################\n\n Circle left = new Circle(radius);\n left.setLayoutX(posXJavaFx+widthJavaFx*1/6);\n left.setLayoutY(posYJavaFx+heightJavaFx);\n left.setFill(Color.BLUE);\n\n BodyDef bd3 = new BodyDef();\n bd3.type = BodyType.DYNAMIC;\n bd3.position.set(posXJbox2d+widthJbox2d*1/6,posYJbox2d-heightJbox2d);\n\n Body bodyL = PlaygroundLayout.world.createBody(bd3);\n bodyL.createFixture(fd2);\n left.setUserData(bodyL);\n\n leftWheel = left;\n //##################################\n Rectangle top = new Rectangle(posXJavaFx-widthJavaFx/2, posYJavaFx-heightJavaFx/2, widthJavaFx, heightJavaFx);\n top.setFill(Color.YELLOW);\n\n PolygonShape ps = new PolygonShape();\n ps.setAsBox(widthJbox2d/2,2.15f);\n\n BodyDef bd = new BodyDef();\n bd.type = BodyType.DYNAMIC;\n bd.position.set(posXJbox2d+widthJbox2d/2,posYJbox2d-heightJbox2d/2);\n\n\n FixtureDef fd = new FixtureDef();\n fd.shape = ps;\n fd.density = 1;\n fd.friction = 0.3f;\n fd.restitution = 0f;\n fd.filter.categoryBits = 0x0001;\n fd.filter.maskBits = 0x0004;\n\n Body bodyT = PlaygroundLayout.world.createBody(bd);\n bodyT.createFixture(fd);\n top.setUserData(bodyT);\n bodywork = top;\n\n /*\n DistanceJointDef djd = new DistanceJointDef();\n djd.bodyA = bodyL;\n djd.bodyB = bodyT;\n djd.localAnchorA.set(0,0);\n djd.localAnchorB.set(-widthJbox2d*1/3, -heightJbox2d/2);\n PlaygroundLayout.world.createJoint(djd);\n\n DistanceJointDef djd2 = new DistanceJointDef();\n djd2.bodyA = bodyR;\n djd2.bodyB = bodyT;\n djd2.localAnchorA.set(0,0);\n djd2.localAnchorB.set(widthJbox2d*1/3, -heightJbox2d/2);\n PlaygroundLayout.world.createJoint(djd2);\n\n DistanceJointDef djd3 = new DistanceJointDef();\n djd3.initialize(bodyL, bodyR, bodyL.getPosition(), bodyR.getPosition());\n djd3.length = bodyR.getPosition().x - bodyL.getPosition().x;\n PlaygroundLayout.world.createJoint(djd3);\n */\n\n RevoluteJointDef rjd1 = new RevoluteJointDef();\n rjd1.bodyA = bodyL;\n rjd1.bodyB = bodyT;\n rjd1.localAnchorA.set(0,0);\n rjd1.localAnchorB.set(-widthJbox2d*1/3, -heightJbox2d/2);\n PlaygroundLayout.world.createJoint(rjd1);\n\n RevoluteJointDef rjd2= new RevoluteJointDef();\n rjd2.bodyA = bodyR;\n rjd2.bodyB = bodyT;\n rjd2.localAnchorA.set(0, 0);\n rjd2.localAnchorB.set(widthJbox2d*1/3, -heightJbox2d/2);\n PlaygroundLayout.world.createJoint(rjd2);\n /*\n RevoluteJointDef rjd2 = new RevoluteJointDef();\n rjd2.bodyA = bodyL;\n rjd2.bodyB = bodyT;\n rjd2.localAnchorA = bodyL.getWorldCenter();\n rjd2.localAnchorB = new Vec2(posXJbox2d+widthJbox2d*1/6,posYJbox2d-heightJbox2d);\n PlaygroundLayout.world.createJoint(rjd2);\n */\n\n }", "title": "" }, { "docid": "7f53e75b30000459cf20b32e06700a6d", "score": "0.54997647", "text": "private void init() {\n\t\tviewDirection = VIEW_DIRECTION.LEFT;\n\t\tbody.getFixtureList().get(0).setUserData(\"small_car\");\n\t\tbody.getFixtureList().get(0).setFriction(1.5f);\n\t\tbody.getFixtureList().get(0).setDensity(1);\n\t\t\n\t\tbody.setFixedRotation(true);\n\t\tanim = AssetsMy.instance.fish.smallcar;\n\t\tsetAnimation(anim);\n\t\torigin.set(dimension.x / 2, dimension.y / 2);\n\t\tbody.resetMassData();\n\t\t//PolygonShape poly = new PolygonShape();\t\t\n\t\t//poly.setAsBox(1f,1f);\n\t\t//carfixtur = body.createFixture(poly,0);\n\t//\tanimatedSprite.play();\n\t//\tanimatedSprite.setFlip(false, true);\n\t\t\n\t}", "title": "" }, { "docid": "c5aea95fa63ce0cb7565b6b25c376355", "score": "0.53946894", "text": "public void updatePhysics(){\n In planets = new In(universeFile);\n int numOfBodies = planets.readInt();\n double [] netFXApplied = new double [numOfBodies];\n double [] netFYApplied = new double [numOfBodies];\n for(int i = 0; i < numOfBodies; i++){\n for(int j = 0; j < numOfBodies; j++){\n if(j != i){\n netFXApplied[i] = netFXApplied[i] + p[i].calculateFX(p[j]);\n netFYApplied[i] = netFYApplied[i] + p[i].calculateFY(p[j]);\n }\n }\n p[i].updatePosition(netFXApplied[i], netFYApplied[i], deltaT);\n for(int k = 0; k < numOfBodies; k++){\n netFXApplied[i] = 0;\n netFYApplied[i] = 0;\n }\n }\n }", "title": "" }, { "docid": "a464c69b582a88f0f8e331fadc763dac", "score": "0.538896", "text": "private void initBox2D(World world, int positionX, int positionY){\n\n\t\t// First we create a body definition\n\t\tBodyDef bodyDef = new BodyDef();\n\t\t// We set our body to dynamic, for something like ground which doesn't move we would set it to\n\t\t// StaticBody\n\t\tbodyDef.type = BodyType.DynamicBody;\n\n\t\t// Set our body's starting position in the world\n\t\tbodyDef.position.set(new Vector2(positionX, positionY));\n\n\t\t// Create our body in the world using our body definition\n\t\tBody body = world.createBody(bodyDef);\n\n\t\t// Create a circle shape and set its radius to 6\n\t\tCircleShape circle = new CircleShape();\n\t\tcircle.setRadius(Constants.BALL_RADIUS);\n\n\t\t// Create a fixture definition to apply our shape to\n\t\tFixtureDef fixtureDef = new FixtureDef();\n\t\tfixtureDef.shape = circle;\n\t\tfixtureDef.density = 1f;\n\t\tfixtureDef.friction = 0f;\n\t\tfixtureDef.restitution = 1.1f; // Make it bounce a little bit\n\n\t\t// Create our fixture and attach it to the bodya\n\t\tFixture fixture = body.createFixture(fixtureDef);\n\n\t\t// Remember to dispose of any shapes after you're done with them!\n\t\t// BodyDef and FixtureDef don't need disposing, but shapes do.\n\t\tcircle.dispose();\n\n\t\tsetBody(body);\n\t}", "title": "" }, { "docid": "285f40b0d1bd9fcac28423780324bee0", "score": "0.53778136", "text": "@Override\n public boolean begin(Window window, FileSystem fileSystem) {\n \n // Store context\n this.window = window;\n \n // Create physics engine\n world = new World();\n \n // Sets gravity as a vertical downwards vector\n world.setGravity(new Vector(0.0f, -9.81f));\n \n // We create a builder that will let us create our entity\n EntityBuilder entityBuilderBlock = world.createEntityBuilder();\n EntityBuilder entityBuilderCrate = world.createEntityBuilder();\n \n // We set the block as fixed and the crate as not fixed\n entityBuilderBlock.setFixed(true);\n entityBuilderCrate.setFixed(false);\n \n // Define properties. Here, its initial location\n entityBuilderBlock.setPosition(new Vector(1.0f, 0.5f));\n entityBuilderCrate.setPosition(new Vector(0.2f, 4.0f));\n \n // Built the Entity \"block\" with the previously defined builder\n block = entityBuilderBlock.build();\n \n // At this point, our body is in the world, but it has no geometry \n // We need to use another builder to add shapes\n PartBuilder partBuilder = block.createPartBuilder();\n \n // Create a polygon that fits the shape of the entity and set \n // the shape of the PartBuilder with it\n Polygon polygon = new Polygon( new Vector(0.0f, 0.0f),\n \t\t\t\t\t\t\t\t new Vector(BLOCK_WIDTH, 0.0f),\n \t\t\t\t\t\t\t\t new Vector(BLOCK_WIDTH, BLOCK_HEIGHT),\n \t\t\t\t\t\t\t\t new Vector(0.0f, BLOCK_HEIGHT) );\n partBuilder.setShape(polygon);\n \n // Build the Part associated with the shape polygon\n partBuilder.build();\n \n // Note : we do not need to keep a reference on partBuilder\n \n \n // Built the Entity \"crate\" with the previously defined builder\n crate = entityBuilderCrate.build();\n \n // Create a Part, add the shape polygone and built it\n PartBuilder partBuilderCrate = crate.createPartBuilder();\n partBuilderCrate.setShape(polygon); // Exceptionnaly because the size of crate and block are equals\n partBuilderCrate.build();\n\n // Define Graphics of the different object\n graphicCrate = new ImageGraphics(\"box.4.png\", CRATE_WIDTH, CRATE_HEIGHT);\n graphicBlock = new ImageGraphics(\"stone.broken.4.png\", BLOCK_WIDTH, BLOCK_HEIGHT);\n \n // Set alpha variable (transparency)\n graphicCrate.setAlpha(1.0f);\n graphicBlock.setAlpha(1.0f);\n \n // Set depth variable\n graphicCrate.setDepth(0.0f);\n graphicBlock.setDepth(0.0f);\n \n // Link the graphical representation with a body\n graphicCrate.setParent(crate);\n graphicBlock.setParent(block);\n \n //Successfully initiated\n return true;\n }", "title": "" }, { "docid": "f529a5b8cb27eab2a3b35390e40ea326", "score": "0.5335516", "text": "@Test\n\tpublic void noLimitsNoMotor() {\n\t\tWorld<Body> w = new World<Body>();\n\t\t\n\t\t// take friction and damping out of the picture\n\t\t\n\t\tBody g = new Body();\n\t\tBodyFixture gf = g.addFixture(Geometry.createRectangle(10.0, 0.5));\n\t\tgf.setFriction(0.0);\n\t\tg.setMass(MassType.INFINITE);\n\t\tg.setLinearDamping(0.0);\n\t\tg.setAngularDamping(0.0);\n\t\tw.addBody(g);\n\t\t\n\t\tBody b = new Body();\n\t\tBodyFixture bf = b.addFixture(Geometry.createCircle(0.5));\n\t\tbf.setFriction(0.0);\n\t\tb.setMass(MassType.NORMAL);\n\t\tb.translate(0.0, 2.0);\n\t\tb.setLinearDamping(0.0);\n\t\tb.setAngularDamping(0.0);\n\t\tw.addBody(b);\n\t\t\n\t\tRevoluteJoint<Body> rj = new RevoluteJoint<Body>(g, b, b.getWorldCenter());\n\t\tw.addJoint(rj);\n\n\t\tdouble invdt = w.getTimeStep().getInverseDeltaTime();\n\t\t\n\t\tw.step(4);\n\t\t\n\t\t// because the allowed axis is the x-axis and the position of the axis is at body2's world center\n\t\t// gravity is applied but has no effect\n\t\tVector2 v2 = b.getWorldCenter();\n\t\tTestCase.assertEquals(0.0, v2.x);\n\t\tTestCase.assertEquals(2.0, v2.y);\n\t\tTestCase.assertEquals(7.6969, rj.getReactionForce(invdt).getMagnitude(), 1e-5);\n\t\t\n\t\t// apply some velocity along the y-axis\n\t\tb.setLinearVelocity(0.0, 1.0);\n\t\tw.step(4);\n\t\t\n\t\t// still nothing should happen\n\t\tv2 = b.getWorldCenter();\n\t\tTestCase.assertEquals(0.0, v2.x);\n\t\tTestCase.assertEquals(2.0, v2.y);\n\t\tTestCase.assertEquals(7.6969, rj.getReactionForce(invdt).getMagnitude(), 1e-5);\n\t\t\n\t\t// now apply some velocity along the x-axis\n\t\tb.setLinearVelocity(1.0, 1.0);\n\t\tw.step(4);\n\t\t\n\t\t// still nothing should happen\n\t\tv2 = b.getWorldCenter();\n\t\tTestCase.assertEquals(0.0, v2.x);\n\t\tTestCase.assertEquals(2.0, v2.y);\n\t\tTestCase.assertEquals(7.6969, rj.getReactionForce(invdt).getMagnitude(), 1e-5);\n\t\t\n\t\tb.applyTorque(Math.toRadians(30));\n\t\tw.step(1);\n\t\t\n\t\t// still nothing should happen\n\t\tv2 = b.getWorldCenter();\n\t\tTestCase.assertEquals(0.0, v2.x);\n\t\tTestCase.assertEquals(2.0, v2.y);\n\t\tTestCase.assertEquals(0.00148, b.getTransform().getRotationAngle(), 1e-5);\n\t\tTestCase.assertEquals(0.0, rj.getReactionTorque(invdt), 1e-5);\n\t\tTestCase.assertEquals(7.6969, rj.getReactionForce(invdt).getMagnitude(), 1e-5);\n\t}", "title": "" }, { "docid": "6a310d41541a7f74ebb56276b9d60722", "score": "0.5319991", "text": "@Override\n public void initialize(World box2dworld) {\n BodyDef bodyDef =new BodyDef();\n // Set its world position\n bodyDef.position.set(new Vector2(0, 10));\n bodyDef.type = BodyType.DynamicBody;\n bodyDef.bullet = true;\n\n // Create a body from the defintion and add it to the world\n body = box2dworld.createBody(bodyDef);\n body.setFixedRotation(true);\n \n CircleShape circle = new CircleShape();\n circle.setRadius(size);\n \n Fixture fixture = body.createFixture(circle, 1f);\n fixture.setRestitution(0f);\n fixture.setFriction(1f);\n \n Filter filter = new Filter();\n filter.categoryBits = C.CATEGORY_ITEM;\n filter.maskBits = (short) ~C.CATEGORY_ITEM;\n\t\tfixture.setFilterData(filter);\n \n // Clean up after ourselves\n\t\tcircle.dispose();\n\n }", "title": "" }, { "docid": "98f09d52f4ea349c381dcf0adcc5dbd7", "score": "0.5281837", "text": "private void create(PointAttachment physics_pos, PointAttachment blood_pos, Bone bone, Body physicsBody, float animScale)\r\n {\r\n this.blood_pos_name = blood_pos.getName();\r\n\r\n this.physicsBody = physicsBody;\r\n\r\n Vector2 spine_pos = physics_pos.computeWorldPosition(bone, new Vector2(0, 0)).sub(blood_pos.computeWorldPosition(bone, new Vector2(0, 0)));\r\n float x = spine_pos.x;\r\n float y = spine_pos.y;\r\n\r\n Vector3 pos = Environment.physicsCamera.unproject(Environment.gameCamera.project(new Vector3(x, y, 0)));\r\n pos.y = Environment.physicsCamera.position.y * 2 - pos.y;\r\n\r\n this.physics_h = (float) Math.sqrt(pos.x * pos.x + pos.y * pos.y);\r\n\r\n this.isBleeding = false;\r\n\r\n //this.rotOffset = this.physicsBody.getAngle() - (float)Math.atan2(y, x);\r\n this.rotOffset = 0;\r\n this.calc_phys_pos();\r\n float angle = (float) Math.atan2(this.physics_offset.y, this.physics_offset.x);\r\n this.rotOffset = angle - (float) Math.atan2(y, x);\r\n\r\n\r\n //this.bodypartBlood = new DrawableGraphicsEntity(new Sprite(new Texture(Gdx.files.internal(\"effects/blood/blood.png\"))));\r\n //this.bodypartBlood.getSprite().setScale(animScale);\r\n\r\n this.blood_pos_rot_offset = (float) Math.toDegrees(this.physicsBody.getAngle()) - blood_pos.computeWorldRotation(bone); // - 180; // -180 because pointAttachments have a different \"0 degrees\" than everything else\r\n\r\n }", "title": "" }, { "docid": "f19a19e10207da25335c92906883da89", "score": "0.5271541", "text": "public interface FixedJointBasics extends JointBasics, FixedJointReadOnly\n{\n /** {@inheritDoc} */\n @Override\n default void setJointConfigurationToZero()\n {\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointTwistToZero()\n {\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointAccelerationToZero()\n {\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointTauToZero()\n {\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointConfiguration(JointReadOnly other)\n {\n MecanoTools.checkTypeAndCast(other, FixedJointReadOnly.class);\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointTwist(JointReadOnly other)\n {\n MecanoTools.checkTypeAndCast(other, FixedJointReadOnly.class);\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointAcceleration(JointReadOnly other)\n {\n MecanoTools.checkTypeAndCast(other, FixedJointReadOnly.class);\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointWrench(JointReadOnly other)\n {\n MecanoTools.checkTypeAndCast(other, FixedJointReadOnly.class);\n }\n\n /** {@inheritDoc} */\n @Override\n default int setJointConfiguration(int rowStart, DMatrix jointConfiguration)\n {\n return rowStart;\n }\n\n /** {@inheritDoc} */\n @Override\n default int setJointVelocity(int rowStart, DMatrix jointVelocity)\n {\n return rowStart;\n }\n\n /** {@inheritDoc} */\n @Override\n default int setJointAcceleration(int rowStart, DMatrix jointAcceleration)\n {\n return rowStart;\n }\n\n /** {@inheritDoc} */\n @Override\n default int setJointTau(int rowStart, DMatrix jointTau)\n {\n return rowStart;\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointOrientation(Orientation3DReadOnly jointOrientation)\n {\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointPosition(Tuple3DReadOnly jointPosition)\n {\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointAngularVelocity(Vector3DReadOnly jointAngularVelocity)\n {\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointLinearVelocity(Vector3DReadOnly jointLinearVelocity)\n {\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointAngularAcceleration(Vector3DReadOnly jointAngularAcceleration)\n {\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointLinearAcceleration(Vector3DReadOnly jointLinearAcceleration)\n {\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointForce(Vector3DReadOnly jointForce)\n {\n }\n\n /** {@inheritDoc} */\n @Override\n default void setJointTorque(Vector3DReadOnly jointTorque)\n {\n }\n}", "title": "" }, { "docid": "5729981d8c31de82fa8c5f20ae76572a", "score": "0.52575344", "text": "public void updateEnvironment() {\n Vector newVector = new Vector(projectedEcb.bps(), xAdjustment, yAdjustment);\n\n\n ecb = new EnvironmentCollisionBox(newVector);\n\n xAdjustment = 0;\n yAdjustment = 0;\n\n hitBox = HitBox.builder(hitBox).setOrigin(newVector).build(); // adjusts the hitbox with the bps\n hurtBox = HurtBox.builder(hurtBox).setOrigin(newVector).build();\n\n\n }", "title": "" }, { "docid": "ef1f840278fed6a048f6c124469e732f", "score": "0.5253037", "text": "public void addObject(Physical physical) {\n \t\tfloat x = physical.getX();\n \t\tfloat y = physical.getY();\n \t\tfloat angle = physical.getAngle();\n \n \t\tBodyDef bodyDef = new BodyDef();\n \t bodyDef.angle = angle;\n \t\tbodyDef.position.set(x,y);\n \n \t\tif (physical.isDynamic()) {\n \t\t\tbodyDef.type = BodyType.DYNAMIC;\n \t\t}\n \t\telse {\n \t\t\tbodyDef.type = BodyType.STATIC;\n \t\t}\n \n \t\t// Attach Bodydef to world and save body to hashmap\n \t\tBody body = world.createBody(bodyDef);\n \t\tbody.setUserData(physical);\n \t\tobjects.put(physical, body);\n \n \t\t// Create shape using Physical properties\n \t\tShape shape;\n \t\tif (physical instanceof Edge) {\n \t\t\tEdge edge = (Edge) physical;\n \t\t\t\n \t\t PolygonShape pShape = new PolygonShape();\n \t\t pShape.setAsBox(edge.getWidth(), edge.getWidth());\n \t\t shape = pShape;\n \t\t}\n \t\telse {\n \t\t\tfloat radius = physical.getRadius();\n \t\t\t\n \t\t\tCircleShape cShape = new CircleShape();\n \t\t\tcShape.m_radius = radius;\n \t\t\tshape = cShape;\n \t\t}\n \n \t // Create FixtureDef (use predefined parameters for now)\n \t FixtureDef fixtureDef = new FixtureDef();\n \t fixtureDef.shape = shape;\n \t fixtureDef.density = 1;\n \t fixtureDef.friction = 100f;\n \t fixtureDef.restitution = 0.3f;\n \t\t\n \t // Attach FixtureDef to body\n \t body.createFixture(fixtureDef);\n \t \n \t // Join it with another body (for Blockade)\n \t if (physical instanceof Blockade) {\n \t \tBlockade blockade = (Blockade) physical;\n \t \tBlockade previous = blockade.getPrevious();\n \t \tBody previousBody = objects.get(previous);\n \t\t\t\n \t \t// Middle or last object in list\n\t \tif ((previous != null && blockade.isDynamic() == true) \n\t \t\t\t|| (previous == null && blockade.isDynamic() == false)) {\n \t \t\tDistanceJointDef djd = new DistanceJointDef();\n \t \t\tdjd.bodyA = previousBody;\n \t\t\t\tdjd.bodyB = body;\n\t\t\t\tdjd.length = previousBody.getLocalCenter().sub(body.getLocalCenter()).length();\n \t\t\t\tdjd.frequencyHz = 0;\n \t\t\t\tdjd.dampingRatio = 0;\n \t\t\t\tDistanceJoint dj = (DistanceJoint) world.createJoint(djd);\n \t \t}\n \t }\n \t}", "title": "" }, { "docid": "236178a1122a23007c13e5f0722f8d38", "score": "0.5230718", "text": "private void updatePhysics() {\n }", "title": "" }, { "docid": "838e3410ca907a0879408d1df678fee8", "score": "0.5228358", "text": "protected void updatePhysics() {\n\n Position physPos = new Position(body.getPosition().x, body.getPosition().y);\n enemy.setPosition(physPos);\n }", "title": "" }, { "docid": "fb126346c55dc63f1dd9162a8423ab52", "score": "0.5173222", "text": "private void update() {\n\t\t\tfriction = velocity.get();\n\t\t\tfriction.mult(-1);\n\t\t\tfriction.normalize();\n\t\t\tfriction.mult(FRICTION_MAGNITUDE);\n\t\t\tgravity.x = sin(rotateZ) * GRAVITY_CONSTANT;\n\t\t\tgravity.z = sin(-rotateX) * GRAVITY_CONSTANT;\n\t\t\tvelocity.add(gravity);\n\t\t\tvelocity.add(friction);\n\t\t\tlocation.add(velocity);\n\t\t}", "title": "" }, { "docid": "fdb2e722c4088a8d939b58a3a08a02fd", "score": "0.5163107", "text": "public void upgrade(){\n body.setTransform(state.getLocation().getPosition().toVector2(), state.getLocation().getOrientation());\n }", "title": "" }, { "docid": "6629f89649375e2b1d60c55a7ef7e489", "score": "0.51502454", "text": "Boid (String _skin, PVector _location, float _maxSpeed, float _maxForce,AbstractMTApplication _app) {\n\tsuper(_skin,_app);\n\tsuper.app=_app;\n\tobjetivo=null;\n\tthis.rushSpeed = super.app.random(3.0f, 5.0f); //3 a 6\n location = _location.get();\n velocity = new PVector(0, 0);\n acceleration = new PVector(0, 0);\n maxForce = _maxForce;\n maxSpeed = _maxSpeed;\n this.fleeConstant=1/(maxSpeed*36);//cambiamos de 8 a 12 para reducir su velovidad al perseguir \n this.inv_maxSpeed=1/maxSpeed;\n this.evadeRange=100; //100\n this.pursueRange=400;\n /*vectorsteer=new MTLine(super.app,new Vertex(100,100,0), new Vertex(100,100,0));\n vectorsteer.setStrokeColor(MTColor.FUCHSIA);\n vectorsteer.setPickable(false);\n vectorsteerfinal=new MTLine(super.app,new Vertex(100,100,0), new Vertex(100,100,0));\n vectorsteerfinal.setStrokeColor(MTColor.SILVER);\n vectorsteerfinal.setStrokeWeight(5.0f);\n // vectorsteerfinal.setPickable(false);\n vectortarget=new MTLine(super.app,new Vertex(0,0,0), new Vertex(0,0,0));\n vectortarget.setStrokeColor(MTColor.GREEN);\n vectortarget.setPickable(false);\n vectorlocation=new MTLine(super.app,new Vertex(0,0,0), new Vertex(0,0,0));\n vectorlocation.setStrokeColor(MTColor.BLUE);\n vectorlocation.setPickable(false);\n vectorsteer.setVisible(false);\n vectortarget.setVisible(false);\n vectorlocation.setVisible(false);*/\n // System.out.println(\"Creating Boid: Sp:\"+this.rushSpeed+\" Loc:\"+location+\" MF:\"+maxForce+\" MS:\"+maxSpeed); \n }", "title": "" }, { "docid": "2761c32cf8ed10fc507a5c85d08f8cfe", "score": "0.5116991", "text": "public void update(Time deltaTime) \n\t{\n\t\tsuper.update(deltaTime);\n\t\t\n\t\t// on récupère le body actor\n\t\tBody actor = PlayerManager.getSmallRobot().getBody();\n\t\t\n\t\t// test de contact avec la porte\n\t\tboolean isContact = false;\t\n\t\t// récupération des contacts\n\t\tContactEdge edge = bodyDoor.getContactList();\n\t\twhile(edge!=null)\n\t\t{\n\t\t\tif(edge.other == actor)\n\t\t\t{\n\t\t\t\tisContact = true; // il existe un contact avec l'actor\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\t\n\t\t\t\n\t\t\tedge = edge.next;\n\t\t}\n\t\t\n\t\tif(isContact && !this.isOpening) // il existe un contact\n\t\t{\n\t\t\tthis.isClosing = false;\n\t\t\tthis.isOpening = true;\n\t\t\tthis.bodyDoor.setLinearVelocity(new Vec2(0,-1f * this.speed));\n\t\t\tthis.timeStart = new Clock().restart();\n\t\t\tthis.isClosed = false;\n\t\t}\n\t\t\n\t\t// si la porte est en train de s'ouvrir et que l'on arrive en fin de course\n\t\tif(this.isOpening && this.bodyDoor.getPosition().sub(this.posStart).length() >= this.course)\n\t\t{\n\t\t\tthis.bodyDoor.setLinearVelocity(new Vec2(0,0));\n\t\t\tthis.isOpening = false;\n\t\t\tthis.isOpen = true;\n\t\t\tthis.timeAdd = this.timeStart;\n\t\t}\n\t\t\n\t\t// si la porte est ouverte, on compute le timer\n\t\tif(this.isOpen)\n\t\t{\n\t\t\tthis.timeAdd = Time.add(this.timeAdd, deltaTime);\n\t\t\t// si la porte est ouverte de plus de 3 secondes, on fait descendre la porte\n\t\t\tif(this.timeAdd.asSeconds() > this.timeOpen)\n\t\t\t{\n\t\t\t\tthis.bodyDoor.setLinearVelocity(new Vec2(0,1f * this.speed));\n\t\t\t\tthis.isOpen = false;\n\t\t\t\tthis.isClosing = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// si la porte est en train de se fermer et que l'on arrive en fin de course\n\t\tif(this.isClosing && this.bodyDoor.getPosition().sub(this.posEnd).length() >= this.course)\n\t\t{\n\t\t\tthis.bodyDoor.setLinearVelocity(new Vec2(0,0));\n\t\t\tthis.posStart = this.bodyDoor.getPosition().clone();\n\t\t\tthis.isClosing = false;\n\t\t\tthis.isClosed = true;\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "a89d9ad273e069789b5a3bd3012a8f7d", "score": "0.5097961", "text": "public RigidBodyDescI() {\n\t\tshapes = new ShapeDesc[1];\n\t\tkinematic = false;\n\n\t\tglobalPose = new Mat34(new Mat33(1, 0, 0, 0, 1, 0, 0, 0, 1), new Vec3(\n\t\t\t\t0, 0, 0));\n\t}", "title": "" }, { "docid": "2488c80731d176eb8a10bbed325bf38f", "score": "0.5083219", "text": "public void dJointAddSliderForce ( double force )\n\t{\n\t\tDVector3 axis = new DVector3();\n\n\t\tif ( isFlagsReverse() )\n\t\t\tforce = -force;\n\n\t\tgetAxis ( axis, axis1 );\n//\t\taxis.v[0] *= force;\n//\t\taxis.v[1] *= force;\n//\t\taxis.v[2] *= force;\n\t\taxis.scale(force);\n\n\t\tif ( node[0].body != null )\n\t\t\tnode[0].body.dBodyAddForce ( axis.get0(), axis.get1(), axis.get2() );\n\t\tif ( node[1].body != null )\n\t\t\tnode[1].body.dBodyAddForce ( -axis.get0(), -axis.get1(), -axis.get2() );\n\n\t\tif ( node[0].body != null && node[1].body != null )\n\t\t{\n\t\t\t// linear torque decoupling:\n\t\t\t// we have to compensate the torque, that this slider force may generate\n\t\t\t// if body centers are not aligned along the slider axis\n\n\t\t\tDVector3 ltd = new DVector3(); // Linear Torque Decoupling vector (a torque)\n\n\t\t\tDVector3 c = new DVector3();\n//\t\t\tc.v[0] = 0.5 * ( joint.node[1].body._posr.pos.v[0] - joint.node[0].body._posr.pos.v[0] );\n//\t\t\tc.v[1] = 0.5 * ( joint.node[1].body._posr.pos.v[1] - joint.node[0].body._posr.pos.v[1] );\n//\t\t\tc.v[2] = 0.5 * ( joint.node[1].body._posr.pos.v[2] - joint.node[0].body._posr.pos.v[2] );\n\t\t\tc.eqDiff(node[1].body.posr().pos(), node[0].body.posr().pos()).scale(0.5);\n\t\t\tdCalcVectorCross3 ( ltd, c, axis );\n\n\t\t\tnode[0].body.dBodyAddTorque ( ltd );\n\t\t\tnode[1].body.dBodyAddTorque ( ltd );\n\t\t}\n\t}", "title": "" }, { "docid": "acbb1310a60a231ce97e99504ac465e7", "score": "0.5036098", "text": "public void setUpObject() {\t\t\n\t\tbubbleInner = new CreateFilledCircle(gl, glut);\n\t\touterShine = new CreateEmptyCircle(gl);\n\t}", "title": "" }, { "docid": "73e5ac7934494c4967a51edcb7570c76", "score": "0.5033874", "text": "public synchronized void updateSensors(){\n DMatrix3C currentRot = fxBody.getRotation();\n double headingRadians = Math.atan2(currentRot.get10(), currentRot.get00());\n DVector3C currentPos = fxBody.getPosition();\n double x = currentPos.get0();\n double y = currentPos.get1();\n\n //Based on current bot position and orientation, update sensors\n imu.updateHeadingRadians(headingRadians);\n\n colorSensor.updateColor(x, y);\n\n final double piOver2 = Math.PI / 2.0;\n\n for (int i = 0; i<4; i++){\n double sensorHeading = AngleUtils.normalizeRadians(headingRadians + i * piOver2);\n distanceSensors[i].updateDistance( x - halfBotWidth * Math.sin(sensorHeading),\n y + halfBotWidth * Math.cos(sensorHeading), sensorHeading);\n }\n\n }", "title": "" }, { "docid": "6f8b0774c9c618fcf547f2aa7998433f", "score": "0.50265235", "text": "public void makeBody(Vec2 center, float w_, float h_) {\n\n // Define a polygon (this is what we use for a rectangle)\n PolygonShape sd = new PolygonShape();\n float box2dW = box2d.scalarPixelsToWorld(w_/2);\n float box2dH = box2d.scalarPixelsToWorld(h_/2);\n sd.setAsBox(box2dW, box2dH);\n\n // Define a fixture\n FixtureDef fd = new FixtureDef();\n fd.shape = sd;\n // Parameters that affect physics\n fd.density = 1;\n fd.friction = 0.3f;\n fd.restitution = 0.2f;\n\n // Define the body and make it from the shape\n BodyDef bd = new BodyDef();\n bd.type = BodyType.DYNAMIC;\n bd.position.set(box2d.coordPixelsToWorld(center));\n bd.angle = random(TWO_PI);\n\n body = box2d.createBody(bd);\n body.createFixture(fd);\n }", "title": "" }, { "docid": "389e30bb1aad0215cd4805b7f9336907", "score": "0.5015727", "text": "public Body(Body b) {\n\t this.myXVel = b.myXVel;\n\t this.myYVel = b.myYVel;\n\t this.myXPos = b.myXPos;\n\t this.myYPos = b.myYPos;\n\t this.myMass = b.myMass;\n\t this.myFilename = b.myFilename;\n }", "title": "" }, { "docid": "981ab211210b895aaf7a311b47b773c8", "score": "0.5013571", "text": "public void configure() {\n\t\t// Set some initial hardware configurations.\n\t\t//======\n\t\tabstract_robot.setObstacleMaxRange(3.0); // don't consider \n\t \t\t\t\t\t\t // things further away\n\t\tabstract_robot.setBaseSpeed(0.4*abstract_robot.MAX_TRANSLATION);\n\n\n // robot's pos\n NodeVec2 PS_GLOBAL_POS = new v_GlobalPosition_r(abstract_robot);\n\n // target\n NodeVec2 PS_HOMEBASE_GLOBAL = new v_FixedPoint_ (10.0, 0);\n // robot as center, target's pos\n NodeVec2 PS_HOMEBASE = new v_GlobalToEgo_rv(abstract_robot, PS_HOMEBASE_GLOBAL);\n \n // obstacles\n NodeVec2Array PS_OBS = new va_Obstacles_r(abstract_robot);\n \n\n // motor schemas\n // vector move to target\n NodeVec2 MS_MOVE_TO_HOMEBASE = new v_LinearAttraction_v(0.4, 0.0, PS_HOMEBASE);\n // Vector to leave detected objects\n NodeVec2 MS_AVOID_OBSTACLES = new v_Avoid_va(3.0, abstract_robot.RADIUS + 0.5, PS_OBS);\n //noise vector\n NodeVec2 MS_NOISE_VECTOR = new v_Noise_(10, 5);\n // swirl\n NodeVec2 swirl_obstacles = new v_Swirl_vav(3.0, abstract_robot.RADIUS + 0.1, PS_OBS, PS_HOMEBASE);\n \n // AS_GO_HOME\n v_StaticWeightedSum_va AS_GO_HOME = new v_StaticWeightedSum_va();\n\n AS_GO_HOME.weights[0] = avoid;\n AS_GO_HOME.embedded[0] = MS_AVOID_OBSTACLES;\n\n AS_GO_HOME.weights[2] = noise;\n AS_GO_HOME.embedded[2] = MS_NOISE_VECTOR;\n\n // AS_GO_HOME.weights[2] = 0.8;\n // AS_GO_HOME.embedded[2] = swirl_obstacles;\n\n AS_GO_HOME.weights[1] = moveToHome;\n AS_GO_HOME.embedded[1] = MS_MOVE_TO_HOMEBASE;\n\n turret_configuration = AS_GO_HOME;\n // vector for steer-configuration\n steering_configuration = AS_GO_HOME;\n }", "title": "" }, { "docid": "58c3f9eb6ebda4d09ce68c2099295963", "score": "0.50109744", "text": "void setEnvironment(PhysicsBox b);", "title": "" }, { "docid": "025d87b38a91796e9ce140ad2a5487ca", "score": "0.50033754", "text": "@Override\n public void defineEntityBox2D(float xPos, float yPos) {\n\n // Define the box2d body around player\n bdef = new BodyDef();\n bdef.position.set(xPos, yPos);\n bdef.type = BodyDef.BodyType.DynamicBody;\n b2body = world.createBody(bdef);\n\n // Add the box2d body to the levels\n FixtureDef fixtureDef = new FixtureDef();\n PolygonShape shape = new PolygonShape();\n shape.setAsBox((type.getWidth() - type.getWidth() / 2) - 11 / scale, ((type.getHeight() - type.getHeight() / 2) - 4 / scale));\n\n fixtureDef.shape = shape;\n fixtureDef.friction = 0.2f;\n //What type of fixture def I am\n fixtureDef.filter.categoryBits = MapObjectLayers.ENTITY_OBJECT;\n // What other fixtures I can collide with\n fixtureDef.filter.maskBits = MapObjectLayers.FLOOR_OBJECT | MapObjectLayers.BOUNDARY_OBJECT;\n\n // So we can reference the player when using the contact listener\n b2body.createFixture(fixtureDef).setUserData(this);\n shape.dispose();\n }", "title": "" }, { "docid": "f1f90eba1265e1daa7a40011eb7e85f1", "score": "0.49996206", "text": "@Override\n public void createInner() {\n acceleration.acceleration = new Vec3d(0, 0, -20);\n }", "title": "" }, { "docid": "89f622ba5b46f2196e8c5968025f692e", "score": "0.4998584", "text": "public void attach( Body body1, Body body2 ) {\r\n\r\n SWIGTYPE_p_dBodyID id1 = body1 == null ? Ode.getBODYID_ZERO() : body1.getId();\r\n SWIGTYPE_p_dBodyID id2 = body2 == null ? Ode.getBODYID_ZERO() : body2.getId();\r\n\r\n Ode.dJointAttach( jointId, id1, id2 );\r\n this.body1 = body1;\r\n this.body2 = body2;\r\n }", "title": "" }, { "docid": "045e1d9926429f09cbcadd32c1c0e4d1", "score": "0.49791926", "text": "void setBodyFrameOmega (double[] omega) {\n super.setBodyFrameOmega(omega);\n spaceView.initialize();\n }", "title": "" }, { "docid": "389389fa69622929852da28eacd5c941", "score": "0.49717858", "text": "public Body createBody(BodyDef bd) {\n\n return world.createBody(bd);\n }", "title": "" }, { "docid": "9cb13804ce511e16f410888e836b6234", "score": "0.49650586", "text": "public void updateSensorPhysics() {\r\n\t\tVector vec;\r\n\t\tdouble random;\r\n\r\n\t\t// Update the timer if necessary:\r\n\t\tdouble newdelay;\r\n\t\tnewdelay = mSensorSimulator.getUpdateSensors();\r\n\t\tif (newdelay > 0) {\r\n\t\t\tmSensorSimulator.setDelay((int) newdelay);\r\n\t\t}\r\n\r\n//\t\tg = mSensorSimulator.getGravityConstant();\r\n//\t\tif (g != 0) {\r\n//\t\t\tginverse = 1 / g;\r\n//\t\t}\r\n//\t\tmeterperpixel = 1 / mSensorSimulator.getPixelsPerMeter();\r\n//\t\tk = mSensorSimulator.getSpringConstant();\r\n//\t\tgamma = mSensorSimulator.getDampingConstant();\r\n\r\n\t/*\r\n\t\t// Calculate velocity induced by mouse:\r\n\t\tdouble f = meterperpixel / g;\r\n\t\tvx = f * ((double) (movex - oldx)) / dt;\r\n\t\tvz = f * ((double) (movez - oldz)) / dt;\r\n\r\n\t\t// Calculate acceleration induced by mouse:\r\n\t\tax = (vx - oldvx) / dt;\r\n\t\taz = (vz - oldvz) / dt;\r\n*/\r\n\t\t// New physical model of acceleration:\r\n\t\t// Have accelerometer be steered by string.\r\n\t\t// We will treat this 2D only, as the rest is a linear\r\n\t\t// transformation, and we assume all three accelerometer\r\n\t\t// directions behave the same.\r\n\r\n\t\t// F = m * a\r\n\t\t// F = - k * x\r\n\r\n\t\t// First calculate the force acting on the\r\n\t\t// sensor test particle, assuming that\r\n\t\t// the accelerometer is mounted by a string:\r\n\t\t// F = - k * x\r\n//\t\tFx = + k * (movex - accx);\r\n//\t\tFz = + k * (movez - accz);\r\n//\r\n//\t\t// a = F / m\r\n//\t\tax = Fx / m;\r\n//\t\taz = Fz / m;\r\n\r\n\t\t// Calculate velocity by integrating\r\n\t\t// the current acceleration.\r\n\t\t// Take into account damping\r\n\t\t// by damping constant gamma.\r\n\t\t// integrate dv/dt = a - v*gamma\r\n\t\t//vx += (ax - vx * gamma) * dt;\r\n\t\t//vz += (az - vz * gamma) * dt;\r\n\r\n//\t\tvx += (ax) * dt;\r\n//\t\tvz += (az) * dt;\r\n\r\n\t\t// Now this is the force that tries to adjust\r\n\t\t// the accelerometer back\r\n\t\t// integrate dx/dt = v;\r\n//\t\taccx += vx * dt;\r\n//\t\taccz += vz * dt;\r\n\r\n\t\t// We put damping here: We don't want to damp for\r\n\t\t// zero motion with respect to the background,\r\n\t\t// but with respect to the mobile phone:\r\n//\t\taccx += gamma * (movex - accx) * dt;\r\n//\t\taccz += gamma * (movez - accz) * dt;\r\n\r\n\t\t/*\r\n\t\t// Old values:\r\n\t\toldx = movex;\r\n\t\toldz = movez;\r\n\t\toldvx = vx;\r\n\t\toldvz = vz;\r\n\t\t*/\r\n\r\n\t\t// Calculate acceleration by gravity:\r\n//\t\tdouble gravityax;\r\n//\t\tdouble gravityay;\r\n//\t\tdouble gravityaz;\r\n//\r\n//\t\tgravityax = mSensorSimulator.getGravityX();\r\n//\t\tgravityay = mSensorSimulator.getGravityY();\r\n//\t\tgravityaz = mSensorSimulator.getGravityZ();\r\n//\r\n\r\n\t\t////\r\n\t\t// Now calculate this into mobile phone acceleration:\r\n\t\t// ! Mobile phone's acceleration is just opposite to\r\n\t\t// lab frame acceleration !\r\n//\t\tvec = new Vector(-ax * meterperpixel + gravityax, gravityay, -az * meterperpixel + gravityaz);\r\n//\r\n//\t\t// we reverse roll, pitch, and yawDegree,\r\n//\t\t// as this is how the mobile phone sees the coordinate system.\r\n//\t\tvec.reverserollpitchyaw(rollDegree, pitchDegree, yawDegree);\r\n//\r\n//\t\tif (mSensorSimulator.isEnabledAccelerometer()) {\r\n//\t\t\tif (mSensorSimulator.useRealDeviceWiimtoe()) {\r\n//\t\t\t\taccelx = mSensorSimulator.getWiiMoteData().getX() * g;\r\n//\t\t\t\taccely = mSensorSimulator.getWiiMoteData().getY() * g;\r\n//\t\t\t\taccelz = mSensorSimulator.getWiiMoteData().getZ() * g;\r\n//\t\t\t}\r\n//\t\t\telse {\r\n//\t\t\t\taccelx = vec.x;\r\n//\t\t\t\taccely = vec.y;\r\n//\t\t\t\taccelz = vec.z;\r\n//\r\n//\t\t\t\tif (mSensorSimulator.useRealDeviceThinkpad()) {\r\n//\t\t\t\t\t// We will use data directly from sensor instead:\r\n//\r\n//\t\t\t\t\t// Read data from file\r\n//\t\t\t\t\tString line = \"\";\r\n//\t\t\t\t\ttry {\r\n//\t\t\t\t\t //FileReader always assumes default encoding is OK!\r\n//\t\t\t\t\t BufferedReader input = new BufferedReader(\r\n//\t\t\t\t\t\t\t new FileReader(mSensorSimulator.getRealDevicePath()));\r\n//\t\t\t\t\t try {\r\n//\t\t\t\t\t\t line = input.readLine();\r\n//\t\t\t\t\t } finally {\r\n//\t\t\t\t\t input.close();\r\n//\t\t\t\t\t //mSensorSimulator.mRealDeviceThinkpadOutputLabel.setBackground(Color.WHITE);\r\n//\t\t\t\t\t }\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tcatch (IOException ex){\r\n//\t\t\t\t\t ex.printStackTrace();\r\n//\t\t\t\t\t //mSensorSimulator.mRealDeviceThinkpadOutputLabel.setBackground(Color.RED);\r\n//\t\t\t\t\t line = \"Error reading file!\";\r\n//\t\t\t\t\t}\r\n//\r\n//\t\t\t\t\t// Show the line content:\r\n//\t\t\t\t\tmSensorSimulator.setRealDeviceOutput(line);\r\n//\r\n//\t\t\t\t\t// Assign values\r\n//\r\n//\t\t\t\t\t// Create z-component (optional)\r\n//\r\n//\t\t\t\t}\r\n//\r\n//\t\t\t\t// Add random component:\r\n//\t\t\t\trandom = mSensorSimulator.getRandomAccelerometer();\r\n//\t\t\t\tif (random > 0) {\r\n//\t\t\t\t\taccelx += getRandom(random);\r\n//\t\t\t\t\taccely += getRandom(random);\r\n//\t\t\t\t\taccelz += getRandom(random);\r\n//\t\t\t\t}\r\n//\r\n//\t\t\t\t// Add accelerometer limit:\r\n//\t\t\t\tdouble limit = g * mSensorSimulator.getAccelerometerLimit();\r\n//\t\t\t\tif (limit > 0) {\r\n//\t\t\t\t\t// limit on each component separately, as each is\r\n//\t\t\t\t\t// a separate sensor.\r\n//\t\t\t\t\tif (accelx > limit) accelx = limit;\r\n//\t\t\t\t\tif (accelx < -limit) accelx = -limit;\r\n//\t\t\t\t\tif (accely > limit) accely = limit;\r\n//\t\t\t\t\tif (accely < -limit) accely = -limit;\r\n//\t\t\t\t\tif (accelz > limit) accelz = limit;\r\n//\t\t\t\t\tif (accelz < -limit) accelz = -limit;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t} else {\r\n//\t\t\taccelx = 0;\r\n//\t\t\taccely = 0;\r\n//\t\t\taccelz = 0;\r\n//\t\t}\r\n//\r\n//\t\t// Calculate magnetic field:\r\n//\t\t// Calculate acceleration by gravity:\r\n//\t\tdouble magneticnorth;\r\n//\t\tdouble magneticeast;\r\n//\t\tdouble magneticvertical;\r\n//\r\n//\t\tif (mSensorSimulator.isEnabledMagneticField()) {\r\n//\t\t\tmagneticnorth = mSensorSimulator.getMagneticFieldNorth();\r\n//\t\t\tmagneticeast = mSensorSimulator.getMagneticFieldEast();\r\n//\t\t\tmagneticvertical = mSensorSimulator.getMagneticFieldVertical();\r\n//\r\n//\t\t\t// Add random component:\r\n//\t\t\trandom = mSensorSimulator.getRandomMagneticField();\r\n//\t\t\tif (random > 0) {\r\n//\t\t\t\tmagneticnorth += getRandom(random);\r\n//\t\t\t\tmagneticeast += getRandom(random);\r\n//\t\t\t\tmagneticvertical += getRandom(random);\r\n//\t\t\t}\r\n//\r\n//\t\t\t// Magnetic vector in phone coordinates:\r\n//\t\t\tvec = new Vector(magneticeast, magneticnorth, -magneticvertical);\r\n//\t\t\tvec.scale(0.001); // convert from nT (nano-Tesla) to �T (micro-Tesla)\r\n//\r\n//\t\t\t// we reverse roll, pitch, and yawDegree,\r\n//\t\t\t// as this is how the mobile phone sees the coordinate system.\r\n//\t\t\tvec.reverserollpitchyaw(rollDegree, pitchDegree, yawDegree);\r\n//\r\n//\t\t\tcompassx = vec.x;\r\n//\t\t\tcompassy = vec.y;\r\n//\t\t\tcompassz = vec.z;\r\n//\t\t} else {\r\n//\t\t\tcompassx = 0;\r\n//\t\t\tcompassy = 0;\r\n//\t\t\tcompassz = 0;\r\n//\t\t}\r\n//\r\n//\t\t// Orientation is currently not affected:\r\n//\t\tif (mSensorSimulator.isEnabledOrientation()) {\r\n//\t\t\t//yaw = Math.toRadians(yawDegree);\r\n//\t\t\t//pitch = Math.toRadians(pitchDegree);\r\n//\t\t\t//roll = Math.toRadians(rollDegree);\r\n//\t\t\t// Since OpenGL uses degree as input,\r\n//\t\t\t// and it seems also more user-friendly,\r\n//\t\t\t// let us stick to degree.\r\n//\t\t\t// (it seems, professional sensors also use\r\n//\t\t\t// degree output.)\r\n//\t\t\tyaw = yawDegree;\r\n//\t\t\tpitch = pitchDegree;\r\n//\t\t\troll = rollDegree;\r\n//\r\n//\t\t\t// Add random component:\r\n//\t\t\trandom = mSensorSimulator.getRandomOrientation();\r\n//\t\t\tif (random > 0) {\r\n//\t\t\t\tyaw += getRandom(random);\r\n//\t\t\t\tpitch += getRandom(random);\r\n//\t\t\t\troll += getRandom(random);\r\n//\t\t\t}\r\n//\t\t} else {\r\n//\t\t\tyaw = 0;\r\n//\t\t\tpitch = 0;\r\n//\t\t\troll = 0;\r\n//\t\t}\r\n\r\n\t\t// Thermometer\r\n\t\tif (mSensorSimulator.isEnabledTemperature()) {\r\n\t\t\ttemperature = mSensorSimulator.getTemperature();\r\n\r\n\t\t\t// Add random component:\r\n\t\t\trandom = mSensorSimulator.getRandomTemperature();\r\n\t\t\tif (random > 0) {\r\n\t\t\t\ttemperature += getRandom(random);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\ttemperature = 0;\r\n\t\t}\r\n\r\n\t\t// Light\r\n\t\tif (mSensorSimulator.isEnabledLight()) {\r\n\t\t\tlight = mSensorSimulator.getLight();\r\n\r\n\t\t\t// Add random component:\r\n\t\t\trandom = mSensorSimulator.getRandomLight();\r\n\t\t\tif (random > 0) {\r\n\t\t\t\tlight += getRandom(random);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tlight = 0;\r\n\t\t}\r\n\t\t\r\n\t // Proximity\r\n if (mSensorSimulator.isEnabledProximity()) {\r\n proximity = mSensorSimulator.getProximity();\r\n\r\n // Add random component:\r\n random = mSensorSimulator.getRandomProximity();\r\n if (random > 0) {\r\n proximity += getRandom(random);\r\n }\r\n } else {\r\n proximity = 0;\r\n }\r\n \r\n\t // Proximity\r\n if (mSensorSimulator.isEnabledProximity()) {\r\n proximity = mSensorSimulator.getProximity();\r\n\r\n // Add random component:\r\n random = mSensorSimulator.getRandomProximity();\r\n if (random > 0) {\r\n proximity += getRandom(random);\r\n }\r\n } else {\r\n proximity = 0;\r\n }\r\n \r\n\t // CarbonMonoxide\r\n if (mSensorSimulator.isEnabledCarbonMonoxide()) {\r\n carbonMonoxide = mSensorSimulator.getCarbonMonoxide();\r\n\r\n // Add random component:\r\n random = mSensorSimulator.getRandomCarbonMonoxide();\r\n if (random > 0) {\r\n carbonMonoxide += getRandom(random);\r\n }\r\n } else {\r\n carbonMonoxide = 0;\r\n }\r\n \r\n\t // RedGas\r\n if (mSensorSimulator.isEnabledRedGas()) {\r\n redGas = mSensorSimulator.getRedGas();\r\n\r\n // Add random component:\r\n random = mSensorSimulator.getRandomRedGas();\r\n if (random > 0) {\r\n redGas += getRandom(random);\r\n }\r\n } else {\r\n redGas = 0;\r\n }\r\n \r\n\t // OxGas\r\n if (mSensorSimulator.isEnabledOxGas()) {\r\n oxGas = mSensorSimulator.getOxGas();\r\n\r\n // Add random component:\r\n random = mSensorSimulator.getRandomOxGas();\r\n if (random > 0) {\r\n oxGas += getRandom(random);\r\n }\r\n } else {\r\n oxGas = 0;\r\n }\r\n \r\n\t // Humidity\r\n if (mSensorSimulator.isEnabledHumidity()) {\r\n humidity = mSensorSimulator.getHumidity();\r\n\r\n // Add random component:\r\n random = mSensorSimulator.getRandomHumidity();\r\n if (random > 0) {\r\n humidity += getRandom(random);\r\n }\r\n } else {\r\n humidity = 0;\r\n }\r\n \r\n\t // Pressure\r\n if (mSensorSimulator.isEnabledPressure()) {\r\n pressure = mSensorSimulator.getPressure();\r\n\r\n // Add random component:\r\n random = mSensorSimulator.getRandomPressure();\r\n if (random > 0) {\r\n pressure += getRandom(random);\r\n }\r\n } else {\r\n pressure = 0;\r\n }\r\n \r\n\t // Infrared\r\n if (mSensorSimulator.isEnabledInfrared()) {\r\n infrared = mSensorSimulator.getInfrared();\r\n\r\n // Add random component:\r\n random = mSensorSimulator.getRandomInfrared();\r\n if (random > 0) {\r\n infrared += getRandom(random);\r\n }\r\n } else {\r\n infrared = 0;\r\n }\r\n}", "title": "" }, { "docid": "f71ceaf39b4fc38f5b608eed37dc87c2", "score": "0.49624184", "text": "protected void initializeWorld() \n\t{\n\t\tbounds = new AxisAlignedBounds(25, 25);\n\t\tworld = new World(bounds);\n\t\tpermanent_count = 0;\n\t\t\n\t\t/* Create the goal, a rectangle */\n\t\tRectangle floorRect = new Rectangle(5.00, 2.00);\n\t\tGameObject goal_floor = new GameObject();\n\t\tgoal_floor.addFixture(new BodyFixture(floorRect));\n\t\tgoal_floor.setMass(MassType.INFINITE);\n\t\tgoal_floor.translate(6.5, 6.5);\n\t\tgoal_floor.setAsPermanent(this);\n\t\tgoal_floor.setColor(Color.ORANGE);\n\t\tgoal = goal_floor;\n\t\tworld.addBody(goal);\n\t\t\n\t\tGameObject d1 = new GameObject();\n\t\td1.addFixture(Geometry.createTriangle(new Vector2(-9.00, 6.50), new Vector2(-9.00, 4.00), new Vector2(0.00, 4.00)));\n\t\td1.setMass(MassType.INFINITE);\n\t\td1.setColor(Color.BLACK);\n\t\td1.setAsPermanent(this);\n\t\tworld.addBody(d1);\n\t\t\n\t\tRectangle p1 = new Rectangle(6.00, 1.00);\n\t\tGameObject platform1 = new GameObject();\n\t\tplatform1.addFixture(new BodyFixture(p1));\n\t\tplatform1.setMass(MassType.INFINITE);\n\t\tplatform1.translate(-3.00, -0.50);\n\t\tplatform1.setAsPermanent(this);\n\t\tplatform1.setColor(Color.BLACK);\n\t\tworld.addBody(platform1);\n\t\t\n\t\tRectangle w1 = new Rectangle(4.00, 1.00);\n\t\tGameObject wall1 = new GameObject();\n\t\twall1.addFixture(new BodyFixture(w1));\n\t\twall1.setMass(MassType.INFINITE);\n\t\twall1.translate(1.00, -6.5);\n\t\twall1.setAsPermanent(this);\n\t\twall1.setColor(Color.BLACK);\n\t\tworld.addBody(wall1);\n\t\t\n\t\tRectangle w2 = new Rectangle(1.00, 14.00);\n\t\tGameObject wall2 = new GameObject();\n\t\twall2.addFixture(new BodyFixture(w2));\n\t\twall2.setMass(MassType.INFINITE);\n\t\twall2.translate(9.50, 0.0);\n\t\twall2.setAsPermanent(this);\n\t\twall2.setColor(Color.BLACK);\n\t\tworld.addBody(wall2);\n\t\t\n\t\tRectangle b1 = new Rectangle(2.00, 2.00);\n\t\tBoosterBlock booster1 = new BoosterBlock('n');\n\t\tbooster1.addFixture(new BodyFixture(b1));\n\t\tbooster1.setMass(MassType.INFINITE);\n\t\tbooster1.translate(4.00, -6.00);\n\t\tbooster1.setColor(Color.CYAN);\n\t\tworld.addBody(booster1);\n\t\t\n\t\tRectangle b2 = new Rectangle(2.00, 2.00);\n\t\tBoosterBlock booster2 = new BoosterBlock('n');\n\t\tbooster2.addFixture(new BodyFixture(b2));\n\t\tbooster2.setMass(MassType.INFINITE);\n\t\tbooster2.translate(-8.00, -5.00);\n\t\tbooster2.setColor(Color.CYAN);\n\t\tworld.addBody(booster2);\n\t\t\n\t\tBoosterBlock booster3 = new BoosterBlock('u');\n\t\tbooster3.addFixture(new BodyFixture(b2));\n\t\tbooster3.setMass(MassType.INFINITE);\n\t\tbooster3.translate(8.00, -6.00);\n\t\tbooster3.setColor(Color.CYAN);\n\t\tworld.addBody(booster3);\n\t\t\n\t\tBoosterBlock booster4 = new BoosterBlock('u');\n\t\tbooster4.addFixture(new BodyFixture(b2));\n\t\tbooster4.setMass(MassType.INFINITE);\n\t\tbooster4.translate(8.00, -1.00);\n\t\tbooster4.setColor(Color.CYAN);\n\t\tworld.addBody(booster4);\n\t\t\n\t\t/* Create the player, a circle */\n\t\tCircle cirShape = new Circle(0.6);\n\t\tGameObject worldplayer = new GameObject();\n\t\tworldplayer.addFixture(cirShape);\n\t\tworldplayer.setMass(MassType.NORMAL);\n\t\tworldplayer.translate(-8.0, 7.0);\n\t\tworldplayer.setAsPermanent(this);\n\t\tColor playercolor = new Color(244 / 255.0f, 66 / 255.0f, 66 / 255.0f);\n\t\tworldplayer.setColor(playercolor);\n\t\tplayer = worldplayer;\n\t\tworld.addBody(player);\n\t\t\n\t\tGameObject rightTri2 = new GameObject();\n\t\trightTri2.addFixture(Geometry.createRightTriangle(4.0, 5.0, true));\n\t\trightTri2.setMass(MassType.INFINITE);\n\t\trightTri2.setAsPermanent(this);\n\t\trightTri2.setColor(Color.BLACK);\n\t\trightTri2.translate(2.6, 1.75);\n\t\tworld.addBody(rightTri2);\n\t\t\n\t\tGameObject rightTri3 = new GameObject();\n\t\trightTri3.addFixture(Geometry.createRightTriangle(3.0, 2.0));\n\t\trightTri3.setMass(MassType.NORMAL);\n\t\trightTri3.translate(-8.25, -3.5);\n\t\tworld.addBody(rightTri3);\n\t\t\n\t\tRectangle s1 = new Rectangle(2.00, 2.00);\n\t\tGameObject standard1 = new GameObject();\n\t\tstandard1.addFixture(s1);\n\t\tstandard1.setMass(MassType.NORMAL);\n\t\tstandard1.translate(5.5, -3.00);\n\t\tworld.addBody(standard1);\n\t\t\n\t\tRectangle platform2 = new Rectangle(1.00, 1.00);\n\t\tGameObject p2 = new GameObject();\n\t\tp2.addFixture(platform2);\n\t\tp2.setMass(MassType.INFINITE);\n\t\tp2.setAsPermanent(this);\n\t\tp2.setColor(Color.BLACK);\n\t\tp2.translate(-9.5, -3.50);\n\t\tworld.addBody(p2);\n\t\t\n\t\tRectangle standard3 = new Rectangle(1.00, 2.00);\n\t\tGameObject s3 = new GameObject();\n\t\ts3.addFixture(standard3);\n\t\ts3.setMass(MassType.NORMAL);\n\t\ts3.translate(-5.5, 1.0);\n\t\tworld.addBody(s3);\n\t\t\n\t\tGameObject s4 = new GameObject();\n\t\ts4.addFixture(standard3);\n\t\ts4.setMass(MassType.NORMAL);\n\t\ts4.translate(-1.5, 1.0);\n\t\tworld.addBody(s4);\n\t\t\n\t\tRectangle standard5 = new Rectangle(5.00, 1.00);\n\t\tGameObject s5 = new GameObject();\n\t\ts5.addFixture(standard5);\n\t\ts5.setMass(MassType.NORMAL);\n\t\ts5.translate(-3.5, 2.50);\n\t\tworld.addBody(s5);\n\t\t\n\t\tCircle cirShape2 = new Circle(0.5);\n\t\tGameObject ball = new GameObject();\n\t\tball.addFixture(cirShape2);\n\t\tball.setMass(MassType.NORMAL);\n\t\tball.translate(-6.0, 6.0);\n\t\tworld.addBody(ball);\n\t\t\n\t\tGameObject ball2 = new GameObject();\n\t\tball2.addFixture(cirShape2);\n\t\tball2.setMass(MassType.NORMAL);\n\t\tball2.translate(-5.0, 5.5);\n\t\tworld.addBody(ball2);\n\t\t\n\t\tRectangle standard6 = new Rectangle(1.00, 4.00);\n\t\tGameObject s6 = new GameObject();\n\t\ts6.addFixture(standard6);\n\t\ts6.setMass(MassType.NORMAL);\n\t\ts6.translate(0.5, -4.0);\n\t\tworld.addBody(s6);\n\t\t\n\t\tGameObject s7 = new GameObject();\n\t\ts7.addFixture(standard6);\n\t\ts7.setMass(MassType.NORMAL);\n\t\ts7.translate(1.5, -4.0);\n\t\tworld.addBody(s7);\n\t\t\n\t\tGameObject standard8 = new GameObject();\n\t\tstandard8.addFixture(s1);\n\t\tstandard8.setMass(MassType.NORMAL);\n\t\tstandard8.translate(1.0, -1.0);\n\t\tworld.addBody(standard8);\n\t\t\n\t\tGameObject rightTri4 = new GameObject();\n\t\trightTri4.addFixture(Geometry.createRightTriangle(1.0, 4.0, true));\n\t\trightTri4.setMass(MassType.NORMAL);\n\t\trightTri4.translate(0.5, -4.0);\n\t\tworld.addBody(rightTri4);\n\t\t\n\t\tGameObject rightTri5 = new GameObject();\n\t\trightTri5.addFixture(Geometry.createRightTriangle(1.0, 4.0));\n\t\trightTri5.setMass(MassType.NORMAL);\n\t\trightTri5.translate(2.5, -4.0);\n\t\tworld.addBody(rightTri5);\n\t\t\n\t\t/*GameObject ball3 = new GameObject();\n\t\tball3.addFixture(cirShape2);\n\t\tball3.setMass(MassType.INFINITE);\n\t\tball3.translate(5.0, 0.0);\n\t\tworld.addBody(ball3);*/\n\t\t\n\t\tGameObject ball4 = new GameObject();\n\t\tball4.addFixture(cirShape2);\n\t\tball4.setMass(MassType.INFINITE);\n\t\tball4.translate(8.0, 2.0);\n\t\tworld.addBody(ball4);\n\t\t\n\t\t/*GameObject ball5 = new GameObject();\n\t\tball5.addFixture(cirShape2);\n\t\tball5.setMass(MassType.INFINITE);\n\t\tball5.translate(5.0, 3.0);\n\t\tworld.addBody(ball5);*/\n\t\t\n\t\tGameObject ball6 = new GameObject();\n\t\tball6.addFixture(cirShape2);\n\t\tball6.setMass(MassType.INFINITE);\n\t\tball6.translate(8.0, 4.0);\n\t\tworld.addBody(ball6);\n\t\t\n\t\t/* attach the contact listener */\n\t\tworld.addListener(new WinDetection());\n\t}", "title": "" }, { "docid": "758af1efac075c96b3bd4417da862f9b", "score": "0.4956963", "text": "private void applyPositionRotationAndFakeDynamics(float throttleInput, float isBrakeInput, float steeringInput)\n {\n float maxWeightShiftFrontBack = 2 * mass * 0.001f * 0.5f;\n float maxWeightShiftLeftRight = 4 * mass * 0.001f * 0.5f;\n float weightShiftFrontBackAngle = throttleInput * maxWeightShiftFrontBack - isBrakeInput * maxWeightShiftFrontBack;\n float weightShiftLeftRightAngle = speed / 4;\n if(weightShiftLeftRightAngle > maxWeightShiftLeftRight)\n {\n weightShiftLeftRightAngle = maxWeightShiftLeftRight;\n }\n weightShiftLeftRightAngle *= steeringInput;\n\n Vector3f tempV = new Vector3f(frontWheelsPosition).add(rearWheelsPosition);\n tempV.div(2f);\n position = new Vector3f(tempV);\n\n position.y = wheelRadius + suspensionOffset;\n rotation.set(weightShiftLeftRightAngle, -carDirectionAngle, weightShiftFrontBackAngle);\n }", "title": "" }, { "docid": "2a5a7bb9e74e67f0fa43af815ae3410a", "score": "0.49485824", "text": "@Override\r\n public void beginContact(Contact contact) {\r\n if(contact.getFixtureA().getBody().getUserData()== player && contact.getFixtureB().getBody().getType() == BodyDef.BodyType.StaticBody){\r\n\r\n player.setGrounded(true);\r\n System.out.println(\"contact on\");\r\n }\r\n\r\n /** Sensor Contact*/\r\n if(contact.getFixtureA().getBody().getUserData()== player && contact.getFixtureB().isSensor()){\r\n if(contact.getFixtureA().getBody().getUserData()== player && contact.getFixtureB().getBody().getUserData()== iceTool){\r\n System.out.println(\"gottem\");\r\n iceTool.inRange = true;\r\n }\r\n if(contact.getFixtureA().getBody().getUserData()== player && contact.getFixtureB().getBody().getUserData()== toggleSwitch){\r\n System.out.println(\"switch\");\r\n toggleSwitch.inRange = true;\r\n }\r\n }\r\n /**Box contact*/\r\n if(contact.getFixtureA().getBody().getUserData()== player && contact.getFixtureB().getBody().getType() == BodyDef.BodyType.DynamicBody){\r\n\r\n player.setGrounded(true);\r\n player.crate.play();\r\n System.out.println(\"contact on\");\r\n\r\n }\r\n /** Door contact*/\r\n if(contact.getFixtureA().getBody().getUserData()== player && contact.getFixtureB().getBody().getUserData() == door && door.unlocked){\r\n door.levelFinished = true;\r\n System.out.println(\"yay\");\r\n win();\r\n }\r\n /**button contact*/\r\n if(contact.getFixtureB().getBody().getUserData()== holdButton && ( contact.getFixtureA().getBody().getType() == BodyDef.BodyType.DynamicBody)\r\n || (contact.getFixtureA().getBody().getUserData()== holdButton && ( contact.getFixtureB().getBody().getType() == BodyDef.BodyType.DynamicBody))){\r\n door.unlocked = true;\r\n holdButton.pressed = true;\r\n holdButton.sound.play();\r\n System.out.println(\"unlocked\");\r\n }\r\n\r\n }", "title": "" }, { "docid": "b3ea8fe55e519adca830d129af15ddc6", "score": "0.4940757", "text": "@Test\r\n public void testForceFrom() {\r\n System.out.println(\"forceFrom\");\r\n double G = 6.67e-11;\r\n double[] a = {0.0, 0.0};\r\n double[] aa = {1.0, 1.0};\r\n Vector r = new Vector(a);\r\n Vector v = new Vector(aa);\r\n Body b = new Body(r, v, 1.0, 10);\r\n \r\n double[] c = {0.5, 0.5};\r\n double[] cc = {1.5, 1.5};\r\n Vector inR = new Vector(c);\r\n Vector inV = new Vector(cc);\r\n Body instance = new Body(inR, inV, 1.5, 10);\r\n Vector result = instance.forceFrom(b);\r\n \r\n double[] delta = {-0.5, -0.5};\r\n Vector expDelta = new Vector(delta);\r\n double expDist = Math.sqrt(((-0.5)*(-0.5)) + ((-0.5)*(0.5)));\r\n double expF = G * 1.0 * 1.5 / (expDist * expDist) ;\r\n double firstFactor = 1.0/expDist;\r\n double secondFactor = expF;\r\n double[] d = {-0.5*firstFactor*secondFactor, -0.5*firstFactor*secondFactor};\r\n Vector expResult = new Vector(d);\r\n \r\n assertArrayEquals(expResult, result); \r\n }", "title": "" }, { "docid": "c4be6bb5ee34f30585a335015536bb91", "score": "0.49376532", "text": "public synchronized void updateState(double millis){\n\n double[] deltaTicks = new double[4];\n double[] w = new double[4];\n\n for (int i = 0; i < 4; i++) {\n deltaTicks[i] = motors[i].update(millis);\n w[i] = deltaTicks[i] * wheelCircumference / motorType.TICKS_PER_ROTATION;\n double wheelRotationDegrees = 360.0 * deltaTicks[i] / motorType.TICKS_PER_ROTATION;\n if (i < 2) {\n w[i] = -w[i];\n wheelRotationDegrees = -wheelRotationDegrees;\n }\n wheelRotations[i] += Math.min(17, Math.max(-17, wheelRotationDegrees));\n }\n\n double[] robotDeltaPos = new double[] {0,0,0,0};\n for (int i=0; i<4; i++){\n for (int j = 0; j<4; j++){\n robotDeltaPos[i] += tWR[i][j] * w[j];\n }\n }\n\n /*\n * Tentative position change in the ROBOT COORDINATE SYSTEM\n */\n double dxR = robotDeltaPos[0];\n double dyR = robotDeltaPos[1];\n double dHeading = robotDeltaPos[2];\n\n /*\n * Convert to tentative position change in the WOORLD COORDINATE SYSTEM\n */\n DMatrix3C currentRot = fxBody.getRotation(); //Matrix representing the current orientation in WORLD SYSTEM\n double heading = Math.atan2(currentRot.get10(), currentRot.get00()); //Current heading in WORLD SYSTEM\n double avgHeading = heading + dHeading / 2.0; //Tentative average heading during current step\n double sinAvg = Math.sin(avgHeading);\n double cosAvg = Math.cos(avgHeading);\n double dX = dxR * cosAvg - dyR * sinAvg; //Tentative change in X-position in WORLD SYSTEM\n double dY = dxR * sinAvg + dyR * cosAvg; //Tentative change in Y-position in WORLD SYSTEM\n\n /* Determine the force and torque (WORLD COORDS) that would be required to achieve the changes predicted by\n * the kinematic model.\n *\n * Note: dX, dY, and dHeading are based on average speeds during the interval, so we can calculate force\n * and torque using:\n *\n * d(Position) = v0*t + 0.5*(F/m)*t*t\n * d(Heading) = omega0*t + 0.5*(Torque/I)*t*t\n *\n * or,\n *\n * F = 2m( d(Position) - v0*t ) / (t*t)\n * Torque = 2I( d(Heading) - omega0*t ) / (t*t)\n */\n\n double t = millis / 1000.0; //Time increment in seconds\n double tSqr = t * t;\n DVector3 deltaPos = new DVector3(dX, dY, 0); //Vector representing the tentative change in position\n DVector3C vel = fxBody.getLinearVel().clone(); //Robot velocity at the beginning of this step\n ((DVector3)vel).set2(0); //Remove any z-component of the beginning velocity\n DVector3 force = deltaPos.reSub(vel.reScale(t)).reScale(2.0 * TOTAL_MASS / tSqr); //Calculate net force required to achieve the tentative final position\n double angVel = fxBody.getAngularVel().get2(); //Angular speed at the beginning of this step\n float torque = (float)(2.0 * TOTAL_Z_INERTIA * (dHeading - angVel*t)/tSqr); //Calculate net torque required to achieve the tentative final heading\n System.out.printf(\"DH = %.12f AngVel = %.5f \\n\\n\", dHeading, angVel);\n\n //Convert the tentative total force to the ROBOT COORDINATE system\n\n double sinHd = Math.sin(heading);\n double cosHd = Math.cos(heading);\n\n float fXR = (float)(force.get0()*cosHd + force.get1()*sinHd);\n float fYR = (float)(-force.get0()*sinHd + force.get1()*cosHd);\n\n VectorF totalBotForces = new VectorF(fXR, fYR, torque, 0); //Tentative total force & torque on bot in robot coords\n\n /*\n * Vector to hold the external forces on the robot due to collisions (see below)\n */\n VectorF collisionForces = new VectorF(0,0,0,0);\n\n /*\n ========================================== OPTIONAL ===================================================\n Determine cumulative force & torque on bot, in robot coords, from collisions during preceding world update,\n using the feedbackList. NOTE: this step is optional; the simulation works quite well without it. This is a more\n physical approach, but it may introduce some problems if the external forces obtained from the physics engine\n are not accurate (As the ODE documentation suggests can occur). If that happens, just remove this step.\n ==========================================================================================================\n\n for (FeedBack f: feedBackList){\n float fXCR, fYCR;\n if (f.index == 0) { //Robot is body #1 for this collision\n fXCR = (float)((float)f.fb.f1.get0()*cosHd + (float)f.fb.f1.get1()*sinHd);\n fYCR = (float)(-(float)f.fb.f1.get0()*sinHd + (float)f.fb.f1.get1()*cosHd);\n collisionForces.add(new VectorF(fXCR, fYCR, (float)f.fb.t1.get2(), 0));\n } else { //Robot is body #2 for this collision\n fXCR = (float)((float)f.fb.f2.get0()*cosHd + (float)f.fb.f2.get1()*sinHd);\n fYCR = (float)(-(float)f.fb.f2.get0()*sinHd + (float)f.fb.f2.get1()*cosHd);\n collisionForces.add(new VectorF(fXCR, fYCR, (float)f.fb.t2.get2(), 0));\n }\n }\n\n */\n\n\n /*\n * We need to clear the feedBack list at this point, whether we are making use of the collision forces or not.\n */\n feedBackList.clear();\n\n //Frictional force (from floor) on bot, in world coords is tentatively equal to total force minus collision force\n\n VectorF frictionForces = totalBotForces.subtracted(collisionForces);\n\n //Determine the forces that would be required on each of the bot's four wheels to achieve\n //the total frictional force and torque predicted by the kinematic model\n\n VectorF wheel_X_Forces = M_ForceRobotToWheel.multiplied(frictionForces);\n\n //If any of the wheel forces exceeds the product of muStatic*mass*gravity, reduce the magnitude\n //of that force to muKinetic*mass*gravity, keeping the direction the same\n\n for (int i=0; i<4; i++){\n float f = wheel_X_Forces.get(i);\n if (Math.abs(f) > MAX_WHEEL_X_FORCE) {\n wheel_X_Forces.put(i, MAX_WHEEL_X_FORCE * Math.signum(f));\n }\n }\n\n //Based on the adjusted forces at each wheel, determine net frictional force and torque on the bot,\n //Force is in ROBOT COORDINATE system\n\n frictionForces = M_ForceWheelToRobot.multiplied(wheel_X_Forces);\n\n //Convert these adjusted friction forces to WORLD COORDINATES and put into the original force DVector3\n force.set0(frictionForces.get(0)*cosHd - frictionForces.get(1)*sinHd);\n force.set1(frictionForces.get(0)*sinHd + frictionForces.get(1)*cosHd);\n force.set2(0);\n\n /*\n * Apply the adjusted frictional force and torque to the bot.\n *\n * Note: We are only applying the frictional forces from the floor, NOT the collision forces. The\n * collision forces will be applied automatically during the next update of the world by the\n * ODE physics engine.\n */\n\n fxBody.addForce(force);\n fxBody.addTorque(new DVector3(0, 0, frictionForces.get(2)));\n System.out.println(\"Added torque: \" + frictionForces.get(2));\n\n /**\n * Update state of robot accessories\n */\n\n\n double newHandTranslation = handServo.getInternalPosition() * 4.0;\n handTranslation = newHandTranslation;\n\n double oldSliderTranslation = sliderTranslation;\n double oldLiftElevation = liftElevation;\n\n double newSliderTranslation = sliderTranslation + sliderCRServo.updatePositionDegrees(millis) * 10.0 / 360.0;\n double deltaLiftMotor = liftMotor.update(millis);\n double newLiftElevation = liftElevation + deltaLiftMotor * 20.0 / 1120.0;\n double minElev = 0;\n\n if (newLiftElevation >= 14.1 || newSliderTranslation <= -5.5 || newSliderTranslation >= 10){\n sliderTranslation = Math.min(16, Math.max(-10, newSliderTranslation));\n } else if (sliderTranslation <= -5.5){\n sliderTranslation = Math.min(-5.5, Math.max(-10, newSliderTranslation));\n } else if (sliderTranslation >= 10) {\n sliderTranslation = Math.min(16, Math.max(10, newSliderTranslation));\n } else {\n sliderTranslation = Math.min(16, Math.max(-10, newSliderTranslation));\n minElev = 14.1;\n }\n\n sliderSpeed = (sliderTranslation - oldSliderTranslation) / millis;\n\n if (newLiftElevation > 91){\n if (Math.abs(newLiftElevation - liftElevation) < 0.0001) liftMotor.adjustActualPosition(-deltaLiftMotor);\n else {\n liftMotor.adjustActualPosition(-deltaLiftMotor *(newLiftElevation - 91)/(newLiftElevation - liftElevation));\n liftElevation = 91;\n }\n } else if (newLiftElevation < minElev) {\n if (Math.abs(newLiftElevation - liftElevation) < 0.0001) liftMotor.adjustActualPosition(-deltaLiftMotor);\n else {\n liftMotor.adjustActualPosition(-deltaLiftMotor * (newLiftElevation - minElev) / (newLiftElevation - liftElevation));\n liftElevation = minElev;\n }\n } else {\n liftElevation = newLiftElevation;\n }\n\n verticalLiftSpeed = 1000.0 * (liftElevation - oldLiftElevation) / millis;\n sliderSpeed = 1000.0 * (sliderTranslation - oldSliderTranslation) / millis;\n\n rightIntakeSpeed = 1000.0 * rightIntakeMotor.update(millis) * 50.0/(1120.0 * millis);\n leftIntakeSpeed = 1000.0* leftIntakeMotor.update(millis) * 50.0 / (1120.0 * millis);\n\n }", "title": "" }, { "docid": "67ff46513f7403443b9c5ab3be6c1c23", "score": "0.49226755", "text": "private static void init() {\n\t\tArrayList<Builder<Body>> bodyBuilders = new ArrayList<>();\n\t\tbodyBuilders.add(new BasicBodyBuilder());\n\t\tbodyBuilders.add(new MassLosingBodyBuilder());\n\t\t_bodyFactory = new BuilderBasedFactory<Body>(bodyBuilders);\n\n\t\t// Inicializacion de las leyes de fuerza\n\t\tArrayList<Builder<ForceLaws>> forceBuilders = new ArrayList<>();\n\t\tforceBuilders.add(new NoForceBuilder());\n\t\tforceBuilders.add(new MovingTowardsFixedPointBuilder());\n\t\tforceBuilders.add(new NewtonUniversalGravitationBuilder());\n\t\t_forceLawsFactory = new BuilderBasedFactory<ForceLaws>(forceBuilders);\n\n\t\t// Inicializacion de los comparadores de estado\n\t\tArrayList<Builder<StateComparator>> stateBuilder = new ArrayList<>();\n\t\tstateBuilder.add(new EpsilonEqualStateBuilder());\n\t\tstateBuilder.add(new MassEqualStateBuider());\n\t\t_stateComparatorFactory = new BuilderBasedFactory<StateComparator>(stateBuilder);\n\n\t}", "title": "" }, { "docid": "93beb2e7179ae5c0477219f5ad91fb5a", "score": "0.49132726", "text": "public PhysicsEngine() {\n\t\tbodies = new HashSet<Body>();\n\t\ttrash = new HashSet<Body>();\n\t\tcollisions = new HashSet<Collision>();\n\t\tgravity = new Vector2f(0.0f, 0.0f);\n\t}", "title": "" }, { "docid": "d28370b39c6361ea70f326383ae05bf9", "score": "0.49015555", "text": "private void initOtherPlayer(){\n CapsuleCollisionShape playerShape = new CapsuleCollisionShape(1f, 1.5f);\r\n\r\n GhostControl ghostControlOtherPlayer = new GhostControl(playerShape);\r\n ghostControlOtherPlayer.setPhysicsLocation(new Vector3f(5.0f,5.0f,10.0f));\r\n Spatial playerSpatial = assetManager.loadModel(\"/Models/CrystalGuy/CrystalGuy.j3o\");\r\n ghostControlOtherPlayer.setPhysicsLocation(new Vector3f(1,1,1));\r\n\r\n \r\n \r\n Spatial weaponSpatial = assetManager.loadModel(\"/Models/weapon002/weapon002.j3o\");\r\n CapsuleCollisionShape collSHape = new CapsuleCollisionShape(0.2f,1.5f);\r\n GhostControl weaponGhost = new GhostControl(collSHape);\r\n weaponSpatial.addControl(weaponGhost);\r\n rootNode.attachChild(weaponSpatial);\r\n rootNode.attachChild(playerSpatial);\r\n\r\n\r\n weaponGhost.setPhysicsLocation(new Vector3f(1,1,1));\r\n //bulletAppState.getPhysicsSpace().add(weaponGhost);\r\n bulletAppState.getPhysicsSpace().add(ghostControlOtherPlayer);\r\n\r\n \r\n otherPlayer = new UnitSpatialandGhostControl(playerSpatial, 1, false);\r\n Node node = new Node(\"myNode\");\r\n node.attachChild(weaponSpatial);\r\n otherPlayer.addWeapon(weaponSpatial, ghostControlOtherPlayer,node);\r\n otherPlayer.ghost = ghostControlOtherPlayer;\r\n rootNode.attachChild(node);\r\n otherPlayer.setPhysicsLocation(new Vector3f(0f,-1f,0f));\r\n\r\n }", "title": "" }, { "docid": "8daddafe0f60fbc2f85b56657d30ab99", "score": "0.48861694", "text": "private Vector3D getForceFrom(Body body1, Body body2){\n\t\tif (body1 == body2) {\r\n\t\t\treturn new Vector3D();\r\n\t\t}\r\n\t\trSquared = body1.position.clone().distSquared(body2.position);\r\n\t\tif (rSquared == 0 || body1.mass == 0) {\r\n\t\t\treturn new Vector3D();\r\n\t\t}\r\n\t\tVector3D f = Vector3D.normalize(\r\n\t\t\t\tbody1.position.clone().subtract(body2.position)).multiply(\r\n\t\t\t\tAstrophysics.G * body1.mass * body2.mass / -rSquared);\r\n\t\treturn f;\r\n\t}", "title": "" }, { "docid": "c9096812ff746709a0a4f8efb31b9fbc", "score": "0.4885634", "text": "public P2Start( )\n {\n pad1 = new Rectangle( x1, y1 );\n pad1.setFillColor( Color.WHITE );\n pad1.setFrameColor( Color.BLACK );\n pad1.setSize( padX, padY );\n \n pad2 = new Rectangle( x2, y2 );\n pad2.setFillColor( Color.WHITE );\n pad2.setFrameColor( Color.BLACK );\n pad2.setSize( padX, padY );\n //--------------------------------------------\n // add your code starting here\n //ATV on the Left\n // windshield\n \n Line windshield_L = new Line();\n windshield_L.setLocation(x1-5,y1+35);\n windshield_L.setRotation(60);\n windshield_L.setSize(25,25);\n windshield_L.setColor(Color.GREEN);\n \n // Steering Wheel\n \n Ellipse steeringWheel_L = new Ellipse();\n steeringWheel_L.setLocation(x1+15,y1+33);\n steeringWheel_L.setSize(10,10);\n steeringWheel_L.setColor(Color.RED);\n \n \n // Body\n \n Rectangle body_L = new Rectangle(); \n body_L.setColor(Color.GRAY);\n body_L.setSize(70,25);\n body_L.setLocation(x1+10,y1+40);\n \n //Wheels\n \n Ellipse frontWheel_L = new Ellipse();\n frontWheel_L.setLocation(x1+10,y1+60);\n frontWheel_L.setSize(15,15);\n frontWheel_L.setColor(Color.BLACK);\n \n Ellipse rearWheel_L = new Ellipse();\n rearWheel_L.setLocation(x1+65,y1+60);\n rearWheel_L.setSize(15,15);\n rearWheel_L.setColor(Color.BLACK);\n \n // Flag\n \n Line flag_line_L = new Line();\n flag_line_L.setLocation(x1+75,y1+35);\n flag_line_L.setRotation(-60);\n flag_line_L.setSize(18,18);\n flag_line_L.setColor(Color.BLACK);\n \n Rectangle flag_L = new Rectangle();\n flag_L.setLocation(y1+83,x1+25);\n flag_L.setSize(10,8);\n flag_L.setColor(Color.BLUE);\n \n //ATV on the right\n \n // windshield\n \n Line windshield_R = new Line();\n windshield_R.setLocation(x2-5,y2+35);\n windshield_R.setRotation(60);\n windshield_R.setSize(25,25);\n windshield_R.setColor(Color.GREEN);\n \n // Steering Wheel\n \n Ellipse steeringWheel_R = new Ellipse();\n steeringWheel_R.setLocation(x2+15,y2+33);\n steeringWheel_R.setSize(10,10);\n steeringWheel_R.setColor(Color.RED);\n \n \n // Body\n \n Rectangle body_R = new Rectangle(); \n body_R.setColor(Color.GRAY);\n body_R.setSize(70,25);\n body_R.setLocation(x2+10,y2+40);\n \n //Wheels\n \n Ellipse frontWheel_R = new Ellipse();\n frontWheel_R.setLocation(x2+10,y2+60);\n frontWheel_R.setSize(15,15);\n frontWheel_R.setColor(Color.BLACK);\n \n Ellipse rearWheel_R = new Ellipse();\n rearWheel_R.setLocation(x2+65,y2+60);\n rearWheel_R.setSize(15,15);\n rearWheel_R.setColor(Color.BLACK);\n \n // Flag\n \n Line flag_line_R = new Line();\n flag_line_R.setLocation(x2+75,y2+35);\n flag_line_R.setRotation(-60);\n flag_line_R.setSize(18,18);\n flag_line_R.setColor(Color.BLACK);\n \n Rectangle flag_R = new Rectangle();\n flag_R.setLocation(x2+83,y2+25);\n flag_R.setSize(10,8);\n flag_R.setColor(Color.BLUE);\n \n }", "title": "" }, { "docid": "af8f9ab1bab44bf9a4aa0c032ffe9c71", "score": "0.48809803", "text": "@Override\n\tpublic void resolve2(CollisionManifold<Vector2f, ?> manifold) {\n\t\tRigidBody2 A = (RigidBody2) manifold.getObjects().getFirst();\n\t\tRigidBody2 B = (RigidBody2) manifold.getObjects().getSecond();\n\t\tVector2f normal = manifold.getCollisionNormal();\n\t\tVector2f contactA = manifold.getRelativeContactPointA();\n\t\tVector2f contactB = manifold.getRelativeContactPointB();\n\n\t\tfloat velAlongNormal = (B.getLinearVelocity().x - A.getLinearVelocity().x) * normal.x\n\t\t\t\t+ (B.getLinearVelocity().y - A.getLinearVelocity().y) * normal.y;\n\n\t\tif (velAlongNormal > 0)\n\t\t\treturn;\n\n\t\tfloat e = Math.min(A.getRestitution(), B.getRestitution());\n\t\tfloat crossA = VecMath.crossproduct(contactA, normal);\n\t\tfloat ca = crossA * crossA * A.getInverseInertia().getf(0, 0);\n\t\tfloat crossB = VecMath.crossproduct(contactB, normal);\n\t\tfloat cb = crossB * crossB * B.getInverseInertia().getf(0, 0);\n\t\tfloat j = (-(1 + e) * velAlongNormal) / (A.getInverseMass() + B.getInverseMass() + ca + cb);\n\n\t\timpulse2.set(normal);\n\t\timpulse2.scale(j);\n\t\tB.applyImpulse(impulse2, contactB);\n\t\timpulse2.negate();\n\t\tA.applyImpulse(impulse2, contactA);\n\n\t\t// Friction\n\t\t// Re-calculate rv after normal impulse!\n\t\tfloat rvx = B.getLinearVelocity().x - A.getLinearVelocity().x;\n\t\tfloat rvy = B.getLinearVelocity().y - A.getLinearVelocity().y;\n\n\t\t// tangent = rv - normal * (rv dot normal)\n\t\tfloat rvDotNormal = VecMath.dotproduct(rvx, rvy, normal.x, normal.y);\n\t\tfrictionImpulse2.set(rvx - normal.x * rvDotNormal, rvy - normal.y * rvDotNormal);\n\t\tif (frictionImpulse2.lengthSquared() > 0)\n\t\t\tfrictionImpulse2.normalize();\n\n\t\tfloat jt = (-VecMath.dotproduct(rvx, rvy, frictionImpulse2.x, frictionImpulse2.y))\n\t\t\t\t/ (A.getInverseMass() + B.getInverseMass());\n\n\t\tfloat mu = pythagoreanSolve(A.getStaticFriction(), B.getStaticFriction());\n\n\t\tif (Math.abs(jt) < j * mu) {\n\t\t\tfrictionImpulse2.scale(jt);\n\t\t} else {\n\t\t\tfloat dynamicFriction = pythagoreanSolve(A.getDynamicFriction(), B.getDynamicFriction());\n\t\t\tfrictionImpulse2.scale(-j * dynamicFriction);\n\t\t}\n\n\t\tB.applyImpulse(frictionImpulse2, contactB);\n\t\tfrictionImpulse2.negate();\n\t\tA.applyImpulse(frictionImpulse2, contactA);\n\n\t\t// Rolling friction (reduces difference in angular movement)\n\t\tfloat rav = (B.getAngularVelocity().x - A.getAngularVelocity().x)\n\t\t\t\t* pythagoreanSolve(A.getRollingFriction(), B.getRollingFriction());\n\t\tA.applyTorqueImpulse(rav);\n\t\trav = -rav;\n\t\tB.applyTorqueImpulse(rav);\n\t}", "title": "" }, { "docid": "1845b5bd2f13514ad8eca259112a8858", "score": "0.48808587", "text": "@Override\n public void simpleInitApp() {\n s = new Box(Vector3f.ZERO, 0.2f, 0.2f, 0.2f);// \"Planet\", 25, 25, 25);\n s.setBound(new BoundingBox());// .setModelBound(new BoundingSphere());\n s.updateBound();//.updateModelBound();\n //rootNode.attachChild(s);\n \n //Moons\n //moon1 = new Sphere(\"Moon 1\",25, 25, 10);\n //moon1.setModelBound(new BoundingSphere());\n //moon1.updateModelBound();\n //moon1.setLocalTranslation(40, 0, 0);\n //pivotNode1 = new Node(\"PivotNode 1\");\n \n player = new Geometry(\"Box\", s); // create cube geometry from the shape\n Material mat = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\"); // create a simple material\n mat.setColor(\"Color\", ColorRGBA.Blue); // set color of material to blue\n player.setMaterial(mat); // set the cube's material\n \n pivotNode1.attachChild(player);\n flyCam.setDragToRotate(true);\n /*moon2 = new Box(\"Moon 2\",new Vector3f(0,0,0), new Vector3f(20,20,20));\n //moon2 = new Box(\"Moon 2\",new Vector3f(-10,-10,-10), new Vector3f(10,10,10));\n moon2.setModelBound(new BoundingSphere());\n moon2.updateModelBound();\n //moon2.setLocalTranslation(60, 0, 0);\n pivotNode2 = new Node(\"PivotNode 2\");\n pivotNode2.attachChild(moon2);*/\n \n rootNode.attachChild(pivotNode1);\n //rootNode.attachChild(pivotNode2);\n }", "title": "" }, { "docid": "ce08f39b9ede40843879421a27365cfb", "score": "0.48758063", "text": "public void setBodyDefPos(float x, float y){\n this.bDef.position.set(x, y);\n }", "title": "" }, { "docid": "26444823d8638812596904ad8d0cb124", "score": "0.4862631", "text": "private void initPhysics() {\n\t\tif(PhysicsMaster.physicsWorld != null) {\r\n\t\t\tPhysicsMaster.physicsWorld.dispose();\r\n\t\t}\r\n\t\tPhysicsMaster.physicsWorld = new World(new Vector2(0,0),true);\r\n\t}", "title": "" }, { "docid": "80db963b6d7e0f7c7408c19c5e57d0c2", "score": "0.48601153", "text": "@Override\n protected void createFixture() {\n FixtureDef fixtureDef = new FixtureDef();\n CircleShape shape = new CircleShape();\n\n shape.setRadius(9 / GravityGuy.PPM);\n\n fixtureDef.shape = shape;\n fixtureDef.restitution = 0;\n fixtureDef.friction = 0;\n body.createFixture(fixtureDef);\n }", "title": "" }, { "docid": "28c32e83976f8e28fcd6087af9de1c5b", "score": "0.48572528", "text": "public void update() {\n\n\n // handle all the collisions starting at earliest time - if 2nd obj is null, then a wall collision\n // Collision manager also moves the objects.\n collider.collide(objs);\n for (CollisionManager.CollisionRec coll : collider.collisions) {\n //OPT set sound pitch based on size of the objects.\n float volume = Math.min((float) coll.impactV / 100, 1); //set the volume based on impact speed\n if (coll.objb == null) { //if a wall collision\n // if a wall collision, play sound and may void the coin\n if (sounds) parent.player.play(parent.clunkSound, volume, volume, 2, 0, 1);\n if (bounds) coll.obja.state=-1; // if boundary rules apply, set to void\n } else {\n if (sounds) parent.player.play(parent.clinkSound, volume, volume, 2, 0, 1);\n }\n }\n\n\n\n // Once the collisions have been handled, draw each object and apply friction\n boolean motion = false;\n for (MoveObj obj : objs) {\n\n //if outside the sidebars and boundary rules are on, then void the coin if already in playzone\n if (bounds && obj.state==MoveObj.STATE_PLAYED && (obj.x-coinR<sidebar || obj.x+coinR>screenW-sidebar)) obj.state=-1;\n\n if (obj.xSpeed != 0 || obj.ySpeed != 0) {\n motion = true;\n // if there is a streamID then adjust volume else start movement sound\n float volume = Math.min( (float)Math.sqrt(obj.xSpeed*obj.xSpeed+obj.ySpeed*obj.ySpeed) / 50, 1); //set the volume based on impact speed EFF const or calc\n\n if (obj.movingStreamID >0) {\n parent.player.setVolume(obj.movingStreamID,volume,volume);\n //adjust volume\n } else {\n if (sounds) obj.movingStreamID = parent.player.play(parent.slideSound, volume, volume, 1, -1, 1);\n }\n }\n else{\n //stop any playing sound\n if (obj.movingStreamID >0) {\n parent.player.stop(obj.movingStreamID);\n obj.movingStreamID=0;\n }\n }\n }\n\n // if AI, and there is a coin available, then fire it.\n // OPT - could place coin away from scoring coins\n\n if (inPlay != null && inPlay.state == MoveObj.STATE_PENDING && !motion && player[playerNum].AI) {\n motion=true;\n inPlay.state = 0;\n int Smin=player[playerNum].aim[0][0];\n int Smax=player[playerNum].aim[beds+1][1];\n int Soffset = (Smax-Smin)/player[playerNum].accuracy; // how much to potentially miss by percentage of range\n\n // Which bed to aim for? if I know how to hit the bed? the highest potential score? furthest away? pick one at random?\n // act tactically - aim for furthest beds with lowest score so far .\n int highestPotential = 0;\n int target = 0;\n int bedPotential = 0;\n for (int f = 1; f <= beds; f++) {\n // bedPotential is the available amount - if the scoremode is not traditional, this includes bed value\n bedPotential = (bedScore - potential(player[playerNum].score[f])) * (scoreMode > 0 ? f : 1);\n\n // if potential is exceeded or met, aim for this bed - NB: \"or met\" promotes further beds\n if (bedPotential>=highestPotential) {\n highestPotential=bedPotential;\n target=f;\n }\n\n // also cascade what we have learned about aim for previous or next beds - learn faster\n player[playerNum].aim[f][0]=Math.max(player[playerNum].aim[f-1][0],player[playerNum].aim[f][0]); // cascade mins up\n player[playerNum].aim[f][1]=Math.min(player[playerNum].aim[f+1][1],player[playerNum].aim[f][1]); // cascade max down (happens over several iterations)\n }\n\n Smin=player[playerNum].aim[target][0];\n Smax=player[playerNum].aim[target][1];\n //DEBUG Toast.makeText(getContext(), \"aiming for \" + target+\" with potential of \"+highestPotential, Toast.LENGTH_LONG).show();\n\n // Built in yspeed inaccuracy as %age of min and max OPT - check if screen size should impact this, or friction\n currSpeed = Math.min(player[playerNum].aim[beds+1][1],Math.max(player[playerNum].aim[0][0],(int) (Math.random()*(Smax-Smin+2*Soffset)+Smin-Soffset)));\n inPlay.xSpeed = Math.random()*screenW/100-screenW/200;\n inPlay.ySpeed = -currSpeed; //TODO - check if screen size impacts this, or friction\n inPlay.rSpeed = Math.random()*40-20; //randomise rotational TOTO consts\n // DEBUG Toast.makeText(getContext(), \"min \" + Smin+\" max \"+Smax + \" = \"+currSpeed, Toast.LENGTH_LONG).show();\n }\n\n\n // if ball in play exits the start zone, then it cannot be touched\n if (inPlay != null && inPlay.state == MoveObj.STATE_PENDING && inPlay.y < startZone) inPlay.state = MoveObj.STATE_PLAYED;\n\n // if motion stops, and still behind start zone,\n if (inPlay != null && !motion && inPlay.state != MoveObj.STATE_PENDING && inPlay.y>startZone) { // not even reached first line\n inPlay.state=MoveObj.STATE_PENDING; //put back into flick state\n inPlay.y=screenH - bedH; //move back to start\n // if no collisions and this is an AI, if this is a faster minimum speed, update minimum speed.\n if (player[playerNum].AI && !inPlay.hitObj && !inPlay.hitTop ) player[playerNum].aim[0][0] = Math.max(player[playerNum].aim[0][0],currSpeed);\n }\n\n //if there is a ball in play and all motion stops, calc intermediate or final scores and play new ball if final\n if (inPlay != null && !motion && inPlay.state != MoveObj.STATE_PENDING) {\n\n // if an AI player, get bed of current coin and set speed for a score or over and under-run\n if (player[playerNum].AI){\n\n float bedZone = nearestBed((int) inPlay.y);\n int bedZoneInt = (int)bedZone;\n if (bedZoneInt > beds || inPlay.hitTop) {\n player[playerNum].aim[beds+1][1] = Math.min(player[playerNum].aim[beds+1][1],currSpeed);\n }\n else if (!inPlay.hitObj && bedZoneInt > 0) { // if no collision and within beds then consider speed as a guide\n\n // if at lower end or higher end of bed, set the min or max for the bed (and potentially the board)\n // DEBUG Toast.makeText(getContext(), \"bedzoneInt is \"+bedZoneInt+\" bedzone is \"+bedZone+\" diff is \"+(bedZone - bedZoneInt), Toast.LENGTH_LONG).show();\n\n if ((float)(bedZone - bedZoneInt) < 0.5f) {\n player[playerNum].aim[bedZoneInt][0] = Math.max(player[playerNum].aim[bedZoneInt][0], currSpeed);\n player[playerNum].aim[bedZoneInt-1][1] = Math.min(player[playerNum].aim[bedZoneInt-1][1], currSpeed);\n } else {\n player[playerNum].aim[bedZoneInt][1] = Math.min(player[playerNum].aim[bedZoneInt][1], currSpeed);\n player[playerNum].aim[bedZoneInt + 1][0] = Math.max(player[playerNum].aim[bedZoneInt + 1][0], currSpeed);\n }\n }\n }\n\n // this coin has come to rest - set the current coin in play to null\n inPlay = null;\n\n //for each coin, determine new pending score - first set pending to zero each time coins come to rest\n for (int f = 0; f < player[0].score.length; f++) {\n player[0].score[f][1] = 0;\n player[1].score[f][1] = 0; /* set pending scores to zero TODO - const would be clearer ie. [1] is pending */\n }\n\n // examine each coin and if it is in a bed, add point correctly\n for (MoveObj obj : objs) {\n obj.hitSide=false; // take the opportunity to clear hit states\n obj.hitTop=false;\n obj.hitObj=false;\n\n //if the coin is within a bed, score it EFF this could be set as a property of the coin during update as already calculated for highlight\n int bed = getBed((int) obj.y);\n if (between(bed, 1, beds) && obj.state != MoveObj.STATE_VOID) { //don't include coin if voided.\n // if already three, increment opponent up to three, else increment player up to three (unless a win)\n if (!addPendingPoint(playerNum, bed, true)) addPendingPoint(1 - playerNum, bed, false);\n\n // if traditional scoring and all beds filled, declare winner if Bed Score achieved (NB: could be either player if a bed is bust)\n if (scoreMode == 0){\n if (potential(player[playerNum].score[beds + 1]) >= beds) winner = playerNum;\n } else{\n if (potential(player[0].score[0]) >= scoreMode) winner = 0;\n if (potential(player[1].score[0]) >= scoreMode) winner = 1;\n }\n // THIS IS A WIN !!!!! NB: we do not break the for loop!\n }\n }\n\n //reduce the coins left\n coinsLeft--;\n\n // if no coins left or game won, add on the current scores\n if (coinsLeft <= 0 || winner >= 0) {\n // potential scores become real scores. Iterate through each bed.\n for (int f = 0; f < player[0].score.length; f++) {\n player[0].score[f][0] = potential(player[0].score[f]);\n player[1].score[f][0] = potential(player[1].score[f]);\n player[0].score[f][1] = 0;\n player[1].score[f][1] = 0; /* set pending scores to zero TODO - const for this array index would be clearer */\n }\n }\n\n if (winner >= 0) {\n // OPT would be good to have a \"winning\" state where the coins and scores are animated\n //Toast.makeText(getContext(), getContext().getString(R.string.win_message,player[winner].name), Toast.LENGTH_LONG).show();\n //Snackbar.make(this, getContext().getString(R.string.newgame_message,player[winner].name), Snackbar.LENGTH_LONG).show();\n AlertDialog.Builder builder = new AlertDialog.Builder(parent);\n builder.setMessage(getContext().getString(R.string.win_message,player[winner].name))\n .setTitle(R.string.game_over)\n .setCancelable(false)\n .setPositiveButton(R.string.newgame_message,new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n // if this button is clicked, reset for new round and close dialog\n startRound();\n dialog.cancel();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n else\n if (coinsLeft <= 0) {\n // all coins used up - so end of turn - although in progressive, some could be returned\n // NB: as removing objects from list, must use iterator rather than objs.remove(obj)\n if (progressive) { // if progressive game version (also Oxfordshire rules or Follow-on) then scoring coins are returned\n Iterator itr = objs.iterator();\n while (itr.hasNext()) {\n MoveObj obj = (MoveObj) itr.next();\n if (between(getBed((int) obj.y), 1, beds) && obj.state != MoveObj.STATE_VOID) { //don't include coin if voided. TODO should also exclude AWAY scores , ie. if point scored for opponent\n itr.remove();\n coinsLeft++;\n }\n }\n\n if (coinsLeft>0) Toast.makeText(getContext(), getResources().getQuantityString(R.plurals.player_followOn_coins, coinsLeft, player[playerNum].name, coinsLeft), Toast.LENGTH_LONG).show(); // NB used string format plural resource\n }\n\n //if still no coins left (even after progressive rules applied) then next player\n if (coinsLeft <= 0) {\n playerNum = 1 - playerNum;\n coinsLeft = maxCoins;\n objs.clear();\n }\n }\n }\n\n // if no coin in play and no winner declared, add a coin\n if (inPlay == null && winner < 0) {\n // add a new coin - this could be first coin\n // TODO in combat mode we alternate playerNum\n inPlay = new MoveObj(11 + playerNum, coinR, screenW / 2f, screenH - bedH, Math.random()*screenW/25-screenW/50f, 0);\n inPlay.wallBounce=rebounds; //enable or disable wall bounce TODO - move into constructor\n objs.add(inPlay);\n if (sounds) parent.player.play(parent.placeSound,1,1,1,0,1);\n }\n\n }", "title": "" }, { "docid": "53b3985dc3c6d6ba9717b8bcf0d0bd02", "score": "0.48500276", "text": "public void applyConstraint() {\n\t\tk_d = k_damping;\n\t\t\n\t\t//Calculate total mass of cloth based on all points (includes mass of fixed points where w=0)\n\t\t//Calculate position and velocity of COM\n\t\tclothMass = 0.0;\n\t\txcm.set(0,0,0);\n\t\tvcm.set(0,0,0);\n\t\tfor(Particle p : getParticleSystem().P){\n\t\t\tclothMass+=p.m;\n\t\t\txcm.scaleAdd(p.m,p.x,xcm);\n\t\t\tvcm.scaleAdd(p.m,p.v,vcm);\n\t\t}\n\t\txcm.scale(1/clothMass);\n\t\tvcm.scale(1/clothMass);\n\t\t\n\t\t// Calculate L and I\n\t\tL.set(0,0,0);\n\t\trbar.setZero();\n\t\trbarT.setZero();\n\t\tI.setZero();\n\t\tfor(Particle p : getParticleSystem().P){\n\t\t\tr.sub(p.x, xcm);\n\t\t\tmV.scale(p.m,p.v);\n\t\t\ttempCross.cross(r, mV);\n\t\t\tL.add(tempCross);\n\t\t\t\n\t\t\t/**\n\t\t\t * Matrix3d reference notation\n\t\t\t * [ m00 m01 m02 ]\n\t\t\t * [ m10 m11 m12 ]\n\t\t\t * [ m20 m21 m22 ]\n\t\t\t * \n\t\t\t * Skew symmetric matrix reference \n\t\t\t * [ 0 -a3 a2 ]\n\t\t\t * [ a3 0 -a1 ]\n\t\t\t * [ -a2 a1 0 ]\n\t\t\t */\n\t\t\t\n\t\t\trbar.m01 = -r.z;\n\t\t\trbar.m02 = r.y;\n\t\t\trbar.m12 = -r.x;\n\t\t\trbar.m10 = r.z;\n\t\t\trbar.m20 = -r.y;\n\t\t\trbar.m21 = r.x;\n\t\t\t\n\t\t\trbarT.transpose(rbar);\n\t\t\t\n\t\t\tm3x3.mul(rbar,rbarT);\n\t\t\tm3x3.mul(p.m);\n\t\t\t\n\t\t\tI.add(m3x3);\n\t\t}\n\t\t\n\t\t//Calculate omega\n\t\tI.invert();\n\t\tI.transform(L,omega);\n\t\t\n\t\tdeltaV.set(0,0,0);\n\t\tfor (Particle p : getParticleSystem().P){\n\t\t\tr.sub(p.x, xcm);\n\t\t\ttempCross.cross(omega, r);\n\t\t\tdeltaV.add(vcm,tempCross);\n\t\t\tdeltaV.sub(p.v);\n\t\t\tp.v.scaleAdd(k_d,deltaV,p.v);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "558e77e9e67d9a8d727fabfbd68d4507", "score": "0.48475206", "text": "public void flock(ArrayList<Boid> boids) {\n PVector sep = separate(boids); //separation\n PVector ali = align(boids); //alignment\n PVector coh = cohesion(boids); //cohesion\n //arbitrarily weight these forces\n sep.mult(1.5f);\n ali.mult(1.0f);\n coh.mult(1.0f);\n //add the force vectors to accel\n applyForce(sep);\n applyForce(ali);\n applyForce(coh);\n }", "title": "" }, { "docid": "525c62ead58c925e0d1a938bbdadcccf", "score": "0.48386684", "text": "@Override\n protected void addShapes(final Body body) {\n PolygonShape shape = new PolygonShape();\n shape.set(new float[] {\n 0, 0,\n boxWidthMeters, 0,\n boxWidthMeters, boxHeightMeters,\n 0, boxHeightMeters\n });\n final FixtureDef fixtureDef = new FixtureDef();\n fixtureDef.shape = shape;\n fixtureDef.friction = 0;\n fixtureDef.filter.categoryBits = CollisionFiltering.CATEGORY_ARENA;\n fixtureDef.filter.maskBits = CollisionFiltering.MASK_ARENA;\n fixtureDef.density = 1f;\n body.createFixture(fixtureDef);\n shape.dispose();\n }", "title": "" }, { "docid": "96828c7ab0b38668a25ed2224c807d2e", "score": "0.48355982", "text": "public void init( ) {\r\n timer.reset( );\r\n Random r = new Random(42);\r\n \r\n Vector2D spawn = new Vector2D(boundaries[0].getA());\r\n spawn.add(new Vector2D(100, 100));\r\n balls = new Ball[6];\r\n balls[0] = new PingPongBall( p, timer, spawn.x, spawn.y );\r\n balls[0].setVelocity( new Vector2D( rf(r, -100, 100), rf(r, -100, 100) ) );\r\n spawn.add(new Vector2D(100, 0));\r\n balls[1] = new FoosBall( p, timer, spawn.x, spawn.y );\r\n balls[1].setVelocity( new Vector2D( rf(r, -100, 100), rf(r, -100, 100) ) );\r\n spawn.add(new Vector2D(100, 0));\r\n balls[2] = new FoosBall( p, timer, spawn.x, spawn.y );\r\n balls[2].setVelocity( new Vector2D( rf(r, -100, 100), rf(r, -100, 100) ) );\r\n spawn.add(new Vector2D(-200, 100));\r\n balls[3] = new BowlingBall( p, timer, spawn.x, spawn.y );\r\n balls[3].setVelocity( new Vector2D( rf(r, -100, 100), rf(r, -100, 100) ) );\r\n spawn.add(new Vector2D(100, 0));\r\n balls[4] = new FoosBall( p, timer, spawn.x, spawn.y );\r\n balls[4].setVelocity( new Vector2D( rf(r, -100, 100), rf(r, -100, 100) ) );\r\n spawn.add(new Vector2D(100, 0));\r\n balls[5] = new FoosBall( p, timer, spawn.x, spawn.y );\r\n balls[5].setVelocity( new Vector2D( rf(r, -100, 100), rf(r, -100, 100) ) );\r\n }", "title": "" }, { "docid": "d05c1c544aea29f9e84bb03b54d86b91", "score": "0.48323438", "text": "public Platformer(float x, float y,int shapeType, Vector2f dimensions, float mass, float restitution, \r\n\t\t\tfloat friction, Vector2f maxVelocity, boolean rotatable, int zOrder){\r\n\t\tthis.active=true;\r\n\t\tthis.shapeType=shapeType;\r\n\t\tif (shapeType == Constants.SHAPE_TYPE_CIRCLE){\r\n\t\t\tthis.body = new Body(new Circle(dimensions.x/2),mass);\r\n\t\t}else if (shapeType == Constants.SHAPE_TYPE_BOX){\r\n\t\t\tthis.body = new Body(new Box(dimensions.x,dimensions.y),mass);\r\n\t\t}\r\n\t\tbody.setUserData(this);\r\n\t\tbody.setRestitution(restitution);\r\n\t\tbody.setFriction(friction);\r\n\t\tbody.setMaxVelocity(maxVelocity.x,maxVelocity.y);\r\n\t\tbody.setRotatable(rotatable);\r\n\t\tsetPosition(x,y);\r\n\t\t\r\n\t\tthis.zOrder = zOrder;\r\n\t\tvelocity = new Vector2f(0,0);\r\n\t\taccel = Constants.ACCELERATION;\r\n\t\tonGround=false;\r\n\t\tjumping=false;\r\n\t\tfalling=false;\r\n\t\tmoving=false;\r\n\t\tdirection = DIR_LEFT;\r\n\t}", "title": "" }, { "docid": "e6eb1d38cb09927604ac9c6d09726122", "score": "0.482723", "text": "public RigidBody( Real mass , Matrix3 invMomentOfInertia , Vector3D initialPos , Vector3D initialVel , Vector3D initialAccel , Quaternion initialOrientation , Vector3D initialAngularVelocity , Real damping ) {\n\t\tthis( mass , invMomentOfInertia , initialPos , initialVel , initialAccel , initialOrientation , initialAngularVelocity );\n\t\tthis.m_linearDamping = damping;\n\t}", "title": "" }, { "docid": "e9cd0722c59a350ba65cb334d0acaa27", "score": "0.48268288", "text": "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n //this chunck of code should not be changes and MUST be included\n //in your solution\n super(600, 400, 1);\n for (int loop=0; loop<20; loop=loop+1)\n {\n addObject(new barrier(), 300, 20*loop);\n }\n addObject(new baby1(), 150, 200);\n addObject(new baby2(), 450, 200);\n //End of code that must be included in your solution\n\n addObject(new ball1(), 200,200);\n\n prepare();\n }", "title": "" }, { "docid": "ce9bd80db694dab8f85fda8560cb5079", "score": "0.48080057", "text": "public void Fire()\n {\n\n\t \n\t batch = new SpriteBatch();\n\t img = new Texture(\"fire1.png\");\n\t sprite = new Sprite(img);\n\t if(runningRight==true)\n\t sprite.setPosition(b2body.getPosition().x+2,b2body.getPosition().y+3);\n\t else\n\t\t sprite.setPosition((float) (b2body.getPosition().x+1.3),b2body.getPosition().y+3);\n\t BodyDef fire=new BodyDef();\n\t if(runningRight==true)\n\t fire.position.set((float) (sprite.getX()-1.8), sprite.getY()-3);\n\t else\n\t\t fire.position.set((float) (sprite.getX()-1.5), sprite.getY()-3);\n\n\t fire.type=BodyDef.BodyType.DynamicBody;\n\t b2body3=world.createBody(fire);\n\t CircleShape shape= new CircleShape();\n\t shape.setRadius(5/MegaMan.PPM);\n\t FixtureDef fdef1=new FixtureDef();\n\t fdef1.shape=shape;\n\t b2body3.createFixture(fdef1);\n\t shape.dispose();\n\t b2body3.setGravityScale(0);\n\t \n\n }", "title": "" }, { "docid": "1cada29ed7af0ba93c41f41c54726700", "score": "0.48002604", "text": "protected Shape2D() {\n this(Vector2D.ORIGIN);\n }", "title": "" }, { "docid": "6dfd9d7759333076a8df12a5defecb3c", "score": "0.47902748", "text": "public RigidBody( Real mass , Matrix3 invMomentOfInertia , Vector3D initialPos , Vector3D initialVel , Vector3D initialAccel , Real damping ) {\n\t\tthis( mass , invMomentOfInertia , initialPos , initialVel , initialAccel );\n\t\tthis.m_linearDamping = damping;\n\t}", "title": "" }, { "docid": "62fd45eb31e6b95abc11fee3bfd59524", "score": "0.47775975", "text": "public JoyStickController() {\n // Initialize each part of axis x and axis y\n\n aileron= new SimpleDoubleProperty();\n elevator= new SimpleDoubleProperty();\n rudder= new Slider();\n throttle= new Slider();\n }", "title": "" }, { "docid": "f6c53efb993294ae85f60a98031545f9", "score": "0.47746345", "text": "ObjectBody(World world, GameObject obj) {\n BodyDef bodyDef = new BodyDef();\n bodyDef.type = BodyDef.BodyType.DynamicBody;\n bodyDef.position.set(obj.getX(), obj.getY());\n bodyDef.angle = obj.getRotation();\n\n body = world.createBody(bodyDef);\n body.setUserData(obj);\n }", "title": "" }, { "docid": "32da89946b60b71b55165f90eab12a87", "score": "0.47746304", "text": "public void solveForwardDynamics(DriveDynamics dynamics)\n {\n final boolean left_stationary =\n Util.epsilonEquals(dynamics.wheel_velocity.left, 0.0) && Math.abs(dynamics.voltage.left) < left_transmission_.friction_voltage();\n final boolean right_stationary =\n Util.epsilonEquals(dynamics.wheel_velocity.right, 0.0) && Math.abs(dynamics.voltage.right) < right_transmission_.friction_voltage();\n if (left_stationary && right_stationary)\n {\n // Neither side breaks static friction, so we remain stationary.\n dynamics.wheel_torque.left = dynamics.wheel_torque.right = 0.0;\n dynamics.chassis_acceleration.linear = dynamics.chassis_acceleration.angular = 0.0;\n dynamics.wheel_acceleration.left = dynamics.wheel_acceleration.right = 0.0;\n dynamics.dcurvature = 0.0;\n return;\n }\n\n // Solve for motor torques generated on each side.\n dynamics.wheel_torque.left = left_transmission_.getTorqueForVoltage(dynamics.wheel_velocity.left, dynamics.voltage.left);\n dynamics.wheel_torque.right = right_transmission_.getTorqueForVoltage(dynamics.wheel_velocity.right, dynamics.voltage.right);\n\n // Add forces and torques about the center of mass.\n dynamics.chassis_acceleration.linear = (dynamics.wheel_torque.right + dynamics.wheel_torque.left) /\n (wheel_radius_ * mass_);\n // (Tr - Tl) / r_w * r_wb - drag * w = I * angular_accel\n dynamics.chassis_acceleration.angular =\n effective_wheelbase_radius_ * (dynamics.wheel_torque.right - dynamics.wheel_torque.left) / (wheel_radius_ * moi_)\n - dynamics.chassis_velocity.angular * angular_drag_ / moi_;\n\n // Solve for change in curvature from angular acceleration.\n // total angular accel = linear_accel * curvature + v^2 * dcurvature\n dynamics.dcurvature = (dynamics.chassis_acceleration.angular - dynamics.chassis_acceleration.linear * dynamics.curvature) /\n (dynamics.chassis_velocity.linear * dynamics.chassis_velocity.linear);\n if (Double.isNaN(dynamics.dcurvature))\n dynamics.dcurvature = 0.0;\n\n // Resolve chassis accelerations to each wheel.\n dynamics.wheel_acceleration.left = dynamics.chassis_acceleration.linear - dynamics.chassis_acceleration.angular * effective_wheelbase_radius_;\n dynamics.wheel_acceleration.right =\n dynamics.chassis_acceleration.linear + dynamics.chassis_acceleration.angular * effective_wheelbase_radius_;\n }", "title": "" }, { "docid": "af714cec0502583700f9b0398d2c813f", "score": "0.47667018", "text": "public Cylinder()\n\t{\n\t\tsuper(0);\n\t\t_axisPoint=new Point3D(0,0,0);\n\t\t_axisDirection=new Vector();\n\t}", "title": "" }, { "docid": "405dda56c9383e60f1ab577536ea6feb", "score": "0.4758885", "text": "public void init(World world){\n\t\t// only initialize if not intiialized\n\t\tif(!this.isInitialized){\n\t\t\t// create a body using the given body def\n\t\t\tbody = world.createBody(bodyDef);\n\t\t\t\n\t\t\t// set a pointer back to this object\n\t\t\tbody.setUserData(this);\n\t\t\t\n\t\t\t// if we're given fixture defs, use them to create body\n\t\t\tif(fixtureDefs != null){\n\t\t\t\tfor(FixtureDef def : fixtureDefs){\n\t\t\t\t\tbody.createFixture(def);\n\t\t\t\t\t//def.shape.dispose();\n\t\t\t\t}\n\t\t\t\tfixtureDefs.clear();\n\t\t\t\tfixtureDefs = null;\n\t\t\t\t\n\t\t\t// else we're given a single shape as the body\n\t\t\t} else if(shape != null){\n\t\t\t\tbody.createFixture(shape, density);\n\t\t\t\t//shape.dispose();\n\t\t\t\tshape = null;\n\t\t\t} else{\n\t\t\t\tGdx.app.error(LOGTAG, \"DynamicEntity not given enough parameters to initialize physics info!\");\n\t\t\t}\n\t\t\t\n\t\t\tisInitialized = true;\n\t\t}\n\t}", "title": "" }, { "docid": "61c17736b0b272060bed41e29f1393d7", "score": "0.47567174", "text": "@Override\n\tpublic void paintComponent(Graphics g)\n\t{\n\t\tsuper.paintComponent(g);\n\t\tGraphics2D g2d = (Graphics2D) g;\n\n\t\t// Translate the coordinate system\n\t\tg2d.translate(this.getWidth() / 2, this.getHeight() / 2);\n\n\t\tBody[] bodies = this.cluster.getBodies();\n\t\tint numBodies = bodies.length;\n\t\tPoint2D.Double[] pointArray = new Point2D.Double[numBodies];\n\n\t\t// Paint each body\n\t\tfor (int i = 0; i < numBodies; i++)\n\t\t{\n\t\t\tSpaceVector position = bodies[i].getPosition();\n\t\t\tdouble[] components = position.getComponents();\n\t\t\tdouble x = components[0];\n\t\t\tdouble y = components[1];\n\t\t\tdouble diameter = bodies[i].getDiameter();\n\n\t\t\t// This ArrayList keeps track of the position of the body at fixed intervals to\n\t\t\t// paint the motion path\n\t\t\tpointArray[i] = new Point2D.Double(x, -y);\n\n\t\t\t// Paint the body\n\t\t\tg2d.setColor(bodies[i].getColor());\n\t\t\tg2d.fill(new Ellipse2D.Double(x - diameter / 2, -y - diameter / 2, diameter, diameter));\n\n\t\t\t// Remove earlier points from the ArrayList\n\t\t\tif (this.points.size() > this.MAX_TRACE_POINTS)\n\t\t\t{\n\t\t\t\tpoints.remove(0);\n\t\t\t}\n\n\t\t\t// Create a GeneralPath that passes through each point in the ArrayList\n\t\t\tif (this.showPaths && points.size() >= 2)\n\t\t\t{\n\t\t\t\tGeneralPath path = new GeneralPath(GeneralPath.WIND_EVEN_ODD, this.points.size());\n\t\t\t\tpath.moveTo(this.points.get(0)[i].getX(), this.points.get(0)[i].getY());\n\n\t\t\t\tfor (int j = 1; j < this.points.size(); j++)\n\t\t\t\t{\n\t\t\t\t\tpath.lineTo(this.points.get(j)[i].getX(), this.points.get(j)[i].getY());\n\t\t\t\t}\n\n\t\t\t\tg2d.draw(path);\n\t\t\t}\n\n\t\t\t// Create a light border around the body\n\t\t\tg2d.setColor(Color.LIGHT_GRAY);\n\t\t\tg2d.draw(new Ellipse2D.Double(x - diameter / 2, -y - diameter / 2, diameter, diameter));\n\t\t}\n\n\t\t// Add the array corresponding to the locations of each body to the ArrayList\n\t\tthis.points.add(pointArray);\n\t}", "title": "" }, { "docid": "167925f9bbc2cb2a7b6f3c8ca6af0cbb", "score": "0.475321", "text": "@Override\n public boolean begin(Window window, FileSystem fileSystem) {\n \n // Store context\n this.window = window;\n world = new World();\n world.setGravity(new Vector(0.0f, -9.81f));\n\n // Create block\n float blockWidth = 10.0f, blockHeight = 1.0f;\n EntityBuilder blockBuilder = world.createEntityBuilder();\n blockBuilder.setFixed(true);\n blockBuilder.setPosition(new Vector(-5.0f, -1.0f));\n block = blockBuilder.build();\n\n // Create and attach block fixture\n PartBuilder blockPartBuilder = block.createPartBuilder();\n Polygon blockPolygon = new Polygon(\n new Vector(0.0f, 0.0f),\n new Vector(blockWidth, 0.0f),\n new Vector(blockWidth, blockHeight),\n new Vector(0.0f, blockHeight)\n );\n blockPartBuilder.setShape(blockPolygon);\n blockPartBuilder.build();\n\n // Create and attach graphics object to block\n blockGraphics = new ImageGraphics(\"stone.broken.4.png\", blockWidth, blockHeight);\n blockGraphics.setParent(block);\n\n // Create ball\n float ballRadius = 0.5f;\n EntityBuilder ballBuilder = world.createEntityBuilder();\n ballBuilder.setFixed(false);\n ballBuilder.setPosition(new Vector(0.0f, 2.0f));\n ball = ballBuilder.build();\n\n // Create and attach ball fixture\n PartBuilder ballPartBuilder = ball.createPartBuilder();\n Circle ballCircle = new Circle(ballRadius);\n ballPartBuilder.setShape(ballCircle);\n ballPartBuilder.build();\n\n // Create and attach graphics object to ball\n ballGraphics = new ShapeGraphics(ballCircle, Color.BLUE, Color.BLUE, 0.1f, 1.0f, 0);\n ballGraphics.setParent(ball);\n\n // Set up contact listener\n contactListener = new BasicContactListener();\n ball.addContactListener(contactListener);\n\n return true;\n }", "title": "" }, { "docid": "12e1d7a2cbdf2621c23a46ef1177e9c9", "score": "0.47468704", "text": "public void braking() {\n Vector2 vel = body.getLinearVelocity();\n body.setLinearVelocity(vel.x * 0.9f, vel.y);\n }", "title": "" }, { "docid": "74b090b504dc359d31b80066059cea7c", "score": "0.47378457", "text": "LWCJoint createLWCJoint();", "title": "" }, { "docid": "02acefea0bf2fb4b0b35930a74397d12", "score": "0.47364876", "text": "void dJointSetSliderAxisDelta ( double x, double y, double z, \n\t\t\tdouble dx, double dy, double dz )\n\t{\n\t\tsetAxes ( x, y, z, axis1, null );\n\n\t\tcomputeOffset();\n\t\t\n\t\t// compute initial relative rotation body1 . body2, or env . body1\n\t\t// also compute center of body1 w.r.t body 2\n\t if ( !(node[1].body != null) )\n\t {\n//\t offset[0] += dx;\n//\t offset[1] += dy;\n//\t offset[2] += dz;\n\t offset.add(dx, dy, dz);\n\t }\n\n\t\tcomputeInitialRelativeRotation();\n\t}", "title": "" }, { "docid": "faef4fa91c2bf95a97051bb01f224fd3", "score": "0.47355407", "text": "public static void update(){\n //Solendoids\n IO.catapult.set(JS_IO.btnFireShooter.isDown()); //5, GP 6 (RB)\n IO.flipperDn.set(JS_IO.btnFlipper.isDown()); //4, GP 1 (A)\n IO.antlerDn.set(JS_IO.btnAntler.isDown()); //1, GP 2 (B)\n\n IO.liftExt.set(JS_IO.btnClimbExt.isDown()); //2, GP 9 (JLB)\n IO.snorfExtSV.set(JS_IO.btnToggleSnorf.isDown()); //3, GP 5 (LB)\n\n IO.frntLedLift1.set(JS_IO.povSnorfInOut.is0()); //6, GP pov up\n IO.frntLedLift2.set(JS_IO.povSnorfInOut.is90()); //0, GP pov right\n IO.frntLedSnorf.set(JS_IO.povSnorfInOut.is180()); //7, GP pov dn\n\n //Motors\n IO.leftDrv.set(-JS_IO.axLeftY.get()); \n //0. \n IO.rightDrv.set(JS_IO.axRightY.get()); //1. \n IO.snorfMtr.set(JS_IO.btnForwardSnorfler.isDown() ? 1.0 : //3, GP 4 (Y)\n JS_IO.btnReverseSnorfler.isDown() ? -1.0 : 0.0);//3, GP 3 (X)\n // !!!----The following lifter MUST NOT exceed end stops ----!!!\n IO.liftUP.set(JS_IO.btnClimbTop.isDown() ? 1.0 : //2, GP 7 (Reset)\n JS_IO.btnClimbBot.isDown() ? -1.0 : 0.0); //2, GP 8 (Back)\n \n //Sensors\n SmartDashboard.putBoolean(\"Test/0. Snorf has ball\", IO.snorfHasBall.get()); //DIO 0\n SmartDashboard.putBoolean(\"Test/1. Flip ES UP\", IO.fliperIsUp.get()); //DIO 1\n SmartDashboard.putBoolean(\"Test/2. Flip ES Dn\", IO.fliperIsDn.get()); //DIO 2\n SmartDashboard.putBoolean(\"Test/3. Lift ES Top\", IO.liftTopStop.get()); //DIO 3\n SmartDashboard.putBoolean(\"Test/4. Lift ES Mid\", IO.liftMidSnsr.get()); //DIO 4\n SmartDashboard.putBoolean(\"Test/5. Lift ES UP\", IO.liftBotStop.get()); //DIO 5\n SmartDashboard.putNumber( \"Test/7. Compressor Motor\", IO.pdp.getCurrent(7));//auto PDP 7\n\n SmartDashboard.putNumber(\"Test/10. Right Motor A\", IO.pdp.getCurrent(0)); //1 PDP 1\n SmartDashboard.putNumber(\"Test/11. Left Motor A\", IO.pdp.getCurrent(1)); //0 PDP 0\n SmartDashboard.putNumber(\"Test/14. Snorfler Motor\", IO.pdp.getCurrent(14)); //3 PDP 14\n SmartDashboard.putNumber(\"Test/15. Lifter Motor\", IO.pdp.getCurrent(15)); //2 PDP 15\n }", "title": "" }, { "docid": "20e00e0810c2f6db2a98c28cd24a11dd", "score": "0.47334433", "text": "public SteerableEntity(Body b){\n this(new Vector2(0,0),0f,0f);\n \n this.body = b;\n }", "title": "" }, { "docid": "7578740af8328753352f9cb594a7749b", "score": "0.47317663", "text": "public interface DObject {\n\n\t/**\n\t * Gets the hit points of this DObject\n\t * \n\t * @return The hit points of this DObject\n\t */\n\tdouble getHP();\n\n\t/**\n\t * Sets the hit points of this DObject\n\t * \n\t * @param hp The new hit points of this DObject\n\t */\n\tvoid setHP(double hp);\n\n\t/**\n\t * Gets the position of this DObject as a {@link Vector}\n\t * \n\t * @return The position of this DObject\n\t */\n\tVector getPosition();\n\n\t/**\n\t * Sets the position of this DObject as a {@link Vector}\n\t * \n\t * @param position The new position of this DObject\n\t */\n\tvoid setPosition(Vector position);\n\n\t/**\n\t * Gets the velocity of this DObject as a {@link Vector}\n\t * \n\t * @return The velocity of this DObject\n\t */\n\tVector getVelocity();\n\n\t/**\n\t * Sets the velocity of this DObject as a {@link Vector}\n\t * \n\t * @param velocity The new velocity of this DObject\n\t */\n\tvoid setVelocity(Vector velocity);\n\n\t/**\n\t * Applies a {@link Vector} force on this object at the specified {@link Vector}\n\t * position\n\t * \n\t * @param force the force applied\n\t * @param position the position of the applied force relative to the origin of\n\t * this DObject\n\t */\n\tvoid applyForce(Vector force, Vector position);\t\n\n\tvoid applyTorque(double torque);\n\n\t/**\n\t * Gets the x position of this DObject\n\t * \n\t * @return The x coordinate of this DObject\n\t */\n\tdouble getX();\n\n\t/**\n\t * Gets the y position of this DObject\n\t * \n\t * @return The y coordinate of this DObject\n\t */\n\tdouble getY();\n\n\t/**\n\t * Sets the x position of this DObject\n\t * \n\t * @param x The new x coordinate\n\t */\n\tvoid setX(double x);\n\n\t/**\n\t * Sets the y position of this DObject\n\t * \n\t * @param y The new y coordinate\n\t */\n\tvoid setY(double y);\n\n\t/**\n\t * Gets the angle of this DObject\n\t * \n\t * @return The angle of this DObject\n\t */\n\tdouble getAngle();\n\n\t/**\n\t * Sets the angle of this DObject\n\t * \n\t * @param angle The new angle\n\t */\n\tvoid setAngle(double angle);\n\n\t/**\n\t * Gets the mass of this DObject\n\t * \n\t * @return The mass of this DObject\n\t */\n\tdouble getMass();\n\n\t/**\n\t * Sets the mass of this DObject\n\t * \n\t * @param mass The new mass\n\t */\n\tvoid setMass(double mass);\n\n\t/**\n\t * Gets the moment of inertia of this DObject\n\t * \n\t * @return The moment of inertia of this DObject\n\t */\n\tdouble getI();\n\n\t/**\n\t * Gets the angular velocity of this DObject\n\t * \n\t * @return The angular velocity of this DObject\n\t */\n\tdouble getAngularVelocity();\n\n\t/**\n\t * Sets the angular velocity of this DObject\n\t * \n\t * @param velocity The new angular velocity\n\t */\n\tvoid setAngularVelocity(double velocity);\n\n\t/**\n\t * Gets the temperature of this DObject\n\t * \n\t * @return The temperature of this DObject\n\t */\n\tdouble getTemperature();\n\n\t/**\n\t * Sets the temperature of this DObject\n\t * \n\t * @param temperature The new temperature\n\t */\n\tvoid setTemperature(double temperature);\n\n\t/**\n\t * Updates this object by one interval\n\t */\n\tvoid update();\n\n\t/**\n\t * Calculates the effects of the collision between DObjects\n\t * \n\t * @param obj The DObject being collided with\n\t * @param e The location of the collision\n\t */\n\tvoid impact(DObject obj, CollisionEvent e);\n\n\t/**\n\t * Checks if this object collides with the specified DObject\n\t * \n\t * @param objects The object possibly being collided with\n\t * @return If there is a collision\n\t */\n\tboolean hits(DObject object);\n\n\tboolean checkForDestruction();\n\n\t/**\n\t * Draws this object\n\t * \n\t * @param g The graphics object used to draw this object\n\t */\n\tvoid draw(Graphics g);\n\n\t/**\n\t * Gets the environment this DObject is contained in\n\t * \n\t * @return The environment of this DObject\n\t */\n\tPhysicsBox getEnvironment();\n\n\t/**\n\t * Sets the environment of this DObject\n\t * \n\t * @param b The new environment\n\t */\n\tvoid setEnvironment(PhysicsBox b);\n\n}", "title": "" }, { "docid": "ced26713281a42d1c94f4560b7e6622b", "score": "0.47274604", "text": "public Body(Body b) {\n\t\tmyXPos = b.myXPos;\n\t\tmyYPos = b.myYPos;\n\t\tmyXVel = b.myXVel;\n\t\tmyYVel = b.myYVel;\n\t\tmyMass = b.myMass;\n\t\tmyFileName = b.myFileName;\n\t}", "title": "" }, { "docid": "9d4eb7b866803a58ac0fef6fd4d57966", "score": "0.472423", "text": "@Override\n\tpublic void act( Real duration ) {\n\t\tVector3D lastFrameAcceleration = this.getAcceleration().add( this.getNetForce().multiply( this.getInverseMass() ) );\n\t\tthis.setLastFrameAcceleration( lastFrameAcceleration );\n\t\t\n\t\t//calculate linear acceleration\n\t\tVector3D linearAcceleration = this.getNetForce().multiply( this.getInverseMass() );\n\t\t\n\t\t//calculate angular acceleration from torque = I * alpha\n\t\t//or alpha = torque / I\n\t\tVector3D angularAcceleration = this.m_invMomentOfInertia.transform( this.getNetTorque() );\n\t\t\n\t\t//adjust linear velocity\n\t\tVector3D deltaV = linearAcceleration.multiply( duration );\n\t\tthis.setVelocity( this.getVelocity().add( deltaV ) );\n\t\t\n\t\t//adjust angular velocity\n\t\tthis.setAngularVelocity( this.getAngularVelocity().add( angularAcceleration.multiply( duration ) ) );\n\t\t\n\t\t//add linear drag\n\t\tthis.setVelocity( this.getVelocity().multiply( this.getDamping().pow( duration ) ) );\n\t\t\n\t\t//add rotational drag\n\t\tthis.setAngularVelocity( this.getAngularVelocity().multiply( this.m_angularDamping.pow( duration ) ) );\n\t\t\n\t\t//modify linear position\n\t\tVector3D deltaPos = this.getVelocity().multiply( duration );\n\t\tthis.setPosition( this.getPosition().add( deltaPos ) );\n\t\t\n\t\t//modify angular position\n\t\tVector3D deltaTheta = this.getAngularVelocity().multiply( duration );\n\t\tthis.setOrientation( this.getOrientation().add( deltaTheta ) );\n\n\t\t//clear net force and torque\n\t\tclearAccumulators();\n\t\t\n\t\t//determine the kinetic energy if this RigidBody may need to be\n\t\t//put to sleep\n\t\tif ( this.m_canSleep ) {\n\t\t\t\n\t\t\t//calculate kinetic energy\n\t\t\tReal kineticEnergy = this.getVelocity().magnitudeSquared().add( this.getAngularVelocity().magnitudeSquared() );\n\t\t\t\n\t\t\t//determine the bias to determine a weighted average of\n\t\t\t//recent kinetic energies to figure out\n\t\t\t//if the RigidBody is approaching a steady velocity\n\t\t\tReal bias = Real.ONE_HALF.pow( duration );\n\t\t\tthis.m_motion = bias.multiply( this.m_motion ).add( Real.ONE.subtract( bias ).multiply( kineticEnergy ) );\n\t\t\t\n\t\t\t//determine if the RigidBody shoud be put to sleep\n\t\t\tif ( this.m_motion.compareTo( this.m_sleepThreshold ) < 0 ) {\n\t\t\t\tthis.setAsleep();\n\t\t\t\t\n\t\t\t//prevent the weighted average from skyrocketing\n\t\t\t} else if ( this.m_motion.compareTo( this.m_sleepThreshold.multiply( Real.TEN ) ) > 0 ) {\n\t\t\t\tthis.m_motion = this.m_sleepThreshold.multiply( Real.TEN );\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9c4b5f035fa0673eaf623196e45be763", "score": "0.47117832", "text": "@Override\n public void robotInit() {\n left1 = new CANSparkMax(1, MotorType.kBrushless);\n // left1.setInverted(false);\n left2 = new CANSparkMax(2, MotorType.kBrushless);\n // left2.follow(left1, false);\n left3 = new CANSparkMax(3, MotorType.kBrushless);\n // left2.follow(left1, false);\n right1 = new CANSparkMax(4, MotorType.kBrushless);\n // right1.setInverted(true);\n right2 = new CANSparkMax(5, MotorType.kBrushless);\n // right2.follow(right1, false);\n right3 = new CANSparkMax(6, MotorType.kBrushless);\n // right3.follow(right1, false);\n // elevator1 = new CANSparkMax(12, MotorType.kBrushless);\n // // elevator1.setInverted(false);\n // elevator2 = new CANSparkMax(13, MotorType.kBrushless);\n // elevator2.follow(elevator1, true);\n shoot1 = new CANSparkMax(10, MotorType.kBrushless);\n // shoot1.setInverted(false);\n shoot2 = new CANSparkMax(11, MotorType.kBrushless);\n // shoot2.follow(shoot1, false);\n paddy = new CANSparkMax(9, MotorType.kBrushless);\n // paddy.setInverted(false);\n funnel = new CANSparkMax(7, MotorType.kBrushless);\n // funnel.setInverted(false);\n conveyer = new CANSparkMax(8, MotorType.kBrushless);\n // conveyer.setInverted(false);\n\n leftIntake = new TalonSRX(14);\n // leftIntake.setInverted(InvertType.InvertMotorOutput);\n rightIntake = new TalonSRX(15);\n // rightIntake.follow(leftIntake);\n // rightIntake.setInverted(InvertType.OpposeMaster);\n\n intakePiston1 = new DoubleSolenoid(0,1);\n intakePiston2 = new DoubleSolenoid(2,3);\n\n beamTrip1 = new DigitalInput(0);\n beamTrip2 = new DigitalInput(1);\n beamTrip3 = new DigitalInput(2);\n beamTrip4 = new DigitalInput(3);\n beamTrip5 = new DigitalInput(4);\n beamTrip6 = new DigitalInput(5);\n\n compressor = new Compressor();\n compressor.start();\n\n // Instantiate our RobotContainer. This will perform all our button bindings, and put our\n // autonomous chooser on the dashboard.\n m_robotContainer = new RobotContainer();\n }", "title": "" }, { "docid": "3777c131a851b604e6eea913777aa17a", "score": "0.47108757", "text": "@Override\n public void init() {\n robot = new RobotRevAmped2(this,\n false);\n drive = robot.getMecanumDrive();\n\n this.gamepad1.reset();\n this.gamepad1.setJoystickDeadzone(0.15f);\n this.gamepad2.reset();\n this.gamepad2.setJoystickDeadzone(0.15f);\n }", "title": "" }, { "docid": "567a45e26857d1b486e4c1cc0a085de9", "score": "0.4705162", "text": "private void buildLeg(boolean hind) {\n\t\tboolean skeleton = breed == EnumDragonBreed.GHOST;\n\n\t\tfloat baseLength = 26;\n\t\tString baseName = hind ? \"hind\" : \"fore\";\n\n\t\t// thigh variables\n\t\tfloat thighPosX = -11;\n\t\tfloat thighPosY = 18;\n\t\tfloat thighPosZ = 4;\n\n\t\tint thighThick = 9 - (skeleton ? 2 : 0);\n\t\tint thighLength = (int) (baseLength * (hind ? 0.9f : 0.77f));\n\n\t\tif (hind) {\n\t\t\tthighThick++;\n\t\t\tthighPosY -= 5;\n\t\t}\n\n\t\tfloat thighOfs = -(thighThick / 2f);\n\n\t\tModelPart thigh = new ModelPart(this, baseName + \"thigh\");\n\t\tthigh.setRotationPoint(thighPosX, thighPosY, thighPosZ);\n\t\tthigh.addBox(\"main\", thighOfs, thighOfs, thighOfs, thighThick, thighLength, thighThick);\n\n\t\t// crus variables\n\t\tfloat crusPosX = 0;\n\t\tfloat crusPosY = thighLength + thighOfs;\n\t\tfloat crusPosZ = 0;\n\n\t\tint crusThick = thighThick - 2;\n\t\tint crusLength = (int) (baseLength * (hind ? 0.7f : 0.8f));\n\n\t\tif (hind) {\n\t\t\tcrusThick--;\n\t\t\tcrusLength -= 2;\n\t\t}\n\n\t\tfloat crusOfs = -(crusThick / 2f);\n\n\t\tModelPart crus = new ModelPart(this, baseName + \"crus\");\n\t\tcrus.setRotationPoint(crusPosX, crusPosY, crusPosZ);\n\t\tcrus.addBox(\"main\", crusOfs, crusOfs, crusOfs, crusThick, crusLength, crusThick);\n\t\tthigh.addChild(crus);\n\n\t\t// foot variables\n\t\tfloat footPosX = 0;\n\t\tfloat footPosY = crusLength + (crusOfs / 2f);\n\t\tfloat footPosZ = 0;\n\n\t\tint footWidth = crusThick + 2 + (skeleton ? 2 : 0);\n\t\tint footHeight = 4;\n\t\tint footLength = (int) (baseLength * (hind ? 0.67f : 0.34f));\n\n\t\tfloat footOfsX = -(footWidth / 2f);\n\t\tfloat footOfsY = -(footHeight / 2f);\n\t\tfloat footOfsZ = footLength * -0.75f;\n\n\t\tModelPart foot = new ModelPart(this, baseName + \"foot\");\n\t\tfoot.setRotationPoint(footPosX, footPosY, footPosZ);\n\t\tfoot.addBox(\"main\", footOfsX, footOfsY, footOfsZ, footWidth, footHeight, footLength);\n\t\tcrus.addChild(foot);\n\n\t\t// toe variables\n\t\tint toeWidth = footWidth;\n\t\tint toeHeight = footHeight;\n\t\tint toeLength = (int) (baseLength * (hind ? 0.27f : 0.33f));\n\n\t\tfloat toePosX = 0;\n\t\tfloat toePosY = 0;\n\t\tfloat toePosZ = footOfsZ - (footOfsY / 2f);\n\n\t\tfloat toeOfsX = -(toeWidth / 2f);\n\t\tfloat toeOfsY = -(toeHeight / 2f);\n\t\tfloat toeOfsZ = -toeLength;\n\n\t\tModelPart toe = new ModelPart(this, baseName + \"toe\");\n\t\ttoe.setRotationPoint(toePosX, toePosY, toePosZ);\n\t\ttoe.addBox(\"main\", toeOfsX, toeOfsY, toeOfsZ, toeWidth, toeHeight, toeLength);\n\t\tfoot.addChild(toe);\n\n\t\tif (hind) {\n\t\t\thindthigh = thigh;\n\t\t\thindcrus = crus;\n\t\t\thindfoot = foot;\n\t\t\thindtoe = toe;\n\t\t} else {\n\t\t\tforethigh = thigh;\n\t\t\tforecrus = crus;\n\t\t\tforefoot = foot;\n\t\t\tforetoe = toe;\n\t\t}\n\t}", "title": "" }, { "docid": "6cf6981e2dec568b89a46e408a67e3d5", "score": "0.47049883", "text": "public static void main(String[] args) {\n System.setProperty(\"j3d.implicitAntialiasing\", \"true\");\n environment = new EnvironmentDuarte();\n \n FileServer mainFileServer = FileServer.getInstance();\n RobotFactory robotFactory = RobotFactory.getInstance();\n \n environment.add(robotFactory.createRobot(new Vector3d(7,0,-5), \"MapperBot1\", mainFileServer));\n environment.add(robotFactory.createRobot(new Vector3d(-7,0,5), \"MapperBot2\", mainFileServer));\n\n // here we create an instance of the whole Simbad simulator and we assign the newly created environment \n Simbad frame = new Simbad(environment, false);\n frame.update(frame.getGraphics());\n \n }", "title": "" }, { "docid": "b325b47b024c0d65c6d86b69a4882d98", "score": "0.47042164", "text": "public void createSensor() {\n CircleShape shape = new CircleShape();\n float padding = 300;\n shape.setRadius(getWidth() + padding / 32f);\n shape.setPosition(new Vector2(getCenterX(), getCenterY()));\n\n FixtureDef fixtureDef = new FixtureDef();\n fixtureDef.shape = shape;\n fixtureDef.isSensor = true;\n fixtureDef.filter.categoryBits = mCategoryBit;\n fixtureDef.filter.maskBits = mMaskBit;\n body.createFixture(fixtureDef);\n }", "title": "" }, { "docid": "d1a759dac6425947fa5a81fc09c11f7a", "score": "0.47028613", "text": "public CollisionDetector (World world, String filename, final RabbitRun game)\n\t{\n\t\tthis.game= game; \n\t\tmapLoader= new TmxMapLoader (); \n\t\tthis.world = world; \n\t\tMapObjects wall = mapLoader.load (filename).getLayers().get (\"ground\").getObjects (); \n\t\tMapObjects obstacles = mapLoader.load(filename).getLayers ().get (\"collisions\").getObjects(); \n\t\tobstacleArr= new Body[obstacles.getCount ()];\n\t\t\n\t\tBodyDef groundDef = new BodyDef ();\n\t\tgroundDef.fixedRotation =true; \n\t\tgroundDef.type= BodyDef.BodyType.StaticBody; \n\t\tgroundDef.position.set(new Vector2(0, 0f));\n\t\tground = world.createBody(groundDef); \n\t\tShape shape; \n\t\tMapObject m= wall.get(0); \n\t\t//1\n\t\tif (m instanceof PolylineMapObject)\n\t\t{\n\t\t\tshape = getChain ((PolylineMapObject) m); \n\t\t}\n\t\telse \n\t\t{\n\t\t\tthrow (new ClassCastException(\"something went wrong\")); \n\t\t}\n\t\t FixtureDef fix = new FixtureDef();\n fix.density = 1;\n fix.shape = shape;\n fix.restitution = 0;\n ground.createFixture(fix);\n shape.dispose();\n\t \n //A\n\t\tfor (int i = 0; i< obstacles.getCount (); i++ )\n\t\t{\n BodyDef collDef = new BodyDef();\n collDef.fixedRotation = true; \n collDef.type = BodyDef.BodyType.StaticBody; \n collDef.position.set(new Vector2(0, 0f));\n obstacleArr[i] = world.createBody(collDef); \n Shape shape2; \n MapObject m2 = obstacles.get(i);\n //2\n if (m2 instanceof RectangleMapObject )\n \t\t{\n \t\t\tshape2 = getRectProp ((RectangleMapObject) m2); \n \t\t}\n \t\telse \n \t\t{\n \t\t\tthrow (new ClassCastException(\"something went wrong\")); \n \t\t}\n FixtureDef fix2 = new FixtureDef();\n fix2.density = 1f;\n fix2.shape = shape2;\n fix2.restitution = 0;\n obstacleArr[i].createFixture(fix2);\n shape2.dispose();\n\t\t}\n\t}", "title": "" }, { "docid": "a6ec7d09e715c5fd3a82f4cd252a5b53", "score": "0.46947032", "text": "private void drawStickBody(GL2 gl, GLU glu, GLUT glut) {\n gl.glPushMatrix();\n {\n\n gl.glTranslated(0, 0, hipheight);\n\n gl.glPushMatrix();\n {\n\n gl.glTranslated(-1 * DISTANCE_BETWEEN_LEG_AND_X_AXIS, 0, 0);\n\n gl.glRotated(90, 0, 1, 0);\n\n glut.glutSolidCylinder(SKELETON_LIMB_RADIUS, SKELETON_HORIZONTAL_HIPBONE_LENGTH, 16, 16);\n\n }\n gl.glPopMatrix();\n\n glut.glutSolidCylinder(SKELETON_LIMB_RADIUS, SKELETON_BACKBONE_LENGTH, 16, 16);\n\n gl.glTranslated(0, 0, SKELETON_BACKBONE_LENGTH);\n\n gl.glPushMatrix();\n {\n\n gl.glTranslated(-1 * DISTANCE_BETWEEN_SHOUDLER_AND_X_AXIS, 0, 0);\n\n glut.glutSolidSphere(SKELETON_JOINT_RADIUS, 16, 16);\n\n gl.glRotated(90, 0, 1, 0);\n\n glut.glutSolidCylinder(SKELETON_LIMB_RADIUS, SKELETON_HORIZONTAL_SHOULDER_LENGTH, 16, 16);\n\n gl.glTranslated(0, 0, .2 * SIZE);\n\n glut.glutSolidSphere(SKELETON_JOINT_RADIUS, 16, 16);\n }\n gl.glPopMatrix();\n }\n gl.glPopMatrix();\n }", "title": "" }, { "docid": "1b7c16ea5342b661971089ddb0b44332", "score": "0.46943492", "text": "@Override\n public void robotInit() {\n rollers = new CANSparkMax(-1, MotorType.kBrushless);\n\n //makes new motor at port 13\n shooterMotor = new WPI_VictorSPX(-1);\n\n //makes four new motors for the drivetrain\n //Note: -1 is used as a placeholder for the port\n rightFrontMotor = new WPI_TalonSRX(-1);\n rightRearMotor = new WPI_TalonSRX(-1);\n leftFrontMotor = new WPI_TalonSRX(-1);\n leftRearMotor = new WPI_TalonSRX(-1);\n\n //inverts the motor\n shooterMotor.setInverted(true);\n\n //makes motor coast to a stop when given speed of 0\n //can also be set to NeutralMode.Brake to make motor stop when given speed of 0\n shooterMotor.setNeutralMode(NeutralMode.Coast);\n\n //speed controller groups allow us to group motors together\n //so instead of controlling the right front and rear motors separately, we can control them together\n //it takes the motors being grouped together as arguments (order doesn't matter)\n rightMotors = new SpeedControllerGroup(rightFrontMotor, rightRearMotor);\n leftMotors = new SpeedControllerGroup(leftFrontMotor, leftRearMotor);\n\n //differential drive acts as a further method of grouping the left and right side of the motors\n //it takes two speed controllers as arguments (it must be the left one then the right)\n differentialDrive = new DifferentialDrive(leftMotors, rightMotors);\n\n //makes new solenoid (for piston)\n floop = new Solenoid(-1);\n\n gamepad = new Gamepad(0);\n\n IRsensor = new DigitalInput(-1);\n limitSwitch = new DigitalInput(-1);\n lineSensor = new AnalogInput(-1);\n\n encoder = new Encoder(-1, -1);\n\n //encoders receive evenly spaced out pulses as wheels turn\n //this sets distance wheel travels at each pulse\n //usually something like circumference/pulses per revolution\n encoder.setDistancePerPulse(6*Math.PI*24/60/1024); //updated 11/13/19\n\n timer = new Timer();\n }", "title": "" }, { "docid": "3dc55473ae9c60c7569ac3a758067b45", "score": "0.4686674", "text": "public void init()\n {\n _bones = new ArrayList<BvhBone>();\n _motionLoop = true;\n }", "title": "" }, { "docid": "fac891b94185d31b08be61d91fc7f486", "score": "0.4684716", "text": "void computeBodyFrameTorque (double[] state) {\n double[] vec = new double[] {\n 0, 0, 1\n }; // external force in space frame\n RigidBodyUtil.spaceToBody(state, vec);\n t1 = -vec[1]; // torque components declared in RigidBody\n t2 = vec[0];\n t3 = 0;\n }", "title": "" }, { "docid": "1aad04c4193856c8153f4d2807564916", "score": "0.46796492", "text": "@Override\n\tpublic void initTest() {\n//\t\tCharacterI.i().createBCCX(Vector3f.ZERO);\n\t\tCharacterLeviPhysI.i().create(Vector3f.ZERO);\n\t\t\n\t\tPhysicsI.i().setBulletDebugVisualsEnabled(true);\n//\t\tSubdivisionSurfaceModifier s = new SubdivisionSurfaceModifier(modifierStructure, blenderContext);\n\t\t\n\t\t// to have fun on flycam mode\n//\t\tPhysicsProjectileI.i().setProjectileFromCamCurrent(PhysicsProjectileI.i().getProjectileThrowerDevTestDbgCopy());\n\t\t\n//\t\tboolean bOld=true;\n//\t\tif(bOld) {\n//\t\t\t// projectile mass is 0.0065\n//\t\t\tPhysicsThrowProjectiles pp = PhysicsProjectileI.i().getProjectileThrowerDevTestDbgCopy();\n//\t\t\tPhysicsGun pg = PhysicsProjectileI.i().createGun(pp,\n//\t\t\t\tEMatter.Generic20KgPerM3.get()\n//\t\t\t);\n//\t\t}else {\n//\t\t\tPhysicsGun pg = PhysicsProjectileI.i().createGun(\n//\t\t\t\tnew PhysicsThrowProjectiles(EMatterStatus.Bullet762x39mm.get(),710f),\n//\t\t\t\tEMatterStatus.GunAK47.get()\n//\t\t\t);\n//\t\t}\n\t\tPhysicsProjectileI.i().createGun(EGun.AK47.get());\n\t\tPhysicsProjectileI.i().createGun(EGun.Glock17.get());\n\t\t\n\t\tfloat fFullLength=100;\n\t\tfloat fYFloor=-7;\n\t\tfloat fFloorThickness=0.5f;\n\t\tPhysicsData pdFloor = PhysicsI.i().spawnWall(\n\t\t\tnew Vector3f( fFullLength/2f,fYFloor,0),\n\t\t\tnew Vector3f(-fFullLength/2f,fYFloor,0),\n\t\t\ttrue,fFullLength,0.5f,ColorI.i().colorChangeCopy(ColorRGBA.Brown,0.20f,1f));\n//\t\tPhysicsData pdFloor = PhysicsI.i().spawnWall(0, fFullLength, fFullLength, 0f, null, new Vector3f(0,fYFloor,0));\n//\t\tpdFloor.getInitialOriginalGeometry().getMaterial().setColor(EColor.Color.s(), \n//\t\t\tColorI.i().colorChangeCopy(ColorRGBA.Brown,0.20f,1f));\n\t\t\n\t\tfloat fWallStuckOnFloorDepth=fFloorThickness;\n\t\tfloat fWallHeight=2f+fWallStuckOnFloorDepth;\n//\t\tfloat fYWalls=fYFloor+fWallHeight/2f-fWallStuckOnFloorDepth; //walls\n\t\tfloat fYWalls=fYFloor+fFloorThickness/2f-fWallStuckOnFloorDepth; //walls\n\t\tPhysicsI.i().spawnWall( //north\n\t\t\tnew Vector3f( fFullLength/2f,fYWalls, fFullLength/2f),\n\t\t\tnew Vector3f(-fFullLength/2f,fYWalls, fFullLength/2f));\n\t\tPhysicsI.i().spawnWall( //south\n\t\t\tnew Vector3f( fFullLength/2f,fYWalls,-fFullLength/2f),\n\t\t\tnew Vector3f(-fFullLength/2f,fYWalls,-fFullLength/2f));\n\t\tPhysicsI.i().spawnWall( //west\n\t\t\tnew Vector3f( fFullLength/2f,fYWalls, fFullLength/2f),\n\t\t\tnew Vector3f( fFullLength/2f,fYWalls,-fFullLength/2f));\n\t\tPhysicsI.i().spawnWall( //east\n\t\t\tnew Vector3f(-fFullLength/2f,fYWalls, fFullLength/2f),\n\t\t\tnew Vector3f(-fFullLength/2f,fYWalls,-fFullLength/2f));\n\t\t\n//\t\tPhysicsI.i().spawnWall(1, fFullLength, fWallHeight, 0f, null, new Vector3f(0,fYWalls, fFullLength/2f));\n//\t\tPhysicsI.i().spawnWall(1, fFullLength, fWallHeight, 0f, null, new Vector3f(0,fYWalls,-fFullLength/2f));\n//\t\tPhysicsI.i().spawnWall(1, fFullLength, fWallHeight, 90*FastMath.DEG_TO_RAD, null, new Vector3f( fFullLength/2f,fYWalls,0));\n//\t\tPhysicsI.i().spawnWall(1, fFullLength, fWallHeight, 90*FastMath.DEG_TO_RAD, null, new Vector3f(-fFullLength/2f,fYWalls,0));\n\t\t\n\t\t//ramp\n//\t\tPhysicsI.i().spawnWall(2, fFullLength/4f, 1f, -15*FastMath.DEG_TO_RAD, null, new Vector3f(0,fYFloor,(fFullLength/2f)*0.75f));\n\t\tPhysicsI.i().spawnWall(\n\t\t\tnew Vector3f(0, fYFloor+fFloorThickness/2f, (fFullLength/2f)*0.75f),\n\t\t\tnew Vector3f(0, fYFloor+fWallHeight-fWallStuckOnFloorDepth, (fFullLength/2f)),\n\t\t\ttrue,null,null,null);\n\t\t\n\t\t// some boxes representing the axes (just some non-sense lol)\n\t\tPhysicsI.i().spawnVolumeBox(ColorI.i().colorChangeCopy(ColorRGBA.Red,0,0.5f),\n\t\t\t5f,\"X-Red\"\t,new Vector3f(1,0,0).mult(5), null);\n\t\tPhysicsI.i().spawnVolumeBox(ColorI.i().colorChangeCopy(ColorRGBA.Green,0,0.5f),\n\t\t\t3f,\"Y-Green\",new Vector3f(0,1,0).mult(5), null);\n\t\tPhysicsI.i().spawnVolumeBox(ColorI.i().colorChangeCopy(ColorRGBA.Blue,0,0.5f),\n\t\t\t1f,\"Z-Blue\"\t,new Vector3f(0,0,1).mult(5), null);\n\t\t\n\t\t// some small boxes to play with\n\t\tspawnBox(0.750f);\n\t\tspawnBox(0.500f);\n\t\tspawnBox(0.250f);\n\t\tspawnBox(0.125f);\n//\t\tPhysicsI.i().spawnVolumeBox(ColorI.i().colorChangeCopy(ColorRGBA.randomColor(),0,0.5f),\t0.500f,\"SmallBoxV0500\",new Vector3f(0,0,0), null);\n//\t\tPhysicsI.i().spawnVolumeBox(ColorI.i().colorChangeCopy(ColorRGBA.randomColor(),0,0.5f),\t0.250f,\"SmallBoxV0250\",new Vector3f(0,0,0), null);\n//\t\tPhysicsI.i().spawnVolumeBox(ColorI.i().colorChangeCopy(ColorRGBA.randomColor(),0,0.5f),\t0.125f,\"SmallBoxV0125\",new Vector3f(0,0,0), null);\n\t}", "title": "" }, { "docid": "4c66afe14d37efde2668b939675f1615", "score": "0.46769825", "text": "Body createBody();", "title": "" }, { "docid": "0d437fec4db8b59011d35ccf1b120bb8", "score": "0.4674141", "text": "@Test\n public void testIssue918() {\n NativeLibraryLoader.loadNativeLibrary(\"bulletjme\", true);\n\n CollisionShape capsule = new SphereCollisionShape(1f);\n PhysicsRigidBody body1 = new PhysicsRigidBody(capsule, 1f);\n PhysicsRigidBody body2 = new PhysicsRigidBody(capsule, 1f);\n Vector3f pivot1 = new Vector3f();\n Vector3f pivot2 = new Vector3f();\n Point2PointJoint joint\n = new Point2PointJoint(body1, body2, pivot1, pivot2);\n\n joint.setImpulseClamp(42f);\n joint.setTau(99f);\n\n if (joint.getImpulseClamp() != 42f) {\n throw new RuntimeException();\n }\n if (joint.getTau() != 99f) {\n throw new RuntimeException();\n }\n }", "title": "" }, { "docid": "92a449b868c17e4f65fd375e3e9307dd", "score": "0.46730113", "text": "public void setFundamental( DMatrixRMaj F, @Nullable Point3D_F64 e2 ) {\n\t\tif (e2 != null)\n\t\t\tthis.e2.setTo(e2);\n\t\telse {\n\t\t\tMultiViewOps.extractEpipoles(F, new Point3D_F64(), this.e2);\n\t\t}\n\t\tGeometryMath_F64.multCrossA(this.e2, F, A);\n\t\tthis.F21.setTo(F);\n\t}", "title": "" }, { "docid": "5d4a2c90044a02ad632b21d5ae6d7968", "score": "0.46723276", "text": "public Player(float x, float y)\r\n\t{\r\n\t\tsuper();\r\n\t\twepType = Constants.SPEAR; // TEMP\r\n\r\n\t\tthis.setBaseHp(1000);\r\n\t\tthis.setHP(WorldState.playerHP);\r\n\r\n\t\t// Body work\r\n\t\tthis.bDef.type = BodyType.DynamicBody;\r\n\t\tthis.bDef.position.set(x, y);\r\n\r\n\t\t// main body fixture work\r\n\t\tPolygonShape shape = new PolygonShape();\r\n\t\tFixtureData data = new FixtureData(Constants.PLAYER_MAIN, Spriting.PLAYER, Constants.ID_PLAYER.x, Constants.ID_PLAYER.y);\r\n\t\tFixtureDef fixture = new FixtureDef();\r\n\t\tshape.setAsBox(data.getWidth()/2, data.getHeight()/2);\r\n\t\tfixture.shape = shape;\r\n\t\tfixture.density = 0.5f;\r\n\t\tfixture.friction = 1f;\r\n\t\tfixture.restitution = 0f;\r\n\t\tfixture.isSensor = false;\r\n\t\tfixture.filter.categoryBits = Constants.PLAYER;\r\n\t\tfixture.filter.maskBits = Constants.TERRAIN;\r\n\t\tdata.setFd(fixture);\r\n\t\tthis.data.put(Constants.PLAYER_MAIN, data);\r\n\r\n\t\t// main hitbox fixture work\r\n\t\tPolygonShape hbShape = new PolygonShape();\r\n\t\tFixtureData hbData = new FixtureData(Constants.PLAYER_HITBOX, Spriting.BLANK, Constants.ID_PLAYER.x, Constants.ID_PLAYER.y);\r\n\t\tFixtureDef hbFixture = new FixtureDef();\r\n\t\thbShape.setAsBox(hbData.getWidth()/2, hbData.getHeight()/2);\r\n\t\thbFixture.shape = hbShape;\r\n\t\thbFixture.isSensor = true;\r\n\t\thbData.setFd(hbFixture);\r\n\t\tthis.data.put(Constants.PLAYER_HITBOX, hbData);\r\n\r\n\t\t// weapon fixture work\r\n\t\tPolygonShape wepShape = new PolygonShape();\r\n\t\tFixtureData wepData = new FixtureData();\r\n\t\tswitch(wepType)\r\n\t\t{\r\n\t\t\tcase Constants.SPEAR:\r\n\t\t\t\twepData = new FixtureData(Constants.PLAYER_WEAPON, Spriting.SPEAR, 1.0f, 0.25f, Constants.IP_SPEAR.x, Constants.IP_SPEAR.y, 0);\r\n\t\t\t\twepShape.setAsBox(\r\n\t\t\t\t\t\twepData.getWidth()/2,\r\n\t\t\t\t\t\twepData.getHeight()/2,\r\n\t\t\t\t\t\tnew Vector2(wepData.getxOffset(), wepData.getyOffset()),\r\n\t\t\t\t\t\twepData.getAngle(Constants.RADIANS));\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tFixtureDef weapon = new FixtureDef();\r\n\t\tweapon.shape = wepShape;\r\n\t\tweapon.isSensor = true;\r\n\t\twepData.setFd(weapon);\r\n\t\tthis.data.put(Constants.PLAYER_WEAPON, wepData);\r\n\r\n\t\t// sets the initial state to not doing anything\r\n\t\tstate = 0b00000;\r\n\t}", "title": "" }, { "docid": "d6c239b9342994cfe801a53ac9d19b90", "score": "0.46699777", "text": "private void copy_Body( Body body)\n {\n if (!(body instanceof GrimpBody))\n throw new RuntimeException(\"You can only create a DavaBody from a GrimpBody!\");\n \n GrimpBody grimpBody = (GrimpBody) body;\n \n /*\n \t * Import body contents from Grimp.\n \t */\n \n { \n HashMap bindings = new HashMap();\n \t HashMap reverse_binding = new HashMap();\n \n Iterator it = grimpBody.getUnits().iterator();\n \t \n // Clone units in body's statement list \n while (it.hasNext()) {\n Unit original = (Unit) it.next(); \n Unit copy = (Unit) original.clone();\n \n // Add cloned unit to our unitChain.\n getUnits().addLast(copy);\n \n // Build old <-> new map to be able to patch up references to other units \n // within the cloned units. (these are still refering to the original\n // unit objects).\n bindings.put(original, copy);\n \t\treverse_binding.put( copy, original);\n }\t \n \n \t // patch up the switch statments\n \t it = getUnits().iterator();\n \t while (it.hasNext()) {\n \t\tUnit u = (Unit) it.next();\n \t\tStmt s = (Stmt)u;\n \t\t\n \t\tif (s instanceof TableSwitchStmt) {\n \t\t TableSwitchStmt ts = (TableSwitchStmt) s;\n \n \t\t TableSwitchStmt original_switch = (TableSwitchStmt) reverse_binding.get(u);\n \t\t ts.setDefaultTarget( (Unit) bindings.get( original_switch.getDefaultTarget()));\n \n \t\t LinkedList new_target_list = new LinkedList();\n \n \t\t int target_count = ts.getHighIndex() - ts.getLowIndex() + 1;\n \t\t for (int i=0; i<target_count; i++) \n \t\t\tnew_target_list.add( (Unit) bindings.get( original_switch.getTarget( i)));\n \t\t ts.setTargets( new_target_list);\n \n \t\t}\n \t\tif (s instanceof LookupSwitchStmt) {\n \t\t LookupSwitchStmt ls = (LookupSwitchStmt) s;\n \n \t\t LookupSwitchStmt original_switch = (LookupSwitchStmt) reverse_binding.get(u);\n \t\t ls.setDefaultTarget( (Unit) bindings.get( original_switch.getDefaultTarget()));\n \n Unit[] new_target_list = new Unit[ original_switch.getTargetCount()];\n for (int i = 0; i < original_switch.getTargetCount(); i++)\n new_target_list[i] = (Unit) (bindings.get( original_switch.getTarget(i)));\n ls.setTargets( new_target_list);\n \n \t\t ls.setLookupValues( original_switch.getLookupValues());\n \t\t}\n \t }\n \n // Clone locals.\n it = grimpBody.getLocals().iterator();\n while(it.hasNext()) {\n Local original = (Local) it.next();\n \n Value copy = Dava.v().newLocal(original.getName(), original.getType());\n \n getLocals().addLast(copy);\n \n // Build old <-> new mapping.\n bindings.put(original, copy);\n }\n \n \n // Patch up references within units using our (old <-> new) map.\n it = getAllUnitBoxes().iterator();\n while(it.hasNext()) {\n UnitBox box = (UnitBox) it.next();\n Unit newObject, oldObject = box.getUnit();\n \n // if we have a reference to an old object, replace it \n // it's clone.\n if( (newObject = (Unit) bindings.get(oldObject)) != null )\n box.setUnit(newObject);\n } \n \n // backpatch all local variables.\n it = getUseAndDefBoxes().iterator();\n while(it.hasNext()) {\n ValueBox vb = (ValueBox) it.next();\n if(vb.getValue() instanceof Local) \n vb.setValue((Value) bindings.get(vb.getValue()));\n }\n \n \t // clone the traps \n \t Iterator trit = grimpBody.getTraps().iterator();\n \t while (trit.hasNext()) {\n \n \t\tTrap originalTrap = (Trap) trit.next();\n \t\tTrap cloneTrap = (Trap) originalTrap.clone();\n \n \t\tUnit handlerUnit = (Unit) bindings.get( originalTrap.getHandlerUnit());\n \n \t\tcloneTrap.setHandlerUnit( handlerUnit);\n \t\tcloneTrap.setBeginUnit( (Unit) bindings.get( originalTrap.getBeginUnit()));\n \t\tcloneTrap.setEndUnit( (Unit) bindings.get( originalTrap.getEndUnit()));\n \n \t\tgetTraps().add( cloneTrap);\n \t }\n \t}\n \n \t/*\n \t * Add one level of indirection to \"if\", \"switch\", and exceptional control flow.\n \t * This allows for easy handling of breaks, continues and exceptional loops.\n \t */\n \t{\n \t PatchingChain units = getUnits();\n \t \n \t Iterator it = units.snapshotIterator();\n \t while (it.hasNext()) {\n \t\tUnit u = (Unit) it.next();\n \t\tStmt s = (Stmt) u;\n \n \t\tif (s instanceof IfStmt) {\n \t\t IfStmt ifs = (IfStmt) s;\n \n \t\t JGotoStmt jgs = new JGotoStmt( (Unit) units.getSuccOf( u));\n \t\t units.insertAfter( jgs, u);\n \n \t\t JGotoStmt jumper = new JGotoStmt( (Unit) ifs.getTarget());\n \t\t units.insertAfter( jumper, jgs);\n \t\t ifs.setTarget( (Unit) jumper);\n \t\t}\n \n \t\telse if (s instanceof TableSwitchStmt) {\n \t\t TableSwitchStmt tss = (TableSwitchStmt) s;\n \n \t\t int targetCount = tss.getHighIndex() - tss.getLowIndex() + 1;\n \t\t for (int i=0; i<targetCount; i++) {\n \t\t\tJGotoStmt jgs = new JGotoStmt( (Unit) tss.getTarget( i));\n \t\t\tunits.insertAfter( jgs, tss);\n \t\t\ttss.setTarget( i, (Unit) jgs);\n \t\t }\n \n \t\t JGotoStmt jgs = new JGotoStmt( (Unit) tss.getDefaultTarget());\n \t\t units.insertAfter( jgs, tss);\n \t\t tss.setDefaultTarget( (Unit) jgs);\n \t\t}\n \n \t\telse if (s instanceof LookupSwitchStmt) {\n \t\t LookupSwitchStmt lss = (LookupSwitchStmt) s;\n \t\t \n \t\t for (int i=0; i<lss.getTargetCount(); i++) {\n \t\t\tJGotoStmt jgs = new JGotoStmt( (Unit) lss.getTarget( i));\n \t\t\tunits.insertAfter( jgs, lss);\n \t\t\tlss.setTarget( i, (Unit) jgs);\n \t\t }\n \n \t\t JGotoStmt jgs = new JGotoStmt( (Unit) lss.getDefaultTarget());\n \t\t units.insertAfter( jgs, lss);\n \t\t lss.setDefaultTarget( (Unit) jgs);\n \t\t}\n \t }\n \n \t it = getTraps().iterator();\n \t while (it.hasNext()) {\n \t\tTrap t = (Trap) it.next();\n \t\t\n \t\tJGotoStmt jgs = new JGotoStmt( (Unit) t.getHandlerUnit());\n \t\tunits.addLast( jgs);\n \t\tt.setHandlerUnit( (Unit) jgs);\n \t }\n \t}\n \n \n \t/*\n \t * Fix up the grimp representations of statements so they can be compiled as java.\n \t */\n \n \t{\n \t Iterator it = getLocals().iterator();\n \t while (it.hasNext()) {\n \t\tType t = ((Local) it.next()).getType();\n \n \t\tif (t instanceof RefType) {\n \t\t RefType rt = (RefType) t;\n \n \t\t addPackage( rt.getSootClass().getJavaPackageName());\n \t\t}\n \t }\n \n \t it = getUnits().iterator();\n \t while (it.hasNext()) {\n \t\tUnit u = (Unit) it.next();\t\t\n \t\tStmt s = (Stmt) u;\n \n \t\tif (s instanceof IfStmt)\n \t\t javafy( ((IfStmt) s).getConditionBox());\n \n else if (s instanceof ThrowStmt)\n javafy( ((ThrowStmt) s).getOpBox() );\n \n \t\telse if (s instanceof TableSwitchStmt)\n \t\t javafy( ((TableSwitchStmt) s).getKeyBox());\n \n \t\telse if (s instanceof LookupSwitchStmt)\n \t\t javafy( ((LookupSwitchStmt) s).getKeyBox());\n \n \t\telse if (s instanceof MonitorStmt)\n \t\t javafy( ((MonitorStmt) s).getOpBox());\n \n \t\telse if (s instanceof DefinitionStmt) {\n \t\t DefinitionStmt ds = (DefinitionStmt) s;\n \n \t\t javafy( ds.getRightOpBox());\n \t\t javafy( ds.getLeftOpBox());\n \t\t \n \t\t if (ds.getRightOp() instanceof IntConstant) \n \t\t\tds.getRightOpBox().setValue( DIntConstant.v( ((IntConstant) ds.getRightOp()).value, ds.getLeftOp().getType()));\n \t\t}\n \n \t\telse if (s instanceof ReturnStmt) {\n \t\t ReturnStmt rs = (ReturnStmt) s;\n \t\t \n \t\t if (rs.getOp() instanceof IntConstant)\n \t\t\trs.getOpBox().setValue( DIntConstant.v( ((IntConstant) rs.getOp()).value, body.getMethod().getReturnType()));\n \t\t else \n \t\t\tjavafy( rs.getOpBox());\n \t\t}\n \n \t\telse if (s instanceof InvokeStmt)\n \t\t javafy( ((InvokeStmt) s).getInvokeExprBox());\n \t }\n \t}\n \n \n \t/*\n \t * Convert references to \"this\" and parameters.\n \t */\n \t\n \t{\n \t Iterator ucit = getUnits().iterator();\n \t while (ucit.hasNext()) {\n \t\tStmt s = (Stmt) ucit.next();\n \t\t\n \t\tif (s instanceof IdentityStmt) {\n \t\t IdentityStmt ids = (IdentityStmt) s;\n \t\t Value ids_rightOp = ids.getRightOp();\n \t\t Value ids_leftOp = ids.getLeftOp();\n \t\t \n \t\t if ((ids_leftOp instanceof Local) && (ids_rightOp instanceof ThisRef)) {\n \t\t\tLocal thisLocal = (Local) ids_leftOp;\n \t\t\t\n \t\t\tthisLocals.add( thisLocal);\n \t\t\tthisLocal.setName( \"this\");\n \t\t }\n \t\t}\n \n \t\tif (s instanceof DefinitionStmt) {\n \t\t DefinitionStmt ds = (DefinitionStmt) s;\n \t\t Value rightOp = ds.getRightOp();\n \n \t\t if (rightOp instanceof ParameterRef)\n \t\t\tpMap.put( new Integer( ((ParameterRef) rightOp).getIndex()), ds.getLeftOp());\n \n \t\t if (rightOp instanceof CaughtExceptionRef)\n \t\t\tcaughtrefs.add( ds.getLeftOp());\n \t\t}\n \t }\n \t}\n \n \n \t/*\n \t * Fix up the calls to other constructors. Note, this is seriously underbuilt.\n \t */\n \n \t{\n \t Iterator ucit = getUnits().iterator();\n \t while (ucit.hasNext()) {\n \t\tStmt s = (Stmt) ucit.next();\n \n \t\tif (s instanceof InvokeStmt) {\n \t\t \n \t\t InvokeStmt ivs = (InvokeStmt) s;\n \t\t Value ie = ivs.getInvokeExpr();\n \t\t\t\n \t\t if (ie instanceof InstanceInvokeExpr) {\n \t\t\t\n \t\t\tInstanceInvokeExpr iie = (InstanceInvokeExpr) ie;\n \t\t\tValue base = iie.getBase();\n \t\t\t\n \t\t\tif ((base instanceof Local) && (((Local) base).getName().equals( \"this\"))) {\n \t\t\t SootMethod m = iie.getMethod();\n \t\t\t String name = m.getName();\n \n \t\t\t if ((name.equals( SootMethod.constructorName)) || (name.equals( SootMethod.staticInitializerName))) {\n \n \t\t\t\tif (constructorUnit != null)\n \t\t\t\t throw new RuntimeException( \"More than one candidate for constructor found.\");\n \n \t\t\t\tconstructorExpr = iie;\n \t\t\t\tconstructorUnit = (Unit) s;\n \t\t\t }\n \t\t\t}\n \t\t }\n \t\t}\n \t }\n \t}\n }", "title": "" }, { "docid": "45dfd1699a228b6707730f044fb82182", "score": "0.46698618", "text": "public void addFriction(double friction1, double friction2) {\n \n }", "title": "" }, { "docid": "7ef504cbabde8ea66cbfbbe2d6a5f562", "score": "0.4666545", "text": "public DefaultMap() {\n super();\n BodyDef floor = new BodyDef();\n floor.type = BodyDef.BodyType.StaticBody;\n floor.position.set(0, 0);\n EdgeShape line = new EdgeShape();\n line.set(0, 0, WORLD_WIDTH, 0);\n FixtureDef floorFixture = new FixtureDef();\n floorFixture.friction = 1f;\n floorFixture.shape = line;\n floorFixture.filter.categoryBits = CATEGORY_SCENERY;\n floorFixture.filter.maskBits = -1;\n getWorld().createBody(floor).createFixture(floorFixture);\n BodyDef leftWall = new BodyDef();\n leftWall.type = BodyDef.BodyType.StaticBody;\n leftWall.position.set(0, 0);\n line.set(0, 0, 0, WORLD_HEIGHT);\n FixtureDef wallFixture = new FixtureDef();\n wallFixture.friction = 0f;\n wallFixture.shape = line;\n wallFixture.filter.categoryBits = CATEGORY_SCENERY;\n wallFixture.filter.maskBits = -1;\n getWorld().createBody(leftWall).createFixture(wallFixture);\n BodyDef rightWall = new BodyDef();\n rightWall.type = BodyDef.BodyType.StaticBody;\n rightWall.position.set(0, 0);\n line.set(WORLD_WIDTH, 0, WORLD_WIDTH, WORLD_HEIGHT);\n getWorld().createBody(rightWall).createFixture(wallFixture);\n line.dispose();\n /*\n backgroundImage = new Image(new Texture(\"img/GameBackgroundImage.jpg\"));\n backgroundImage.setBounds(0, 0, WORLD_WIDTH, WORLD_HEIGHT);\n //stage.addActor(backgroundImage);\n floorImage = new Image(new Texture(\"img/GameFloorImage.jpg\"));\n floorImage.setBounds(0, 0, effectiveViewportWidth, 0);\n stage.addActor(floorImage);\n */\n }", "title": "" }, { "docid": "51ee8af589902f7046e18663f93617ec", "score": "0.46629542", "text": "protected void process() {\n Vector2 velocityCol = bodyB.getVelocity().sub(bodyA.getVelocity());\n float vOnNormal = velocityCol.dot(collisionNormal);\n if (vOnNormal > 0) {\n return;\n }\n float e = Math.min(bodyA.getMaterial().getRestitution(), bodyB.getMaterial().getRestitution());\n\n float j = -1 * (1 + e) * vOnNormal;\n j /= bodyA.getInv_mass() + bodyB.getInv_mass();\n\n Vector2 impulse = collisionNormal.mult(j);\n bodyA.setVelocity(bodyA.getVelocity().sub(impulse.mult(bodyA.getInv_mass())));\n bodyB.setVelocity(bodyB.getVelocity().add(impulse.mult(bodyB.getInv_mass())));\n\n Vector2 positionCorrection = positionCorrection();\n bodyA.correctPosition(positionCorrection.mult(-1 * bodyA.getInv_mass()));\n bodyB.correctPosition(positionCorrection.mult(bodyB.getInv_mass()));\n }", "title": "" } ]
22b843c7dcb3f7f447f9ccbbd4b0e0f7
returns an arraylist of reservations for this group reservation
[ { "docid": "9bd36e10066ead4132ce636aa37f6586", "score": "0.7703949", "text": "public ArrayList<Reservation> getReservations() {\n return reservations;\n }", "title": "" } ]
[ { "docid": "47c39f81be36b73a07eed476de904aa8", "score": "0.74818206", "text": "public List<Reservation> getReservations() {\n resList = new ArrayList<>();\n conn = DatabaseClient.getInstance().getConnection();\n System.out.println(\"CONNECTED!\");\n rs = DatabaseClient.executeQuery(conn, \"SELECT * FROM reservations;\");\n\n try {\n while (rs.next()) {\n currRes = new Reservation();\n currRes.setId(rs.getInt(1));\n currRes.setTableid(rs.getInt(2));\n currRes.setCustomerName(rs.getString(3));\n currRes.setPhoneNumber(rs.getString(4));\n currRes.setNumberOfPeople(rs.getInt(5));\n currRes.setTimeOfReservation(rs.getLong(6));\n\n resList.add(currRes);\n }\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return resList;\n }", "title": "" }, { "docid": "09db461d5adcd4ed3d088a0f27bdadde", "score": "0.74179393", "text": "Set<ReservationAllocation> getAllReservations();", "title": "" }, { "docid": "f744d3ec31c0442ad2d7e9e5bcdbaefd", "score": "0.7389386", "text": "public DataModel getReservations() {\n\t\tArrayDataModel data = new ArrayDataModel();\n\t\tdata.setWrappedData(getReservationsList());\n\t\treturn data;\n\t}", "title": "" }, { "docid": "4a8c80bb49b322fab699390f3fe47684", "score": "0.73347867", "text": "public List<Reservation> findAllReservation() {\n\t\tList<Reservation> reservationList = new ArrayList<>();\n\t\treservationRepo.findAll().forEach(reservationList::add);\n\t\treturn reservationList;\n\t}", "title": "" }, { "docid": "30ce21e7ffa611f99e2b4575bc5e029e", "score": "0.71476597", "text": "@GET\n @Produces(MediaType.APPLICATION_XML)\n public List<Reservation> getReservations() {\n return resser.getReservations();\n }", "title": "" }, { "docid": "74cb91b92b12279de16aad16837d4fb8", "score": "0.7093934", "text": "public List<Reservation> getAllReservations(){\n return webTarget.path(\"reservations/all\").\n request().\n get(new GenericType<List<Reservation>>(){});\n }", "title": "" }, { "docid": "0e7366dd2e7cab69c9fd33f8c311887a", "score": "0.70812154", "text": "public static ObservableList<Reservation> reservations() throws SQLException {\n ApplicationController.fetchData();\n\n return ApplicationController.reservations;\n }", "title": "" }, { "docid": "1436f63831caca79427eddaaf74894af", "score": "0.7072125", "text": "public List<Reservation> retrieveReservations() throws SQLException {\n\n\t\tDBTool.getConnection(dbType, server, db, usr, pwd);\n\t\tResultSet rs = DBTool.selectAll(\"book_reservations\");\n\t\treservations.clear();\n\n\t\twhile (rs.next()) {\n\t\t\tReservation reservation = new Reservation();\n\t\t\treservation.setId(rs.getString(\"id\"));\n\t\t\treservation.setBookId(rs.getString(\"book_id\"));\n\t\t\treservation.setCustomerId(rs.getString(\"customer_id\"));\n\t\t\treservation.setBookDate(rs.getDate(\"book_date\").toLocalDate());\n\t\t\treservation.setReturnDate(rs.getDate(\"return_date\").toLocalDate());\n\t\t\treservation.setReturned(rs.getBoolean(\"returned\"));\n\t\t\treservations.add(reservation);\n\t\t}\n\t\tDBTool.closeConnection();\n\t\treturn reservations;\n\t}", "title": "" }, { "docid": "8764423a67d9e780ad4e3c6f0ae28288", "score": "0.70012903", "text": "public List<Reservation> getReservationAll(){\n return repository.findAll();\n }", "title": "" }, { "docid": "d897aef5dd2f408bc9f951c886777648", "score": "0.6972685", "text": "public List<Reservation> getReservations() throws Exception {\n List<Reservation> lesReservationsE = null;\n try {\n Query query = em.createNamedQuery(\"Reservation.findAll\");\n lesReservationsE = query.getResultList();\n return lesReservationsE;\n } catch (Exception e) {\n throw e;\n }\n }", "title": "" }, { "docid": "5dba4abab273e3098c26fe0c0c06204d", "score": "0.6919284", "text": "public List<Reservation> getAll(){\n return (List<Reservation>)reservationCrudRepositorio.findAll();\n }", "title": "" }, { "docid": "a23f7bd49db3c2f16cef1792afbd1a62", "score": "0.6860502", "text": "public ArrayList<Reserva> getAllReservas() {\n return reservas;\n }", "title": "" }, { "docid": "23860c437177a7f4857045d2257bca73", "score": "0.68200994", "text": "@Override\n\tpublic List<Reservation> list() {\n\t\treturn reservationRepository.selectList();\n\t}", "title": "" }, { "docid": "21188a5a96f8b9fa4c3fa178ccfb081e", "score": "0.67839026", "text": "public List<ReservationModel> getReservations(String view) {\r\n if(reservations.size() > 0)\r\n return this.reservations;\r\n\r\n ArrayList<HashMap<String, Object>> results;\r\n ReservationTable tbl = new ReservationTable();\r\n results = tbl.getReservations(view);\r\n\r\n //loop through all the rows in the hashmap\r\n for(HashMap map : results) {\r\n Iterator it = map.entrySet().iterator();\r\n ReservationModel _model = new ReservationModel(this.view);\r\n while (it.hasNext()) {\r\n Map.Entry pairs = (Map.Entry)it.next();\r\n\r\n //add value to the model\r\n this.addField(pairs.getKey(), pairs.getValue(), _model, \"view\");\r\n\r\n it.remove();\r\n }\r\n reservations.add(_model);\r\n }\r\n\r\n //return the reservations\r\n return reservations;\r\n }", "title": "" }, { "docid": "afed5af3c980de6d35891767f35d7716", "score": "0.67738026", "text": "public ReservationCollection() {\n\t\tthis.reservations = new ArrayList<>();\n\t}", "title": "" }, { "docid": "90bc138abd2f7d6dd2d31b2d658c6cf1", "score": "0.66933715", "text": "@RequestMapping(path=\"/reservations\", method=RequestMethod.GET)\n public List<Reservation> listReservations() {\n logAPICall(\"GET - /reservations\"); // Log path to server log\n return theReservationResource.findAll();\n }", "title": "" }, { "docid": "1cfdc79587bc918e4a8f7bb3c9a82be4", "score": "0.66796315", "text": "public void populateReservations() {\n\t\t//Purge current list\n\t\tfor(int i = 0 ; i < cols ; i++) {\n\t\t\tfor(int j = 0 ; j < rows ; j++) {\n\t\t\t\tguiCoords[i][j] = null;\n\t\t\t}\n\t\t}\n\t\t//Get new resultset to populate list\n\t\tResultSet rs = c.showReservationsMonth(monthIntCodes.get(currentMonth), year);\n\t\tReservation res;\n\t\ttry {\n\t\twhile(rs.next()) {\n\t\t\tint car = rs.getInt(\"car\");\n\t\t\tres = new Reservation(\trs.getInt(\"reservation_id\"),\n\t\t\t\t\t\t\t\t\tcar,\n\t\t\t\t\t\t\t\t\trs.getString(\"reserved_from\"),\n\t\t\t\t\t\t\t\t\trs.getString(\"reserved_to\"),\n\t\t\t\t\t\t\t\t\trs.getInt(\"customer\")\n\t\t\t\t\t\t\t);\n\t\t\tint d = res.timeOfReservation();\n\t\t\tfor(int i = res.dayStart(); i < res.dayStart()+d+1 ; i++) {\n\t\t\t\t\tguiCoords[i][car] = res;\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException exn) {\n\t\t\tcp.updateBotConsole(\"Error populating reservation list\" + exn);\n\t\t}\n\t\trepaint();\n\t}", "title": "" }, { "docid": "61b1fef40b018220cbeaa2c447c8fcf7", "score": "0.66606694", "text": "public ArrayList<Reserva> reservasExistentes() {\n ArrayList<Reserva> reservaciones = new ArrayList<Reserva>();\n List<Reserva> listaReservas = new ReservaDao().obtenerReservas();\n for (Reserva r : listaReservas) {\n reservaciones.add(r);\n\n }\n return reservaciones;\n }", "title": "" }, { "docid": "014af4312c7675ac44a30dbaaf7a505e", "score": "0.6569317", "text": "public void getReservationTimeList()\n\t{\n\t\tDate start=null;\n\t\t\n\t\tDate end=null;\n\t\t\n\t\tString d = \"2015-01-16\";\n\t\t\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\n\t\ttry {\n\t\t\tString start1=d.concat(\" \").concat(\"00:00:00\");\n\t\t\tString end1 = d.concat(\" \").concat(\"23:59:59\");\n\t\t\tend = format.parse(end1);\n\n\t\t\tstart = format.parse(start1);\n\n\t\t} catch (ParseException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\t\n\t\tList <SiteReservation> test_list =\treservationServiceManagement.\n\t\t\t\tfindByStartTimes(start, end);\n\t\t\n\t\t\n\t\tSystem.out.println(\"Number of the reserved slots on that day is/are\"+test_list.size());\n\t\tassertEquals(\"number of entries has to be\", test_list.size(), 1);\n\t}", "title": "" }, { "docid": "3713dee17cf2bd09dbad11f6669b602f", "score": "0.6558452", "text": "public List<ReservationModel> getReservations(String from, String to) {\r\n reservations.clear();\r\n\r\n ArrayList<HashMap<String, Object>> results;\r\n ReservationTable tbl = new ReservationTable();\r\n results = tbl.getReservations(from, to);\r\n\r\n for(HashMap map : results) {\r\n Iterator it = map.entrySet().iterator();\r\n ReservationModel _model = new ReservationModel(this.view);\r\n while (it.hasNext()) {\r\n Map.Entry pairs = (Map.Entry)it.next();\r\n\r\n this.addField(pairs.getKey(), pairs.getValue(), _model, \"view\");\r\n\r\n it.remove();\r\n }\r\n reservations.add(_model);\r\n }\r\n\r\n return reservations;\r\n }", "title": "" }, { "docid": "df723ab2b622d3130b3aaef3453092d4", "score": "0.65411526", "text": "public List<Reserva> getListaReservas() {\n\n\t\tList<Reserva> list = new ArrayList<Reserva>();\n\t\tConnection c = null;\n\t\tString sql = \"SELECT *\" + \"FROM reservas \";\n\n\t\ttry {\n\t\t\tc = ConnectionHelper.getConnection();\n\t\t\tStatement s = c.createStatement();\n\t\t\tResultSet rs = s.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\tlist.add(procesarReserva(rs));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\tConnectionHelper.close(c);\n\t\t}\n\n\t\treturn list;\n\n\t}", "title": "" }, { "docid": "70c33daea2526a952026b7e33d08162e", "score": "0.6525227", "text": "private void createReservations() {\r\n LocalDate now = LocalDate.now();\r\n reservations.add(new Reservation(1, hotels.get(0), \"John Smith\", now, now.plusDays(3), 2, \"johnsmith@gmail.com\"));\r\n reservations.add(new Reservation(2, hotels.get(0), \"Anna Blair\", now, now.plusDays(1), 1, \"annablair@gmail.com\"));\r\n reservations.add(new Reservation(3, hotels.get(1), \"Sam Smith\", now, now.plusDays(7), 1, \"samsmith@gmail.com\"));\r\n }", "title": "" }, { "docid": "75d9f985790e977505e93017244e1bfe", "score": "0.6368825", "text": "AllocationList queryAllocationsByJobIdAndReservationId( int jobId, int reservationId );", "title": "" }, { "docid": "dfd7cae4e1858530a12a0d9aed27dc1c", "score": "0.63017184", "text": "@Verify\n @GetMapping(\"/reservations\")\n public ResponseEntity<Set<Reservation>> getReservations(UserDTO userDTO,\n @RequestParam(name = \"roomId\", required = false) Integer roomId,\n @RequestParam(name = \"start\", required = false) Long start,\n @RequestParam(name = \"end\", required = false) Long end,\n @RequestParam(name = \"reserver\", required = false) String reserver,\n @RequestParam(name = \"status\", required = false) String status) {\n Set<Reservation> reservations;\n reservations = reservationService.getCustomReservations(roomId, start, end, reserver, status);\n return ResponseEntity.status(200).body(reservations);\n }", "title": "" }, { "docid": "816320fa5fa6c5c5a3023fcac3e7a4c0", "score": "0.6246838", "text": "@Override\n\tpublic ReservationDTO[] obtenirReservations(int idClient) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "24c0baac284a2700d3a1998cef95ede5", "score": "0.62385076", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<BookableRoom> findAvailableRooms(Date reservationDate){\r\n\r\n\t\tCalendar calendar=Calendar.getInstance();\t\t\t\r\n\t\tcalendar.setTime(reservationDate);\r\n\r\n\t\tint year=calendar.get(Calendar.YEAR);\r\n\t\tint month=calendar.get(Calendar.MONTH);\r\n\t\tint day=calendar.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tCalendar currentCalendar=Calendar.getInstance();\r\n\t\tcurrentCalendar.clear();\r\n\t\tcurrentCalendar.set(year, month, day);\r\n\t\tDate currentDate=currentCalendar.getTime();\t\t\r\n\t\treservationDate=currentDate;\r\n\r\n\t\tQuery query=getEntityManager()\r\n\t\t\t\t.createQuery(\"SELECT DISTINCT br FROM BookableRoom br\" +\r\n\t\t\t\t\t\t\" LEFT JOIN br.reservations res ON res.reservationDate=:date\" +\r\n\t\t\t\t\t\t\" WHERE res.reservationDate IS NULL\");\r\n\t\tquery.setParameter(\"date\", reservationDate);\t\t\t\r\n\r\n\t\treturn query.getResultList();\t\t\t\t\t\t\t\r\n\t}", "title": "" }, { "docid": "1fd4203c595cd0eff63d55084f8cec12", "score": "0.621949", "text": "public java.util.List<com.pacnet.connect.model.SMAReservation> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "title": "" }, { "docid": "2b32499fc13d0dd6f18cd5971f96e5b2", "score": "0.6189759", "text": "public ArrayList<Reservation> getReservationsByDate(MyDate date) {\n\t\tArrayList<Reservation> theReservations = new ArrayList<>();\n\t\tfor (Reservation r : reservations) {\n\t\t\tif (r.getCheckInDate().compareTo(date) <= 0 && r.getCheckOutDate().compareTo(date) >= 0) {\n\t\t\t\ttheReservations.add(r);\n\t\t\t}\n\t\t}\n\t\treturn theReservations;\n\t}", "title": "" }, { "docid": "58f60138db783658cb384ee22793748a", "score": "0.6162301", "text": "Set<ReservationAllocation> getReservationsAtTime(long tick);", "title": "" }, { "docid": "b27ba7efda0852ce369eb00d46c6bfb8", "score": "0.6161557", "text": "public synchronized ArrayList<Room> getAvailableRoomList() {\n ArrayList<Room> l_availableRoom = new ArrayList<>();\n \n // Selection des données dans la db\n ResultSet l_room = db.selectAll(\"chambres\");\n ResultSet l_reservation = db.selectAll(\"reservations\");\n \n try {\n // Parcourt le resultat\n l_room.beforeFirst();\n while(l_room.next()) {\n Room room = new Room();\n room.setId(l_room.getInt(\"numero\"));\n room.setBaignoire(l_room.getInt(\"baignoire\"));\n room.setCuvette(l_room.getInt(\"cuvette\"));\n room.setDouche(l_room.getInt(\"douche\"));\n room.setPlaces(l_room.getInt(\"nb_occupants\"));\n room.setPrix(l_room.getInt(\"prix_htva\"));\n room.setCategorie(l_room.getString(\"categorie\"));\n \n // Verifie qu'elle n'est pas reservée\n boolean libre = true;\n l_reservation.beforeFirst();\n while(l_reservation.next()) {\n if(l_reservation.getInt(\"chambre\") == room.getId()) {\n libre = false;\n break;\n }\n }\n \n // Ajoute la chambre\n if(libre) {\n l_availableRoom.add(room);\n }\n }\n } catch (SQLException ex) {\n System.out.println(\"Impossible de recuperer les chambres ...\");\n }\n \n return l_availableRoom;\n }", "title": "" }, { "docid": "7d6625c099fbf1998f3e629fa8d30dc2", "score": "0.6150729", "text": "public LinkedList getAdvReservList() {\n return arList_;\n }", "title": "" }, { "docid": "00bc003aa338eb9b86f179771ea8dc5a", "score": "0.6104124", "text": "Collection<Reservation> findReservationBetween(LocalDate startDate, LocalDate endDate);", "title": "" }, { "docid": "a2a17fb8d6f6b9b780e7c212f827409e", "score": "0.60948825", "text": "public Reservation[] getSchedule(LocalDate queryDate){\n return Schedule.get(queryDate);\n }", "title": "" }, { "docid": "0d3de0be93f4e77e69231220b7c3888f", "score": "0.59796596", "text": "public ArrayList<Reservation> GetReservationsByUsername(String username) {\n\t\tArrayList<Reservation> ret = new ArrayList<Reservation>();\n\t\t//If we haven't established a connection, establish one\n\t\tif(connection == null) connection = getConnection();\n\t\t//If we failed to establish a connection, return false\n\t\tif(connection == null) return ret;\n\t\tSystem.out.println(\"[GetReservationsByUsername] Connected to Database\");\n\t\tStatement stmt;\n\t\ttry {\n\t\t\tstmt = connection.createStatement();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\t//use the production database\n\t\t\tstmt.execute(\"use TrainProject\");\n\t\t\t//run our query\n\t\t\tString query = String.format(\"SELECT * FROM Reservation r where r.date>NOW() AND r.username = '%s'\", username);\n\t\t\tSystem.out.println(\"[GetReservationsByUsername] running : \" + query);\n\t\t\t\n\t\t\tResultSet res = stmt.executeQuery(query);\n\t\t\tSystem.out.println(\"[GetReservationsByUsername] Query successfully has data\");\n\t\t\twhile(res.next()) {\n\t\t\t\tReservation r = new Reservation(\n\t\t\t\t\tres.getInt(\"resNum\"),\n\t\t\t\t\tres.getFloat(\"totalFare\"),\n\t\t\t\t\tres.getString(\"passenger\"),\n\t\t\t\t\tres.getString(\"date\"),\n\t\t\t\t\tres.getInt(\"originID\"),\n\t\t\t\t\tres.getInt(\"destinationID\"),\n\t\t\t\t\tres.getString(\"lineName\"),\n\t\t\t\t\tres.getString(\"username\"),\n\t\t\t\t\tres.getBoolean(\"isChild\"),\n\t\t\t\t\tres.getBoolean(\"isSenior\"),\n\t\t\t\t\tres.getBoolean(\"isDisabled\"),\n\t\t\t\t\tres.getInt(\"schedID\"));\n\t\t\t\tret.add(r);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcloseConnection();\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "abc9d97f53a3a18b994d2e4ffc387d20", "score": "0.5957311", "text": "java.util.List<java.lang.String> getReservedIpRangesList();", "title": "" }, { "docid": "f7b8d39674274da2983bad499d9e677e", "score": "0.5931215", "text": "Iterable<Reservation> findReservationByReservationDate(Date date);", "title": "" }, { "docid": "d61cc58298663a59e0affda05a681a3a", "score": "0.5927004", "text": "public List<Reserva> findAll() {\r\n\t\treturn this.reservaRepository.findAll();\r\n\t}", "title": "" }, { "docid": "6bfba13b651f551205dddc1832943681", "score": "0.59191346", "text": "@GetMapping(value = \"/reservation\")\n public ResponseEntity<?> getAllReservation() {\n log.info(\"New request in /reservation/all >> \");\n return new ResponseEntity<>(reservationService.getAllReservations(), HttpStatus.OK);\n }", "title": "" }, { "docid": "7b28af0e6b1d36c390e94ab7f39d88a9", "score": "0.58978266", "text": "public void cacheResult(\n\t\tjava.util.List<com.pacnet.connect.model.SMAReservation> smaReservations);", "title": "" }, { "docid": "6cc9ed74087e76ab3dfc21b20e327a1b", "score": "0.58526725", "text": "public Iterable<Reserve> showUserReservations(SystemUser systemU) {\n\n\t\tIterable<CafeteriaUser> user = new UserService().\n\t\t\tcafeteriaUserBySystemUser(systemU);\n\n\t\tif (!user.iterator().hasNext()) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn PersistenceContext.repositories().reserves().\n\t\t\tfindNotDelieveredReservesByUser(user.iterator().next());\n\t}", "title": "" }, { "docid": "52767aa2eebd45c48b561c78ba6e8292", "score": "0.5815697", "text": "ArrayList<String> getFreeTimeSlots(Date date);", "title": "" }, { "docid": "6d9d36cc24a54536497c6c3a94838094", "score": "0.5815167", "text": "public void viewAllRes() {\r\n\t\tSystem.out.println(\"List of reservations:\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString view = \"SELECT * FROM reservations\";\r\n\t\t\tStatement st = conn.createStatement();\r\n\t\t\t\r\n\t\t\tResultSet rs = st.executeQuery(view);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tSystem.out.println(\"-----------------------------\");\r\n\t\t\t\tSystem.out.println(\"Reservation ID: \" + rs.getInt(\"resID\"));\r\n\t\t\t\tSystem.out.println(\"Room ID: \" + rs.getInt(\"roomID\"));\r\n\t\t\t\tSystem.out.println(\"Total Price: \" + rs.getInt(\"totalPrice\"));\r\n\t\t\t\tSystem.out.println(\"Check in Date: \" + rs.getString(\"checkin\"));\r\n\t\t\t\tSystem.out.println(\"Check out Date: \" + rs.getString(\"checkout\"));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "9cfdb8367eb5e5fb5800da1d8a147e93", "score": "0.57952565", "text": "public static ArrayList<Reserva> listReservas(Usuario u) {\t\t\r\n\t\tArrayList<Reserva> reservas = new ArrayList<Reserva>();\r\n\t\ttry {\r\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\r\n\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:sqlite:datos.db\");\r\n\t\t\tStatement stat = conn.createStatement();\r\n\t\t\tString Query = \"SELECT * FROM Reserva WHERE dni = '\"+u.getDni()+\"';\";\r\n\t\t\tResultSet rs = stat.executeQuery(Query);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\t\r\n\t\t\t\tReserva r1 = new Reserva();\r\n\t\t\t\tr1.setCOD_R(rs.getInt(1));\r\n\t\t\t\tr1.setPrecio(rs.getDouble(2));\r\n\t\t\t\tr1.setDNI(rs.getString(3));\r\n\t\t\t\tr1.setHorasalida(rs.getString(4));\r\n\t\t\t\tr1.setFecha(rs.getString(5));\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\treservas.add(r1);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\trs.close();\r\n\t\t\tstat.close();\r\n\t\t\tconn.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn reservas;\r\n\t}", "title": "" }, { "docid": "2b6cbf50560195ab12fe1521360f1d15", "score": "0.5792654", "text": "@RequestMapping(method = RequestMethod.GET)\n public final HttpEntity<Resources<Resource<ReservationDTO>>> getAllReservations() {\n try {\n List<ReservationDTO> reservations = reservationFacade.getAllReservations();\n List<Resource<ReservationDTO>> resourceList = new ArrayList<>();\n\n reservations.stream().forEach(h -> resourceList.add(reservationResourceAssembler.toResource(h)));\n\n Resources<Resource<ReservationDTO>> reservationResources = new Resources<>(resourceList);\n reservationResources.add(linkTo(ReservationControllerHateoas.class).withSelfRel());\n\n return new ResponseEntity<>(reservationResources, HttpStatus.OK);\n } catch (Exception ex) {\n logger.error(\"delete reservation exception\", ex);\n return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "2445668c209b3e141772d7d180043e92", "score": "0.573627", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic ArrayList<Reserva> selectAll(){\n\t\treturn (ArrayList<Reserva>) hibernateTemplate.find(\"from Reserva\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2f1f2e52681e9e4d5da62081de38b36c", "score": "0.5701971", "text": "@RequiresApi(api = Build.VERSION_CODES.O)\n public ArrayList<Reservation> readReservationsFile(String fileName) {\n ArrayList<Reservation> reservations = new ArrayList<Reservation>();\n try {\n context = singleton.getMainContext();\n InputStream inputStream = context.openFileInput(fileName);\n BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));\n String s = \"\";\n s = br.readLine();\n while ((s != null) && (!s.isEmpty())) {\n s = s.replace(\"\\n\", \"\");\n String[] rStr = s.split(\";\", -1);\n reservations.add(new Reservation(LocalDateTime.parse(rStr[0], DateTimeFormatter.ISO_LOCAL_DATE_TIME), LocalDateTime.parse(rStr[1], DateTimeFormatter.ISO_LOCAL_DATE_TIME), Integer.parseInt(rStr[2]), Integer.parseInt(rStr[3]), rStr[4], rStr[5], Integer.parseInt(rStr[6])));\n s = br.readLine();\n }\n br.close();\n inputStream.close();\n return reservations;\n } catch (IOException e) {\n Log.e(\"IOExeption\", \"Bad reservations filename\");\n }\n return reservations;\n }", "title": "" }, { "docid": "ffd8aaf32b15b07afbc17ac0256e9b3d", "score": "0.5699217", "text": "private String[] getPeopleAsArray()\n {\n //Get all of the people in the reservation as an array (not an ArrayList).\n Object[] personsAsArray = persons.toArray();\n //Init a list of strings for the names of people.\n String[] peopleInReservation = new String[personsAsArray.length];\n\n if (personsAsArray.length > 0) {\n //For every person, get his/her first name and add it to the array.\n for (int i = 0; i < personsAsArray.length; i++) {\n Person temp = (Person) personsAsArray[i];\n peopleInReservation[i] = temp.getFirstName() + \" \"\n + temp.getLastName();\n }\n }\n\n //If there are no people in the reservaiton yet, return a \"People\" String.\n if (personsAsArray.length == 0) {\n peopleInReservation = new String[1];\n peopleInReservation[0] = \"People\";\n }\n\n //Return the finished string array.\n return peopleInReservation;\n }", "title": "" }, { "docid": "6f2fe8d471be01144d6e439936e5b332", "score": "0.56986606", "text": "public List<ReservationObject> getReservationObjectList(){\n prgDialog.show();\n final List<ReservationObject>[] result = new List[1];\n AsyncHttpClient client = new AsyncHttpClient();\n client.get(ReservationService.getAbsoluteUrl(\"reservationObject\"),new TextHttpResponseHandler(){\n //client.get(ReservationService.getAbsoluteUrl(\"reservationObject\"),new RequestParams() ,new TextHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, String response) {\n prgDialog.hide();\n try {\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<ReservationObject>>(){}.getType();\n result[0] = gson.fromJson(response, listType);\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.jsonError), Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n @Override\n public void onFailure(int statusCode, Header[] headers, String res, Throwable t) {\n prgDialog.hide();\n if(statusCode == 404){\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.http404), Toast.LENGTH_LONG).show();\n }\n else if(statusCode == 500){\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.http500), Toast.LENGTH_LONG).show();\n }\n else{\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.httpError), Toast.LENGTH_LONG).show();\n }\n }\n });\n\n return result[0];\n }", "title": "" }, { "docid": "3911fe9e7b4a783dd864445702bab704", "score": "0.5664824", "text": "public ArrayList<Reservation> SearchReservationsByUsername(String username) {\n\t\t//If we haven't established a connection, establish one\n\t\tif(connection == null) connection = getConnection();\n\t\t//If we failed to establish a connection, return false\n\t\tif(connection == null) return null;\n\t\tSystem.out.println(\"[SearchReservationsByUsername] Connected to Database\");\n\t\tStatement stmt;\n\t\ttry {\n\t\t\tstmt = connection.createStatement();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tArrayList<Reservation> ret = new ArrayList<Reservation>();\n\t\ttry {\n\t\t\t//use the production database\n\t\t\tstmt.execute(\"use TrainProject\");\n\t\t\t//run our query\n\t\t\tString query = String.format(\"SELECT * FROM %s r where r.username = '%s'\", Constants.RESERVATION_TABLE, username);\n\t\t\tSystem.out.println(\"[SearchReservationsByUsername] running : \" + query);\n\t\t\t\n\t\t\tResultSet res = stmt.executeQuery(query);\n\t\t\tSystem.out.println(\"[SearchReservationsByUsername] Query successfully has data\");\n\t\t\twhile(res.next()) {\n\t\t\t\tReservation reservation = new Reservation(\n\t\t\t\t\t\tres.getInt(\"resNum\"),\n\t\t\t\t\t\tres.getFloat(\"totalFare\"),\n\t\t\t\t\t\tres.getString(\"passenger\"),\n\t\t\t\t\t\tres.getString(\"date\"),\n\t\t\t\t\t\tres.getInt(\"originID\"),\n\t\t\t\t\t\tres.getInt(\"destinationID\"),\n\t\t\t\t\t\tres.getString(\"lineName\"),\n\t\t\t\t\t\tres.getString(\"username\"),\n\t\t\t\t\t\tres.getBoolean(\"isChild\"),\n\t\t\t\t\t\tres.getBoolean(\"isSenior\"),\n\t\t\t\t\t\tres.getBoolean(\"isDisabled\"),\n\t\t\t\t\t\tres.getInt(\"schedID\"));\n\t\t\t\tret.add(reservation);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcloseConnection();\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "354cfd04be2de4cf18b531df99a00a7c", "score": "0.5633823", "text": "private Reservation[] search()\n {\n try\n {\n if(criteriaComboBox.getSelectedIndex() == INDEX_FULL)\n {\n filter.byName(searchTextField.getText().trim());\n reservationMatches = filter.getResults();\n filter.removeLastFilter();\n }\n else if(criteriaComboBox.getSelectedIndex() == INDEX_PART)\n {\n filter.byNameBeginsWith(searchTextField.getText().trim());\n reservationMatches = filter.getResults();\n filter.removeLastFilter();\n }\n else if(criteriaComboBox.getSelectedIndex() == INDEX_ARRIVAL)\n {\n filter.byArrivalDate(new DateAD(\n (short) (dayComboBox.getSelectedIndex() + 1),\n (short) monthComboBox.getSelectedIndex(),\n Short.valueOf((String)yearComboBox.getSelectedItem())));\n reservationMatches = filter.getResults();\n filter.removeLastFilter();\n }\n else if(criteriaComboBox.getSelectedIndex() == INDEX_DEPARTURE)\n {\n filter.byDepartureDate(new DateAD(\n (short) (dayComboBox.getSelectedIndex() + 1),\n (short) monthComboBox.getSelectedIndex(),\n Short.valueOf((String)yearComboBox.getSelectedItem())));\n reservationMatches = filter.getResults();\n filter.removeLastFilter();\n }\n if(!(reservationMatches.length > RESERVATIONS_MIN))\n {\n reservationMatches = new Reservation[0];\n }\n matchLabel.setText(reservationMatches.length + MATCH_STRING);\n return reservationMatches;\n }\n catch(Exception e)\n {\n matchLabel.setText(\"Name not Found\");\n return reservationMatches = new Reservation[0];\n }\n }", "title": "" }, { "docid": "783a68bf4799517d82f971f1c3fb80c3", "score": "0.56332606", "text": "@GetMapping(\"/reservationList\")\n\tpublic List<HotelReservationModel> getListofReservations(Model model) {\n\t\tList<HotelReservationModel> reservationList = reservationRepo.findAll(); \n\t //model.addAttribute(reservationList);\n\t\t//return reservationList;\n\t\n\t\treturn reservationList;\n\t\n\t}", "title": "" }, { "docid": "af00c03c2833df0308f5a6dc43a17621", "score": "0.56235886", "text": "public Reservation getReservation(int reservationID)\n {\n Reservation result = null;\n for(int i = 0; i < reservations.size(); i++)\n {\n if(reservations.get(i).equals(reservationID))\n {\n result = reservations.get(i);\n break;\n }\n }\n return result;\n }", "title": "" }, { "docid": "de449d022d35461263f54e3a43826dd2", "score": "0.5618859", "text": "@RequestMapping(value = \"/user\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public final HttpEntity<Resources<Resource<ReservationDTO>>> getReservationsOfUser(HttpServletRequest request) {\n try {\n Long userID = jwtTokenUtils.getUserID(request);\n List<ReservationDTO> reservations = userFacade.findUserReservations(userID);\n List<Resource<ReservationDTO>> resourceList = new ArrayList<>();\n\n reservations.stream().forEach(h -> resourceList.add(reservationResourceAssembler.toResource(h)));\n\n Resources<Resource<ReservationDTO>> reservationResources = new Resources<>(resourceList);\n reservationResources.add(linkTo(ReservationControllerHateoas.class).withSelfRel());\n\n return new ResponseEntity<>(reservationResources, HttpStatus.OK);\n } catch (Exception ex) {\n logger.error(\"delete reservation exception\", ex);\n return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "3440ec0d19c91b6195d7cd7e324ceea1", "score": "0.56182736", "text": "@Override\n\tpublic Collection<ReservationDto> findAllByDateOfReservation(Date dateOfReservation) {\n\t\t\t\treturn null;\n\t}", "title": "" }, { "docid": "5d0a6ce97e0d9ac1a0196325e3f92d8f", "score": "0.55990165", "text": "public PagedCallSettings.Builder<\n ListReservationsHttpRequest, ReservationList, ListReservationsPagedResponse>\n listReservationsSettings() {\n return listReservationsSettings;\n }", "title": "" }, { "docid": "0b826d70ab013e30fd7b43ef149f860d", "score": "0.5592629", "text": "@RequestMapping(path=\"/hotels/{id}/reservations\", method=RequestMethod.GET)\n public List<Reservation> listReservationsByHotel(@PathVariable(\"id\") int hotelID) throws HotelNotFoundException {\n logAPICall(\"GET - /hotels/\" + hotelID + \"/reservations\"); // Log path to server log\n return theReservationResource.findByHotel(hotelID);\n }", "title": "" }, { "docid": "fd89e74bbb448a6d450b1555b668bb3b", "score": "0.557492", "text": "@PayloadRoot(namespace = NAMESPACE_URI, localPart = \"GetAllReservationsRequest\")\n\t@ResponsePayload\n\tpublic GetAllReservationsResponse getAllReservations(@RequestPayload GetAllReservationsRequest request) throws DatatypeConfigurationException {\n\t\tSystem.out.println(\"*****\");\n\t\tSystem.out.println(request.getRequest());\n\t\tSystem.out.println(\"*****\");\n\t\t\n\t\tGetAllReservationsResponse response = new GetAllReservationsResponse();\n\t\tString agentUsername = agentRepository.getOne(request.getAgentId()).getUsername();\n\t\tresponse.setResponse(\"Head back response: 'Reservations by agent \" + agentUsername + \" successfully sent\");\n\n\t\n\t\tfor(int i = 0; i < reservationRepository.findAll().size(); i++) {\n\t\t\t\n\t\t\tif(reservationRepository.findAll().get(i).getAgent().getId() == request.getAgentId()) {\n\t\t\t\t\n\t\t\t\tReservationSoap r = new ReservationSoap();\n\n\t\t\t\tr.setId(reservationRepository.findAll().get(i).getId());\n\t\t\t\tLocalDate fromDate = reservationRepository.findAll().get(i).getFromDate();\n\t\t\t\tGregorianCalendar gcalFromDate = GregorianCalendar.from(fromDate.atStartOfDay(ZoneId.systemDefault()));\n\t\t\t\tXMLGregorianCalendar xcalFromDate = DatatypeFactory.newInstance().newXMLGregorianCalendar(gcalFromDate);\n\t\t\t\tr.setFromDate(xcalFromDate);\n\t\t\t\tLocalDate toDate = reservationRepository.findAll().get(i).getToDate();\n\t\t\t\tGregorianCalendar gcalToDate = GregorianCalendar.from(toDate.atStartOfDay(ZoneId.systemDefault()));\n\t\t\t\tXMLGregorianCalendar xcalToDate = DatatypeFactory.newInstance().newXMLGregorianCalendar(gcalToDate);\n\t\t\t\tr.setToDate(xcalToDate);\n\t\t\t\tRoomSoap roomSoap = new RoomSoap();\n\t\t\t\troomSoap.setId(reservationRepository.findAll().get(i).getRoom().getId());\n\t\t\t\tr.setRoom(roomSoap);\n\t\t\t\tUserSoap userSoap = new UserSoap();\n\t\t\t\tuserSoap.setId(reservationRepository.findAll().get(i).getUser().getId());\n\t\t\t\tr.setUser(userSoap);\n\t\t\t\tAgentSoap agentSoap = new AgentSoap();\n\t\t\t\tagentSoap.setId(reservationRepository.findAll().get(i).getAgent().getId());\n\t\t\t\tr.setAgent(agentSoap);\n\t\t\t\tr.setPrice(reservationRepository.findAll().get(i).getPrice());\n\t\t\t\tr.setConfirmed(reservationRepository.findAll().get(i).isConfirmed());\n\t\t\t\t\n\t\t\t\tresponse.getReservationsList().add(r);\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t\n\t\treturn response;\n\t}", "title": "" }, { "docid": "75f9629660c90239d9c428421cd5531d", "score": "0.55605114", "text": "public ReservationDetail reserveRoom(String type, LocalDate startDate, LocalDate endDate);", "title": "" }, { "docid": "f1e5d038cacefe79b99f07c1b8cd452f", "score": "0.5552751", "text": "public PagedCallSettings<\n ListReservationsHttpRequest, ReservationList, ListReservationsPagedResponse>\n listReservationsSettings() {\n return listReservationsSettings;\n }", "title": "" }, { "docid": "d5ddfd386d3686ff4e5140b5e72adecf", "score": "0.5552097", "text": "public void addReservation(Reservation r)\n {\n reservation.add(r);\n }", "title": "" }, { "docid": "311be097a36678376ae312fd2c76b422", "score": "0.5547004", "text": "@GET\r\n public List<ReservaDTO> getReservas(@PathParam(\"idUsuario\") Long idUsuario)\r\n {\r\n UsuarioEntity usuario=usuarioLogic.getUsuario(idUsuario);\r\n List<ReservaEntity> reservas = usuario.getReservas();\r\n if(reservas == null || reservas.isEmpty())\r\n {\r\n throw new WebApplicationException(\"El usuario no tiene reservas en el sistema\", 404); \r\n }\r\n return listEntity2DTO(reservas);\r\n }", "title": "" }, { "docid": "c3eb128cc3b4359d5e7f23a78819676d", "score": "0.5540637", "text": "public void printReservations() {\r\n\t\tfor (int i = 0; i < rooms.size(); i++) {\r\n\t\t\tif (rooms.get(i) != null) {\r\n\t\t\t\tSystem.out.println(rooms.get(i)); \r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println((i + 1) + \" is not reserved\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "dd6bb7886f7b6ac2e434b990a44d017a", "score": "0.55186504", "text": "public Reservation toDomain(){\n\t\tReservation reservation=new Reservation();\n\t\treservation.setDateEnd(dateEnd);\n\t\treservation.setDateStart(dateStart);\n\t\treservation.setDescription(description);\n\t\treservation.setId(id);\n\t\treturn reservation;\n\t}", "title": "" }, { "docid": "a1723340b5b71847aedf9ff6a54a10c5", "score": "0.55166495", "text": "java.util.List<RealtimeBidding.BidRequest.AdSlot> \n getAdslotList();", "title": "" }, { "docid": "e8591814ebde778e6f2a01ae6c4d719b", "score": "0.55141634", "text": "@PayloadRoot(namespace = NAMESPACE_URI, localPart = \"GetAllReservationsAgentRequest\")\n\t@ResponsePayload\n\tpublic GetAllReservationsAgentResponse getAllReservationsAgent(@RequestPayload GetAllReservationsAgentRequest request) throws DatatypeConfigurationException {\n\t\tSystem.out.println(\"*****\");\n\t\tSystem.out.println(request.getRequest());\n\t\tSystem.out.println(\"*****\");\n\t\t\n\t\tGetAllReservationsAgentResponse response = new GetAllReservationsAgentResponse();\n\t\tString agentUsername = agentRepository.getOne(request.getAgentId()).getUsername();\n\t\tresponse.setResponse(\"Head back response: 'Agent reservations by agent \" + agentUsername + \" successfully sent\");\n\n\t\n\t\tfor(int i = 0; i < reservationAgentRepository.findAll().size(); i++) {\n\t\t\t\n\t\t\tif(reservationAgentRepository.findAll().get(i).getAgent().getId() == request.getAgentId()) {\n\t\t\t\t\n\t\t\t\tReservationAgentSoap r = new ReservationAgentSoap();\n\n\t\t\t\tr.setId(reservationAgentRepository.findAll().get(i).getId());\n\t\t\t\tLocalDate fromDate = reservationAgentRepository.findAll().get(i).getFromDate();\n\t\t\t\tGregorianCalendar gcalFromDate = GregorianCalendar.from(fromDate.atStartOfDay(ZoneId.systemDefault()));\n\t\t\t\tXMLGregorianCalendar xcalFromDate = DatatypeFactory.newInstance().newXMLGregorianCalendar(gcalFromDate);\n\t\t\t\tr.setFromDate(xcalFromDate);\n\t\t\t\tLocalDate toDate = reservationAgentRepository.findAll().get(i).getToDate();\n\t\t\t\tGregorianCalendar gcalToDate = GregorianCalendar.from(toDate.atStartOfDay(ZoneId.systemDefault()));\n\t\t\t\tXMLGregorianCalendar xcalToDate = DatatypeFactory.newInstance().newXMLGregorianCalendar(gcalToDate);\n\t\t\t\tr.setToDate(xcalToDate);\n\t\t\t\tRoomSoap roomSoap = new RoomSoap();\n\t\t\t\troomSoap.setId(reservationAgentRepository.findAll().get(i).getRoom().getId());\n\t\t\t\tr.setRoom(roomSoap);\n\t\t\t\tAgentSoap agentSoap = new AgentSoap();\n\t\t\t\tagentSoap.setId(reservationAgentRepository.findAll().get(i).getAgent().getId());\n\t\t\t\tr.setAgent(agentSoap);\n\t\t\t\t\n\t\t\t\tresponse.getReservationsList().add(r);\n\t\t\t}\n\t\t}\n\t\treturn response;\n\t}", "title": "" }, { "docid": "3024bcc4352d4828c268ad33d8da374d", "score": "0.5505639", "text": "@RequestMapping(\"/list\")\r\n\tpublic String listReservations(Model model, HttpSession session) {\n\t\t\r\n\t\tCredentials credentials = (Credentials) session.getAttribute(\"credentials\");\r\n\t\t\r\n\t\t// Checking if the user has been authenticated and he has permissions\r\n\t\tif(!authenticated(session) || !hasPermissions(session, new Object[1])) {\r\n\t\t\tsession.setAttribute(\"nextUrl\", \"/reservation/list.html\");\r\n\t\t\treturn \"redirect:/login.html\";\r\n\t\t}\r\n\t\t\r\n\t\tif(credentials.getRole().equals(\"owner\")) {\r\n\t\t\tmodel.addAttribute(\"reservations\", reservationDao.getOwnerReservations(credentials.getId_actor()));\r\n\t\t\tsession.setAttribute(\"numPendingReservations\", reservationDao.getOwnerPendingReservations(\r\n\t\t\t\t\tcredentials.getId_actor()).size());\r\n\t\t}\r\n\t\telse\r\n\t\t\tmodel.addAttribute(\"reservations\", reservationDao.getTenantReservations(credentials.getId_actor()));\r\n\t\t\r\n\t\treturn \"reservation/list\";\r\n\t}", "title": "" }, { "docid": "7b9191e7d50aae29870b9b67190e7311", "score": "0.5500868", "text": "public ArrayList<Reservation> GetPastReservationsByUsername(String username) {\n\t\tArrayList<Reservation> ret = new ArrayList<Reservation>();\n\t\t//If we haven't established a connection, establish one\n\t\tif(connection == null) connection = getConnection();\n\t\t//If we failed to establish a connection, return false\n\t\tif(connection == null) return ret;\n\t\tSystem.out.println(\"[GetPastReservationsByUsername] Connected to Database\");\n\t\tStatement stmt;\n\t\ttry {\n\t\t\tstmt = connection.createStatement();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\t//use the production database\n\t\t\tstmt.execute(\"use TrainProject\");\n\t\t\t//run our query\n\t\t\tString query = String.format(\"SELECT * FROM Reservation r where r.date<NOW() AND r.username = '%s'\", username);\n\t\t\tSystem.out.println(\"[GetPastReservationsByUsername] running : \" + query);\n\t\t\t\n\t\t\tResultSet res = stmt.executeQuery(query);\n\t\t\tSystem.out.println(\"[GetPastReservationsByUsername] Query successfully has data\");\n\t\t\twhile(res.next()) {\n\t\t\t\tReservation r = new Reservation(\n\t\t\t\t\tres.getInt(\"resNum\"),\n\t\t\t\t\tres.getFloat(\"totalFare\"),\n\t\t\t\t\tres.getString(\"passenger\"),\n\t\t\t\t\tres.getString(\"date\"),\n\t\t\t\t\tres.getInt(\"originID\"),\n\t\t\t\t\tres.getInt(\"destinationID\"),\n\t\t\t\t\tres.getString(\"lineName\"),\n\t\t\t\t\tres.getString(\"username\"),\n\t\t\t\t\tres.getBoolean(\"isChild\"),\n\t\t\t\t\tres.getBoolean(\"isSenior\"),\n\t\t\t\t\tres.getBoolean(\"isDisabled\"),\n\t\t\t\t\tres.getInt(\"schedID\"));\n\t\t\t\tret.add(r);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcloseConnection();\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "a84cc62b64a2e64fb58be0d0436aa438", "score": "0.5491093", "text": "@GetMapping(\"/listaRentRezervacijaKorisnik\")\n\t@CrossOrigin(origins = \"http://localhost:4200\")\n\tpublic ResponseEntity<List<RezervacijaVozila>> listaRentRezervacijaKorisnik()\n\t{\n\t\tArrayList<RezervacijaVozila> reservations = rezVozService.listaRezervacijaKorisnik(userService.getCurrentUser().getId());\n\t\treturn new ResponseEntity<List<RezervacijaVozila>>(reservations, HttpStatus.OK);\n\t\t\n\t}", "title": "" }, { "docid": "8fa91f65dce00f2f8da2242c1658d9f3", "score": "0.5479008", "text": "public final Vector<Booking> getMyBookings() {\n\t\t\n\t\tVector<Booking> myBookings = new Vector<Booking>();\n\t\tResultSet res = null;\n\t\tDBConnection db = new DBConnection();\n\t\tString query = \"select booking_nr, user_id, item_id, date_format(start, '%Y-%m-%d %H:%i:%s') as start, date_format(end, '%Y-%m-%d %H:%i:%s') as end, recurrencetype_id, category_id from bookings where user_id =\" + this.userID + \" order by booking_nr asc, item_id asc, start asc, item_id asc\";\n\t\tres = db.excuteQ(query);\n\n\t\ttry {\n\t\t\twhile(res.next()) {\n\t\t\t\tBooking booking = new Booking();\n\t\t\t\tbooking.setBookingID(res.getInt(\"booking_nr\"));\n\t\t\t\tbooking.setUserID(res.getInt(\"user_id\"));\n\t\t\t\tbooking.setItemID(res.getInt(\"item_id\"));\n\t\t\t\tbooking.setStart(res.getString(\"start\"));\n\t\t\t\tbooking.setEnd(res.getString(\"end\"));\n\t\t\t\tbooking.setRecurrencetypeID(res.getInt(\"recurrencetype_id\"));\n\t\t\t\tbooking.setCategoryID(res.getInt(\"category_id\"));\t\t\t\t\n\t\t\t\t\n\t\t\t\tmyBookings.add(booking);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdb.close();\n\n\t\treturn myBookings;\n\t}", "title": "" }, { "docid": "df0449dbdf6a93e1391d76957fe72103", "score": "0.54642695", "text": "@Override\n\tpublic List<AvailableRoom> getAvailableRoomForGroup(String startDate,\n\t\t\tString endDate, String houseCode) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "01e58bd1bb9a4a134b4b6da74554b6b8", "score": "0.5448046", "text": "public List<Reserva> findByCliente(Cliente cliente){ \r\n\t\treturn this.reservaRepository.findByCliente(cliente);\r\n\t}", "title": "" }, { "docid": "b099f5972e5b9d8bc1499c9a799e6961", "score": "0.54386294", "text": "public void getBookings(){\n try{\n\n Connection conn = DriverManager.getConnection(Application.jdbcURL,Application.username,Application.password);\n PreparedStatement checkUsnEmail = conn.prepareStatement(\"SELECT * FROM \\\"reservations\\\" WHERE deliverydate is null ORDER BY customerusername ASC\");\n ResultSet rs = checkUsnEmail.executeQuery();\n while(rs.next()){\n String usn = rs.getString(4);\n String license = rs.getString(3);\n String amount = rs.getString(10);\n String begindate= rs.getString(6);\n String enddate= rs.getString(8);\n \n bookingList.add(new activeBookings(usn,begindate,enddate,amount,license));\n }\n conn.close();\n }\n catch(Exception e){\n \n }\n }", "title": "" }, { "docid": "a7be528e1b5a6eaa8643bede78762abd", "score": "0.5425208", "text": "public void addGroup() throws Exception {\n System.out.println(\"Enter Group Name\");\n String groupName = sc.nextLine();\n System.out.println(\"Enter Passenger Names\");\n String commaSeparatedNames = sc.nextLine();\n String[] names = commaSeparatedNames.split(\", \");\n System.out.println(\"Select Class [First] or [Economy]\");\n String service_class = sc.nextLine();\n List<Reservation> grpReservations = new ArrayList<>();\n Reservation newReservation;\n boolean canBeAdded = false;\n int maxAvailableSeats = 0;\n if (service_class.equals(\"First\")) {\n for (int i = 0; i < 2; i++) {\n maxAvailableSeats += model.getValue().get(i + 1).size();\n }\n } else {\n //economy\n for (int i = 9; i < 29; i++) {\n maxAvailableSeats += model.getKey().get(i + 1).size();\n }\n }\n if (names.length <= maxAvailableSeats)\n canBeAdded = true;\n else {\n System.out.println(\"Sorry! Reservation cannot be made. Not enough seats available1\");\n }\n\n if (canBeAdded && !grpMap.containsKey(groupName)) {\n for (String name : names) {\n newReservation = new Reservation(name, assignSeatForGroup(service_class), \"G\", service_class);\n reservations.add(newReservation);\n grpReservations.add(newReservation);\n System.out.println(newReservation.getAllottedSeat() + \": \" + newReservation.getName());\n }\n if (grpMap.containsKey(groupName)) {\n System.out.println(\"Group with same name exists! Try Again\");\n } else\n grpMap.put(groupName, grpReservations);\n }\n }", "title": "" }, { "docid": "a56bd6143e5f005e50f93d4bd63096c9", "score": "0.54143375", "text": "java.util.List<RealtimeBidding.BidResponse.Ad.AdSlot> \n getAdslotList();", "title": "" }, { "docid": "0e70c3247836aab6fae669143e19bde5", "score": "0.5393685", "text": "@GetMapping\n public List<Room> listVacantRooms(@RequestParam(\"date\") @DateTimeFormat(pattern = \"yyyy-MM-dd\") LocalDate date,\n @RequestParam(\"startTime\") @DateTimeFormat(pattern = \"HH:mm:ss\") LocalTime startTime,\n @RequestParam(\"endTime\") @DateTimeFormat(pattern = \"HH:mm:ss\") LocalTime endTime,\n @RequestParam(\"groupId\") Long groupId,\n @RequestParam(value = \"eventId\", required = false) Long eventId) {\n Group group = groupService.loadGroup(groupId);\n if (group != null) {\n List<Room> rooms = new ArrayList<>(roomService.listRooms());\n if (!rooms.isEmpty()) {\n List<Event> events = new ArrayList<>(eventService.findEventsByTime(date, startTime, endTime));\n if (!events.isEmpty()) {\n if (eventId != null) {\n Event event = eventService.loadEvent(eventId);\n if (event != null) {\n events.remove(event);\n }\n }\n events.forEach(event -> event.getRooms().forEach(rooms::remove));\n }\n rooms.removeIf(room -> room.getMaxSeats() < group.calculateNumberOfStudents());\n }\n return rooms;\n }\n return new ArrayList<>();\n }", "title": "" }, { "docid": "fa1c0fb6e0edbd78864bb895a061c64f", "score": "0.5391361", "text": "public PagedCallSettings.Builder<\n AggregatedListReservationsHttpRequest,\n ReservationAggregatedList,\n AggregatedListReservationsPagedResponse>\n aggregatedListReservationsSettings() {\n return aggregatedListReservationsSettings;\n }", "title": "" }, { "docid": "10a9d2f5a2f4621067812a339e65206f", "score": "0.5378736", "text": "public void cancelReservation() {\n System.out.println(\"Select [I]ndividual or [G]roup\");\n String type = sc.nextLine();\n\n if (type.equals(\"I\")) {\n System.out.println(\"Enter name\");\n String name = sc.nextLine();\n boolean removed = false;\n List<String> seat = new ArrayList<>();\n for (Iterator<Reservation> iterator = reservations.iterator(); iterator.hasNext(); ) {\n Reservation value = iterator.next();\n if (value.getName().equals(name)) {\n seat.add(value.getAllottedSeat());\n iterator.remove();\n removed = true;\n break;\n } else {\n removed = false;\n }\n }\n\n if (!removed) {\n System.out.println(\"No such reservation!\");\n } else {\n addAgain(seat);\n System.out.println(\"Removed Successfully\");\n }\n } else if (type.equals(\"G\")) {\n System.out.println(\"Enter Group Name\");\n String grpName = sc.nextLine();\n boolean removed = false;\n List<String> seat = new ArrayList<>();\n List<Reservation> allReservations = new ArrayList<>();\n if (grpMap.containsKey(grpName)) {\n List<Reservation> grpReservationList = grpMap.get(grpName);\n for (Iterator<Reservation> grpItr = grpReservationList.iterator(); grpItr.hasNext(); ) {\n Reservation value = grpItr.next();\n allReservations.add(value);\n seat.add(value.getAllottedSeat());\n grpItr.remove();\n }\n for (Reservation r : allReservations) {\n reservations.remove(r);\n removed = true;\n }\n\n if (!removed) {\n System.out.println(\"No such reservation!\");\n } else {\n System.out.println(seat);\n addAgain(seat);\n System.out.println(\"Removed Successfully\");\n }\n } else {\n System.out.println(\"No reservation found under Group Name: \" + grpName + \"! .Please try again\");\n }\n\n } else {\n System.out.println(\"Invalid choice! \" + type + \" is not a valid choice. Try [I]ndividual or [G]roup\");\n }\n }", "title": "" }, { "docid": "68ac86f85470c16d4462733026a55498", "score": "0.5374408", "text": "@GetMapping(\"/users/business/reservations\")\n\t@JsonView(View.InternalUserAndBusiness.class) // Returns user data\n\tpublic ResponseEntity<Set<Reservation>> getBusinessReservations(@RequestParam String business,\n\t\t\t@RequestParam(required = false) @DateTimeFormat(pattern = \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\") LocalDateTime start,\n\t\t\t@RequestParam(required = false) @DateTimeFormat(pattern = \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\") LocalDateTime end,\n\t\t\tJwtAuthenticationToken jwt) {\n\t\tUser userToken = objectMapper.convertValue(jwt.getTokenAttributes(), User.class);\n\t\tSet<Reservation> _reservations = this.userService.getUserBusinessReservations(userToken, business, start,\n\t\t\t\tend);\n\t\treturn new ResponseEntity<>(_reservations, HttpStatus.OK);\n\t}", "title": "" }, { "docid": "a8205b9b7a31bf694d86f7df006d34ad", "score": "0.53742296", "text": "private void reserve() {\n Long reservationId;\n if (!selectedReservationPresent()) {\n selectedReservation = setApprovedAndAvailability(createReservation());\n }\n reservationId = reservationDaoImpl.saveOrUpdateReservation(setApprovedAndAvailability(selectedReservation));\n// reservations.add(selectedReservation);\n allReservations.add(selectedReservation);\n\n readFromDataBaseOrUpdateReservationsTable(false);\n AlertDialogs.showNotifications(\"Reservations change\",\n String.format(\"Reservations number %s, added!\", reservationId),\n getMainWindow());\n resetAll();\n }", "title": "" }, { "docid": "04e3c491b3bb3f858d725cdb1c984d73", "score": "0.53737646", "text": "public List reserveAll() {\n \n // Only one thread gets to reserveAll at a time. Otherwise two threads\n // calling this can deadlock each other. See bug #1199086.\n synchronized (m_reserveAllMutex) {\n \n final List result;\n final List reserveList;\n \n synchronized (m_reservablesMutex) {\n purgeZombieResources();\n \n result = new ArrayList(m_reservables.size());\n reserveList = new ArrayList(m_reservables);\n }\n \n while (reserveList.size() > 0) {\n // Iterate backwards so remove is cheap.\n final ListIterator iterator =\n reserveList.listIterator(reserveList.size());\n \n while (iterator.hasPrevious()) {\n final Reservable reservable = (Reservable)iterator.previous();\n \n if (reservable.isSentinel()) {\n iterator.remove();\n }\n else if (reservable.reserve()) {\n result.add(reservable);\n iterator.remove();\n }\n else if (reservable.isClosed()) {\n iterator.remove();\n }\n }\n \n if (reserveList.size() > 0) {\n // Block until more resources are freed.\n synchronized (m_reservableFreedMutex) {\n try {\n // Don't block for ever because the outstanding\n // resources might have already been freed.\n m_reservableFreedMutex.wait(1000);\n }\n catch (InterruptedException e) {\n throw new UncheckedInterruptedException(e);\n }\n }\n }\n }\n \n return result;\n }\n }", "title": "" }, { "docid": "c792504fd03ee45e8ad599e43736a4b5", "score": "0.5357303", "text": "public PagedCallSettings<\n AggregatedListReservationsHttpRequest,\n ReservationAggregatedList,\n AggregatedListReservationsPagedResponse>\n aggregatedListReservationsSettings() {\n return aggregatedListReservationsSettings;\n }", "title": "" }, { "docid": "e6d92aa348e3449fbd2313cc4c6dcee2", "score": "0.53348243", "text": "public static List<Room>AvailableRooms(Date tid){\n\t\treturn new ArrayList<Room>();\n\t}", "title": "" }, { "docid": "f783e5da3f0af8b4fbf8c47a79d52a04", "score": "0.5307492", "text": "List<Appointment> viewAvailability();", "title": "" }, { "docid": "9bcad8e3453b4403197ef6176d81cf80", "score": "0.52946544", "text": "public static void merge(com.azure.resourcemanager.reservations.ReservationsManager manager) {\n manager\n .reservations()\n .merge(\n \"276e7ae4-84d0-4da6-ab4b-d6b94f3557da\",\n new MergeRequest()\n .withSources(\n Arrays\n .asList(\n \"/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/cea04232-932e-47db-acb5-e29a945ecc73\",\n \"/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/5bf54dc7-dacd-4f46-a16b-7b78f4a59799\")),\n com.azure.core.util.Context.NONE);\n }", "title": "" }, { "docid": "da918d1ba60f6ca154c1cf02c64ccc55", "score": "0.5289822", "text": "List<Region> list();", "title": "" }, { "docid": "7868760c5e26bcef5935c31103db4b5c", "score": "0.52728546", "text": "public List<String> toList(){\n List<String> list = new ArrayList<>();\n list.add(this.room_Id);\n list.add(Integer.toString(this.room_capacity));\n return list;\n }", "title": "" }, { "docid": "0682b3b3bab75a97d1aa27ce98e13e24", "score": "0.5270777", "text": "public ArrayList<int[]> getSchedule(){\n ArrayList<int[]> schedule = new ArrayList<int[]>();\n ArrayList<int[]> rallyIDAndEnd = new ArrayList<int[]>();\n \n for(int i = 0; i < _n_rallies; i++) {\n \tint[] temp = new int[3];\n \ttemp[0] = i;\n \ttemp[1] = _rallies.get(i)[0];\n \ttemp[2] = _rallies.get(i)[1];\n \t \t\n \trallyIDAndEnd.add(temp);\n }\n \n Collections.sort(rallyIDAndEnd, new Comparator<int[]>() {\n \t@Override\n \t\tpublic int compare(int[] first, int[] second) {\n \t\t\tif(first.length == 3 && second.length == 3) {\n \t\t\t\treturn first[2] - second[2];\n \t\t\t}return 0;\n \t}\n });\n \n int lastFinish = 0;\n \n for(int i = 0; i < _n_rallies; i++) {\n \tint[] retInp = new int[2];\n \tretInp[0] = rallyIDAndEnd.get(i)[0];\n \tretInp[1] = lastFinish;\n \tschedule.add(retInp);\n \tlastFinish = lastFinish + rallyIDAndEnd.get(i)[1];\n \tif(lastFinish > rallyIDAndEnd.get(i)[2]) {\n \treturn new ArrayList<int[]>();\n }\n \t\n }\n \n System.out.println(\"IMPLEMENT ME!\");\n \n return schedule;\n }", "title": "" }, { "docid": "a46c382e35e83a5d8ff039ca6456726f", "score": "0.5267168", "text": "public ArrayList<Slot> getSlotList() {\n return thisDaySlots;\n }", "title": "" }, { "docid": "63cb788f3a9e03cde5b0950fe89136a0", "score": "0.5265794", "text": "Reservation findByReservationId(String reservationId);", "title": "" }, { "docid": "b07c4f40f1cc2f2372385afb65ffe0cf", "score": "0.5261864", "text": "public void getParticipators() {\n ReservationManager.getReservations(getActivity(), itinerary, list -> {\n List<User> participators = new LinkedList<>();\n for (Reservation reservation : list) {\n participators.add(reservation.getClient());\n }\n UserListAdapter adapter = new UserListAdapter(getActivity(), participators);\n recyclerView.setAdapter(adapter);\n });\n }", "title": "" }, { "docid": "18a2e0fde685462de6aab51e67c6ff29", "score": "0.52494055", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic List<Object[]> searchReservedRooms(SearchRoomConstraint constraint) {\n\t\tconstraint.getFacilities().add(null);\n\t\tQuery query = manager\n\t\t\t\t.createQuery(\"SELECT room, res.id FROM Room room, Reservation res \" + \"WHERE room.name LIKE :name \"\n\t\t\t\t\t\t+ \"AND room.capacity >= :capacity \" + \"AND :facilityCount = \"//\n\t\t\t\t\t\t+ \"(SELECT COUNT(f.id) FROM Room r \"//\n\t\t\t\t\t\t+ \"INNER JOIN r.facilities f \"//\n\t\t\t\t\t\t+ \"WHERE r.id = room.id \"//\n\t\t\t\t\t\t+ \"AND f in :facilities) \"//\n\t\t\t\t\t\t+ \"AND res.roomId = room.id \"//\n\t\t\t\t\t\t+ \"AND res.overriden = 0\" //\n\t\t\t\t\t\t+ \"AND res.eventDate = :eventDate \"//\n\t\t\t\t\t\t+ \"AND res.startTime < :endTime \"//\n\t\t\t\t\t\t+ \"AND res.endTime > :startTime \"//\n\t\t\t\t\t\t+ \"AND EXISTS \"//\n\t\t\t\t\t\t+ \"(SELECT p FROM User p \"//\n\t\t\t\t\t\t+ \"WHERE p.id = res.userId \"//\n\t\t\t\t\t\t+ \"AND p.userGroup = 3)\")//\n\t\t\t\t.setParameter(\"name\", \"%\" + constraint.getRoomName() + \"%\")\n\t\t\t\t.setParameter(\"capacity\", constraint.getCapacity())\n\t\t\t\t.setParameter(\"eventDate\", constraint.getEventDate(), TemporalType.DATE)\n\t\t\t\t.setParameter(\"startTime\", constraint.getStartTime(), TemporalType.TIME)\n\t\t\t\t.setParameter(\"endTime\", constraint.getEndTime(), TemporalType.TIME)\n\t\t\t\t.setParameter(\"facilities\", constraint.getFacilities())\n\t\t\t\t.setParameter(\"facilityCount\", (long) constraint.getFacilities().size() - 1);\n\t\treturn query.getResultList();\n\t}", "title": "" }, { "docid": "dcf5bb8116be343fc23a7bbda0e7d490", "score": "0.52437747", "text": "public ArrayList<String> getFreeSlots(ArrayList<Task> arrayList, Date startTime, Date endTime, long duration) {\n Date startPointer = startTime;\n Date endPointer;\n ArrayList<String> stringArrayList = new ArrayList<>();\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"HHmm\");\n\n for (int i = 0; i < arrayList.size(); i++) {\n endPointer = arrayList.get(i).getStartTime();\n\n if ((endPointer.getTime() - startPointer.getTime()) >= duration) {\n String start = simpleDateFormat.format(startPointer);\n String end = simpleDateFormat.format(endPointer);\n stringArrayList.add(start + \" to \" + end + \"\\n\");\n }\n if (startPointer.getTime() < arrayList.get(i).getEndTime().getTime()) {\n startPointer = arrayList.get(i).getEndTime();\n }\n }\n\n if ((endTime.getTime() - startPointer.getTime()) >= duration) {\n String start = simpleDateFormat.format(startPointer);\n stringArrayList.add(start + \" to 2400\\n\");\n }\n\n return stringArrayList;\n }", "title": "" }, { "docid": "8cd35b8dfdaa249887b7ea44ce43c1c9", "score": "0.5243725", "text": "public ArrayList<HotelRoom> getAvailableRooms(ArrayList<Reservation> resQueue, MyDate theInDate,\n\t\t\tMyDate theOutDate) {\n\n\t\tArrayList<HotelRoom> conflictingHotelRooms = new ArrayList<>();\n\n\t\tfor (Reservation res : reservations) {\n\t\t\tMyDate resInDate = res.getCheckInDate();\n\t\t\tMyDate resOutDate = res.getCheckOutDate();\n\t\t\tint inCompIn = theInDate.compareTo(resInDate);\n\t\t\tint outCompOut = theOutDate.compareTo(resOutDate);\n\t\t\tint inCompOut = theInDate.compareTo(resOutDate);\n\t\t\tint outCompIn = theOutDate.compareTo(resInDate);\n\t\t\tif ((inCompIn >= 0 && inCompOut <= 0) || (outCompOut <= 0 && outCompIn >= 0)\n\t\t\t\t\t|| (inCompIn <= 0 && outCompOut >= 0)) {\n\t\t\t\t// Conflicting Dates\n\t\t\t\tconflictingHotelRooms.add(res.getHotelRoom());\n\t\t\t}\n\t\t}\n\t\tfor (Reservation r : resQueue) {\n\t\t\tif (doesConflict(theInDate, theOutDate, r.getCheckInDate(), r.getCheckOutDate())) {\n\t\t\t\tconflictingHotelRooms.add(r.getHotelRoom());\n\t\t\t}\n\t\t}\n\n\t\tArrayList<HotelRoom> roomsAvailable = new ArrayList<>();\n\t\tfor (int e = 1; e <= ECONOMIC_ROOMS; e++) {\n\t\t\tboolean available = true;\n\t\t\tfor (HotelRoom r : conflictingHotelRooms) {\n\t\t\t\tif (r.getRoomType().equals(EconomicRoom.identifier) && r.getRoomNumber() == e) {\n\t\t\t\t\tavailable = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (available) {\n\t\t\t\troomsAvailable.add(new EconomicRoom(e));\n\t\t\t}\n\t\t}\n\t\tfor (int l = 1; l <= LUXURIOUS_ROOMS; l++) {\n\t\t\tboolean available = true;\n\t\t\tfor (HotelRoom r : conflictingHotelRooms) {\n\t\t\t\tif (r.getRoomType().equals(LuxuriousRoom.identifier) && r.getRoomNumber() == l) {\n\t\t\t\t\tavailable = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (available) {\n\t\t\t\troomsAvailable.add(new LuxuriousRoom(l));\n\t\t\t}\n\t\t}\n\n\t\treturn roomsAvailable;\n\n\t}", "title": "" }, { "docid": "854d29480a317e58a5217bd0bc7e376d", "score": "0.52407146", "text": "private void handleReservations() {\n Random random = new Random();\n int reservations = 0 ;\n for (int x = 0; x < newReservations; x++) {\n int rand = random.nextInt(100);\n if (rand < 0.3 * newReservations) {\n reservations++;\n }\n }\n for (int i = 0; i < reservations; i++) {\n Location location = simulatorView.getFirstFreeLocation();\n if (location != null) {\n ReservedCar car = new ReservedCar(hour);\n ReservedCars.add(car);\n simulatorView.setCarAt(simulatorView.getFirstFreeLocation(), car);\n }\n //Multiplied by 100 because profit is tracked in cents.\n reservationprofit += reservationcost * 100;\n }\n }", "title": "" }, { "docid": "8444b6a0625dc9f54b2e8eaef4b0827e", "score": "0.5238408", "text": "List<String> getReservationIdsForDepositChargeJobs( int jobIdStart, int jobIdEnd );", "title": "" }, { "docid": "7a93f32657390f638375d81822584f77", "score": "0.5235045", "text": "public ReservationUtil(Scanner sc) {\n this.sc = sc;\n reservations = new ArrayList<>();\n grpMap = new HashMap<>();\n }", "title": "" }, { "docid": "a930431b5c99d8c144fa8e8143f5f138", "score": "0.5230594", "text": "Reservation findReservationById(Long id);", "title": "" }, { "docid": "ac6dd47a008b34616faf830f7f4b0433", "score": "0.52266675", "text": "public ArrayList<CalendarEntry> getEventsAllocatedToResource(Resource r){\n\t\treturn r.getParticipating();\n\t}", "title": "" }, { "docid": "ddf119489f103d53716459b45ec7c10b", "score": "0.52253497", "text": "public List<Room> booked(){\n return RoomDAO.getRoomDAO().getBase().stream().filter(user->\n user.getUserReserved()!=null).collect(Collectors.toList());\n }", "title": "" }, { "docid": "1c0d08c0935c2fc1f13cd27787727c37", "score": "0.52064186", "text": "List<Integer> get_rescheduling_info();", "title": "" } ]
a84b3adfcb29e8f8db607fb0bacdfd32
Load the favorites from memory
[ { "docid": "4f2201873dfa0138a4b555d5ceb69ad1", "score": "0.73776287", "text": "private boolean loadFromMemory() {\n\t\tboolean rtn = false;\n\t\ttry {\n\t\t\tLog.v(TAG, \"Checking for favorites file In memory\");\n\t\t\tFile storageFile = getFavoritesStorageDir();\n\t\t\tFileInputStream fis = new FileInputStream(storageFile);\n\t\t\tObjectInputStream is = new ObjectInputStream(fis);\n\t\t\t_favorites = (FavoriteThreads) is.readObject();\n\t\t\tis.close();\n\t\t\trtn = true;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Its ok, first time there wont be a file\n\t\t\tLog.v(TAG, \"No favorites file cache exists\");\n\t\t} catch (InvalidClassException e) {\n\t\t\tLog.w(TAG, \"Old version of Favorites cache\");\n\t\t} catch (Exception e) {\n\t\t\tLog.e(TAG, e.getMessage(), e);\n\t\t}\n\t\treturn rtn;\n\t}", "title": "" } ]
[ { "docid": "0eac74860ee93c46e635f7c2d1dc7f47", "score": "0.7643494", "text": "private void loadFavorites() {\n Map<String,?> keys = sharedPreferences.getAll();\n for(Map.Entry<String,?> entry : keys.entrySet()){\n displayFavorite(entry);\n }\n\n }", "title": "" }, { "docid": "0765fa1ea901b72e9dfcaa56f84117e1", "score": "0.7305162", "text": "private static ArrayList<File> loadFavouriteFiles() {\n\t\tArrayList<File> favFiles = new ArrayList<File>();\n\t\tObjectInputStream oinStream = null;\n\t\ttry {\n\t\t\tFile file = new File(MyFilesApplication.getAppContext().getFilesDir(), FILE_NAME);\n\t\t\toinStream = new ObjectInputStream(new FileInputStream(file));\n\t\t\tfavFiles.addAll((ArrayList<File>) oinStream.readObject());\n\t\t} catch(FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} \n\t\tif(oinStream != null) {\n\t\t\ttry {\n\t\t\t\toinStream.close();\n\t\t\t} catch (IOException e) {\n\t\t\t}\n\t\t}\n\t\treturn favFiles;\n\t}", "title": "" }, { "docid": "22f512b13890ee075d40528d915ae810", "score": "0.6977064", "text": "public Flowable<List<MovieEntity>> loadFavorites() {\n return movieDatabase.movieDao().loadFavorites();\n }", "title": "" }, { "docid": "584c0854f77000ebdac09902868b3e04", "score": "0.6683473", "text": "private void saveToMemory() {\n\t\tFileOutputStream outputStream;\n\t\tContext ctx = MainApplication.getAppContext();\n\t\ttry {\n\t\t Log.v(TAG, \"Saving favorites document to memory\");\n\t\t outputStream = ctx.openFileOutput(\n\t\t\t\t MainApplication.getAppContext().getString(R.string.file_favorites), \n\t\t\t\t Context.MODE_PRIVATE);\n\t\t ObjectOutputStream os = new ObjectOutputStream(outputStream);\n\t\t os.writeObject(_favorites);\n\t\t os.close();\n\t\t} catch (Exception e) {\n\t\t\tLog.e(TAG, e.getMessage(), e);\n\t\t}\n\t}", "title": "" }, { "docid": "6b0c5f043780761bd393cdcfe93f53f5", "score": "0.6497291", "text": "public void getFavorites() {\n\t\tDatabaseHandler db = new DatabaseHandler(getActivity());\n\t\tList<Movie> movieList = db.getAllMovies();\n\t\tmovies = new Movie[movieList.size()];\n\t\tmovies = movieList.toArray(movies);\n\t\tdb.close();\n\n\t\t//Remove Error Message\n\t\ttvError.setText(\"\");\n\n\t\t//Show em\n\t\tdisplayMovies();\n\t}", "title": "" }, { "docid": "f5a2ae882042804a0d823c57a27b5437", "score": "0.64082557", "text": "protected FavoriteFactory() {\n\t\tif(!loadFromMemory())\n\t\t\t_favorites = new FavoriteThreads();\n\t}", "title": "" }, { "docid": "114a7372ed12edacb4bb7ca630ac5344", "score": "0.62405014", "text": "public List<Rant> getFavorites() {\n fetchData();\n return Collections.unmodifiableList(favorites);\n }", "title": "" }, { "docid": "865a2d930c0959078fc65d27344d1938", "score": "0.6101864", "text": "public void updateFavorites() {\n SharedPreferences sharedPreferencesFavorite = getApplication().getSharedPreferences(Values.FAV_TEAMS, Context.MODE_PRIVATE);\n Set<String> selectedTeams = new LinkedHashSet<>(sharedPreferencesFavorite.getStringSet(Values.FAV_TEAMS, new LinkedHashSet<String>()));\n Gson gson = new Gson();\n\n ArrayList<Team> favoritesArrayList = new ArrayList<>();\n\n for (String teamJson : selectedTeams) {\n Team team = gson.fromJson(teamJson, Team.class);\n favoritesArrayList.add(team);\n }\n\n favorites.setValue(favoritesArrayList);\n }", "title": "" }, { "docid": "8a8263a1d835743d64f1fcb1912ae213", "score": "0.60834837", "text": "private void restoreFavorite(Key key, byte[] buffer, int dataSize) throws IOException {\n if (VERBOSE) Log.v(TAG, \"unpacking favorite \" + key.id);\n if (DEBUG) Log.d(TAG, \"read (\" + buffer.length + \"): \" +\n Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP));\n\n ContentResolver cr = mContext.getContentResolver();\n ContentValues values = unpackFavorite(buffer, dataSize);\n cr.insert(Favorites.CONTENT_URI, values);\n }", "title": "" }, { "docid": "143e08dcccb62673bb740a75a78021c8", "score": "0.6056983", "text": "private void populateData() {\n // load from db or from server\n if (mSortOrder.equals(getString(R.string.sort_order_favorites))) {\n showLoadingViews();\n getActivity().getSupportLoaderManager().restartLoader(LOADER_ID, null, this);\n } else {\n getActivity().getSupportLoaderManager().destroyLoader(LOADER_ID);\n loadFavorites();\n loadData();\n }\n }", "title": "" }, { "docid": "84231d22467dda0c7bc2d27491383449", "score": "0.6034727", "text": "private void showFavorites() {\n List<Movie> movies = new ArrayList<>();\n\n Cursor cursor = getContentResolver().query(FavoritesContract.FavoritesEntry.CONTENT_URI,\n null, null, null, null);\n if (cursor != null) {\n if (cursor.moveToFirst()) {\n do {\n Movie movie = new Movie();\n movie.setId(cursor.getString(cursor.getColumnIndex(FavoritesEntry.COLUMN_ID)));\n movie.setTitle(cursor.getString(cursor.getColumnIndex(FavoritesEntry.COLUMN_TITLE)));\n movie.setPosterPath(cursor.getString(cursor.getColumnIndex(FavoritesEntry.COLUMN_POSTER)));\n movie.setSynopsis(cursor.getString(cursor.getColumnIndex(FavoritesEntry.COLUMN_SYNOPSIS)));\n movie.setRating(cursor.getString(cursor.getColumnIndex(FavoritesEntry.COLUMN_RATING)));\n movie.setReleaseDate(cursor.getString(cursor.getColumnIndex(FavoritesEntry.COLUMN_RELEASE_DATE)));\n movies.add(movie);\n } while (cursor.moveToNext());\n }\n cursor.close();\n }\n\n if (movies.isEmpty()) {\n if (errorMessage.getVisibility() == View.INVISIBLE) {\n errorMessage.setText(getString(R.string.error_no_favorites));\n errorMessage.setVisibility(View.VISIBLE);\n }\n if (recyclerView.getVisibility() == View.VISIBLE) {\n recyclerView.setVisibility(View.INVISIBLE);\n }\n } else {\n restoreLayoutState();\n\n moviesAdapter.updateMovieList(movies);\n moviesAdapter.notifyDataSetChanged();\n\n if (errorMessage.getVisibility() == View.VISIBLE) {\n errorMessage.setVisibility(View.INVISIBLE);\n }\n if (recyclerView.getVisibility() == View.INVISIBLE) {\n recyclerView.setVisibility(View.VISIBLE);\n }\n }\n }", "title": "" }, { "docid": "772559044d8a52782e7b11e4a319fe93", "score": "0.58988106", "text": "public Favorite getFavoriteById(int id);", "title": "" }, { "docid": "d587b0736f529d6d0b3ba194b4d1db04", "score": "0.58827233", "text": "public static ArrayList<String> getFavorites() {\n Log.e(TAG, \"Getting user favorites!\");\n // Set reference to the user's directory in the database\n final ArrayList<String> favorites = new ArrayList<String>();\n DatabaseReference ref = UserAuthentication.getUserDirectory();\n Log.e(TAG, \"User path: \" + ref.toString());\n\n // Attach a listener to read the data at our users reference\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n ArrayList<String> favs = dataSnapshot.getValue(Account.class).getFavorites();\n for(String fav : favs ) {\n Log.e(TAG, \"Retrieved favorite: \" + fav);\n favorites.add(fav);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.e(TAG, \"The read failed: \" + databaseError.getCode());\n }\n });\n return favorites;\n }", "title": "" }, { "docid": "c7507dc9c907ddfd84e000a0f36106c8", "score": "0.58783394", "text": "private void getFavorData() {\n\t\tJSONArray jsonArray;\n\t\tJSONObject jsonObject;\n\t\t//Open the file and get data into JSONArray.\n\t\tFileInputStream fileInput;\n\t\ttry {\n\t\t\tfileInput = getActivity().openFileInput(\"festival\");\n\t\t\tbyte[] input = new byte[fileInput.available()];\n\t\t\twhile (fileInput.read(input) != -1) {}\n\t\t\tjsonArray = new JSONArray(new String(input));\n\t\t\tfor (int i=0; i<jsonArray.length(); i++) {\n\t\t\t\t//Put each one into activity list.\n\t\t\t\tjsonObject = jsonArray.getJSONObject(i);\n\t\t\t\tFestival festival = new Festival();\n\t\t\t\tfestival.name = jsonObject.getString(\"festivalName\");\n\t\t\t\tfestival.date = jsonObject.getString(\"festivalDate\");\n\t\t\t\tfestival.id = jsonObject.getString(\"festivalId\");\n\t\t\t\tfestivals.add(festival);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsetListAdapter(getListAdapter());\n\t}", "title": "" }, { "docid": "a2695e3d901a4df8f18c7e68e041aaaf", "score": "0.5797843", "text": "public void loadPreferences() {\n\t\tthis.cacheEnabled = prefs.getBoolean(PREF_CACHE_STATUS, true);\n\t\t\n\t\tthis.firstTimeRun = prefs.getBoolean(PREF_FIRST_TIME_RUN, true);\n\t\t\n\t\tthis.themeId = prefs.getInt(PREF_THEME_ID, getThemeId());\n\n\t\tString theDefaultExternalFilePath = this.dataStoragePath;\n\t\t\n\t\tthis.dataStoragePath = prefs.getString(PREF_DATA_STORAGE_PATH, theDefaultExternalFilePath);\n\t\tif (!new File(dataStoragePath).exists()) \n\t\t\tthis.dataStoragePath = theDefaultExternalFilePath;\n\t\t\n\t\tif (!new File(dataStoragePath).exists()) \n\t\t\tthis.dataStoragePath = null; //theDefaultExternalFilePath;\n\t\t\n\t\t\n//\t\tString historyStr = prefs.getString(PREF_SEARCH_HISTORY, \"\");\n//\t\tString[] tokens = historyStr.split(\",\");\n//\t\tif (tokens != null)\n//\t\t\tfor (String str : tokens)\n//\t\t\t\tsearchHistoryArray.add(str);\n\t}", "title": "" }, { "docid": "7159c78123a502b07300b6b6803daa7a", "score": "0.5781148", "text": "public List<GetFavoriteData> GetAllFavorites(int city_id) {\n if(CMAppGlobals.DB_DEBUG)Logger.i(TAG, \":: DB : FavoriteDBManager.GetAllFavorites : city_id : \" + city_id);\n\n SQLiteDatabase db = getReadableDatabase();\n List<GetFavoriteData> favorites = new ArrayList<GetFavoriteData>();\n Cursor c = null;\n\n String selectQuery = \"SELECT * FROM \" + DBUtlis.TABLE_FAVORITE +\n \" WHERE \" + DBUtlis.ID_LOCALITY + \" = \" + city_id;\n\n try {\n if(db != null) {\n c = db.rawQuery(selectQuery, null);\n }\n // looping through all rows and adding to list\n if (c != null && c.moveToFirst()) {\n do {\n GetFavoriteData getFavoriteData = new GetFavoriteData();\n getFavoriteData.setId(String.valueOf(c.getInt(c.getColumnIndex(DBUtlis.KEY_ID))));\n getFavoriteData.setIdLocality(c.getString(c.getColumnIndex(DBUtlis.ID_LOCALITY)));\n getFavoriteData.setAddress(c.getString(c.getColumnIndex(DBUtlis.ADDRESS)));\n getFavoriteData.setLatitude(c.getString(c.getColumnIndex(DBUtlis.LATITUDE)));\n getFavoriteData.setLongitude(c.getString(c.getColumnIndex(DBUtlis.LONGITUDE)));\n getFavoriteData.setEntrance(c.getString(c.getColumnIndex(DBUtlis.ENTRANCE)));\n getFavoriteData.setComment(c.getString(c.getColumnIndex(DBUtlis.COMMENT)));\n getFavoriteData.setName(c.getString(c.getColumnIndex(DBUtlis.NAME)));\n\n // adding to favorite list\n favorites.add(getFavoriteData);\n } while (c.moveToNext());\n }\n } catch (Exception e) {\n if(CMAppGlobals.DB_DEBUG)Logger.e(TAG, \":: DB : FavoriteDBManager.GetAllFavorites : error : \" + e!=null?e.getMessage():\"\");\n } finally {\n if (c != null && !c.isClosed()) {\n c.close();\n db.close();\n }\n }\n return favorites;\n\n }", "title": "" }, { "docid": "50885ed18b6635e5befc0f59411c55f9", "score": "0.5774962", "text": "public void searchObjectFavoriteList();", "title": "" }, { "docid": "50885ed18b6635e5befc0f59411c55f9", "score": "0.5774962", "text": "public void searchObjectFavoriteList();", "title": "" }, { "docid": "e047a4b6098b2b6c431acfb8d505c9fc", "score": "0.57705134", "text": "@Query(\"SELECT * FROM favorite_episodes\")\n LiveData<List<FavoriteEntry>> loadFavorites();", "title": "" }, { "docid": "a32c7176f6efa52eb008644bee595caa", "score": "0.5751731", "text": "@Override\n public void onResume() {\n super.onResume();\n favouriteAdapter = new FavouriteAdapter();\n\n mNoFavourites.setVisibility(TextView.INVISIBLE);\n\n Context context = getContext();\n //Grab list of favourited meals based on username\n final AppDatabase db = AppDatabase.getInstance(context);\n GetFavouritesByUsernameAsyncTask getFavouritesByUsernameAsyncTask = new GetFavouritesByUsernameAsyncTask();\n getFavouritesByUsernameAsyncTask.setDatabase(db);\n getFavouritesByUsernameAsyncTask.setDelegate(FavouritesFragment.this);\n getFavouritesByUsernameAsyncTask.execute(username);\n\n }", "title": "" }, { "docid": "b8f4eb41106b6cf7619566bbdb04ea93", "score": "0.57310706", "text": "private Boolean movieInFavorites() {\n String defaultValue = \"[]\";\n Context ctx = getActivity().getApplicationContext();\n String filename = \"favorites\";\n // Get the file, creates it if doesn't exist\n FileInputStream fileInputStream = getFileContent(ctx, filename, defaultValue);\n // Get the data inside the file\n String lineData = getStringFromFile(fileInputStream);\n return lineData.contains(movieTitle.getText().toString());\n }", "title": "" }, { "docid": "61d024fc7fd29c6e8373aa1d3eb53034", "score": "0.5698828", "text": "public static void loadCache()\r\n {\r\n /*\r\n File fileName = new File(FileManager.getAppSupportPath().getPath()+\"/HistoryCache\");\r\n\tFileInputStream fis = null;\r\n ObjectInputStream in = null;\r\n\r\n\ttry {\r\n fis = new FileInputStream(fileName);\r\n in = new ObjectInputStream(fis);\r\n history = (Map<String,ArrayList>) in.readObject();\r\n in.close();\r\n removeOldHistory();\r\n\t}\r\n\r\n catch (IOException ex) {\r\n\t}\r\n\r\n catch (ClassNotFoundException ex) {\r\n\t}*/\r\n }", "title": "" }, { "docid": "d561a3622baa539c2470c6d4ff5630af", "score": "0.56958365", "text": "boolean getFavorited();", "title": "" }, { "docid": "d561a3622baa539c2470c6d4ff5630af", "score": "0.56958365", "text": "boolean getFavorited();", "title": "" }, { "docid": "ce91afbcb66c6b73728845e139258f4b", "score": "0.5688244", "text": "public Favorite getFavoriteByUsername(String username);", "title": "" }, { "docid": "5a5e13388fe608365c03f429a9acff55", "score": "0.5680855", "text": "@Override\n protected void onPause() {\n super.onPause();\n SharedPreferences prefs =\n getSharedPreferences(\"MisPreferencias\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = prefs.edit();\n HashSet<String> ids=new HashSet<String>();\n for(int i=0;i<fav.size();i++){\n ids.add(\"\"+fav.get(i).getIdentificador());\n }\n editor.putStringSet(ListActivity.key_fav_sp,ids);\n editor.commit();\n }", "title": "" }, { "docid": "4debd108ce8e0fd348eb0b5d92908a4c", "score": "0.5654827", "text": "public static ArrayList<String> getFavorites(Context cxt) {\n ArrayList<String> list = new ArrayList<>();\n\n final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(cxt);\n\n //Clunky I know\n for (int x = 0; x < VersionData.osVersions.length; x++) {\n int productInt = VersionData.osVersions[x];\n if (isFavorite(cxt, productInt)) {\n list.add(VersionData.getProductName(productInt));\n Log.d(\"PREFS\", \"Setting a favorite in list: \" + VersionData.getProductName(productInt));\n }\n }\n\n for (int x = 0; x < VersionData.deviceVersions.length; x++) {\n int productInt = VersionData.deviceVersions[x];\n if (isFavorite(cxt, productInt)) {\n list.add(VersionData.getProductName(productInt));\n Log.d(\"PREFS\", \"Setting a favorite in list: \" + VersionData.getProductName(productInt));\n }\n }\n\n return list;\n }", "title": "" }, { "docid": "45c986ba539a19f4290aa12841d14952", "score": "0.5649254", "text": "public List<Favorite> getFavoriteList() {\n if (_favoriteList == null) { _favoriteList = newReferrerList(); }\n return _favoriteList;\n }", "title": "" }, { "docid": "dfd266d7eab5422ad402ec7892c7cca7", "score": "0.5639309", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState,\"/favorites\", GenericRealtimeList.RENDERER_STATION);\n \n /*\n * Setup view and adapter.\n */\n setContentView(R.layout.favorites);\n favStations = favoriteLineDbAdapter.getFavoriteData();\n favStationsDevi = new ArrayList<FavoriteStation>();\n clearView();\n load();\n registerForContextMenu(getListView());\n }", "title": "" }, { "docid": "43733cf48825e45b759c8f6beef5df18", "score": "0.5629517", "text": "@Override\n public void run() {\n favList.setItems(servidor.getFavoritos());\n }", "title": "" }, { "docid": "b0c78e742b3e5ddcb72537fce938cd85", "score": "0.5627055", "text": "private void loadPlaylists(){\n String filename = \"saved_playlists.txt\";\n Gson gson = new Gson();\n Type type = new TypeToken<ArrayList<Playlist>>() {\n }.getType();\n try {\n FileInputStream fis = this.openFileInput(filename);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader streamReader = new BufferedReader(isr);\n\n StringBuilder json = new StringBuilder();\n\n String inputStr;\n while ((inputStr = streamReader.readLine()) != null)\n json.append(inputStr);\n\n newPlaylists = gson.fromJson(String.valueOf(json),type);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (newPlaylists == null)\n newPlaylists = new ArrayList<>();\n }", "title": "" }, { "docid": "f583a69002c3c1169c7ca6a95c63a2dc", "score": "0.56203496", "text": "private static void loadFavoritesIntoUI() {\n TableView tableView = setTableViewProperties();\n\n // Go through all of the words in the practice list, adding them into the table\n for (Word word : PracticeList.getPracticedWords()) {\n tableView.getItems().add(word);\n }\n\n sortTableInUI();\n changeFontSizeInUI();\n }", "title": "" }, { "docid": "f6ff15dcf2eca00f33743e4bc30e49b6", "score": "0.5606152", "text": "public void setFavoriteList(List<Favorite> favoriteList) {\n _favoriteList = favoriteList;\n }", "title": "" }, { "docid": "c7cec9fee52d6fd20ecca14bcf1e5d06", "score": "0.5602255", "text": "private ContentValues unpackFavorite(byte[] buffer, int dataSize)\n throws IOException {\n Favorite favorite = unpackProto(new Favorite(), buffer, dataSize);\n\n // If it is a hotseat item, move it accordingly.\n if (favorite.container == Favorites.CONTAINER_HOTSEAT) {\n favorite.screen += mHotseatShift;\n }\n\n ContentValues values = new ContentValues();\n values.put(Favorites._ID, favorite.id);\n values.put(Favorites.SCREEN, favorite.screen);\n values.put(Favorites.CONTAINER, favorite.container);\n values.put(Favorites.CELLX, favorite.cellX);\n values.put(Favorites.CELLY, favorite.cellY);\n values.put(Favorites.SPANX, favorite.spanX);\n values.put(Favorites.SPANY, favorite.spanY);\n values.put(Favorites.RANK, favorite.rank);\n\n if (favorite.itemType == Favorites.ITEM_TYPE_SHORTCUT) {\n values.put(Favorites.ICON_TYPE, favorite.iconType);\n if (favorite.iconType == Favorites.ICON_TYPE_RESOURCE) {\n values.put(Favorites.ICON_PACKAGE, favorite.iconPackage);\n values.put(Favorites.ICON_RESOURCE, favorite.iconResource);\n }\n values.put(Favorites.ICON, favorite.icon);\n }\n\n if (!TextUtils.isEmpty(favorite.title)) {\n values.put(Favorites.TITLE, favorite.title);\n } else {\n values.put(Favorites.TITLE, \"\");\n }\n if (!TextUtils.isEmpty(favorite.intent)) {\n values.put(Favorites.INTENT, favorite.intent);\n }\n values.put(Favorites.ITEM_TYPE, favorite.itemType);\n\n UserHandleCompat myUserHandle = UserHandleCompat.myUserHandle();\n long userSerialNumber =\n UserManagerCompat.getInstance(mContext).getSerialNumberForUser(myUserHandle);\n values.put(LauncherSettings.Favorites.PROFILE_ID, userSerialNumber);\n\n // If we will attempt grid resize, use the original profile to validate grid size, as\n // anything which fits in the original grid should fit in the current grid after\n // grid migration.\n DeviceProfieData currentProfile = migrationCompatibleProfileData == null\n ? mDeviceProfileData : migrationCompatibleProfileData;\n\n if (favorite.itemType == Favorites.ITEM_TYPE_APPWIDGET) {\n if (!TextUtils.isEmpty(favorite.appWidgetProvider)) {\n values.put(Favorites.APPWIDGET_PROVIDER, favorite.appWidgetProvider);\n }\n values.put(Favorites.APPWIDGET_ID, favorite.appWidgetId);\n values.put(LauncherSettings.Favorites.RESTORED,\n LauncherAppWidgetInfo.FLAG_ID_NOT_VALID |\n LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY |\n LauncherAppWidgetInfo.FLAG_UI_NOT_READY);\n\n // Verify placement\n if (((favorite.cellX + favorite.spanX) > currentProfile.desktopCols)\n || ((favorite.cellY + favorite.spanY) > currentProfile.desktopRows)) {\n restoreSuccessful = false;\n throw new InvalidBackupException(\"Widget not in screen bounds, aborting restore\");\n }\n } else {\n // Check if it is an hotseat item, that can be replaced.\n if (isReplaceableHotseatItem(favorite)\n && favorite.targetType != Favorite.TARGET_NONE\n && favorite.targetType < CommonAppTypeParser.SUPPORTED_TYPE_COUNT) {\n Log.e(TAG, \"Added item type flag\");\n values.put(LauncherSettings.Favorites.RESTORED,\n 1 | CommonAppTypeParser.encodeItemTypeToFlag(favorite.targetType));\n } else {\n // Let LauncherModel know we've been here.\n values.put(LauncherSettings.Favorites.RESTORED, 1);\n }\n\n // Verify placement\n if (favorite.container == Favorites.CONTAINER_HOTSEAT) {\n if ((favorite.screen >= currentProfile.hotseatCount)\n || (favorite.screen == currentProfile.allappsRank)) {\n restoreSuccessful = false;\n throw new InvalidBackupException(\"Item not in hotseat bounds, aborting restore\");\n }\n } else {\n if ((favorite.cellX >= currentProfile.desktopCols)\n || (favorite.cellY >= currentProfile.desktopRows)) {\n restoreSuccessful = false;\n throw new InvalidBackupException(\"Item not in desktop bounds, aborting restore\");\n }\n }\n }\n\n return values;\n }", "title": "" }, { "docid": "228e5a225ac396114241bcb36df4484d", "score": "0.5591564", "text": "public ArrayList<String> getFavs(String user) {\n ArrayList<String> favList = new ArrayList<>();\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"SELECT favorite_song FROM favorites WHERE favorite_user=?\", new String[]{user + \"\"});\n\n // Moving through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n String song = cursor.getString(cursor.getColumnIndex(\"favorite_song\"));\n favList.add(song);\n } while (cursor.moveToNext());\n }\n cursor.close();\n db.close();\n\n return favList;\n }", "title": "" }, { "docid": "50721771653f3ca049a6e0d8ea445899", "score": "0.556683", "text": "public void loadUsersFromCache() {\n\t\trememberUsers = DataStorageManager.readUsers(this);\n\t\tif (rememberUsers == null) {\n\t\t\trememberUsers = new ArrayList<User>();\n\t\t}\n\t\tusers = new ArrayList<User>();\n\t\tusers.addAll(rememberUsers);\n\t}", "title": "" }, { "docid": "e54f4ea675706df6ee4f2de7244b7d86", "score": "0.5523923", "text": "@Override\n\tpublic List<Order> getAllFavourites() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "edca8665e553f36e06bf67ba924f1f70", "score": "0.55201334", "text": "public int getCount() {\n\t\treturn _favorites.size();\n\t}", "title": "" }, { "docid": "80add7b46cf394872a818bfcdd773d39", "score": "0.54783547", "text": "@OnClick(R.id.button_remove_favorites) void removeFromFavorites() {\n String defaultValue = \"[]\";\n Context ctx = getActivity().getApplicationContext();\n String filename = \"favorites\";\n String movieTitleText = movieTitle.getText().toString();\n // Get the file, creates it if doesn't exist\n FileInputStream fileInputStream = getFileContent(ctx, filename, defaultValue);\n // Get the data inside the file\n String lineData = getStringFromFile(fileInputStream);\n\n Gson parser = new Gson();\n\n // We add the id to the json list in the string format\n String jsonInString = removeObjectFromString(movieTitleText, parser, lineData);\n addToFavorites.setVisibility(View.VISIBLE);\n removeFromFavorites.setVisibility(View.INVISIBLE);\n writeFile(ctx, filename, jsonInString);\n }", "title": "" }, { "docid": "f540614626d1713b312bdefcb6b46cba", "score": "0.54583937", "text": "private void backupFavorites(BackupDataOutput data) throws IOException {\n // persist things that have changed since the last backup\n ContentResolver cr = mContext.getContentResolver();\n // Don't backup apps in other profiles for now.\n Cursor cursor = cr.query(Favorites.CONTENT_URI, FAVORITE_PROJECTION,\n getUserSelectionArg(), null, null);\n try {\n cursor.moveToPosition(-1);\n while(cursor.moveToNext()) {\n final long id = cursor.getLong(ID_INDEX);\n final long updateTime = cursor.getLong(ID_MODIFIED);\n Key key = getKey(Key.FAVORITE, id);\n mKeys.add(key);\n final String backupKey = keyToBackupKey(key);\n\n // Favorite proto changed in v4. Backup again if the version is old.\n if (!mExistingKeys.contains(backupKey) || updateTime >= mLastBackupRestoreTime\n || restoredBackupVersion < 4) {\n writeRowToBackup(key, packFavorite(cursor), data);\n } else {\n if (DEBUG) Log.d(TAG, \"favorite already backup up: \" + id);\n }\n }\n } finally {\n cursor.close();\n }\n }", "title": "" }, { "docid": "6ea8a03ce65591b1c44c9d39a6203266", "score": "0.5450482", "text": "public void load(){\n try{\n FileInputStream fis = new FileInputStream(\"players.memory\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n Object obj = ois.readObject();\n ois.close();\n \n if (obj instanceof ArrayList) {\n this.removeAll();\n \t\n \tthis.players = (ArrayList<Player>) obj;\n for(Player player : this.players){\n this.add(player);\n /* Är spelaren aktiv ? */\n if(player.isActive()){\n \n /* Sätter spelaren som aktiv */\n this.setCurrentPlayer(this.players.indexOf(player));\n }\n }\n }\n } catch(Exception error){\n error.printStackTrace();\n }\n }", "title": "" }, { "docid": "34dbea34bef0f035755ddb22545edf5e", "score": "0.5437262", "text": "public ArrayList<Word> getAllFavWord(){\n ArrayList<Word> favWordList = new ArrayList<>();\n ;\n mDataBase = this.getReadableDatabase();\n try {\n Cursor cursor = mDataBase.rawQuery(\"SELECT * FROM av WHERE fav = 'TRUE'\", null);\n if (cursor.moveToFirst()){\n do {\n Word word = new Word();\n word.setId(cursor.getInt(cursor.getColumnIndex(\"id\")));\n word.setWord(cursor.getString(cursor.getColumnIndex(\"word\")));\n word.setHtml(cursor.getString(cursor.getColumnIndex(\"html\")));\n word.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n String fav = cursor.getString(cursor.getColumnIndex(\"fav\"));\n if(fav.equals(\"TRUE\")){\n word.setFav(true);\n }else{\n word.setFav(false);\n }\n favWordList.add(word);\n }while (cursor.moveToNext());\n }\n cursor.close();\n }catch (Exception e){ }\n\n return favWordList;\n }", "title": "" }, { "docid": "a9686fb9698b24adcad912c01e93e49b", "score": "0.5419995", "text": "@Override\n\tpublic List<Movie> getAllFavorites(long userId) {\n\t\tList<Movie> movieList = userFavorite.get(userId).getMovieItem();\n\t\tFavorite fav = userFavorite.get(userId);\n\t\tif (fav == null || fav.getMovieItem() == null || fav.getMovieItem().isEmpty()) {\n\n\t\t\ttry {\n\t\t\t\tthrow new FavoriteEmptyException();\n\t\t\t} catch (FavoriteEmptyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"No of Favorites :\" + movieList.size());\n\t\t}\n\t\treturn movieList;\n\n\t}", "title": "" }, { "docid": "8afb803b4dcf82720bd685476600f753", "score": "0.54138285", "text": "private void loadRestaurants(){\n //storage service\n\n mRestaurantStorageService.getAllRestaurants(new ICallback<List<Restaurant>>() {\n @Override\n public void onResult(List<Restaurant> result) {\n\n Log.d(TAG,\"size \"+result.size());\n setRestaurants(result);\n\n getNavigator().hideBusyIndicator();\n }\n\n @Override\n public void onFailure(Throwable t) {\n Log.d(TAG,\"\",t);\n }\n });\n mRestaurantCloudService.getAllRestaurants(new ICallback<List<Restaurant>>() {\n @Override\n public void onResult(List<Restaurant> result) {\n setRestaurants(result);\n getNavigator().hideBusyIndicator();\n }\n\n @Override\n public void onFailure(Throwable t) {\n getNavigator().hideBusyIndicator();\n }\n });\n\n }", "title": "" }, { "docid": "b752a696c58181620832af9f15016ece", "score": "0.54125655", "text": "@GET(\"/user/favorites\")\n Call<UserFavoritesResponse> favorites();", "title": "" }, { "docid": "196932682465d628dbc46e42ab61811e", "score": "0.54082507", "text": "@Override\r\n public int getFavouritesCount() {\n return 0;\r\n }", "title": "" }, { "docid": "295ec715b13d14a8dafb527e0311d632", "score": "0.5406323", "text": "FavoritesGroup getFavorites();", "title": "" }, { "docid": "1d7328372239ff33c4271441e9db8c75", "score": "0.537272", "text": "private void QueryUserFavorites(String uid)\n {\n Query query = FirebaseDatabase.getInstance().getReference(\"Favorites\")\n .orderByChild(\"mAuth\")\n .equalTo(uid);\n query.addListenerForSingleValueEvent(new ValueEventListener()\n {\n @Override\n public void onDataChange (DataSnapshot dataSnapshot)\n {\n FavList.clear();\n if (dataSnapshot.exists())\n {\n for(DataSnapshot snapshot: dataSnapshot.getChildren())\n {\n\n FavoriteListItem item = snapshot.getValue(FavoriteListItem.class);\n FavList.add(item);\n }\n\n }\n else\n {\n int duration = Toast.LENGTH_LONG;\n Context context = getApplicationContext();\n Toast toast = Toast.makeText(context, \"No Campsites Found! Add some Favorites\", duration);\n toast.show();\n }\n UpdateRecyclerHelper();\n }\n\n @Override\n public void onCancelled (DatabaseError error)\n {\n int duration = Toast.LENGTH_LONG;\n Context context = getApplicationContext();\n Toast toast = Toast.makeText(context, \"Problem reading Database.\", duration);\n toast.show();\n }\n });\n }", "title": "" }, { "docid": "2663d92c7e612395e4ff99ff36db6bdc", "score": "0.536837", "text": "private Favorite packFavorite(Cursor c) {\n Favorite favorite = new Favorite();\n favorite.id = c.getLong(ID_INDEX);\n favorite.screen = c.getInt(SCREEN_INDEX);\n favorite.container = c.getInt(CONTAINER_INDEX);\n favorite.cellX = c.getInt(CELLX_INDEX);\n favorite.cellY = c.getInt(CELLY_INDEX);\n favorite.spanX = c.getInt(SPANX_INDEX);\n favorite.spanY = c.getInt(SPANY_INDEX);\n favorite.iconType = c.getInt(ICON_TYPE_INDEX);\n favorite.rank = c.getInt(RANK_INDEX);\n\n String title = c.getString(TITLE_INDEX);\n if (!TextUtils.isEmpty(title)) {\n favorite.title = title;\n }\n String intentDescription = c.getString(INTENT_INDEX);\n Intent intent = null;\n if (!TextUtils.isEmpty(intentDescription)) {\n try {\n intent = Intent.parseUri(intentDescription, 0);\n intent.removeExtra(ItemInfo.EXTRA_PROFILE);\n favorite.intent = intent.toUri(0);\n } catch (URISyntaxException e) {\n Log.e(TAG, \"Invalid intent\", e);\n }\n }\n favorite.itemType = c.getInt(ITEM_TYPE_INDEX);\n if (favorite.itemType == Favorites.ITEM_TYPE_APPWIDGET) {\n favorite.appWidgetId = c.getInt(APPWIDGET_ID_INDEX);\n String appWidgetProvider = c.getString(APPWIDGET_PROVIDER_INDEX);\n if (!TextUtils.isEmpty(appWidgetProvider)) {\n favorite.appWidgetProvider = appWidgetProvider;\n }\n } else if (favorite.itemType == Favorites.ITEM_TYPE_SHORTCUT) {\n if (favorite.iconType == Favorites.ICON_TYPE_RESOURCE) {\n String iconPackage = c.getString(ICON_PACKAGE_INDEX);\n if (!TextUtils.isEmpty(iconPackage)) {\n favorite.iconPackage = iconPackage;\n }\n String iconResource = c.getString(ICON_RESOURCE_INDEX);\n if (!TextUtils.isEmpty(iconResource)) {\n favorite.iconResource = iconResource;\n }\n }\n\n byte[] blob = c.getBlob(ICON_INDEX);\n if (blob != null && blob.length > 0) {\n favorite.icon = blob;\n }\n }\n\n if (isReplaceableHotseatItem(favorite)) {\n if (intent != null && intent.getComponent() != null) {\n PackageManager pm = mContext.getPackageManager();\n ActivityInfo activity = null;;\n try {\n activity = pm.getActivityInfo(intent.getComponent(), 0);\n } catch (NameNotFoundException e) {\n Log.e(TAG, \"Target not found\", e);\n }\n if (activity == null) {\n return favorite;\n }\n for (int i = 0; i < mItemTypeMatchers.length; i++) {\n if (mItemTypeMatchers[i] == null) {\n mItemTypeMatchers[i] = new ItemTypeMatcher(\n CommonAppTypeParser.getResourceForItemType(i));\n }\n if (mItemTypeMatchers[i].matches(activity, pm)) {\n favorite.targetType = i;\n break;\n }\n }\n }\n }\n\n return favorite;\n }", "title": "" }, { "docid": "932efa5391b2d6d23d183393baa08bc7", "score": "0.5365449", "text": "private void loadData() {\n SharedPreferences sharedPreferences = getSharedPreferences(\"shared preferences\", MODE_PRIVATE);\n Gson gson = new Gson();\n String json = sharedPreferences.getString(\"DEVICES\", null);\n String json2 = sharedPreferences.getString(\"MEMO\", null);\n Type type = new TypeToken<ArrayList<Item>>() {\n }.getType();\n Type type2 = new TypeToken<String>() {\n }.getType();\n ITEMLIST = gson.fromJson(json, type);\n memo_string = gson.fromJson(json2, type2);\n if (ITEMLIST == null) {\n ITEMLIST = new ArrayList<>();\n } else {\n for (Item i : ITEMLIST) i.setImResource(R.drawable.ic_desktop); // fix for icon bug\n\n }\n }", "title": "" }, { "docid": "56b615f46d530783cdf447b04d383cce", "score": "0.5353991", "text": "private void setfavdata()\n {\n txtLike.setText(String.valueOf(models.get(cc.getContentClickpos()).getLikeCount())\n .concat(\" \").concat(getString(R.string.like)));\n\n if(models.get(cc.getContentClickpos()).isFavourite())\n {\n imgFav.setImageResource(R.mipmap.fav_red);\n }\n\n }", "title": "" }, { "docid": "30b59de0d5a73564f79c3650b339c935", "score": "0.5341142", "text": "public void loadFromDisk()\n {\n loadFromDisk(true);\n }", "title": "" }, { "docid": "1b8f34b702b15a996a7370ea006d0a2a", "score": "0.53132594", "text": "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n mFavoriteCursor = data;\n mFavoriteCursor.moveToFirst();\n DatabaseUtils.dumpCursor(data);\n\n // Create Movie objects array\n Movie[] movies = new Movie[data.getCount()];\n // Timber.v(TAG + \" moviesArray.length()\" + \" \" + moviesArray.length());\n\n for (int i = 0; i < mFavoriteCursor.getCount(); i++) {\n // Timber.v(TAG + \" i = \" + i);\n\n movies[i] = new Movie();\n\n // get id\n // Timber.v(TAG + \" id :\" + \" \" + mFavoriteCursor.getString(COL_ID));\n movies[i].setId(mFavoriteCursor.getString(COL_ID));\n\n // Get title\n // Timber.v(TAG + \" original_title :\" + \" \" + mFavoriteCursor.getString(COL_TITLE));\n movies[i].setTitle(mFavoriteCursor.getString(COL_TITLE));\n\n // Get poster path\n // Timber.v(TAG + \" poster_path :\" + \" \" + mFavoriteCursor.getString(COL_THUMBNAIL));\n movies[i].setThumbnail(mFavoriteCursor.getString(COL_THUMBNAIL));\n\n // Get synopsis\n // Timber.v(TAG + \" overview :\" + \" \" + mFavoriteCursor.getString(COL_SYNOPSIS));\n movies[i].setSynopsis(mFavoriteCursor.getString(COL_SYNOPSIS));\n\n // Get rating\n // Timber.v(TAG + \" vote_average :\" + \" \" + mFavoriteCursor.getString(COL_RATING));\n movies[i].setRating(mFavoriteCursor.getString(COL_RATING));\n\n // Get release date\n // Timber.v(TAG + \" release_date :\" + \" \" + mFavoriteCursor.getString(COL_DATE));\n movies[i].setDate(mFavoriteCursor.getString(COL_DATE));\n\n mFavoriteCursor.moveToNext();\n }\n\n mAdapter = new MovieAdapter(movies);\n mRecyclerView.setAdapter(mAdapter);\n }", "title": "" }, { "docid": "d12f70f4ac201b67f44f70be24df4201", "score": "0.5313129", "text": "@Override\n public void onStart() {\n super.onStart();\n\n // get preferences to check sort order\n prefs = PreferenceManager.getDefaultSharedPreferences(getActivity());\n String checkSortOrder = prefs.getString(getString(R.string.display_preferences_sort_order_key),\n getString(R.string.display_preferences_sort_default_value));\n\n\n boolean sortOrderChange = !checkSortOrder.equals(sortOrder);\n sortOrder = checkSortOrder;\n\n\n if(movies.size() == 0 || sortOrderChange || sortOrder.equals(\"favorites\")){\n getMovies();\n }else{\n // else load what's already in memory\n mMoviePosterAdapter.clear();\n for(Movie movie : movies) {\n mMoviePosterAdapter.add(movie.getPoster());\n }\n }\n\n }", "title": "" }, { "docid": "6e823d69674b73ecce366f7fe23bc32f", "score": "0.53046465", "text": "private void toggleMovieFavoriteStatus()\n {\n if (isFavorite)\n {\n viewModel.getRepository().removeAsFavoriteByMoveId(movieId, this);\n }\n else\n {\n if (movieData==null)\n return;\n\n // add the current movie to the favorite movie data\n FavoritesEntry newfav = new FavoritesEntry(movieId);\n newfav.setBackdrop(movieData.getBackdrop());\n newfav.setOverview(movieData.getOverview());\n newfav.setPosterPath(movieData.getPosterPath());\n newfav.setRating(movieData.getRating());\n newfav.setReleaseDate(movieData.getReleaseDate());\n newfav.setTitle(movieData.getTitle());\n\n viewModel.getRepository().addAsFavorite(newfav,this);\n }\n }", "title": "" }, { "docid": "26feb91ef209ec704c744d906a1f4631", "score": "0.53029436", "text": "private void loadData(){\n SharedPreferences sharedPreferences = getSharedPreferences(\"shared preferences\", MODE_PRIVATE);\n Gson gson = new Gson();\n String json = sharedPreferences.getString(\"game list\", null);\n Type type = new TypeToken<ArrayList<String>>() {}.getType();\n gameList = gson.fromJson(json, type);\n\n if(gameList == null){\n gameList = new ArrayList<>();\n }\n }", "title": "" }, { "docid": "743a8fd60be5136b9d61852be3be4497", "score": "0.53001875", "text": "public void modifyFavorites() {\n if (isFavorited()) {\n for (int i = 0; i < favorites.size(); i++) {\n if (favorites.get(i).getId().equals(chosenEvent.getId())) {\n favorites.remove(i);\n }\n }\n SortByDate.sortDates(favorites);\n storageManager.storeFavorites(favorites);\n } else {\n favorites.add(chosenEvent);\n SortByDate.sortDates(favorites);\n storageManager.storeFavorites(favorites);\n if (storageManager.getSettings().get(\"notification\") == 1) {\n notificationsManger.createNotification();\n }\n }\n }", "title": "" }, { "docid": "9002ca3d0267e17930459463e8bc14c2", "score": "0.528327", "text": "private void loadSongs() {\n allSongs = new ArrayList<>();\n JsonParserUrl mp = new JsonParserUrl(SERVER_LINK);\n allSongs = mp.getSongs();\n }", "title": "" }, { "docid": "0def5a9baaf909ebac4b3d87cd758cb3", "score": "0.527537", "text": "public boolean getFavorited() {\n return favorited_;\n }", "title": "" }, { "docid": "0def5a9baaf909ebac4b3d87cd758cb3", "score": "0.527537", "text": "public boolean getFavorited() {\n return favorited_;\n }", "title": "" }, { "docid": "3c540d01cb0c9430252748faeefe7f33", "score": "0.5271085", "text": "public Cursor fetchAllFav() {\n\n\t\treturn mDb.query(DATABASE_FAV_TABLE, new String[] { KEY_ROWID,\n\t\t\t\tKEY_FAV_NAME, KEY_FAV_NAMETWO,KEY_FAV_TYPE }, null, null, null, null, null);\n\t}", "title": "" }, { "docid": "c52fd96c9b91e377670f9bec9e0e5a94", "score": "0.52697474", "text": "public long getFavouritesCount() {\n return favouritesCount_;\n }", "title": "" }, { "docid": "434720cce4d62ec93d234aef96a8d57a", "score": "0.5265657", "text": "public long getFavouritesCount() {\n return favouritesCount_;\n }", "title": "" }, { "docid": "20b54f706a0dd00a1e2c41252e685170", "score": "0.5259284", "text": "public void loadItem(Proverb p) {\n this.mFragItem.load(p);\n this.mFragItem.updateView();\n this.mFragManager.setFavorite(p.isFavorite);\n\n }", "title": "" }, { "docid": "28bf2c4b3f1ca78431bf65447ad3b4ef", "score": "0.5258843", "text": "public void loadListView() {\n\t\tfamilyitems = new FamilyInq();\n\n\t}", "title": "" }, { "docid": "c680b235a61b02f8a41385653ce1b4d9", "score": "0.5254512", "text": "private String[] getFavoriteFile() {\n\t\tString[] files = { \"audio 1\", \" bai hay\", \"thu thoi\", \"the nhi\",\r\n\t\t\t\t\" bai hay\", \"thu thoi\", \"the nhi\", \" bai hay\", \"thu thoi\",\r\n\t\t\t\t\"the nhi\" };\r\n\r\n\t\treturn files;\r\n\t}", "title": "" }, { "docid": "e2fcbafbf886254a457e119cf6e90c58", "score": "0.5246779", "text": "private void getDetailItemFavorites(String userID)\n {\n DataReceiver dataReceiver = setDataReceiverForItemFavorites();\n //FavoriteAPI favoriteAPI = new FavoriteAPI();\n FavoriteAPI.GetFavorite getFavoriteAPI = FavoriteAPI.initializeGetFavorite(userID, dataReceiver);\n RequestController.getInstance(getActivity()).addToRequestQueue(getFavoriteAPI);\n }", "title": "" }, { "docid": "56a2ce941e6ac1d6a014842c5530ff22", "score": "0.52444273", "text": "@OnClick(R.id.button_add_favorites) void addToFavorites() {\n String defaultValue = \"[]\";\n Context ctx = getActivity().getApplicationContext();\n String filename = \"favorites\";\n String movieTitleText = movieTitle.getText().toString();\n // Get the file, creates it if doesn't exist\n FileInputStream fileInputStream = getFileContent(ctx, filename, defaultValue);\n // Get the data inside the file\n String lineData = getStringFromFile(fileInputStream);\n\n Gson parser = new Gson();\n\n // We add the id to the json list in the string format\n String jsonInString = addObjectToString(movieTitleText, parser, lineData);\n\n // The 'Add' button is set to invisible so that the user can click the 'Remove' button\n addToFavorites.setVisibility(View.INVISIBLE);\n removeFromFavorites.setVisibility(View.VISIBLE);\n writeFile(ctx, filename, jsonInString);\n }", "title": "" }, { "docid": "ef46a08d078872d7bbf0605c05cbd18c", "score": "0.5237684", "text": "private void favoriteAddress() {\n\n\t\ttry {\n\t\t\tArrayList<Address> favorites = FacadeAddress.readAllAddress();\n\t\t\tif ((favorites != null) && (favorites.size() != 0)) {\n\t\t\t\tadapter = new AddressAdapter(getApplicationContext(), favorites);\n\t\t\t\tthis.setListAdapter(adapter);\n\t\t\t} else {\n\t\t\t\tmTextViewEmptyMessage\n\t\t\t\t\t\t.setText(getString(R.string.no_exists_favorite_address));\n\t\t\t\tshowViewEmptyHistory(true);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "940f3b0b4d7912658a02895ed5161843", "score": "0.5236751", "text": "@Override\n public void updateFavorites() {\n if (mToolBarTitle.equals(getString(R.string.action_favorited))){\n mMainFragment.getFavorites();\n }\n }", "title": "" }, { "docid": "c1596c7e4b5e605d0888c4d49c98cb6e", "score": "0.5232256", "text": "private void load() {\n\t\tString savedData = FileHelper.readLocalFile(path);\n\t\tif (!savedData.isEmpty()) {\n\t\t\tJson json = new Json();\n\t\t\tjson.setUsePrototypes(false);\n\t\t\tthis.historyPending = json.fromJson(this.historyPending.getClass(),savedData);\n\t\t} else {\n\t\t\tthis.historyPending = new Array<SessionLog>();\n\t\t}\n\t\t// Lee los datos que si se enviaron\n\t\tsavedData = FileHelper.readLocalFile(pathUploaded);\n\t\tif (!savedData.isEmpty()) {\n\t\t\tJson json = new Json();\n\t\t\tjson.setUsePrototypes(false);\n\t\t\tthis.historySended = json.fromJson(this.historySended.getClass(),savedData);\n\t\t} else {\n\t\t\tthis.historySended = new Array<SessionLog>();\n\t\t}\n\t}", "title": "" }, { "docid": "9a175e4cefc89578c8137cc47effe90e", "score": "0.52207637", "text": "private File getFavoritesStorageDir() {\n\t\tContext ctx = MainApplication.getAppContext(); \n\t File file = new File(ctx.getFilesDir(), \"favorites.dat\");\n\t return file;\n\t}", "title": "" }, { "docid": "79804ee7b9f06f75a062db22c403d5a9", "score": "0.5219899", "text": "public void loadPrefs() {\n\t\tConfig c = new Config();\n\t\t\n\t\tfeedPort = c.load(prefPrefix + \"feedPort\", feedPort);\n\t\tinvertFeed = c.load(prefPrefix + \"invertFeed\", invertFeed);\n\t\tfeedSpeed = c.load(prefPrefix + \"feedSpeed\", feedSpeed);\n\t}", "title": "" }, { "docid": "ab322221a4fbb03a345eee1731594543", "score": "0.5219031", "text": "public boolean getFavorited() {\n return favorited_;\n }", "title": "" }, { "docid": "ab322221a4fbb03a345eee1731594543", "score": "0.5219031", "text": "public boolean getFavorited() {\n return favorited_;\n }", "title": "" }, { "docid": "89f5eb8a26767732043fe93889d152bb", "score": "0.5218443", "text": "public void loadFilms() throws IOException{\n films = read(\"film.txt\");\n }", "title": "" }, { "docid": "9537808258b9e096daf90c1b946e21f6", "score": "0.5215987", "text": "public void loadAll(){\n File listFile = new File(\"src/parsed/stocksList.txt\");\n File listFile2 = new File(\"src/parsed/stocksList2.txt\");\n retrieveList(listFile);\n retrieveList(listFile2);\n }", "title": "" }, { "docid": "9573deee3cb0e697cd5510501980c4bd", "score": "0.52096206", "text": "public void saveAddresses(List<AddressDetailsLocationData> favorites) {\n SharedPreferences.Editor editor;\n editor = sharedPreferences.edit();\n Gson gson = new Gson();\n String jsonFavorites = gson.toJson(favorites);\n editor.putString(FAVORITES, jsonFavorites);\n\n editor.commit();\n }", "title": "" }, { "docid": "22c8d609d899f45329c538387e0fb39b", "score": "0.5191903", "text": "public void showFavoriteList(ArrayList<Object> objectsList);", "title": "" }, { "docid": "22c8d609d899f45329c538387e0fb39b", "score": "0.5191903", "text": "public void showFavoriteList(ArrayList<Object> objectsList);", "title": "" }, { "docid": "52c3d8a8d00ed1d5fb583f8927ddfc86", "score": "0.51861477", "text": "public abstract List<Image> getFavor(User user);", "title": "" }, { "docid": "63823b0e24366d227fea8731c7bb1653", "score": "0.51825887", "text": "public FavoritesService getFavoritesService() {\n\t\treturn favoritesService;\n\t}", "title": "" }, { "docid": "8d4aaa3fb1df9fc976ddd7ff97589d99", "score": "0.5173185", "text": "public Observable<MovieCollection> getFavourites(final int page) {\n return Observable.defer(new Callable<ObservableSource<? extends MovieCollection>>() {\n @Override\n public ObservableSource<? extends MovieCollection> call() throws Exception {\n // Do some long running operation\n Cursor cursor = null;\n MovieCollection collection;\n try {\n cursor = mContext.getContentResolver().query(DatabaseContract.MovieEntry.CONTENT_URI,\n DatabaseContract.MovieEntry.ALL_COLUMNS,\n null,\n null,\n null);\n\n List<Movie> results = new ArrayList<>(0);\n\n while (cursor != null && cursor.moveToNext()) {\n results.add(Movie.fromCursor(cursor));\n }\n\n collection = MovieCollection.builder()\n .setPage(page)\n .setResults(results)\n .setTotal_pages(1)\n .setTotal_results(results.size())\n .build();\n\n return Observable.just(collection);\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n }\n });\n }", "title": "" }, { "docid": "b9f51c4ef1d4426f487a621a046e0448", "score": "0.5172058", "text": "private void loadBookmarks() {\n\n // Clear recyclerview contents\n adapter.bookmarkList.clear();\n\n // Prepare query\n SQLiteDatabase db = dbHelper.getReadableDatabase();\n\n String[] columns = {\"bookmarkID\", \"id\", \"imageResource\", \"description\", \"owner_name\", \"owner\", \"url_l\", \"url_o\", \"title\", \"url_m\"};\n Cursor cursor = db.query(\"bookmarks\", columns, null, null, null, null, \"bookmarkId\");\n\n Log.d(\"DBDEMO\", \"\" + cursor.getCount());\n\n // Go through all the entries in the database\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n int bookmarkID = cursor.getInt(0);\n String id = cursor.getString(1);\n int imageResource = cursor.getInt(2);\n String description = cursor.getString(3);\n String owner_name = cursor.getString(4);\n String owner = cursor.getString(5);\n String url_l = cursor.getString(6);\n String url_o = cursor.getString(7);\n String title = cursor.getString(8);\n String url_m = cursor.getString(9);\n\n\n // Add data to the array list for the recyclerview\n BookmarkInfo bookmark = new BookmarkInfo(bookmarkID, id, imageResource, description, owner_name, owner, url_l, url_o, title, url_m);\n adapter.bookmarkList.add(bookmark);\n\n // Move to next entry\n cursor.moveToNext();\n }\n\n cursor.close();\n db.close();\n\n adapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "376d967c5aae392a29457cd10dab6977", "score": "0.51711124", "text": "public static void loadProfiles(SharedPreferences sharedPref) {\n if (profiles.isEmpty()) {\n int length = sharedPref.getInt(LAST_ID_FIELD, 0);\n for (int i = 0; i < length; i++) {\n loadProfile(i, sharedPref);\n }\n }\n }", "title": "" }, { "docid": "da4cab4f335b3dd45f19a7b1f9111c15", "score": "0.51614124", "text": "public int getFavoritesCount() {\n fetchData();\n return favoritesCount;\n }", "title": "" }, { "docid": "ebef84f8aff236c0f224ac00884bc7dd", "score": "0.51591396", "text": "private void loadSavedData() throws IOException {\n File saved = this.getFriendshipsFile();\n\n if (saved.exists()) {\n Files.lines(saved.toPath())\n .forEach(line -> {\n String[] split = line.split(DELIMITER_IN_SAVED_FILE);\n if (split.length == 2) {\n this.friendshipTable.put(UUID.fromString(split[0]), UUID.fromString(split[1]), Boolean.TRUE);\n } else {\n throw new IllegalStateException();\n }\n });\n this.getLogger().info(\"Successfully loaded \" + this.friendshipTable.columnKeySet().size() + \" friendships.\");\n }\n }", "title": "" }, { "docid": "81a4b1044119161480b141ec77d595a4", "score": "0.5151829", "text": "private Observable<List<GsonShowsInGenre>> gsonDiscoverTvShowsFromDisk() {\n return Observable.empty();\n }", "title": "" }, { "docid": "75765b299ddbdc7dca05f89332204102", "score": "0.51508754", "text": "@Override\n public Loader<Cursor> onCreateLoader(int id, Bundle args) {\n return new CursorLoader(getActivity(),\n FavoriteContract.FavoritesList.CONTENT_URI,\n null,\n null,\n null,\n null);\n }", "title": "" }, { "docid": "747390a81595b8ffaabd2ad256952d95", "score": "0.5149961", "text": "FavoritesGroup getDownloads();", "title": "" }, { "docid": "1a702181768143373170acceb896b1d6", "score": "0.5142957", "text": "public void loadStock() {\n\t\tList<String> productStrings = FileManager.getInstance().readFromFile(stockPath);\n\t\tstock = new ArrayList<Product>();\n\n\t\tfor (String productString : productStrings) {\n\t\t\tstock.add(Product.fromCSV(productString));\n\t\t}\n\t}", "title": "" }, { "docid": "1cae6d423e1a118c6a5100250a972add", "score": "0.51357067", "text": "private void loadData(){\n\t\t\n\t\t// Create an instance of a FilmDAO, which will read the film database\n\t\tFilmDAO fd = new FilmDAO();\n\t\t// Ask the FilmDAO for a list of all films from the database\n\t\tmyData = fd.getAllFilms();\n\t\t\n\t\t// Film(int id, String title, int year, String director, String stars, String review)\n\t}", "title": "" }, { "docid": "90189a1d00f97914614f04e4c0746123", "score": "0.51092905", "text": "void loadMovies(int pageNo) {\n isLoading = true;\n SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n sortBy = sharedPrefs.getString(getString(R.string.pref_sort_type_key), getString(R.string.pref_sort_type_default_value));\n URL url = NetworkUtils.buildUrl(sortBy, pageNo);\n if (NetworkUtils.isOnline(this) && !sortBy.equals(getString(R.string.favourites))) {\n hideOfflineMessage();\n new MovieAsyncTask(this).execute(url);\n } else if (sortBy.equals(getString(R.string.favourites))) {\n getSupportLoaderManager().initLoader(FAVOURITE_LOADER_ID, null, this);\n } else {\n if (pageNo == 1) {\n showOfflineMessage();\n getSupportLoaderManager().initLoader(FAVOURITE_LOADER_ID, null, this);\n }\n }\n }", "title": "" }, { "docid": "f777a9febffd9604292a4ac6c811492e", "score": "0.51066846", "text": "@FXML\n\tpublic void listLoad() {\n\t\tFileChooser fileChooser = new FileChooser();\n\t\t\n\t\tFileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\n\t\t\t\t\"XML files (*.xml)\", \"*.xml\");\n\t\tfileChooser.getExtensionFilters().add(extFilter);\n\t\t\n\t\tFile file = fileChooser.showOpenDialog(mainApp.getPrimaryStage()); //open file dialog\n\t\t\n\t\tif (file != null) {\n\t\t\tmainApp.loadAnimeDataFromFile(file); //load list\n\t\t}\n\t}", "title": "" }, { "docid": "f1a9904816dc85453d0a80d91720a5fe", "score": "0.51043546", "text": "@Override\r\n\tpublic boolean isInfavorite() {\n\t\treturn isInFavorite;\r\n\t}", "title": "" }, { "docid": "2bcba27f65dc16b6454f14c56a67d611", "score": "0.5070401", "text": "public void load();", "title": "" }, { "docid": "2bcba27f65dc16b6454f14c56a67d611", "score": "0.5070401", "text": "public void load();", "title": "" }, { "docid": "2bcba27f65dc16b6454f14c56a67d611", "score": "0.5070401", "text": "public void load();", "title": "" }, { "docid": "49bb96d70350ead30504106d288eed2e", "score": "0.5058232", "text": "@Async\n @EventListener(ApplicationReadyEvent.class)\n private void loadExisitngBooks() {\n logger.info(\"Loading existing books from database\");\n try {\n bookRepository\n .findAll()\n .forEach(\n book -> {\n mapOfExistingBooks.putIfAbsent(book.getBookId(), book);\n });\n logger.info(\"Successfully loaded books from database into temporary storage\");\n mapOfExistingBooks\n .entrySet()\n .forEach(\n book -> {\n logger.info(book.getKey() + \" \" + book.getValue().toString());\n });\n } catch (Exception e) {\n logger.error(\"Exception in loading Existing books\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5f4332dc7cb4489610b4bbec9f157f91", "score": "0.5054202", "text": "long getFavouritesCount();", "title": "" } ]
47ec50341da22925edd9399c6d7cd5ef
Called to evaluate tariffs.
[ { "docid": "15095bb3d769295c10996d6fa2e85ee2", "score": "0.7775494", "text": "public abstract void evaluateTariffs (List<Tariff> tariffs);", "title": "" } ]
[ { "docid": "76cd16ee018e057b5d538e3f888d89f7", "score": "0.5600141", "text": "private static void evaluateRunner() {\r\n\t\tgetInput();\r\n\t\tgetSummary();\r\n\t\taddTableRow();\r\n\t\tprintSummary();\r\n\t}", "title": "" }, { "docid": "88797724db7303c8f5dba0976163ff7e", "score": "0.53913975", "text": "public void perform() {\n List<Tree> trees1 = parser1.trees;\n List<Tree> trees2 = parser2.trees;\n int treeCount1 = trees1.size();\n int treeCount2 = trees2.size();\n// if (labelCount != parser2.translationMap.keySet().size()) {\n// System.out.println(\"The nubmer of sampled nodes are different in two files\");\n// System.exit(0);\n// }\n\n SATreeComparingAnalysis.TreeSummary[] treeSummary1 = makeTreeSummeryForAllTrees(trees1, treeCount1);\n SATreeComparingAnalysis.TreeSummary[] treeSummary2 = makeTreeSummeryForAllTrees(trees2, treeCount2);\n\n }", "title": "" }, { "docid": "94ad30951332787c00767450fae37dec", "score": "0.53309506", "text": "@Override\n\tpublic void run() {\n\t\tthis.parsers.put(this.key, new TiffParser(this.file.getAbsolutePath()));\n\t}", "title": "" }, { "docid": "5fdfda911d65acf9b79274ecebefcd09", "score": "0.5324745", "text": "public void evaluate_CRF_results() throws IOException{\n RemoveBlankLines rbl = new RemoveBlankLines();\n ReaderWriter rw = new ReaderWriter();\n String op = \"\";\n \n // Obtaining the results of CRF\n String results_bn_en, results_hi_en, results_ta_en;\n results_bn_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\Output\\\\Output_BN_EN.txt\",\"\"));\n results_hi_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\Output\\\\Output_HI_EN.txt\",\"\"));\n results_ta_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\Output\\\\Output_TA_EN.txt\",\"\"));\n \n String gold_bn_en, gold_hi_en, gold_ta_en;\n gold_bn_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\dataset\\\\Test\\\\BN_EN_TEST.txt\", \"\"));\n gold_hi_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\dataset\\\\Test\\\\HI_EN_TEST.txt\", \"\"));\n gold_ta_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\dataset\\\\Test\\\\TA_EN_TEST.txt\", \"\"));\n \n System.out.println(\"-----------------CRF--------------------\");\n System.out.println(\"----------------------------------------\");\n System.out.println(\"EVAlUATING RESULTS OF BN_EN mixed text\");\n op += \"\\nEVAlUATING RESULTS OF BN_EN mixed text\\n\";\n String res = compareFiles(gold_bn_en, results_bn_en);\n System.out.println(res);\n op += res + \"\\n\";\n System.out.println(\"----------------------------------------\");\n \n System.out.println(\"----------------------------------------\");\n System.out.println(\"EVAlUATING RESULTS OF HI_EN mixed text\");\n op += \"\\nEVAlUATING RESULTS OF HI_EN mixed text\\n\";\n res = compareFiles(gold_hi_en, results_hi_en);\n System.out.println(res);\n op += res + \"\\n\";\n System.out.println();\n System.out.println(\"----------------------------------------\");\n \n System.out.println(\"----------------------------------------\");\n System.out.println(\"EVAlUATING RESULTS OF TA_EN mixed text\");\n op += \"\\nEVAlUATING RESULTS OF TA_EN mixed text\\n\";\n res = compareFiles(gold_ta_en, results_ta_en);\n System.out.println(res);\n op += res + \"\\n\";\n System.out.println(compareFiles(gold_ta_en, results_ta_en));\n System.out.println(\"----------------------------------------\");\n rw.writeToFile(op, \"CRF Results\", \"txt\");\n }", "title": "" }, { "docid": "f723da3bf51325766a7217bcb769786f", "score": "0.52144873", "text": "public void evaluate_Stanford_results() throws IOException{\n RemoveBlankLines rbl = new RemoveBlankLines();\n ReaderWriter rw = new ReaderWriter();\n String op = \"\";\n \n // Obtaining the results of CRF\n String results_bn_en, results_hi_en, results_ta_en;\n results_bn_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\Output\\\\BN_EN_FinalOp_SP.txt\",\"\"));\n results_hi_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\Output\\\\HI_EN_FinalOp_SP.txt\",\"\"));\n results_ta_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\Output\\\\TA_EN_FinalOp_SP.txt\",\"\"));\n \n String gold_bn_en, gold_hi_en, gold_ta_en;\n gold_bn_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\dataset\\\\Test\\\\BN_EN_TEST.txt\", \"\"));\n gold_hi_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\dataset\\\\Test\\\\HI_EN_TEST.txt\", \"\"));\n gold_ta_en = rbl.removeBlankLines(rw.readFile(\"Resources\\\\dataset\\\\Test\\\\TA_EN_TEST.txt\", \"\"));\n \n System.out.println(\"-----------------Stanford--------------------\");\n System.out.println(\"----------------------------------------\");\n System.out.println(\"EVAlUATING RESULTS OF BN_EN mixed text\");\n op += \"\\nEVAlUATING RESULTS OF BN_EN mixed text\\n\";\n String res = compareFiles(gold_bn_en, results_bn_en);\n System.out.println(res);\n op += res + \"\\n\";\n System.out.println(\"----------------------------------------\");\n \n System.out.println(\"----------------------------------------\");\n System.out.println(\"EVAlUATING RESULTS OF HI_EN mixed text\");\n op += \"\\nEVAlUATING RESULTS OF HI_EN mixed text\\n\";\n res = compareFiles(gold_hi_en, results_hi_en);\n System.out.println(res);\n op += res + \"\\n\";\n System.out.println(\"----------------------------------------\");\n \n System.out.println(\"----------------------------------------\");\n System.out.println(\"EVAlUATING RESULTS OF TA_EN mixed text\");\n op += \"\\nEVAlUATING RESULTS OF TA_EN mixed text\\n\";\n res = compareFiles(gold_ta_en, results_ta_en);\n System.out.println(res);\n op += res + \"\\n\";\n System.out.println(\"----------------------------------------\");\n rw.writeToFile(op, \"SP Results\", \"txt\");\n }", "title": "" }, { "docid": "6124d5c60bb0984d5c40263578e96167", "score": "0.52044", "text": "private AnalysisResult doFileViewEvaluation() {\n\t\tint fileViews = 0;\r\n\t\tfor (LogFileEntry entry : fileList) {\r\n\t\t\tif (entry.getValue().contains(\"viewing:\"))\r\n\t\t\t\tfileViews++;\r\n\t\t}\r\n\t\t\r\n\t\treturn new AnalysisResult(taskName, \"File Views\", String.valueOf(fileViews));\r\n\t}", "title": "" }, { "docid": "2a8f65b8bcdff88b4b6df64997076995", "score": "0.5146538", "text": "@Override\n\tvoid test() {\n\t\tClassificationResult result;\n\t\tList<Feature> features;\n\t\tint successes = 0;\n\t\tint failures = 0;\n\t\tfor (Entry<String, List<List <String>>> cat : testData.entrySet()) { // loop through test data\n\t\t\tfor (List<String> item : cat.getValue()) {\n\t\t\t\tfeatures = extractor.extractFeatures(item);\n\t\t\t\tresult = getClassifier().classify(features); \n\t\t\t\tif (result.getCategory().equals(cat.getKey())) { // check if classification is correct\t\n\t\t\t\t\tif (GlobalConfig.DEBUG)\n\t\t\t\t\t\tSystem.out.println(\"Succeeded for category \" + cat.getKey());\n\t\t\t\t\tregisterSuccess(cat.getKey());\n\t\t\t\t\tsuccesses++;\n\t\t\t\t} else {\n\t\t\t\t\tif (GlobalConfig.DEBUG) {\n\t\t\t\t\t\tSystem.out.println(\"Failed for category: \" + cat.getKey());\n\t\t\t\t\t\tprintWriter.println(\"Category \" + cat.getKey() + \" \" + Utilities.detokenize(item));\n\t\t\t\t\t}\n\t\t\t\t\tregisterFailure(cat.getKey());\n\t\t\t\t\tfailures++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintWriter.close();\n\t\treport += (\"Successes: \" + successes + \" Failures: \" + failures);\n\t\tdouble percentage = (double) successes / ((double) successes + failures);\n\t\treport += (\" Percentage: \" + percentage * 100);\t\n\t\tsetSuccessRate(percentage);\n\t\t// Print individual success rates\n\t\tif (categories != null) {\n\t\t\tint failure;\n\t\t\tint success;\n\t\t\tdouble rate;\n\t\t\tfor (String category : getCategories()) {\n\t\t\t\tif (failureForCategory.get(category) != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfailure = failureForCategory.get(category);\n\t\t\t\t\t\tsuccess = successesForCategory.get(category);\n\t\t\t\t\t\trate = (double) success / ((double) success + failure);\n\t\t\t\t\t\treport += \"\\n\";\n\t\t\t\t\t\treport += \"Success rate for \" + category + \": \" + rate + \"\\n\";\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\treport += \"\\n Error printing result for category \" + category;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * Unload data\n\t\t */\n\t\ttestData = trainingData = null;\n\t\textractor = null;\n\t\tdictionary = null;\n\t}", "title": "" }, { "docid": "9b41c9a9cbe94bca1ab3c1a145740354", "score": "0.5142298", "text": "public void run() {\n String protocol = resRoot.getProtocol();\n String path = resRoot.getPath();\n if (protocol.equals(JAR)) {\n if (path.startsWith(FILE_PROT))\n processJar(path.substring(FILE_PROT.length(), path.indexOf(BANG)));\n else\n processUnknown(path);\n } else if (protocol.equals(FILE))\n processPath(new File(path).getParent());\n else\n processUnknown(resRoot.toString());\n }", "title": "" }, { "docid": "dfb049a035b6743dca7aa165b8c76935", "score": "0.5116067", "text": "public void doComparison() {\r\n \timageAreader.originImageThresholdBinary();\r\n \timageAreader.registeredImageThresholdBinary(); \r\n imageAreader.statisticsDataGeneration(outputDir + File.separator + imageAreader.getCaseNumber() + \"vs\" + imageBreader.getCaseNumber());\r\n }", "title": "" }, { "docid": "8a835441e8b072e34cb4a6f48d02500d", "score": "0.51106507", "text": "public void run() {\n try {\n \tString filePath = this.getClass().getResource(\"/\").getPath();\n \tfilePath = filePath + \"douban-rating-300.txt\";\n\t\t\t\t\tBookResult.runBookResult(filePath);\n\t\t\t\t} catch (TasteException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n }", "title": "" }, { "docid": "d60c2eef47afab48bf59fef495649354", "score": "0.5056938", "text": "public void testExtract_All() throws Exception {\r\n String currentFilePath = \"test_files/accuracytests/BuildScript/\";\r\n Log logger = new MyLog(\"MultipleFormatDependenciesEntryExtractor.accuracytests\");\r\n MultipleFormatDependenciesEntryExtractor extractor = new MultipleFormatDependenciesEntryExtractor(logger);\r\n for (String entryPath : entries) {\r\n if (extractor.isSupportedFileType(currentFilePath + entryPath)) {\r\n try {\r\n DependenciesEntry entry = extractor.extract(currentFilePath + entryPath);\r\n\r\n assertNotNull(\"extract result\", entry);\r\n } catch (Exception e) {\r\n fail(\"Error should not occurs:\" + e.getMessage());\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "02dd404fae7d68f3abf99f34804187b9", "score": "0.50450003", "text": "public void runAlgorithm() {\r\n\t\t\r\n\t\tprocessInputDir();\r\n \tprocessCaseComparison();\r\n readInstances();\r\n\t\t\r\n\t\tfor (int i = 0; i < cases.size(); i++) {\r\n\r\n\t\t\ttry {\r\n\t\t\t\timageAreader = getCase(cases.get(i).firstCase);\r\n\t\t\t\timageBreader = getCase(cases.get(i).secondCase);\r\n\r\n\t\t\t\t// step0. validate registered subsection\r\n\t\t\t\tvalidate();\r\n\r\n\t\t\t\t// Step1. load the image file\r\n\t\t\t\tloadImages();\r\n\r\n\t\t\t\t// Step2. threshold the image into sub-cortical structures\r\n\t\t\t\tthreshold();\r\n\r\n\t\t\t\t// Step3. Image registration on the related sub structures.\r\n\t\t\t\tregistration();\r\n\r\n\t\t\t\t// Step4. Save threshold images and registered images.\r\n\t\t\t\tsaveImages();\r\n\r\n\t\t\t\t// Step5. Comparison\r\n\t\t\t\tdoComparison();\r\n\r\n\t\t\t\t// Step6. Static data reporting\r\n\t\t\t\tprintReport();\r\n\r\n\t\t\t\t// Step 7. dispose memory\r\n\t\t\t\tdispose();\r\n\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\r\n\t\tSystem.gc();\r\n\t\tSystem.out.println(\"PlugIn Brain Subcortical Analysis Finish Running. MIPAV Quits. \");\r\n\t\tSystem.exit(0);\r\n\t}", "title": "" }, { "docid": "ca49260e16b844a25cc40e35ef46c9be", "score": "0.5017219", "text": "public void run() {\n\t\tIFile resourcesFile = super.getResourcesFile();\r\n\t\tFile templateFile = super.getFile();\r\n\t\tReader templateReader;\r\n\t\ttry {\r\n\t\t\ttemplateReader = new FileReader(templateFile);\r\n\r\n\t\t\tString templateName = templateFile.getAbsolutePath();\r\n\r\n\t\t\t// Get Freemarker configuration\r\n\t\t\tConfiguration cfg = getConfiguration(resourcesFile);\r\n\r\n\t\t\t// Prepare Model\r\n\t\t\tObject model = getModel(resourcesFile);\r\n\r\n\t\t\t// Merge data-model with template\r\n\t\t\tString result = FreemarkerTemplateManager.getManager().process(\r\n\t\t\t\t\ttemplateName, templateReader, cfg, model);\r\n\t\t\tsuper.out(result);\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tsuper.err(e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tsuper.err(e);\r\n\t\t} catch (TemplateException e) {\r\n\t\t\tsuper.err(e);\r\n\t\t} catch (InstanceProviderException e) {\r\n\t\t\tsuper.err(e);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "415a44c2127e22e1c91f3333fac02b9a", "score": "0.50060755", "text": "public static void main(String[] args) {\n final String pathToAnatomyResultFiles = \"\";\n final String pathToConferenceResultFiles = \"\";\n\n //--------------------------------------------------------\n // Heat Map Evaluation Anatomy\n //--------------------------------------------------------\n ExecutionResultSet executionResultSetAnatomy = Executor.loadFromAnatomyResultsFolder(pathToAnatomyResultFiles);\n MatcherSimilarityMetric metric = new MatcherSimilarityMetric();\n MatcherSimilarity similarity = metric.get(executionResultSetAnatomy, TrackRepository.Anatomy.Default.getTestCases().get(0));\n PrintWriter writer = new PrintWriter(System.out);\n MatcherSimilarityLatexHeatMapWriter.write(similarity, writer);\n System.out.println(\"\\nMedian: \" + similarity.getMedianSimiarity());\n System.out.println(\"Median (no self reference): \" + similarity.getMedianSimilariyWithoutSelfSimilarity() + \"\\n\\n\\n\");\n\n //--------------------------------------------------------\n // MAD Calculation Anatomy\n //--------------------------------------------------------\n MatcherSimilarityLatexPlotWriter plotWriter = new MatcherSimilarityLatexPlotWriter();\n plotWriter.write(similarity, writer);\n\n //--------------------------------------------------------\n // Heat Map Evaluation Conference\n //--------------------------------------------------------\n ExecutionResultSet executionResultSetConference = Executor.loadFromConferenceResultsFolder(pathToConferenceResultFiles);\n metric = new MatcherSimilarityMetric();\n similarity = metric.get(MatcherSimilarityMetric.CalculationMode.MICRO, executionResultSetConference, TrackRepository.Conference.V1);\n MatcherSimilarityLatexHeatMapWriter.write(similarity, writer);\n System.out.println(\"\\n\\n\\nMedian: \" + similarity.getMedianSimiarity());\n System.out.println(\"Median (no self reference): \" + similarity.getMedianSimilariyWithoutSelfSimilarity() + \"\\n\\n\\n\");\n\n //--------------------------------------------------------\n // MAD Calculation Conference\n //--------------------------------------------------------\n plotWriter.write(similarity, writer);\n\n //--------------------------------------------------------\n // Correspondence CSV Evaluation\n //--------------------------------------------------------\n ExecutionResultSet allExecutionResults = new ExecutionResultSet();\n allExecutionResults.addAll(executionResultSetAnatomy);\n allExecutionResults.addAll(executionResultSetConference);\n EvaluatorCSV evaluatorCSV = new EvaluatorCSV(allExecutionResults);\n evaluatorCSV.writeToDirectory();\n }", "title": "" }, { "docid": "4007d4b1cff903e28f8b2ca29ff087dd", "score": "0.49534553", "text": "@Override\n\tpublic boolean run(JEXEntry entry, HashMap<String,JEXData> inputs)\n\t{\n\t\t// Gather parameters\n\t\tString inDir = this.parameters.getValueOfParameter(\"Input Directory\");\n\t\tFile inFolder = new File(inDir);\n\t\t\n\t\t// Gather and sort the input files\n\t\tJEXStatics.statusBar.setStatusText(\"Sorting files to convert. May take minutes...\");\n\t\t// File[] images = inFolder.listFiles(new SimpleFileFilter(new String[]{\"tif\"}));\n\t\tList<File> images = FileUtility.getSortedFileList(inFolder.listFiles(new SimpleFileFilter(new String[] { \"tif\" })));\n\t\t\n\t\t// Save the data and create the database object\n\t\tJEXStatics.statusBar.setStatusText(\"Converting files.\");\n\t\t// Run the function\n\t\tdouble count = 0;\n\t\tdouble total = images.size();\n\t\tint percentage = 0;\n\t\tJEXStatics.statusBar.setProgressPercentage(percentage);\n\t\t// TreeMap<Integer,TreeMap<DimensionMap,String>> importedImages = new TreeMap<Integer,TreeMap<DimensionMap,String>>();\n\t\tTreeMap<DimensionMap,String> compiledImages = new TreeMap<DimensionMap,String>();\n\t\t\n\t\tfor (File f : images)\n\t\t{\n\t\t\tif(this.isCanceled())\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tImagePlus im = new ImagePlus(f.getAbsolutePath());\n\t\t\tDimensionMap baseMap = this.getMapFromPath(f.getAbsolutePath());\n\t\t\tfor (int s = 1; s < im.getStackSize() + 1; s++)\n\t\t\t{\n\t\t\t\tif(this.isCanceled())\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t// TreeMap<DimensionMap,String> colorSet = importedImages.get(s);\n\t\t\t\t// if(colorSet == null)\n\t\t\t\t// {\n\t\t\t\t// colorSet = new TreeMap<DimensionMap,String>();\n\t\t\t\t// importedImages.put(s, colorSet);\n\t\t\t\t// }\n\t\t\t\tim.setSlice(s);\n\t\t\t\t\n\t\t\t\t// Save image into map specific to this color\n\t\t\t\t// String imagePath = JEXWriter.saveImage(im.getProcessor());\n\t\t\t\t// colorSet.put(baseMap.copy(), imagePath);\n\t\t\t\t\n\t\t\t\t// Save image into map for a multicolor image object for easier viewing etc.\n\t\t\t\tString imagePath2 = JEXWriter.saveImage(im.getProcessor());\n\t\t\t\tDimensionMap mapWithColor = baseMap.copy();\n\t\t\t\tmapWithColor.put(\"Color\", \"\" + s);\n\t\t\t\tcompiledImages.put(mapWithColor, imagePath2);\n\t\t\t\t\n\t\t\t}\n\t\t\tcount = count + 1;\n\t\t\tpercentage = (int) (100 * ((count) / (total)));\n\t\t\tJEXStatics.statusBar.setProgressPercentage(percentage);\n\t\t}\n\t\t\n\t\tJEXData output0 = ImageWriter.makeImageStackFromPaths(this.outputNames[0].getName(), compiledImages);\n\t\t// JEXData output1 = ImageWriter.makeImageStackFromPaths(this.outputNames[1].getName(), importedImages.get(1));\n\t\t// JEXData output2 = ImageWriter.makeImageStackFromPaths(this.outputNames[2].getName(), importedImages.get(2));\n\t\t// JEXData output3 = ImageWriter.makeImageStackFromPaths(this.outputNames[3].getName(), importedImages.get(3));\n\t\t// JEXData output4 = ImageWriter.makeImageStackFromPaths(this.outputNames[4].getName(), importedImages.get(4));\n\t\t\n\t\t// Set the outputs\n\t\tthis.realOutputs.add(output0);\n\t\t// this.realOutputs.add(output1);\n\t\t// this.realOutputs.add(output2);\n\t\t// this.realOutputs.add(output3);\n\t\t// this.realOutputs.add(output4);\n\t\t\n\t\t// Return status\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f472694659b0e30f0280d34ceba7aa40", "score": "0.49223098", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 19,(numberOfImagesToTest*19)/24,(numberOfImagesToTest*20)/24);\n\t\t\t}", "title": "" }, { "docid": "bb31ae847050ac7b3341c54c63ed4cf7", "score": "0.49138087", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 12,(numberOfImagesToTest*12)/24,(numberOfImagesToTest*13)/24);\n\t\t\t}", "title": "" }, { "docid": "895215795243942b50723443b12b49e8", "score": "0.49135375", "text": "@Override\r\n\tpublic void run() {\r\n\t\ttry {\r\n\t\t\tif (srcFile.isFile()) {\r\n\t\t\t\tJavaSourceFactory jsf = new JavaSourceFactory();\r\n\t\t\t\tJavaParser jp = new JavaParser(jsf);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcounters.add(Constants.FILE_SIZE, srcFile.length());\r\n\t\t\t\t\tcountLines();\r\n\t\t\t\t\tjp.parse(srcFile);\r\n\t\t\t\t\tIterator<?> it = jsf.getJavaSources();\r\n\t\t\t\t\twhile (it.hasNext()) {\r\n\t\t\t\t\t\tJavaSource js = (JavaSource)it.next();\r\n\t\t\t\t\t\tjs.toString();\r\n\t\t\t\t\t\tprocessSource(js);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\tSystem.err.println(\"Parser error in file \" + srcFile + \": \" + ex);\r\n\t\t\t\t} catch (RecognitionException ex) {\r\n\t\t\t\t\tSystem.err.println(\"Parser error in file \" + srcFile + \": \" + ex);\r\n\t\t\t\t} catch (TokenStreamException ex) {\r\n\t\t\t\t\tSystem.err.println(\"Parser error in file \" + srcFile + \": \" + ex);\r\n\t\t\t\t} catch (IllegalStateException ex) {\r\n\t\t\t\t\tSystem.err.println(\"Parser error in file \" + srcFile + \": \" + ex);\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\tif (srcFile.isDirectory()) {\r\n\t\t\t\tprocessDirectory(srcFile);\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tcount.decrement();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1e1631d73196cf1865366216e5cff477", "score": "0.49117166", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 18,(numberOfImagesToTest*18)/24,(numberOfImagesToTest*19)/24);\n\t\t\t}", "title": "" }, { "docid": "dbe4ef7e191cb473183817c51093a7dc", "score": "0.4900354", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 14,(numberOfImagesToTest*14)/24,(numberOfImagesToTest*15)/24);\n\t\t\t}", "title": "" }, { "docid": "d09b729d383e948ceb1baafe37c639eb", "score": "0.49001077", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 15,(numberOfImagesToTest*15)/24,(numberOfImagesToTest*16)/24);\n\t\t\t}", "title": "" }, { "docid": "065963892a16fbbf8d9bcfc00ccf3702", "score": "0.48948777", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 7,(numberOfImagesToTest*7)/8,numberOfImagesToTest);\n\t\t\t}", "title": "" }, { "docid": "07813667d63df3774aead4f9b9243cad", "score": "0.48924118", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 23,(numberOfImagesToTest*23)/24,numberOfImagesToTest);\n\t\t\t}", "title": "" }, { "docid": "e07c09ea9bdbfe57d40c23471d577b68", "score": "0.48815453", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 13,(numberOfImagesToTest*13)/24,(numberOfImagesToTest*14)/24);\n\t\t\t}", "title": "" }, { "docid": "4e29035511f5e83bbd018478926568ac", "score": "0.4876211", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 5,(numberOfImagesToTest*5)/24,(numberOfImagesToTest*6)/24);\n\t\t\t}", "title": "" }, { "docid": "5f68de8dc4633ccfba30d6faa93cac26", "score": "0.487528", "text": "public final void run()\n\t{\n\t\t// reset counters\n\t\tnumLinesRead = 0;\n\t\tnumErrors = 0;\n\n\t\t// Loop through the expressions in pairs\n\t\tlogger.debug(\"Reading and comparing expressions...\");\n\t\twhile (true)\n\t\t{\n\t\t\tboolean hasError = false;\n\t\t\tString inputStr = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Read a line\n\t\t\t\tinputStr = getNextLine(); // returns null when end of file is\n\n\t\t\t\t// Either line may be null when the end of file is reached\n\t\t\t\tif (inputStr == null)\n\t\t\t\t{\n\t\t\t\t\t// logger.info(\"Reached end of file.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Process the line\n\t\t\t\tprocessLine(inputStr);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\thasError = true;\n\t\t\t\tlogger.error(e.getMessage());\n\t\t\t\te.printStackTrace(System.err);\n\t\t\t}\n\t\t\tif (hasError)\n\t\t\t{\n\t\t\t\tnumErrors++;\n\t\t\t\tlogger.error(\"Line \" + (numLinesRead - 2) + \": \" + inputStr);\n\t\t\t\tif (isStopOnFirstError())\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Closing remarks\n\t\tif (numErrors == 0)\n\t\t{\n\t\t\tlogger.info(numLinesRead + \" line(s) processed. \" + numErrors\n\t\t\t\t\t+ \" error(s) found.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlogger.error(numLinesRead + \" line(s) processed. \" + numErrors\n\t\t\t\t\t+ \" error(s) found.\");\n\n\t\t}\n\n\t\twriteOutput();\n\t}", "title": "" }, { "docid": "44407223668720f8a2883838a0e85d53", "score": "0.48672885", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 17,(numberOfImagesToTest*17)/24,(numberOfImagesToTest*18)/24);\n\t\t\t}", "title": "" }, { "docid": "ad4b9b05d51b70f06dce2dbf4a5fc8d4", "score": "0.48569486", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 6,(numberOfImagesToTest*6)/24,(numberOfImagesToTest*7)/24);\n\t\t\t}", "title": "" }, { "docid": "0f18b3baf28f42750c591498d20dbd3d", "score": "0.48552287", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 0, 0, numberOfImagesToTest/24);\n\t\t\t}", "title": "" }, { "docid": "874259d745cc566b85612dd7a2d44c23", "score": "0.48337978", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 9,(numberOfImagesToTest*9)/24,(numberOfImagesToTest*10)/24);\n\t\t\t}", "title": "" }, { "docid": "7d03a573258f97914b7fa42364159f76", "score": "0.4830393", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 10,(numberOfImagesToTest*10)/24,(numberOfImagesToTest*11)/24);\n\t\t\t}", "title": "" }, { "docid": "1db3d96ff1ac45c8a894014a2596af08", "score": "0.4830325", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 5,(numberOfImagesToTest*5)/8,(numberOfImagesToTest*6)/8);\n\t\t\t}", "title": "" }, { "docid": "96095b0f6770b751017e917bbacf900a", "score": "0.4828598", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 21,(numberOfImagesToTest*21)/24,(numberOfImagesToTest*22)/24);\n\t\t\t}", "title": "" }, { "docid": "1f8348586ac09850ff8678d4bfd56062", "score": "0.48276168", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 20,(numberOfImagesToTest*20)/24,(numberOfImagesToTest*21)/24);\n\t\t\t}", "title": "" }, { "docid": "dabff1a0d9089f840dec6d3d0dda471b", "score": "0.48206964", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 1,(numberOfImagesToTest*1)/24,(numberOfImagesToTest*2)/24);\n\t\t\t}", "title": "" }, { "docid": "00589f1524cf675bd95f01b80a6cf555", "score": "0.48150936", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 6,(numberOfImagesToTest*6)/8,(numberOfImagesToTest*7)/8);\n\t\t\t}", "title": "" }, { "docid": "b0eb07356712f49bfd19c6f2351be5ed", "score": "0.48138162", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 7,(numberOfImagesToTest*7)/24,(numberOfImagesToTest*8)/24);\n\t\t\t}", "title": "" }, { "docid": "8762096270b80f342e9da50617ab625a", "score": "0.48104754", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 22,(numberOfImagesToTest*22)/24,(numberOfImagesToTest*23)/24);\n\t\t\t}", "title": "" }, { "docid": "fdac68e7923577bb5b52074567a1c4fd", "score": "0.4804133", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 0, 0, numberOfImagesToTest/8);\n\t\t\t}", "title": "" }, { "docid": "1d1f8ecbc469b865570737ec9970196d", "score": "0.47983032", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 11,(numberOfImagesToTest*11)/24,(numberOfImagesToTest*12)/24);\n\t\t\t}", "title": "" }, { "docid": "c0535e2c10214312a47a51af3147a73a", "score": "0.47967196", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 2,(numberOfImagesToTest*2)/24,(numberOfImagesToTest*3)/24);\n\t\t\t}", "title": "" }, { "docid": "086622ec31f5385d82fb0591bafa7ac8", "score": "0.47954708", "text": "@Override\n public EvaluationResult process() {\n \n ArrayList<EvaluationResult> stfResultList = new ArrayList();\n ArrayList<EvaluationResult> sdResultList = new ArrayList();\n for(Period p : opts.getPeriods()){\n // get station total flow\n //Vector<EvaluationResult> stationFlows = Evaluation.getResult(StationTotalFlow.class, this.opts);\n StationTotalFlow stationTotalFlow = new StationTotalFlow(p, opts.getSelectedSection(), ko.getOutputPath(), ko);\n stfResultList.add(stationTotalFlow.process());\n\n // get station density\n //Vector<EvaluationResult> stationDensities = Evaluation.getResult(StationDensity.class, this.opts);\n StationDensity stationDensity = new StationDensity(p, opts.getSelectedSection(), ko.getOutputPath(), ko);\n sdResultList.add(stationDensity.process());\n }\n \n //Period[] periods = this.opts.getPeriods();\n Period[] periods = new Period[this.opts.getPeriods().size()];\n this.opts.getPeriods().toArray(periods);\n int idx = 0;\n int densityidx = 0;\n if(sdResultList.size() > 1)\n densityidx = 1;\n // for all results, calculate VMT\n for(int i=0; i<stfResultList.size(); i++)\n {\n if(printDebug && idx < periods.length) System.out.println(\" - \" + periods[idx++].getPeriodString());\n \n EvaluationResult res = EvaluationResult.copy(sdResultList.get(i+densityidx)) ;\n EvaluationResult flowResult = EvaluationResult.copy(stfResultList.get(i)); \n \n // skip average\n if(TITLE_AVERAGE.equals(res.getName())) continue;\n \n // adjust data\n preAdjustResult(res);\n preAdjustResult(flowResult);\n \n // calculate LVMT\n res = calculateLVMT(res, flowResult);\n // add result to result list\n this.results.add(res); \n }\n \n this.makeTotal();\n\n return null;\n }", "title": "" }, { "docid": "99e99d79e2536b898249488fc9c5e706", "score": "0.47735298", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 1,(numberOfImagesToTest*1)/8,(numberOfImagesToTest*2)/8);\n\t\t\t}", "title": "" }, { "docid": "b1c489bf24a5baaaac5e7c8edffc9f6d", "score": "0.47661233", "text": "private void test() {\n\t\tFile folder = new File(FOLDERPATH);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tint count = 0;\n\n\t\tXMLFileProcessor xmlFileProcessor = new XMLFileProcessor();\n\n\t\tfor (File file : listOfFiles) {\n\n\t\t\tif (file.isFile()) {\n\n\t\t\t\tString fileNameOnly = file.getName();\n\t\t\t\tString filepath = FOLDERPATH + \"/\" + fileNameOnly;\n\n\t\t\t\tif (filepath.endsWith(\".xml\")) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count <= this.numberOfTrainingFiles) continue;\n\t\t\t\t\t\n\t\t\t\t\txmlFileProcessor.extractSentences(this.unigramTask2, this.bigramTask2, filepath, precision);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "21862c494358426e0edf8551b5fceb42", "score": "0.47609475", "text": "public static void main( String[] args)\n\t{\n\n\t\tString expr=\"4+5-12/3.5-5.4*3.14\"; // replace with any expression to test\n\t\tSystem.out.println( \"expr: \" + expr );\n\t\tArrayList<String> operatorList = new ArrayList<String>();\n\t\tArrayList<Double> operandList = new ArrayList<Double>();\n\t\t// StringTokenizer is like an infile and calling .hasNext()\n\t\tStringTokenizer st = new StringTokenizer( expr,\"+-*/\", true );\n\t\twhile (st.hasMoreTokens())\n\t\t{\n\t\t\tString token = st.nextToken();\n\t\t\tif (\"+-/*\".contains(token))\n\t\t\t\toperatorList.add(token);\n\t\t\telse\n\t\t\t\toperandList.add( Double.parseDouble( token) );\n \t\t}\n \t\tSystem.out.println(\"Operators:\" + operatorList);\n\t\tSystem.out.println(\"Operands:\" + operandList);\n\t}", "title": "" }, { "docid": "a03de60b00878d9ab0c7d15f2d1fa518", "score": "0.47592387", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 16,(numberOfImagesToTest*16)/24,(numberOfImagesToTest*17)/24);\n\t\t\t}", "title": "" }, { "docid": "24d8b2e2fa7654ae687a867debb07bba", "score": "0.47515568", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 2,(numberOfImagesToTest*2)/8,(numberOfImagesToTest*3)/8);\n\t\t\t}", "title": "" }, { "docid": "b2cf53ab04952e7782e9df60989232e7", "score": "0.47506365", "text": "public void evaluate(File query) throws IOException, Exception {\n\tevaluate(query, System.out);\n }", "title": "" }, { "docid": "fadd37badcd2a90c12ba3a7890c25953", "score": "0.47387198", "text": "public String evaluate() {\n File evalDataF = GrobidProperties.getInstance().getEvalCorpusPath(\n new File(new File(\"resources\").getAbsolutePath()), model);\n\n File tmpEvalPath = getTempEvaluationDataPath();\n createCRFPPData(evalDataF, tmpEvalPath);\n\n return EvaluationUtilities.evaluateStandard(tmpEvalPath.getAbsolutePath(), getTagger());\n }", "title": "" }, { "docid": "c80b26edf604c0da28f8a4cbb7bec8df", "score": "0.4732129", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 8,(numberOfImagesToTest*8)/24,(numberOfImagesToTest*9)/24);\n\t\t\t}", "title": "" }, { "docid": "3332eaf5b5cdeda0ee1b62a1ecf35dae", "score": "0.47246048", "text": "public void run() {\r\n constructFolders();\r\n preprocessing();\r\n if (getMod().equals(\"bb\")) {\r\n runBB();\r\n } else if (getMod().equals(\"gb\")) {\r\n runGB();\r\n } else {\r\n runAll();\r\n }\r\n }", "title": "" }, { "docid": "5333f341e097733e8ee2162ab83328f2", "score": "0.47236833", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 4,(numberOfImagesToTest*4)/24,(numberOfImagesToTest*5)/24);\n\t\t\t}", "title": "" }, { "docid": "f1f21855f0e74ca68f492b1051b994a7", "score": "0.4720432", "text": "void run() throws IOException {\n Files.walkFileTree(source, this);\n }", "title": "" }, { "docid": "d2edaf40399c227d6f132aa91b6e8325", "score": "0.47157696", "text": "public int test(String filename) throws IOException{\r\n\t\treadInputImage(filename);\r\n\t\tfprop();\r\n\t\treturn classify();\r\n\t}", "title": "" }, { "docid": "fb11fe0064fdf9e11eeceb53fd267a49", "score": "0.4705926", "text": "public static boolean runTests() {\n File f = new File(\"filesystem\");\n if (testShallowFileIterator(f) && testDeepFileIterator(f) && testFilteredFileIterator(f)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "5942010073fd62076ca1ff9f70c7477a", "score": "0.46944508", "text": "@Ignore\n @Test\n public void testVisitFile() throws Exception {\n System.out.println(\"visitFile\");\n Path file = null;\n BasicFileAttributes attrs = null;\n FileVisitorForZipping instance = null;\n FileVisitResult expResult = null;\n FileVisitResult result = instance.visitFile(file, attrs);\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": "40157fb1731a8872120ad89cee1799b4", "score": "0.46883494", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 4,(numberOfImagesToTest*4)/8,(numberOfImagesToTest*5)/8);\n\t\t\t}", "title": "" }, { "docid": "49869d373ce56f96d17e84c87c15cb55", "score": "0.46794793", "text": "public void run() {\n\t\t\t\tMap<String, Map<String, String>> changelogs = updater\n\t\t\t\t\t\t.getChangeLogs();\n\n\t\t\t\t// clear tree\n\t\t\t\ttreeChangelog.removeAll();\n\t\t\t\ttreeChangelog.setHeaderVisible(true);\n\n\t\t\t\t// iterate over all actualization/package\n\t\t\t\tfor (Map.Entry<String, Map<String, String>> entry : changelogs\n\t\t\t\t\t\t.entrySet()) {\n\t\t\t\t\t// create new item with actualization name\n\t\t\t\t\tTreeItem actualization = new TreeItem(treeChangelog,\n\t\t\t\t\t\t\tSWT.NONE);\n\t\t\t\t\tactualization.setText(entry.getKey());\n\n\t\t\t\t\t// iterate over all version of actualization\n\t\t\t\t\tfor (Map.Entry<String, String> child : entry.getValue()\n\t\t\t\t\t\t\t.entrySet()) {\n\t\t\t\t\t\t// create item with version\n\t\t\t\t\t\tTreeItem version = new TreeItem(actualization, SWT.NONE);\n\t\t\t\t\t\tversion.setText(child.getKey());\n\t\t\t\t\t}\n\n\t\t\t\t\tactualization.setExpanded(true);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "bd54c34d985d435441a71ff49132b34a", "score": "0.46760532", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 3,(numberOfImagesToTest*3)/24,(numberOfImagesToTest*4)/24);\n\t\t\t}", "title": "" }, { "docid": "7dc1b386ad9a0c8793d5ffb6e462bd97", "score": "0.46692395", "text": "@Override\n public void evaluate() throws Throwable {\n if (!BuildConfig.RUN_E2E_TESTS) {\n return;\n }\n base.evaluate();\n }", "title": "" }, { "docid": "d7f4313c88b10c84a68bc6650b5ad930", "score": "0.4648353", "text": "@Test\n public void testDecisionTreeWeather() {\n System.out.println(\"Weather\");\n ArffParser arffParser = new ArffParser();\n arffParser.setResponseIndex(4);\n try {\n \tAttributeDataset weather = arffParser.parse(new File(\"data.smile/weather.nominal.arff\"));\n double[][] x = weather.toArray(new double[weather.size()][]);\n int[] y = weather.toArray(new int[weather.size()]);\n int n = x.length;\n LOOCV loocv = new LOOCV(n);\n int error = 0;\n for (int i = 0; i < n; i++) {\n double[][] trainx = smile.math.Math.slice(x, loocv.train[i]);\n int[] trainy = smile.math.Math.slice(y, loocv.train[i]);\n \n DecisionTree tree = new DecisionTree(weather.attributes(), trainx, trainy, 3);\n if (y[loocv.test[i]] != tree.predict(x[loocv.test[i]]))\n error++;\n }\n \n System.out.println(\"Decision Tree error = \" + error);\n assertEquals(5, error);\n } catch (Exception ex) {\n System.err.println(ex);\n }\n }", "title": "" }, { "docid": "403a1bfc45571b25bbaacb716ed1c82e", "score": "0.4642043", "text": "public void run() {\n\t\t\t\tsolveTestingData(testingData, k, 3,(numberOfImagesToTest*3)/8,(numberOfImagesToTest*4)/8);\n\t\t\t}", "title": "" }, { "docid": "2066c36d60f3e1ace31c7a4a201a6e67", "score": "0.46398854", "text": "@Override\n public void analyzeFile(String filename)\n {\n }", "title": "" }, { "docid": "a3c7ce2255fa72722745a49ec42119a9", "score": "0.4639087", "text": "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tHashMap<String, String> infos = Utils.getAbsoluteFilePathInfos(this.absoluteFilePath);\n\t\t\tString fileName = infos.get(\"fileName\");\n\t\t\tString fileFolderPath = infos.get(\"fileFolderPath\");\n\t\t\tString fileExtension = infos.get(\"fileExtension\");\n\t\t\tString sensorType = null;\n\n\t\t\t// get sensor type by folder structure...\n\t\t\tString[] partAfterSourceFolder = fileFolderPath.split(set.getSourceFolder());\n\t\t\tif (partAfterSourceFolder.length > 0) {\n\t\t\t\tpartAfterSourceFolder = partAfterSourceFolder[1].split(\"/\");\n\t\t\t\tif (partAfterSourceFolder.length > 0) {\n\t\t\t\t\tsensorType = partAfterSourceFolder[1];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// error...\n\t\t\tif (sensorType == null) {\n\t\t\t\tthrow new IOException(\"IOException: Could not determine the sensorType by folder structure!\");\n\t\t\t}\n\n\t\t\t// fetch set configuration stuff\n\t\t\tint sliceX = set.getSliceX();\n\t\t\tint sliceY = set.getSliceY();\n\t\t\tint histogramSize = set.getHistogramSize();\n\t\t\t\n\t\t\tBufferedImage bufferedImage = new BufferedImage(1, 1, BufferedImage.TYPE_BYTE_GRAY);\n\t\t\tbufferedImage = ImageIO.read(new File(absoluteFilePath));\n\n\t\t\t// calculate data for this entry\n\t\t\tCropData cropData = null;\n\t\t\tif (set.getEdgeDetection()) {\n\t\t\t\tEdgeDetectionConfig edgeDetectionConfig = null;\n\t\t\t\tif (Config.sensorsEdgeDetectionConfig.containsKey(sensorType)) {\n\t\t\t\t\t// fetch config\n\t\t\t\t\tedgeDetectionConfig = Config.sensorsEdgeDetectionConfig.get(sensorType);\n\t\t\t\t} else {\n\t\t\t\t\t// default config\n\t\t\t\t\tedgeDetectionConfig = new EdgeDetectionConfig();\n\t\t\t\t}\n\t\t\t\tDebug.log(\"thread id: \" + this.id + \" path: \" + this.absoluteFilePath + \" config: \" + edgeDetectionConfig);\n\t\t\t\tcropData = EdgeDetection.getCropData(bufferedImage, edgeDetectionConfig);\n\t\t\t} else {\n\t\t\t\tDebug.log(\"thread id: \" + this.id + \" path: \" + this.absoluteFilePath);\n\t\t\t}\n\t\t\t\n\t\t\tint[][] greyScaleData = GreyScale.get(bufferedImage, cropData);\n\t\t\t\n\t\t\tint[] histogramData = null;\n\t\t\tint[][][][] greyScaleSlicedData = null;\n\t\t\t\n\t\t\tswitch (set.getHistogramType()) {\n\t\t\tcase Histogram.TYPE_GREY_SCALE:\n\t\t\t\thistogramData = Histogram.get(greyScaleData, histogramSize, true);\n\t\t\t\tbreak;\n\t\t\tcase Histogram.TYPE_VARIANCE:\n\t\t\t\tgreyScaleSlicedData = Utils.getChunksFromIntArray2D(greyScaleData, sliceX, sliceY);\n\t\t\t\tdouble[][] slicedVariances = new double[sliceY][sliceX];\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < sliceY; ++i) {\n\t\t\t\t\tfor (int j = 0; j < sliceX; ++j) {\n\t\t\t\t\t\tslicedVariances[i][j] = Variance.get(greyScaleSlicedData[i][j], Histogram.get(greyScaleSlicedData[i][j], histogramSize, true));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\thistogramData = Histogram.getIntHistogramForDoubleValues(slicedVariances, set.getHistogramSize(), Histogram.TYPE_VARIANCE, sliceX, sliceY);\n\t\t\t\tbreak;\n\t\t\tcase Histogram.TYPE_ENTROPY:\n\t\t\t\tgreyScaleSlicedData = Utils.getChunksFromIntArray2D(greyScaleData, sliceX, sliceY);\n\t\t\t\tdouble[][] slicedEntropies = new double[sliceY][sliceX];\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < sliceY; ++i) {\n\t\t\t\t\tfor (int j = 0; j < sliceX; ++j) {\n\t\t\t\t\t\tslicedEntropies[i][j] = Entropy.get(greyScaleSlicedData[i][j], Histogram.get(greyScaleSlicedData[i][j], histogramSize, true));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\thistogramData = Histogram.getIntHistogramForDoubleValues(slicedEntropies, set.getHistogramSize(), Histogram.TYPE_ENTROPY, sliceX, sliceY);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new IOException(\"IOException: Could not determine the histogramType of the set!\");\n\t\t\t}\n\t\t\t\n\t\t\t// create and add entry to set\n\t\t\tset.addEntry(\n\t\t\t\t\tnew EvaluationDataSetEntry(\n\t\t\t\t\t\t\tthis.id,\n\t\t\t\t\t\t\tfileFolderPath,\n\t\t\t\t\t\t\tfileName,\n\t\t\t\t\t\t\tfileExtension,\n\t\t\t\t\t\t\tsensorType,\n\t\t\t\t\t\t\tgreyScaleData,\n\t\t\t\t\t\t\thistogramData,\n\t\t\t\t\t\t\tnull, // kNearestIDs argument has to be null, as we can not yet calculate metric related stuff\n\t\t\t\t\t\t\tnull // kNearestSensorTypes argument has to be null, as we can not yet calculate metric related stuff\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t} catch (IOException e) {\n\t\t\tDebug.log(\"IOException: : \" + e);\n\t\t}\n\t}", "title": "" }, { "docid": "1ce37eb217fb6540466da0e485b13340", "score": "0.4637759", "text": "public static void testEnvironment() throws Exception {\n TinyImageExtractor tinyImageExtractor = new TinyImageExtractor(16);\n\n VFSGroupDataset<FImage> input = new VFSGroupDataset<FImage>(filepathTraining, ImageUtilities.FIMAGE_READER);\n\n for(int k = 1; k < 30; k++) {\n System.out.println(\"EVALUATE CLASSIFIER K = \" + k);\n double result = 0;\n for(int i = 1; i < 10; i++) {\n // Use GroupedRandomSplitter to generate train and test dataset\n GroupedRandomSplitter<String, Record> splitter = new GroupedRandomSplitter(input,75,0,25);\n // Generator KNN annotator which uses the euclidean distance between images\n KNNAnnotator<Record, String, TinyImageExtractor> knnAnnotator = new KNNAnnotator(tinyImageExtractor, DoubleFVComparison.EUCLIDEAN, k);\n\n // Train the annotator on the training data\n knnAnnotator.trainMultiClass(splitter.getTrainingDataset());\n\n // Evaluate the outcome of the test data set\n ClassificationEvaluator<CMResult<String>, String, Record> eval =\n new ClassificationEvaluator<>(\n knnAnnotator, splitter.getTestDataset(), new CMAnalyser<Record, String>(CMAnalyser.Strategy.SINGLE));\n\n Map<Record, ClassificationResult<String>> guesses = eval.evaluate();\n result += eval.analyse(guesses).getMatrix().getAccuracy();\n\n }\n // Average the accuracy\n System.out.println(result / 10);\n }\n }", "title": "" }, { "docid": "7d6fdbeb989fd411e81de1a63c04f94c", "score": "0.4637633", "text": "public void setTariff(BigDecimal tariff) {\n this.tariff = tariff;\n }", "title": "" }, { "docid": "6c7a120b1f747721d9242992a4c35ec2", "score": "0.46350688", "text": "public static void main(String[] args) {\n\t\t\n String input_path = \"data_input\";\n String output_path = \"data_output\";\n \n System.out.println(\"input_path: \" + input_path + \" output_path: \" + output_path);\n\t\t\n\t\t// Convert to File\n\t\tFile input_dir = new File(input_path);\n\t\tFile output_dir = new File(output_path);\n\t\t\n\t\t// Test if the files exists\n\t\tif (input_dir.exists() && output_dir.exists()) {\n\t\t\tFile[] input_files = input_dir.listFiles(new FilenameFilter() {\n\t\t\t @Override\n\t\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t return name.toLowerCase().endsWith(\".gexf\");\n\t\t\t }\n\t\t\t});\n\t\t\t\n\t\t\tLayoutAndMetrics layoutAndMetrics = new LayoutAndMetrics();\n\t\t\t\n\t\t\tfor (File input_file : input_files) {\n\t\t\t\tSystem.out.println(\"input_file: \" + input_file);\n\t\t\t\tlayoutAndMetrics.benchmarkFR(input_file, output_dir);\n layoutAndMetrics.benchmarkYH(input_file, output_dir);\n\t\t\t\tlayoutAndMetrics.benchmarkFA2_LL(input_file, output_dir);\n\t\t\t\tlayoutAndMetrics.benchmarkFA2(input_file, output_dir);\n \n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Invalid paths arguments: input_path output_path\");\n\t\t}\n\t}", "title": "" }, { "docid": "e097e50f326b0b20f8ca7e2577b91f5d", "score": "0.4627087", "text": "public void run() {\n\t\tMap<Integer, Double> map = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, ArrayList<Float>> fullMap = new HashMap<Integer, ArrayList<Float>>();\r\n\t\tArrayList<Integer> testIds = new ArrayList<Integer>();\r\n\t\tfor(int i = 0; i < Tests.list().size(); i++) {\r\n\t\t\tmap.put(i, 0.0);\r\n\t\t\tfullMap.put(i, new ArrayList<Float>());\r\n\t\t\ttestIds.add(i);\r\n\t\t}\r\n\t\t\r\n\t\t// run the tests many times\r\n\t\tint nbLoopsSoFar = 1;\r\n\t\twhile(nbLoopsSoFar <= nbMaxLoopsPerTestCase && !exitCondition.exists()) {\r\n\t\t\tCollections.shuffle(testIds);\r\n\t\t\tfor(int i: testIds) {\r\n\t\t\t\tCode code = Tests.list().get(i).run();\r\n\t\t\t\t// store the computation time\r\n\t\t\t\tmap.put(i, map.get(i) + code.getComputationTimeMilli());\r\n\t\t\t\tfullMap.get(i).add(code.getComputationTimeMilli());\r\n\t\t\t}\r\n\t\t\tif(nbLoopsSoFar % 50 == 0) System.out.println(\"\"+nbLoopsSoFar+\" iterations so far...\");\r\n\t\t\tnbLoopsSoFar++;\r\n\t\t}\r\n\t\tnbLoopsSoFar--; // this is the real number of loops realized\r\n\t\t\r\n\t\t// display average results: one file = one line\r\n\t\tSystem.out.println(\"\\nAlgorithm\\tFile\\tAverage time (ms) on \"+nbLoopsSoFar+\" runs\");\r\n\t\tfor(int i = 0; i < Tests.list().size(); i++) {\r\n\t\t\tTestCase tc = Tests.list().get(i);\r\n\t\t\tString output = tc.getPolymerType().toString() + \"\\t\" + tc.getSpectrumFileName() + \"\\t\" + (map.get(i) / nbLoopsSoFar);\r\n\t\t\tSystem.out.println(output);\r\n\t\t}\r\n\t\tSystem.out.println(\"\");\r\n\t\t\r\n\t\tDouble[][] matrix = new Double[PolymerTypes.values().length][nbLoopsSoFar];\r\n\t\tMap<Integer, Integer> mapRunsPerType = new HashMap<Integer, Integer>();\r\n\t\t// display all results : one file = one column\r\n\t\tfor(int j = 0; j < nbLoopsSoFar; j++) {\r\n\t\t\t// print header line\r\n\t\t\tif(j == 0) {\r\n\t\t\t\tString firstLine = \"\\n#run\";\r\n\t\t\t\tfor(TestCase tc: Tests.list()) firstLine += \"\\t\" + tc.getSpectrumFileName();\r\n\t\t\t\tSystem.out.println(firstLine);\r\n\t\t\t}\r\n\t\t\t// print all lines\r\n\t\t\tString line = \"\"+(j+1);\r\n\t\t\tfor(int i = 0; i < Tests.list().size(); i++) {\r\n\t\t\t\tline += \"\\t\" + fullMap.get(i).get(j);\r\n\t\t\t\t// store sum per type\r\n\t\t\t\tfor(int p = 0; p < PolymerTypes.values().length; p++) {\r\n\t\t\t\t\tif(PolymerTypes.values()[p].equals(Tests.list().get(i).getPolymerType())) {\r\n\t\t\t\t\t\tif(matrix[p][j] == null) matrix[p][j] = 0.0;\r\n\t\t\t\t\t\tmatrix[p][j] += fullMap.get(i).get(j);\r\n\t\t\t\t\t\tif(!mapRunsPerType.containsKey(p)) mapRunsPerType.put(p, 0);\r\n\t\t\t\t\t\tmapRunsPerType.put(p, mapRunsPerType.get(p) + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(line);\r\n\t\t}\r\n\t\t\r\n\t\t// also display results grouped by polymer type\r\n\t\tfor(int j = 0; j < nbLoopsSoFar; j++) {\r\n\t\t\t// print header line\r\n\t\t\tif(j == 0) {\r\n\t\t\t\tString firstLine = \"\\n#run\";\r\n\t\t\t\tfor(int p = 1; p < PolymerTypes.values().length; p++) firstLine += \"\\t\" + PolymerTypes.values()[p].getValue();\r\n\t\t\t\tSystem.out.println(firstLine);\r\n\t\t\t}\r\n\t\t\t// print all lines\r\n\t\t\tString line = \"\"+(j+1);\r\n\t\t\tfor(int p = 1; p < PolymerTypes.values().length; p++) {\r\n\t\t\t\tDouble sum = matrix[p][j];\r\n\t\t\t\tInteger nb = mapRunsPerType.get(p);\r\n\t\t\t\tline += \"\\t\" + (sum / nb);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(line);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2dcdcd60bdd324b69505ea56622a88ab", "score": "0.46127287", "text": "public void analyse() {\n\t\tList<MimeType> tika = tikaTypes.getTypes();\n\t\tList<MimeType> droid = droidTypes.getTypes();\n\t\t\n\t\t// Set up the comparison:\n\t\tMap<String, MimeCompare> mcm = new HashMap<String,MimeCompare>();\n\t\t// By Extension:\n\t\tMap<String, MimeCompare> ecm = new HashMap<String,MimeCompare>();\n\t\t\n\t\t// Go through Tika\n\t\tint t_types = 0, tnd_types = 0;\n\t\tfor( MimeType m : tika ) {\n\t\t\tMimeCompare mc = new MimeCompare();\n\t\t\tmc.tika = m;\n\t\t\tt_types++;\n\t\t\tboolean both = false;\n\t\t\tfor( MimeType d : droid ) {\n//\t\t\t\tif( m.getType().equals(d.getType())) {\n\t\t\t\tif( m.getType().startsWith(d.getType())) {\n\t\t\t\t\tmc.droid = d;\n\t\t\t\t\ttnd_types++;\n\t\t\t\t\tSystem.out.println(\"Both \"+m.getType());\n\t\t\t\t\tboth = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif( both == false ) {\n\t\t\t\tSystem.out.println(\"Only in Tika \"+m.getType()+\" \"+m.getGlobsAsString());\n\t\t\t}\n\t\t\tmcm.put(m.getType(), mc);\n\t\t\tfor( Glob g : m.getGlobs() ) {\n\t\t\t\tecm.put(g.getPattern(), mc);\n\t\t\t}\n\t\t}\n \t\t// Now pick up others, i.e. the DROID only ones:\n\t\tint d_types = 0;\n\t\tfor( MimeType d : droid ) {\n\t\t\tif( ! mcm.containsKey(d.getType())) {\n\t\t\t\tMimeCompare mc = new MimeCompare();\n\t\t\t\tmc.droid = d;\n\t\t\t\tmcm.put(d.getType(), mc);\t\t\t\n\t\t\t\td_types++;\n\t\t\t\tSystem.out.println(\"DROID only \"+d.getType()+\" \"+d.getGlobsAsString());\n\t\t\t}\n\t\t\tfor( Glob g : d.getGlobs() ) {\n\t\t\t\tif( ecm.containsKey(g.getPattern())) {\n\t\t\t\t\tSystem.out.println(\"MATCH \"+g.getPattern());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO MATCH \"+g.getPattern());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Currently not lineing up as treated as strings, and some are string plus version\n\t\t// import javax.activation.MimeType; instead?\n\t\t// \n\t\tSystem.out.println(\"Types: \"+tnd_types+\"/\"+t_types+\" \"+d_types);\n\t}", "title": "" }, { "docid": "d4a78fa02077dfb163f6c22ac8feb797", "score": "0.46068975", "text": "@Test(timeout = 4000)\n public void test017() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n Evaluation evaluation1 = new Evaluation(instances0, (CostMatrix) null);\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n try { \n evaluation1.evaluateModel((Classifier) costSensitiveClassifier0, instances0, (Object[]) costSensitiveClassifier0.TAGS_MATRIX_SOURCE);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // weka.core.Tag cannot be cast to weka.classifiers.evaluation.output.prediction.AbstractOutput\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "4369e1f86016ab49582f630a2ce068b2", "score": "0.46015218", "text": "@Test\n public void test03() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unweightedMacroFmeasure();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "461cc0cdbee931f080a75a617f1de57c", "score": "0.45965287", "text": "void evaluate() {\n Arrays.stream(solutions).parallel().forEach(Solution::evaluate);\n }", "title": "" }, { "docid": "7432075b87fdfad9c57f3d2583ee8fa5", "score": "0.45954627", "text": "@Test\n public void testImagesList() throws Exception {\n JResult res = extractor.extractContent(c.streamToString(getClass().getResourceAsStream(\"reuters_list.html\")));\n assertEquals(1, res.getImagesCount());\n assertEquals(res.getImageUrl(), res.getImages().get(0).src);\n assertEquals(\"http://s1.reutersmedia.net/resources/r/?m=02&d=20120803&t=2&i=637797752&w=460&fh=&fw=&ll=&pl=&r=CBRE872074Y00\",\n res.getImages().get(0).src);\n\n // http://thevacationgals.com/vacation-rental-homes-are-a-family-reunion-necessity/\n res = extractor.extractContent(c.streamToString(getClass().getResourceAsStream(\"thevacationgals.html\")));\n assertEquals(3, res.getImagesCount());\n assertEquals(\"http://thevacationgals.com/wp-content/uploads/2010/11/Gemmel-Family-Reunion-at-a-Vacation-Rental-Home1-300x225.jpg\",\n res.getImages().get(0).src);\n assertEquals(\"../wp-content/uploads/2010/11/The-Gemmel-Family-Does-a-Gilligans-Island-Theme-Family-Reunion-Vacation-Sarah-Gemmel-300x225.jpg\",\n res.getImages().get(1).src);\n assertEquals(\"http://www.linkwithin.com/pixel.png\", res.getImages().get(2).src);\n }", "title": "" }, { "docid": "b9fd0859713e81536be013dcd10bdcdf", "score": "0.45917132", "text": "public void eval();", "title": "" }, { "docid": "79f394d321e0547c96153594852cac6e", "score": "0.45873725", "text": "protected void doPostAlgorithmActions() {\r\n AlgorithmParameters.storeImageInRunner(getResultImage());\r\n }", "title": "" }, { "docid": "f0a2785a1b0d178010f14e72c534d0fb", "score": "0.45860147", "text": "private void process() {\r\n for (File file : files) {\r\n FileProcessor fp = new FileProcessor(file, generateLog);\r\n fp.process();\r\n }\r\n }", "title": "" }, { "docid": "a235408c607f4c3b7e734853d1a17c2b", "score": "0.4572691", "text": "@Test\n public void run() {\n String[] files = new String[]{ \"smalldata/1_100kx7_logreg.data.gz\", \"smalldata/2_100kx7_logreg.data.gz\", \"smalldata/Abalone.gz\", \"smalldata/adult.gz\", \"smalldata/AID362red_test.csv.gz\", \"smalldata/airlines/AirlinesTest.csv.zip\", \"smalldata/airlines/AirlinesTrain.csv.zip\", \"smalldata/airlines/airlineUUID.csv\", \"smalldata/airlines/allyears2k.zip\", \"smalldata/airlines/allyears2k_headers.zip\", // \"smalldata/airlines/hiveallyears2k/04c40d7c-33c8-486c-8f08-e24ebb8832ea_000000\",\n // \"smalldata/airlines/hiveallyears2k/04c40d7c-33c8-486c-8f08-e24ebb8832ed_000000\",\n // \"smalldata/airlines/hiveallyears2k/04c40d7c-33c8-486c-8f08-e24ebb8832ed_000001\",\n // \"smalldata/airlines/hiveallyears2k/04c40d7c-33c8-486c-8f08-e24ebb8832ed_000002\",\n // \"smalldata/airlines/hiveallyears2k/04c40d7c-33c8-486c-8f08-e24ebb8832ed_000005\",\n // \"smalldata/allstate/claim_prediction_dict.html\",\n \"smalldata/allstate/claim_prediction_train_set_10000.csv.gz\", \"smalldata/allstate/claim_prediction_train_set_10000_bool.csv.gz\", \"smalldata/allstate/claim_prediction_train_set_10000_int.csv.gz\", \"smalldata/anomaly/ecg_discord.csv\", \"smalldata/anomaly/ecg_discord_test.csv\", \"smalldata/anomaly/ecg_discord_train.csv\", \"smalldata/anomaly/toy_test.csv\", \"smalldata/anomaly/toy_train.csv\", \"smalldata/arcene/arcene_test.data\", \"smalldata/arcene/arcene_train.data\", \"smalldata/arcene/arcene_train_labels.labels\", \"smalldata/arcene/arcene_valid.data\", \"smalldata/arcene/arcene_valid_labels.labels\", \"smalldata/auto.csv\", \"smalldata/badchars.csv\", \"smalldata/baddata.data\", \"smalldata/bigburn.csv\", \"smalldata/boring.csv\", \"smalldata/BostonHousing.csv\", \"smalldata/cars.csv\", \"smalldata/cars_nice_header.csv\", \"smalldata/categoricals/30k_categoricals.csv.gz\", \"smalldata/categoricals/40k_categoricals.csv.gz\", \"smalldata/categoricals/AllBedrooms_Rent_Neighborhoods.csv.gz\", \"smalldata/categoricals/apartments_rec.csv\", \"smalldata/categoricals/Cleveland_heartDiseaseUCI_test.csv\", \"smalldata/categoricals/Cleveland_heartDiseaseUCI_train.csv\", \"smalldata/categoricals/TwoBedrooms_Rent_Neighborhoods.csv.gz\", \"smalldata/cebbinom.csv\", \"smalldata/cebexpanded.csv\", \"smalldata/cebexpandedREADME.rtf\", \"smalldata/chess/chess_1x2x1000/h2o/test.csv\", \"smalldata/chess/chess_1x2x1000/h2o/train.csv\", \"smalldata/chess/chess_2x1x1000/h2o/test.csv\", \"smalldata/chess/chess_2x1x1000/h2o/train.csv\", \"smalldata/chess/chess_2x2x10/h2o/test.csv\", \"smalldata/chess/chess_2x2x10/h2o/train.csv\", \"smalldata/chess/chess_2x2x10/R/test.csv\", \"smalldata/chess/chess_2x2x10/R/train.csv\", \"smalldata/chess/chess_2x2x10/rf.conf\", \"smalldata/chess/chess_2x2x10/weka/test.csv.arff\", \"smalldata/chess/chess_2x2x10/weka/train.csv.arff\", \"smalldata/chess/chess_2x2x100/h2o/test.csv\", \"smalldata/chess/chess_2x2x100/h2o/train.csv\", \"smalldata/chess/chess_2x2x100/R/test.csv\", \"smalldata/chess/chess_2x2x100/R/train.csv\", \"smalldata/chess/chess_2x2x100/rf.conf\", \"smalldata/chess/chess_2x2x100/weka/test.csv.arff\", \"smalldata/chess/chess_2x2x100/weka/train.csv.arff\", \"smalldata/chess/chess_2x2x1000/h2o/test.csv\", \"smalldata/chess/chess_2x2x1000/h2o/train.csv\", \"smalldata/chess/chess_2x2x1000/R/test.csv\", \"smalldata/chess/chess_2x2x1000/R/train.csv\", \"smalldata/chess/chess_2x2x1000/rf.conf\", \"smalldata/chess/chess_2x2x1000/weka/test.csv.arff\", \"smalldata/chess/chess_2x2x1000/weka/train.csv.arff\", \"smalldata/chess/chess_2x2x200/h2o/test.csv\", \"smalldata/chess/chess_2x2x200/h2o/train.csv\", \"smalldata/chess/chess_2x2x200/R/test.csv\", \"smalldata/chess/chess_2x2x200/R/train.csv\", \"smalldata/chess/chess_2x2x200/rf.conf\", \"smalldata/chess/chess_2x2x200/weka/test.csv.arff\", \"smalldata/chess/chess_2x2x200/weka/train.csv.arff\", \"smalldata/chess/chess_2x2x500/h2o/chess_2x2_500_int.csv\", \"smalldata/chess/chess_2x2x500/h2o/test.csv\", \"smalldata/chess/chess_2x2x500/h2o/train.csv\", \"smalldata/chess/chess_2x2x500/R/test.csv\", \"smalldata/chess/chess_2x2x500/R/train.csv\", \"smalldata/chess/chess_2x2x500/rf.conf\", \"smalldata/chess/chess_2x2x500/weka/test.csv.arff\", \"smalldata/chess/chess_2x2x500/weka/train.csv.arff\", \"smalldata/chess/chess_8x8x1000/R/test.csv\", \"smalldata/chess/chess_8x8x1000/R/train.csv\", \"smalldata/constantColumn.csv\", \"smalldata/covtype/covtype.20k.data\", \"smalldata/covtype/covtype.altered.gz\", \"smalldata/cuse.data.csv\", \"smalldata/cusedataREADME.rtf\", \"smalldata/cuseexpanded.csv\", \"smalldata/datagen1.csv\", \"smalldata/datetime/dd-mon-yr.csv\", \"smalldata/datetime/dd-mon-yy-with-other-cols.csv\", \"smalldata/drugs.csv\", \"smalldata/dummydata.csv\", \"smalldata/fail1_100x11000.csv.gz\", \"smalldata/fail2_24_100000_10.csv.gz\", \"smalldata/fish.csv\", \"smalldata/gaussian/sdss174052.csv.gz\", \"smalldata/gbm_test/CaliforniaHousing/cal_housing.data\", \"smalldata/gbm_test/CaliforniaHousing/cal_housing.domain\", \"smalldata/gbm_test/ecology_eval.csv\", \"smalldata/gbm_test/ecology_model.csv\", \"smalldata/gbm_test/Mfgdata_gaussian_GBM_testing.csv\", \"smalldata/gisette/Gisette_train_data.csv.gzip\", \"smalldata/gisette/Gisette_train_labels.csv.gzip\", \"smalldata/gisette/Gisette_valid_data.csv.gzip\", \"smalldata/gisette/Gisette_valid_labels.csv.gzip\", \"smalldata/glm_test/poisson_tst1.csv\", \"smalldata/glm_test/prostate_cat_replaced.csv\", \"smalldata/gt69436csv.data\", \"smalldata/handmade.csv\", \"smalldata/hex-443.parsetmp_1_0_0_0.data\", \"smalldata/hhp.cut3.214.data.gz\", \"smalldata/hhp_107_01.data.gz\", \"smalldata/hhp_9_17_12.predict.data.gz\", \"smalldata/histogram_test/30k_cattest.csv\", \"smalldata/histogram_test/50_cattest_test.csv\", \"smalldata/histogram_test/50_cattest_train.csv\", \"smalldata/histogram_test/alphabet_cattest.csv\", \"smalldata/histogram_test/bigcat_5000x2.csv\", \"smalldata/histogram_test/czechboard_300x300.csv\", \"smalldata/histogram_test/swpreds_1000x3.csv\", \"smalldata/housing.raw.txt\", \"smalldata/iris/iris.csv\", \"smalldata/iris/iris.csv.gz\", \"smalldata/iris/iris.csv.zip\", \"smalldata/iris/iris.xls\", \"smalldata/iris/iris.xlsx\", \"smalldata/iris/iris2.csv\", \"smalldata/iris/iris22.csv\", // \"smalldata/iris/iris_header.csv\",\n \"smalldata/iris/iris_test.csv\", \"smalldata/iris/iris_train.csv\", \"smalldata/iris/iris_wheader.csv\", \"smalldata/iris/iris_wheader.csv.gz\", \"smalldata/iris/iris_wheader.csv.zip\", \"smalldata/iris/iris_wheader.nonspd.csv\", \"smalldata/iris/leads.csv\", \"smalldata/jira/850.csv\", \"smalldata/jira/hex-1789.csv\", \"smalldata/jira/pub-180.csv\", \"smalldata/jira/pub-215.csv\", \"smalldata/jira/pub-35_test.csv\", \"smalldata/jira/pub-35_train.csv\", \"smalldata/jira/pub-569.csv\", \"smalldata/jira/pub_213.csv\", \"smalldata/jira/v-11.csv\", \"smalldata/jira/v-3.csv\", \"smalldata/kaggle/bestbuy_train_10k.csv.gz\", \"smalldata/kaggle/creditsample-test.csv.gz\", \"smalldata/kaggle/creditsample-training.csv.gz\", \"smalldata/kaggle/KDDTest.arff.gz\", \"smalldata/kaggle/KDDTrain.arff.gz\", \"smalldata/linreg/data.gz\", \"smalldata/logreg/100kx7_logreg.data.gz\", \"smalldata/logreg/benign.csv\", \"smalldata/logreg/benign.xls\", \"smalldata/logreg/failtoconverge_1000x501.csv.gz\", \"smalldata/logreg/failtoconverge_100x50.csv\", \"smalldata/logreg/logreg_trisum_int_cat_10000x10.csv\", \"smalldata/logreg/make_me_converge_10000x5.csv\", \"smalldata/logreg/princeton/copen.dat\", \"smalldata/logreg/princeton/cuse.dat\", \"smalldata/logreg/princeton/housing.raw\", \"smalldata/logreg/pros.xls\", \"smalldata/logreg/prostate.csv\", \"smalldata/logreg/prostate_long.csv.gz\", \"smalldata/logreg/prostate_test.csv\", \"smalldata/logreg/prostate_train.csv\", \"smalldata/logreg/syn_2659x1049.csv\", \"smalldata/logreg/syn_2659x1049x2enum.csv\", \"smalldata/logreg/syn_8686576441534898792_10000x100.csv\", \"smalldata/logreg/umass_chdage.csv\", \"smalldata/logreg/umass_statdata/cgd.dat\", \"smalldata/logreg/umass_statdata/cgd.txt\", \"smalldata/logreg/umass_statdata/chdage.dat\", \"smalldata/logreg/umass_statdata/chdage.txt\", \"smalldata/logreg/umass_statdata/chdage_cleaned.dat\", \"smalldata/logreg/umass_statdata/clslowbwt.dat\", \"smalldata/logreg/umass_statdata/clslowbwt.txt\", \"smalldata/logreg/umass_statdata/icu.dat\", \"smalldata/logreg/umass_statdata/icu.txt\", \"smalldata/logreg/umass_statdata/lowbwt.dat\", \"smalldata/logreg/umass_statdata/lowbwt.txt\", \"smalldata/logreg/umass_statdata/lowbwtm11.dat\", \"smalldata/logreg/umass_statdata/lowbwtm11.txt\", \"smalldata/logreg/umass_statdata/meexp.dat\", \"smalldata/logreg/umass_statdata/meexp.txt\", \"smalldata/logreg/umass_statdata/nhanes3.dat\", \"smalldata/logreg/umass_statdata/nhanes3.txt\", \"smalldata/logreg/umass_statdata/pbc.dat\", \"smalldata/logreg/umass_statdata/pbc.txt\", \"smalldata/logreg/umass_statdata/pharynx.dat\", \"smalldata/logreg/umass_statdata/pharynx.txt\", \"smalldata/logreg/umass_statdata/pros.dat\", \"smalldata/logreg/umass_statdata/pros.txt\", \"smalldata/logreg/umass_statdata/uis.dat\", \"smalldata/logreg/umass_statdata/uis.txt\", \"smalldata/logreg/why_perfect_training_100x500.csv\", \"smalldata/makedata.csv\", \"smalldata/marketing_naRemoved.csv\", \"smalldata/mixed_causes_NA.csv\", \"smalldata/mnist/readme.txt\", \"smalldata/mnist/test.csv.gz\", \"smalldata/mnist/train.csv.gz\", \"smalldata/mtcars.csv\", \"smalldata/Mushroom.gz\", \"smalldata/neural/Benchmark_dojo_test.data\", \"smalldata/neural/eightsq.data\", \"smalldata/neural/Readme.txt\", \"smalldata/neural/sin_pattern.data\", \"smalldata/neural/sumsigmoids.csv\", \"smalldata/neural/sumsigmoids_test.csv\", \"smalldata/neural/two_spiral.data\", \"smalldata/neural/two_spiral.png\", \"smalldata/parity_128_4_100_quad.data\", \"smalldata/parity_128_4_2_quad.data\", \"smalldata/parse_fail_double_space.csv\", \"smalldata/parse_folder_test/prostate_0.csv\", \"smalldata/parse_folder_test/prostate_1.csv\", \"smalldata/parse_folder_test/prostate_2.csv\", \"smalldata/parse_folder_test/prostate_3.csv\", \"smalldata/parse_folder_test/prostate_4.csv\", \"smalldata/parse_folder_test/prostate_5.csv\", \"smalldata/parse_folder_test/prostate_6.csv\", \"smalldata/parse_folder_test/prostate_7.csv\", \"smalldata/parse_folder_test/prostate_8.csv\", \"smalldata/parse_folder_test/prostate_9.csv\", \"smalldata/parse_zeros_100x8500.csv.gz\", \"smalldata/pca_test/AustraliaCoast.csv\", \"smalldata/pca_test/USArrests.csv\", \"smalldata/phbirths.raw.txt\", \"smalldata/pmml/cars-cater-rf-1tree.pmml\", \"smalldata/pmml/cars-cater-rf-50trees.pmml\", \"smalldata/pmml/cars-rf-1tree.pmml\", \"smalldata/pmml/cars-rf-50trees.pmml\", \"smalldata/pmml/copen-rf-1tree.pmml\", \"smalldata/pmml/copen-rf-50trees.pmml\", \"smalldata/pmml/iris_rf_1tree.pmml\", \"smalldata/pmml/iris_rf_500trees.pmml\", \"smalldata/pmml/SampleScorecard.pmml\", \"smalldata/poisson/Goalies.csv\", \"smalldata/poker/poker-hand-testing.data\", \"smalldata/poker/poker-hand.pl\", \"smalldata/poker/poker10\", \"smalldata/poker/poker100\", \"smalldata/poker/poker1000\", \"smalldata/prostate/prostate.bin.csv.zip\", \"smalldata/prostate/prostate.csv.zip\", \"smalldata/prostate/prostate.float.csv.zip\", \"smalldata/prostate/prostate.int.csv.zip\", \"smalldata/prostate/prostate.uuid.csv.zip\", \"smalldata/quantiles/breadth.csv\", \"smalldata/random1csv.data\", \"smalldata/randomdata2.csv\", \"smalldata/randomdata3.csv\", \"smalldata/runif.csv\", \"smalldata/runifA.csv\", \"smalldata/runifB.csv\", \"smalldata/runifC.csv\", \"smalldata/smtrees.csv\", \"smalldata/space_shuttle_damage.csv\", \"smalldata/stego/stego_testing.data\", \"smalldata/stego/stego_training.data\", \"smalldata/stego/stego_training_modified.data\", \"smalldata/swiss.csv\", \"smalldata/swiss_clean.csv\", \"smalldata/syn_binary10Kx100.csv.gz\", \"smalldata/syn_fp_prostate.csv\", \"smalldata/syn_sphere2.csv\", \"smalldata/syn_sphere3.csv\", \"smalldata/test/arit.csv\", \"smalldata/test/classifier/chess_test.csv\", \"smalldata/test/classifier/chess_train.csv\", \"smalldata/test/classifier/coldom_test_1.csv\", \"smalldata/test/classifier/coldom_test_1_2.csv\", \"smalldata/test/classifier/coldom_test_2.csv\", \"smalldata/test/classifier/coldom_test_3.csv\", \"smalldata/test/classifier/coldom_train_1.csv\", \"smalldata/test/classifier/coldom_train_2.csv\", \"smalldata/test/classifier/coldom_train_3.csv\", \"smalldata/test/classifier/iris_missing_values.csv\", \"smalldata/test/classifier/iris_test.csv\", \"smalldata/test/classifier/iris_test_extra.csv\", \"smalldata/test/classifier/iris_test_extra_with_na.csv\", \"smalldata/test/classifier/iris_test_missing.csv\", \"smalldata/test/classifier/iris_test_missing_extra.csv\", \"smalldata/test/classifier/iris_test_numeric.csv\", \"smalldata/test/classifier/iris_test_numeric_extra.csv\", \"smalldata/test/classifier/iris_test_numeric_extra2.csv\", \"smalldata/test/classifier/iris_test_numeric_missing.csv\", \"smalldata/test/classifier/iris_test_numeric_missing_extra.csv\", \"smalldata/test/classifier/iris_train.csv\", \"smalldata/test/classifier/iris_train_numeric.csv\", \"smalldata/test/classifier/multi_class.test.csv\", \"smalldata/test/classifier/multi_class.train.csv\", \"smalldata/test/cm/v1.csv\", \"smalldata/test/cm/v1n.csv\", \"smalldata/test/cm/v2.csv\", \"smalldata/test/cm/v2n.csv\", \"smalldata/test/cm/v3.csv\", \"smalldata/test/cm/v4.csv\", \"smalldata/test/cm/v4n.csv\", \"smalldata/test/HEX-287-small-files.data\", \"smalldata/test/hive.txt\", \"smalldata/test/HTWO-87-one-line-dataset-0.csv\", \"smalldata/test/HTWO-87-one-line-dataset-1dos.csv\", \"smalldata/test/HTWO-87-one-line-dataset-1unix.csv\", \"smalldata/test/HTWO-87-one-line-dataset-2dos.csv\", \"smalldata/test/HTWO-87-one-line-dataset-2unix.csv\", \"smalldata/test/HTWO-87-two-lines-dataset.csv\", \"smalldata/test/HTWO-87-two-unique-lines-dataset.csv\", \"smalldata/test/is_NA.csv\", \"smalldata/test/na_test.zip\", \"smalldata/test/R/titanic.csv\", // \"smalldata/test/rmodels/covtype-rf-50tree-as-factor-X5-20k.rdata\",\n // \"smalldata/test/rmodels/covtype-rf-50tree-as-factor-X5.rdata\",\n \"smalldata/test/rmodels/covtype.rf.2\", // \"smalldata/test/rmodels/iris_x-iris-1-4_y-species_ntree-3.rdata\",\n // \"smalldata/test/rmodels/iris_x-iris-1-4_y-species_ntree-500.rdata\",\n // \"smalldata/test/rmodels/ozone.rf.10trees.rdata\",\n // \"smalldata/test/rmodels/prostate-rf-10tree-asFactorCapsule.rdata\",\n // \"smalldata/test/rmodels/prostate-rf-1tree-asFactorCapsule.rdata\",\n // \"smalldata/test/rmodels/prostate-rf-2tree-asFactorCapsule.rdata\",\n \"smalldata/test/rmodels/rf-iris-1tree.model\", \"smalldata/test/test1.dat\", \"smalldata/test/test_26cols_comma_sep.csv\", \"smalldata/test/test_26cols_multi_space_sep.csv\", \"smalldata/test/test_26cols_single_space_sep.csv\", \"smalldata/test/test_26cols_single_space_sep_2.csv\", \"smalldata/test/test_all_raw_top10rows.csv\", \"smalldata/test/test_enum_domain_size.csv\", \"smalldata/test/test_less_than_65535_unique_names.csv\", \"smalldata/test/test_manycol_tree.csv\", \"smalldata/test/test_more_than_65535_unique_names.csv\", \"smalldata/test/test_parse_mix.csv\", \"smalldata/test/test_percentiles_distns.csv.gz\", \"smalldata/test/test_percentiles_distns.R\", \"smalldata/test/test_quote.csv\", \"smalldata/test/test_time.csv\", \"smalldata/test/test_tree.csv\", \"smalldata/test/test_tree_minmax.csv\", // \"smalldata/test/test_uuid.csv\", //PUB-1003\n // \"smalldata/test/test_uuid_na.csv\", //PUB-1003\n // \"smalldata/airlines/uuid_airline.csv\", //PUB-1003\n \"smalldata/test/test_var.csv\", \"smalldata/Test_Arabic_Digit_short.data\", \"smalldata/tinyburn.csv\", \"smalldata/titanicalt.csv\", \"smalldata/tnc3.csv\", \"smalldata/tnc3_10.csv\", \"smalldata/tnc6.csv\", \"smalldata/toy_data_RF.csv\", \"smalldata/toykm.csv\", \"smalldata/trees.csv\", \"smalldata/Twitter2DB.txt\", \"smalldata/unbalanced/orange_small_test.data.zip\", \"smalldata/unbalanced/orange_small_train.data.zip\", \"smalldata/WBIsparsedata\", \"smalldata/weather.csv\", \"smalldata/wine.data\", \"smalldata/winesPCA.csv\", \"smalldata/wonkysummary.csv\", \"smalldata/zero_dot_zero_one.csv\", \"smalldata/zero_dot_zero_zero_one.csv\", \"smalldata/zinb.csv\", \"smalldata/zip_code/zip_code_database.csv.gz\", \"smalldata/zip_code/zipcodes\", \"smalldata/zipcodes\" };\n for (String f : files) {\n Frame fr = null;\n Key dest = null;\n Key split1 = null;\n Key split2 = null;\n try {\n Log.info((\"Trying to parse \" + f));\n Key fkey = NFSFileVec.make(TestUtil.find_test_file(f));\n fr = ParseDataset2.parse(Key.make(), new Key[]{ fkey });\n Log.info((\"Trying to rebalance \" + f));\n final int splits = Math.min(((int) (fr.numRows())), ((4 * (NUMCPUS)) * (CLOUD.size())));\n dest = Key.make((f + \".balanced\"));\n H2O.submitTask(new RebalanceDataSet(fr, dest, splits)).join();\n Log.info((\"Trying to split \" + f));\n FrameSplitPage fsp = new FrameSplitPage();\n fsp.source = fr;\n fsp.ratios = new float[]{ 0.75F };\n split1 = Key.make((f + \".one\"));\n split2 = Key.make((f + \".two\"));\n fsp.split_keys = new Key[]{ split1, split2 };\n fsp.invoke();\n } catch (IllegalArgumentException t) {\n Log.info(\"Caught non-fatal exception:\");\n t.printStackTrace();\n } finally {\n if (fr != null)\n fr.delete();\n\n if (dest != null) {\n Frame balanced = UKV.get(dest);\n if (balanced != null)\n balanced.delete();\n\n }\n if (split1 != null) {\n Frame split = UKV.get(split1);\n if (split != null)\n split.delete();\n\n }\n if (split2 != null) {\n Frame split = UKV.get(split2);\n if (split != null)\n split.delete();\n\n }\n }\n }\n }", "title": "" }, { "docid": "8196597aaeeec4c8257f4716011f075a", "score": "0.45721838", "text": "public void run(Scanner scanner, String fileName);", "title": "" }, { "docid": "807f723f0dc63929cfbb3fb6daa01ed2", "score": "0.4571329", "text": "public static void main(String[] args) throws Exception {\n TinyImageExtractor tinyImageExtractor = new TinyImageExtractor(16);\n\n // Import training and testing data\n VFSGroupDataset<FImage> training = new VFSGroupDataset<FImage>(filepathTraining, ImageUtilities.FIMAGE_READER);\n\n // Create KNN Annotator using Tiny Image feature extractor using EUCLIDEAN FV comparator and k = 15\n // k = 15 was learned as the best value of K using a 75/25 split from the training data\n KNNAnnotator<FImage, String, TinyImageExtractor> knnAnnotator = new KNNAnnotator(tinyImageExtractor, DoubleFVComparison.EUCLIDEAN, 15);\n\n // Train annotator on training data\n knnAnnotator.trainMultiClass(training);\n testEnvironment();\n // Annotate the unlabelled testing data and output the best value for each image\n /** This is equivalent to Helper::makePredictions */\n\n BufferedWriter writer = new BufferedWriter(new FileWriter(filepathOutput));\n VFSListDataset<FImage> testing = new VFSListDataset<FImage>(filepathTesting, ImageUtilities.FIMAGE_READER);\n\n for (int i = 0; i < testing.size(); i++) {\n List<ScoredAnnotation<String>> result = knnAnnotator.annotate(testing.get(i));\n Collections.sort(result, Collections.reverseOrder());\n String outputRes = testing.getID(i) + \" \";\n outputRes += result.get(0).annotation;\n writer.write(outputRes);\n writer.newLine();\n }\n writer.close();\n\n }", "title": "" }, { "docid": "21905cf03fa79075529ae298af661d51", "score": "0.45700756", "text": "public void doProcess() {\n\t\tString content = new FileManipulation().readJson(\"result.json\");\n\n\t\tList<Root> roots = JSON.parseArray(content, Root.class);\n\t\t// System.out.println(roots.size());\n\t\tCityPreprocess cityPreprocess = new CityPreprocess();\n\t\tfor (int i = 0; i < roots.size(); i++) {\n\t\t\tList<Trace> traces = roots.get(i).getTraces();\n\t\t\tfor (int j = 0; j < traces.size(); j++) {\n\t\t\t\tString[] temp = cityPreprocess.extractCity(traces.get(j)\n\t\t\t\t\t\t.getAcceptStation());\n\t\t\t\ttraces.get(j).setAcceptStation(temp[0] + temp[1]);\n\t\t\t}\n\t\t}\n\t\tString rootsStr = JSON.toJSONString(roots);\n\t\tnew FileManipulation().WriteJson(\"step1.json\", rootsStr);\n\t}", "title": "" }, { "docid": "82d2a9ac6add85becfa9f2df2cf9530e", "score": "0.4568933", "text": "@Test void identicalResults() {\n\t\t// sanity check to make sure imageTypes have been specified. Otherwise, this could pass and do nothing\n\t\tassertFalse(imageTypes.isEmpty());\n\n\t\tfor (ImageType<?> type : imageTypes) {\n\t\t\tidenticalResults(type);\n\t\t}\n\t}", "title": "" }, { "docid": "1bd7a01b60eaa2dc7fe7444bfc4cc103", "score": "0.45683303", "text": "@Override\n\tpublic void run() {\n\t\tCompareFileToLib.compare(libPath, filePath);\n\t}", "title": "" }, { "docid": "48ed4d045882b80619b9234aa969e13f", "score": "0.45576856", "text": "@BeforeClass\n public static void setUpAll(){\n tarArchive = new TarArchive(blockSize);\n try {\n File archive = new File(archiveName);\n if (!archive.exists() && archive.createNewFile() ||\n archive.exists() && archive.delete() && archive.createNewFile()){\n System.setOut(new PrintStream(new FileOutputStream(archive)));\n }\n } catch (IOException e){\n throw new RuntimeException(e);\n }\n // Generate archive\n List<String> files = Arrays.asList(\n \"src/test/resources/tararchive/outer_file\",\n \"src/test/resources/tararchive/empty_dir\",\n \"src/test/resources/tararchive/outer_dir\",\n \"src/test/resources/tararchive/wrong_dir\",\n \"src/test/resources/tararchive/wrong_file.txt\"\n );\n tarArchive.archive(files);\n // Set System.out to stdout\n System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));\n }", "title": "" }, { "docid": "326075578b600f598df757d0fa7afd39", "score": "0.45572066", "text": "public static void main(String[] args) {\n\t\tString dir = Constants.in_path;\n\t\tArrayList<String> totalFileList = Util.findAllFiles(dir, \"mst\");\n\n\t\t// Extract data from each file\n\t\tfor (String x : totalFileList) \n\t\t\tExtract.fileProcess(x);\n\t\tExtract.saveMeta();\n\t\tSystem.out.println(\"Finished with all\");\n\t}", "title": "" }, { "docid": "cefb6e02782c933d7f53d30a0fad38ce", "score": "0.4557183", "text": "private void runTest(String inputFile, String[] testPatterns)\n throws Exception {\n File foFile = new File(foBaseDir, inputFile);\n byte[] pdfData = convertFO(foFile, getUserAgent(), dumpPDF);\n checkEncoding(pdfData, testPatterns);\n }", "title": "" }, { "docid": "cdb2594a0676ea08c79f888ded1289fc", "score": "0.45548254", "text": "protected void doPostAlgorithmActions() {\r\n\r\n if (outputPanel.isOutputNewImageSet()) {\r\n AlgorithmParameters.storeImageInRunner(getResultImage());\r\n }\r\n }", "title": "" }, { "docid": "bcdae3812745ffe70ad08ecf32506161", "score": "0.45420614", "text": "@Override\n\tpublic double evaluate() {\n\t\tdouble value = 0;\n\t\tTurtleManager.clearActiveTurtles();\n\t\tfor(Node curr : (this.getChildren().get(0).getChildren())) {\n\t\t\tif(!(curr instanceof ArgumentNode)) {\n\t\t\t\tSystem.out.println(\"Unknown Commands catches!\");\n\t\t\t\tException e_0 = new Exception(\"Unknown Commands\");\n\t\t\t\tnew Error(e_0);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tArrayList<Turtle> allTurtles = (ArrayList<Turtle>) TurtleManager.getAllTurtles();\n\t\t\t\tHashMap<Integer, Turtle> allTurtlesByID = (HashMap<Integer, Turtle>) TurtleManager.getAllTurtlesByID();\n\t\t\t\tvalue = Double.parseDouble(curr.getType());\n\t\t\t\tSystem.out.println(allTurtles.size());\n\t\t\t\tif(allTurtles.contains(allTurtlesByID.get((int) value))) {\n\t\t\t\t\tTurtleManager.addActiveTurtle(curr.getType());\n\t\t\t\t\tSystem.out.println(\"Existing turtle\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnew CreateTurtle(Display.getRoot());\n\t\t\t\t\tSystem.out.println(\"Created new turtle\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn value;\n\t}", "title": "" }, { "docid": "56eaa4bf8735443e8c03d63d93dd45ab", "score": "0.4536387", "text": "public static void main(String[] args) {\n\n File workingDir = new File(\"/home/nharrand/Documents/sosie/sosiefier/newExp3\");\n generateOtherExp(workingDir);\n\n //File workingDir = new File(\"/home/nharrand/Documents/sosie/sosiefier/configurationFiles/result\");\n //generateReadResults(workingDir);\n\n /*File workingDir = new File(\"/home/nharrand/Documents/sosie/sosiefier/result_nicolas\");\n generateBilan(workingDir);*/\n\n /*File workingDir = new File(\"/home/nharrand/Documents/sosie/sosiefier\");\n genExploration(workingDir);*/\n }", "title": "" }, { "docid": "5869c440b5b241fd16ea26aa6bd9c531", "score": "0.45323604", "text": "public boolean accept(File f) {\n\t\t if (f.isDirectory()) {\n\t\t return true;\n\t\t }\n\t\t \n\t\t String extension = Utils.getExtension(f);\n\t\t if (extension != null) {\n\t\t if (extension.equals(Utils.tif)) {\n\t\t return true;\n\t\t } else {\n\t\t return false;\n\t\t }\n\t\t }\n\t\t \n\t\t return false;\n\t\t }", "title": "" }, { "docid": "d117b57c7673a49af122d82a4a0c9939", "score": "0.4524308", "text": "public static void main(String[] args) throws Exception\n {\n File[] files = new File(SIMPLE_DIR).listFiles();\n List<String> tests = new ArrayList<String>();\n for (File file : files)\n {\n String name = file.getName();\n if (file.isFile() && name.endsWith(SIMPLE_FILE_EXT))\n { \n tests.add(name.substring(0, \n name.length() - SIMPLE_FILE_EXT.length()));\n }\n }\n\n for(int i = 0; i < tests.size(); i++)\n {\n String simpleFilepath = SIMPLE_DIR + tests.get(i) + SIMPLE_FILE_EXT;\n\n System.out.println(\"\\nINPUT SIMPLE CODE (\" + tests.get(i) + \"):\\n\");\n printFile(simpleFilepath);\n\n System.out.println(\"\\nOUTPUT INTERPRETED ANSWER (\" + \n tests.get(i) + \"):\\n\");\n Parser.interpret(simpleFilepath);\n }\n System.out.println(\"\\n\\nAll code successfully interpreted.\\n\");\n ReadOption.in.close();\n }", "title": "" }, { "docid": "e7373b9772ecc7a6a04a818cef348907", "score": "0.45214364", "text": "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tFile inputFile = new File(\"F:\\\\Radix+sort.arff\");// 训练语料文件\r\n\t\t\tArffLoader atf = new ArffLoader();\r\n\t\t\tatf.setFile(inputFile);\r\n\t\t\tInstances instancesTrain = atf.getDataSet(); // 读入训练文件\r\n\r\n\t\t\tinputFile = new File(\"F:\\\\Randomized+algorithm.arff\");// 测试语料文件\r\n\t\t\tatf.setFile(inputFile);\r\n\t\t\tInstances instancesTest = atf.getDataSet(); // 读入测试文件\r\n\t\t\t//设置分类属性所在行号(第一行为0号),instancesTrain.numAttributes()可以取得属性总数\r\n\t\t\tinstancesTest.setClassIndex(instancesTest.numAttributes()-1);\r\n\t\t\tinstancesTrain.setClassIndex(instancesTrain.numAttributes()-1);\r\n\t\t\t\r\n\t\t\t// 朴素贝叶斯算法\r\n\t\t\tNaiveBayes classifier1 = new NaiveBayes();\r\n\t\t\tclassifier1.buildClassifier(instancesTrain);\r\n\t\t\t//根据训练文件得到分类器(得到参数)\r\n\t\t\tEvaluation eval = new Evaluation(instancesTrain);\r\n\t\t\t//由训练文件得到分类器对测试文件进行分类测试,得到错误率\r\n\t\t\teval.evaluateModel(classifier1, instancesTest);\r\n\t\t\tprintEvalDetail(eval);\r\n\t\t\tSystem.out.println(eval.errorRate());\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1bfa61ad671abd352f3575b7f4062cb2", "score": "0.45156616", "text": "@Test(timeout = 4000)\n public void test078() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertNotNull(textDirectoryLoader0);\n \n CostMatrix costMatrix0 = new CostMatrix(0);\n assertEquals(0, costMatrix0.numRows());\n assertEquals(0, costMatrix0.size());\n assertEquals(0, costMatrix0.numColumns());\n assertNotNull(costMatrix0);\n \n double double0 = Evaluation.MIN_SF_PROB;\n assertEquals(4.9E-324, double0, 0.01);\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"setFolds\");\n assertFalse(boolean0);\n \n CoverTree coverTree0 = new CoverTree();\n assertEquals(\"The distance function to use for finding neighbours (default: weka.core.EuclideanDistance). \", coverTree0.distanceFunctionTipText());\n assertEquals(0.0, coverTree0.measureNumLeaves(), 0.01);\n assertEquals(0.0, coverTree0.measureMaxDepth(), 0.01);\n assertFalse(coverTree0.getMeasurePerformance());\n assertEquals(0.0, coverTree0.measureTreeSize(), 0.01);\n assertEquals(1.3, coverTree0.getBase(), 0.01);\n assertEquals(\"The base for the expansion constant.\", coverTree0.baseTipText());\n assertEquals(\"Whether to calculate performance statistics for the NN search or not\", coverTree0.measurePerformanceTipText());\n assertNotNull(coverTree0);\n \n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertNotNull(testInstances0);\n \n Instances instances0 = testInstances0.generate();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertNotNull(instances0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertNotNull(evaluation0);\n \n double double1 = evaluation0.kappa();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(1.0, double1, 0.01);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertNotEquals(double1, double0, 0.01);\n }", "title": "" }, { "docid": "0017a9f51dbe2367aa43c0bc7ff39632", "score": "0.4508111", "text": "<T extends IEvaluation> T[] doEvaluation(MultiDataSetIterator iterator, T... evaluations);", "title": "" }, { "docid": "d4f410051d6d60b094d961168125e7b0", "score": "0.45037904", "text": "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tFile reduceFile = fs.getFile(rcJob.getFilename(), rcJob.getId(),\n\t\t\t\t\t\tFS.FileType.REDUCER_OUT, pNo, rcJob.getReducer(pNo));\n\t\t\t\t\treduceFiles.add(reduceFile);\n\t\t\t\t}", "title": "" }, { "docid": "928ec49755c160eca8f8e6438653dbca", "score": "0.4502825", "text": "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01);\n \n double double1 = evaluation0.falseNegativeRate(0);\n assertEquals(0.0, double1, 0.01);\n \n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "491840fff63862fc49e06fa76485c7f8", "score": "0.45003125", "text": "@Override\n\t\tpublic void run() {\n\t\t\tObservableList<String> uris = stage.getAlbum().getPhotosUri();\n\t\t\tList<Photo> photos = new ArrayList<>();\n\t\t\tList<String> urisToAdd = new ArrayList<>();\n\t\t\tList<String> expressionToAdd = new ArrayList<>();\n\t\t\tSIFT sift = new SIFT();\n\t\t\tdouble size = 0;\n\t\t\tfor (File file : files) {\n\t\t\t\tString path = file.getAbsoluteFile().toURI().toString();\n\t\t\t\tif (uris.contains(path)) {\n\t\t\t\t\t// TO DO deal with existing photo\n\t\t\t\t} else {\n\t\t\t\t\tint index = file.getName().lastIndexOf(\".\");\n\t\t\t\t\tsize += file.length();\n\t\t\t\t\tPhoto photo = new Photo(stage.getAlbum().getId(), stage.getAlbum().getAlbumName(), path,\n\t\t\t\t\t\t\tDateUtil.getFormatDate(file.lastModified()), file.getName().substring(0, index),\n\t\t\t\t\t\t\tParseUtil.getMD5(file), file.length(), \"\");\n\t\t\t\t\tphoto.setModified(true);\n\t\t\t\t\tphotos.add(photo);\n\t\t\t\t\turisToAdd.add(path);\n\t\t\t\t\tBufferedImage image = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\timage = ImageIO.read(file);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tRenderImage ri = new RenderImage(image);\n\t\t\t\t\tsift.detectFeatures(ri.toPixelFloatArray(null));\n\t\t\t\t\tImagePoint imagePoint = new ImagePoint(sift.getGlobalFeaturePoints());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdouble[] express = ClusterUtils.distribute(imagePoint);\n\t\t\t\t\t\tString expression = ParseUtil.doubleArrayToExpression(express);\n\t\t\t\t\t\texpressionToAdd.add(expression);\n\t\t\t\t\t\t// DBUtil.addExpression(username.get(), album.getId(),\n\t\t\t\t\t\t// photo.getMd5(), photo.getUri(), expression);\n\t\t\t\t\t\tKDSearchUtil.insertNode(KDSearchUtil.constructKeyWithAlbumId(express, stage.getAlbum().getId()),\n\t\t\t\t\t\t\t\tphoto);\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t// e.printStackTrace();\n\t\t\t\t\t\tLogUtil.e(\"PhotosBrowserController.RenderImageRunnable.run\", \"该图片在添加时出错,删除该图片\");\n\t\t\t\t\t\tphoto.deletePhoto(stage.getUsername());\n\t\t\t\t\t\tDBUtil.deleteExpressionOfPhoto(stage.getUsername(), photo.getId(), photo.getMd5());\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tDBUtil.addExpressionBatch(stage.getUsername(), stage.getAlbum().getId(), photos, expressionToAdd);\n\t\t\tDBUtil.savePhotosData(photos, stage.getUsername());\n\t\t\tdouble s = size;\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tstage.getAlbum().addAlbumSize(s);\n\t\t\t\t\tstage.getAlbum().addPhotoNumber(files.size());\n\t\t\t\t\tstage.getUser().addPhotoNumber(files.size());\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// stage.getAlbum().setSize(stage.getAlbum().getSize() + size);\n\t\t\t// stage.getAlbum().setPhotosNumber(stage.getAlbum().getPhotosNumber()\n\t\t\t// + files.size());\n\t\t\turis.addAll(urisToAdd);\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgv_photo.getItems().addAll(photos);\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t}", "title": "" }, { "docid": "1323409326d15a6b77dd97801395990d", "score": "0.449342", "text": "@Test\n public void testTarTestingOkayTar() throws Exception {\n WorkflowJob p = j.jenkins.createProject(WorkflowJob.class, \"p\");\n URL resource = getClass().getResource(\"test_ok.tar\");\n String tgz = new File(URLDecoder.decode(resource.getPath(), \"UTF-8\")).getAbsolutePath().replace('\\\\', '/');\n p.setDefinition(new CpsFlowDefinition(\n \"node {\\n\" +\n \" def result = untar file: '\" + separatorsToSystemEscaped(tgz) + \"', test: true\\n\" +\n \" if (!result)\\n\" +\n \" error('Should be okay!')\\n\" +\n \"}\", true));\n j.assertBuildStatusSuccess(p.scheduleBuild2(0));\n }", "title": "" }, { "docid": "d8d40ebc08a63ae2c9adfa7a884f2cdf", "score": "0.44890574", "text": "public static void main(String[] args) {\n String StartFilePath = \"C:\\\\Users\\\\Master\\\\Dropbox\\\\X\";\n File start = new File(StartFilePath); // Folder with all the photos\n// Assuming there are no folders inside the start folder\n File ff[] = start.listFiles(); // List of all the photos\n ff = sort(ff);\n ff = sift(ff);\n System.out.println(Arrays.toString(ff));\n ArrayList<TreeMap<Integer, Integer>> ats = new ArrayList();\n// ImageIO.read(ff[0]);\n if (ff.length < 100) { // Limit on number for time purpose\n for (int i = 0; i < ff.length; i++) {\n TreeMap<Integer, Integer> tm = getRGBTM(ff[i]);\n ats.add(tm);\n }\n String treeAdapt[] = converting(ats);\n ArrayList<TreeMap<Integer, Integer>> finDup = CTTM(ats); // Need to be writed\n } else { // Needs tp be split up\n\n }\n }", "title": "" }, { "docid": "22aabfc5e05b0b6caf4fd33d900fd356", "score": "0.4488895", "text": "@Test\n\tpublic void testStrippedVsTiledPlanar() throws IOException {\n\n\t\tFile strippedFile = TiffTestUtils\n\t\t\t\t.getTestFile(TiffTestConstants.FILE_STRIPPED);\n\t\tTIFFImage strippedTiff = TiffReader.readTiff(strippedFile);\n\n\t\tFile tiledPlanarFile = TiffTestUtils\n\t\t\t\t.getTestFile(TiffTestConstants.FILE_TILED_PLANAR);\n\t\tTIFFImage tiledPlanarTiff = TiffReader.readTiff(tiledPlanarFile);\n\n\t\tTiffTestUtils.compareTIFFImages(strippedTiff, tiledPlanarTiff);\n\n\t}", "title": "" }, { "docid": "a999b1e218db7a579e3e0e3064a71e87", "score": "0.44843236", "text": "@Override\n public EvaluationResult process() {\n \n ArrayList<EvaluationResult> ssResultList = new ArrayList();\n for(Period p : opts.getPeriods()){\n // get station speeds\n //Vector<EvaluationResult> stationSpeed = Evaluation.getResult(StationSpeed.class, this.opts);\n StationSpeed stationSpeed = new StationSpeed(p, opts.getSelectedSection(), ko.getOutputPath(), ko);\n ssResultList.add(stationSpeed.process());\n }\n \n //Period[] periods = this.opts.getPeriods();\n Period[] periods = new Period[this.opts.getPeriods().size()];\n this.opts.getPeriods().toArray(periods);\n int idx = 0;\n // for all results, calculate CM\n for(EvaluationResult result : ssResultList)\n {\n EvaluationResult res = EvaluationResult.copy(result);\n \n if(printDebug && idx < periods.length) System.out.println(\" - \" + periods[idx++].getPeriodString());\n \n // skip average\n if(TITLE_AVERAGE.equals(res.getName())) continue;\n \n // adjust data\n preAdjustResult(res);\n\n // calculate CM\n calculateCM(res);\n \n // add result to result list\n this.results.add(res); \n } \n \n makeTCMResult();\n\n return null;\n }", "title": "" } ]
4d2f108a70f61db80bf8129e1599c6a2
Returns the EventBus associated with the client.
[ { "docid": "7b58898ab00ca184e175163871a3047c", "score": "0.7018252", "text": "public EventBus getEventBus() {\n return eventBus;\n }", "title": "" } ]
[ { "docid": "bd970e8a414485240ff788fdcd75998e", "score": "0.6818396", "text": "public synchronized Bus getEventBus()\n\t{\n\t\tif (eventBus == null)\n\t\t{\n\t\t\teventBus = new Bus();\n\t\t}\n\n\t\treturn eventBus;\n\t}", "title": "" }, { "docid": "928db1f73b660727a1580a6dc3f820f9", "score": "0.5717544", "text": "EventBus getEventBus();", "title": "" }, { "docid": "da45f4dd7672d48eb0f10b3264cab6d9", "score": "0.5571745", "text": "public static ServiceBusContract getServicebus() throws AzureChatException {\n\t\tLOGGER.info(\"[AzureChatServiceBus][getServicebus] start\");\n\t\tif (service == null) {\n\t\t\tString namespace = AzureChatUtils\n\t\t\t\t\t.getProperty(AzureChatConstants.SERVICE_BUS_NAMESPACE);\n\t\t\tString saskeyname = AzureChatUtils\n\t\t\t\t\t.getProperty(AzureChatConstants.SERVICE_BUS_SASKEYNAME);\n\t\t\tString saskey = AzureChatUtils\n\t\t\t\t\t.getProperty(AzureChatConstants.SERVICE_BUS_SASKEY);\n\t\t\tString rootUri = AzureChatUtils\n\t\t\t\t\t.getProperty(AzureChatConstants.SERVICE_BUS_ROOT_URI);\n\t\t\tConfiguration config = ServiceBusConfiguration\n\t\t\t\t\t.configureWithSASAuthentication(namespace, saskeyname,\n\t\t\t\t\t\t\tsaskey, rootUri);\n\t\t\tLOGGER.debug(\"Namespace : \" + namespace + \" SAS Key Name\"\n\t\t\t\t\t+ saskeyname + \" SAS Key\" + saskey);\n\t\t\tservice = ServiceBusService.create(config);\n\t\t}\n\t\tLOGGER.info(\"[AzureChatServiceBus][getServicebus] end\");\n\t\treturn service;\n\t}", "title": "" }, { "docid": "5659812ce36b434d44ebbed78f83993c", "score": "0.54185224", "text": "public Bus getBus() {\n if(mBus == null) {\n mBus = new Bus();\n }\n return mBus;\n }", "title": "" }, { "docid": "97ae88273a03472c5e3202352effd362", "score": "0.5355893", "text": "public static EventHubManager authenticate(RestClient restClient, String subscriptionId) {\n return new EventHubManager(restClient, subscriptionId);\n }", "title": "" }, { "docid": "01761e59ac05ba757f3fcad02e8dce7b", "score": "0.5248401", "text": "public Client getClient() {\n return this.client;\n }", "title": "" }, { "docid": "a212463d0f01a90419aa99513be1160f", "score": "0.52368784", "text": "public Client getClient() {\r\n return this.client;\r\n }", "title": "" }, { "docid": "df4b4f68e6ce79b6f5f8f880b6253dbf", "score": "0.522585", "text": "public Bus getBus() {\n return buses.poll();\n }", "title": "" }, { "docid": "2307a26746d19c43995797b0387209a5", "score": "0.52200794", "text": "public Client getClient() {\n return client;\n }", "title": "" }, { "docid": "2307a26746d19c43995797b0387209a5", "score": "0.52200794", "text": "public Client getClient() {\n return client;\n }", "title": "" }, { "docid": "6e3d15d122708d301a9cd8d41aacb0b8", "score": "0.5204789", "text": "public static AsyncParticipantClient getClient()\n {\n return CLIENT ;\n }", "title": "" }, { "docid": "f41b30957efe10198713c3561c7d0c5d", "score": "0.5204567", "text": "public Client getClient() {\r\n return client;\r\n }", "title": "" }, { "docid": "5d82f653fd2f68bebbda1a1795d20868", "score": "0.5179222", "text": "public final String getEventHandler()\n {\n return this.eventHandler;\n }", "title": "" }, { "docid": "7083f40f03eef0d89c1c94d844adc9d7", "score": "0.5172897", "text": "public Bus getBus() {\n return this.bus;\n }", "title": "" }, { "docid": "8168047ab80a4612cca52023fda9e823", "score": "0.51699823", "text": "public Bus getBus() {\n\t\treturn bus;\n\t}", "title": "" }, { "docid": "386af0075388b2a3e2e3ed63b855495a", "score": "0.51628876", "text": "public ClientInterface getClient() {\n return this.client;\n }", "title": "" }, { "docid": "da7dc2043e389abb8461723e508baf18", "score": "0.50929725", "text": "public Client getClient() {\n\t\treturn client;\n\t}", "title": "" }, { "docid": "bcca16584b324e3195d5a42775ce6fb3", "score": "0.5091186", "text": "public Client getClient() {\n return client;\n }", "title": "" }, { "docid": "cde53aa77d4e9b2404d914b81296b0c2", "score": "0.5070713", "text": "@Override\n\tpublic Client getClient() throws Exception {\n\t\treturn (Client) mapEmd.get(\"client\");\n\t}", "title": "" }, { "docid": "4b9f890031ff9eea2ce930c166177538", "score": "0.5060213", "text": "EventBus init(EventBusOptions eventBusOptions);", "title": "" }, { "docid": "5a366f4fd916f386188270697ee87a19", "score": "0.50502163", "text": "public OncRpcClient getClient() {\n return client;\n }", "title": "" }, { "docid": "f65a5e475598a317b0f6724c81be4a01", "score": "0.5021654", "text": "public String getClient()\n\t{\n\t\treturn client;\n\t}", "title": "" }, { "docid": "f6d77291ffa879bffd711397e295a030", "score": "0.50147194", "text": "public Client getClient() {\n\n\t\treturn (this.client);\n\t}", "title": "" }, { "docid": "9cab92445e386e630ef88299a8254d17", "score": "0.5010549", "text": "public static GreenRobotEventBus getInstance() {\n return SingletonHolder.INSTANCE;\n }", "title": "" }, { "docid": "117dbe5b0d8fef14668885382fc9572d", "score": "0.5002845", "text": "public static Configurable configure() {\n return new EventHubManager.ConfigurableImpl();\n }", "title": "" }, { "docid": "74fb0c015cc259d1b0faab5d688ceb76", "score": "0.4998712", "text": "public AbstractClient<?, ?, ?> getClient() {\r\n return client;\r\n }", "title": "" }, { "docid": "fd1321cde23b5bccc46e823b544ad6a5", "score": "0.4989865", "text": "public static Client getClient() {\n if(_client == null) {\n _client = new Client();\n }\n return _client;\n }", "title": "" }, { "docid": "b9420a85b5a32a5adfa0a15868856d2b", "score": "0.49645156", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic synchronized G getEvent(){\n\t\ttry{\n\t\t\tG g = (G) GameEventFactory.readFromStream(this.toClient.getInputStream());\n\t\t\treturn g;\n\t\t} catch(IOException e){\n\t\t\tSystem.err.println(\"cannot read event from client\");\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "b485253ee6d398b3f8b66ff3b6dbae6e", "score": "0.4943366", "text": "public java.lang.String getClientId() {\n return clientId;\n }", "title": "" }, { "docid": "8b7e9a3bc60aa4357d27c2a11a3b8f3a", "score": "0.4939754", "text": "@Consume(uri = MessageEndpoints.EVENT_BUS_ENDPOINT)\r\n\tpublic void receiveBusEvent(Event event) {\n\t}", "title": "" }, { "docid": "d91348bebb3a0a96ed0c78d7d5fbe926", "score": "0.49108264", "text": "@Override\n public Client getClient() {\n return client;\n }", "title": "" }, { "docid": "bb08cf79c76f2723c2d2432c7ee7875e", "score": "0.48923707", "text": "public AdpDBClient getAdpDBClient() {\n ensureAcquiredLock();\n return adpDBClient;\n }", "title": "" }, { "docid": "72a189334aa2409dc7ba8fb730a2ffbe", "score": "0.48670435", "text": "private static Client getClient() {\r\n\t\tif (client == null) {\r\n\t\t\tclient = ClientBuilder.newClient();\r\n\t\t}\r\n\t\treturn client;\r\n\t}", "title": "" }, { "docid": "443d95784237559de55169d98f3a6aab", "score": "0.48659918", "text": "public String getClientApplicationName() {\n return this.clientApplicationName;\n }", "title": "" }, { "docid": "cfb29bcb53be00544e42a4d9e04e4221", "score": "0.48576796", "text": "public final Long getClientId() {\n return clientId;\n }", "title": "" }, { "docid": "5ed4dd03f306b4ab29cb6bbfb06e9770", "score": "0.48519105", "text": "public String getClientId() {\n return clientId;\n }", "title": "" }, { "docid": "5ed4dd03f306b4ab29cb6bbfb06e9770", "score": "0.48519105", "text": "public String getClientId() {\n return clientId;\n }", "title": "" }, { "docid": "d65ba89582cea9bfe8b3fc58e527448b", "score": "0.4824177", "text": "public EventController getEvent() {\n return event;\n }", "title": "" }, { "docid": "e32ea794d9ae4c4580c3692f1510e453", "score": "0.48113456", "text": "public static String getClientId()\n\t{\n\t\treturn _clientId;\n\t}", "title": "" }, { "docid": "e32ea794d9ae4c4580c3692f1510e453", "score": "0.48113456", "text": "public static String getClientId()\n\t{\n\t\treturn _clientId;\n\t}", "title": "" }, { "docid": "6b1a7499a2f3ef509dc8a516d8e25889", "score": "0.47721103", "text": "public static Client getClientforThread() {\n\t\treturn (Client) threadClient.get();\n\t}", "title": "" }, { "docid": "1f68897522ab62ced82b2468778a38af", "score": "0.47682196", "text": "public JComboBox getCmbClientes() {\n return cmbClientes;\n }", "title": "" }, { "docid": "f67b8899ca011b0363f99313401c34ad", "score": "0.4747155", "text": "public com.techxmind.el.Message.EventLog.Builder getEventsBuilder(\n int index) {\n return getEventsFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "00fe1f2191d7c1fb818a6acbe3c00c5a", "score": "0.4698393", "text": "public GameEvent getEvent() {\n BlockingQueue<GameEvent> queue = gfh.getGameBoard().getQueues(player);\n if (queue == null){\n throw new GameException(\"Error getting the event queue.\");//this mean not connected\n }\n try {\n return queue.take();\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n throw new GameException(\"Event listener interrupted\");\n }\n }", "title": "" }, { "docid": "2fbaa211d2bffd2cefa8dceab1b925b7", "score": "0.4687257", "text": "public GUID getClientGUID() {\n return new GUID(getGUID());\n }", "title": "" }, { "docid": "f2759e295ff608a85c973a010fd0f31b", "score": "0.4687189", "text": "public static MessageBroker getInstance() {\n\n return MessageBrokerImplHolder.instance;\n }", "title": "" }, { "docid": "fe5d91e2d56bb8ff04e3059bd21c6b7d", "score": "0.4684947", "text": "public MessageCreateEvent getEvent() {\n return event;\n }", "title": "" }, { "docid": "6184887c2fe6fd0871365c1bccb9e2b8", "score": "0.467262", "text": "public String getClientName() {\r\n return clientName;\r\n }", "title": "" }, { "docid": "50fd488e83bfb8aa39426686df3c8426", "score": "0.46672148", "text": "public pubsub.message.NetworkMessage.Messages.Subscriber getSubscriber() {\n if (subscriberBuilder_ == null) {\n return subscriber_;\n } else {\n return subscriberBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "c0ec6f9ec772b4d5a8c788cfb5dd5a3b", "score": "0.46575916", "text": "private EventService getService() {\n return service;\n }", "title": "" }, { "docid": "ddb7cc51eb0980c9330aefc17af1a8b4", "score": "0.46461073", "text": "public com.techxmind.el.Message.EventLogOrBuilder getEventsOrBuilder(\n int index) {\n if (eventsBuilder_ == null) {\n return events_.get(index); } else {\n return eventsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "a10e561a173decedf20c7ee92d49b39f", "score": "0.4641726", "text": "private DiagramEventBroker getDiagramEventBroker() {\n TransactionalEditingDomain theEditingDomain = getEditingDomain();\n if (theEditingDomain != null) {\n return DiagramEventBroker.getInstance(theEditingDomain);\n }\n return null;\n }", "title": "" }, { "docid": "38201c2827f18348d78559d073fc6e89", "score": "0.46240595", "text": "public java.lang.String getClientName() {\n return _app.getClientName();\n }", "title": "" }, { "docid": "54cd8aab3efc8c948226c270108454c2", "score": "0.4620551", "text": "OzoneRestClient getClient() {\n return client;\n }", "title": "" }, { "docid": "db40861ffe5be07b5132090769549935", "score": "0.46118468", "text": "public static AgentEventManager getInstance()\r\n\t{\r\n\t\tif (_oHandle == null) {\r\n\t\t\t_oHandle = new AgentEventManager();\r\n\t\t}\r\n\t\treturn _oHandle;\r\n\t}", "title": "" }, { "docid": "9ae80ac24bf63cedddb7940dc123dca2", "score": "0.46098143", "text": "public java.lang.String getEventName() {\n java.lang.Object ref = eventName_;\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 eventName_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "49172128663862e89da0628e538edfdb", "score": "0.45986244", "text": "public java.util.List<com.techxmind.el.Message.EventLog.Builder> \n getEventsBuilderList() {\n return getEventsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "1d9c200c77035a002af407a7e51260e2", "score": "0.45984006", "text": "@Nullable public String getClientAddress() {\n return clientAddress;\n }", "title": "" }, { "docid": "e31814c9f3a8badb61d54533edf8c65f", "score": "0.4594128", "text": "public long getClientId() {\r\n return clientId;\r\n }", "title": "" }, { "docid": "a730127e62baece65c8534db7b04dc83", "score": "0.45941064", "text": "public com.google.protobuf.ByteString\n getEventNameBytes() {\n java.lang.Object ref = eventName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n eventName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "e184a5a9c362f1623148b1f882d1d299", "score": "0.45871943", "text": "public com.techxmind.el.Message.EventLog getEvents(int index) {\n if (eventsBuilder_ == null) {\n return events_.get(index);\n } else {\n return eventsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "39af937fb6115c73a23141eef5292961", "score": "0.45848882", "text": "public C1802c getAdEventManager() {\n return this.f7123a;\n }", "title": "" }, { "docid": "8046795080f96392c7fc0d5700396f22", "score": "0.45831028", "text": "public java.lang.String getEventName() {\n java.lang.Object ref = eventName_;\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 eventName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "b079fd22ddd09de87296c924b5ed1a9c", "score": "0.4580264", "text": "java.lang.String getClientId();", "title": "" }, { "docid": "b079fd22ddd09de87296c924b5ed1a9c", "score": "0.4580264", "text": "java.lang.String getClientId();", "title": "" }, { "docid": "34db9d5b8790f3d1a2aeaa3ded26b8f9", "score": "0.45799655", "text": "public static BackEndAdapter getInstance() {\n return ba;\n }", "title": "" }, { "docid": "7ebc016caf334f5b6704faee386eb71b", "score": "0.45622715", "text": "public EventManager getEventManager() {\n\t\treturn this.events;\n\t}", "title": "" }, { "docid": "16c50e6304718220d4bd31243f0d8389", "score": "0.45554066", "text": "public com.google.protobuf.ByteString\n getEventNameBytes() {\n java.lang.Object ref = eventName_;\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 eventName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "81a32f422f0c318371a6e50941516f44", "score": "0.4551613", "text": "public SocketAddress getClientAddress() {\n\t\t\n\t\treturn client.getRemoteSocketAddress();\n\t}", "title": "" }, { "docid": "cf3f450e696a5a520fa7efcd4f34c0b9", "score": "0.45413882", "text": "public com.techxmind.el.Message.EventLogCommon getCommon() {\n if (commonBuilder_ == null) {\n return common_ == null ? com.techxmind.el.Message.EventLogCommon.getDefaultInstance() : common_;\n } else {\n return commonBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "7ac1b20757007084ec79fd3d62421836", "score": "0.45385894", "text": "private Object getMessageForActiveMQ(final Event event)\n {\n String amqMessage = null;\n\n if (goodwillAccessor != null) {\n final GoodwillSchema schema = goodwillAccessor.getSchema(event.getName());\n if (schema != null) {\n amqMessage = eventToJson(event, schema);\n }\n }\n\n if (amqMessage == null) {\n amqMessage = event.getData().toString();\n }\n\n return amqMessage;\n }", "title": "" }, { "docid": "830ff7290e38ebaf91f49d15043fedf3", "score": "0.4535212", "text": "public String getClientId() {\n\t\treturn this.properties.getProperty(\"ClientId\");\n\t}", "title": "" }, { "docid": "7cdf59340aad37bf4d57e2e26477c43a", "score": "0.4535191", "text": "public MuleClient muleClient() {\n return muleContext.getClient();\n }", "title": "" }, { "docid": "41d41cea054098d7a83ce2dfab2b2bc0", "score": "0.45334497", "text": "@Override\n\t\tpublic SearchControl getaddBusSearchControl(EventHandler eventHandler) {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "c43f834d5e1241caf5f47a5f43a30e6b", "score": "0.45291236", "text": "public io.bloombox.schema.licensure.Licensure.LicenseEvent.Builder getEventBuilder(\n int index) {\n return getEventFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "facba710aab029ee7e95c2b60bacea2b", "score": "0.4528317", "text": "public BusClient(final EntityManagerFactory entityManagerFactory, final Bus bus) throws Exception {\n this.entityManagerFactory = entityManagerFactory;\n this.bus = bus;\n \n final String userName = bus.getUserName();\n final String password = bus.getUserPassword();\n final String host = bus.getHost();\n final Integer port = bus.getPort();\n //final String userName = \"agocontrol\";\n //final String password = \"letmein\";\n \n \n final Properties properties = new Properties();\n properties.put(\"java.naming.factory.initial\",\n \"org.apache.qpid.jndi.PropertiesFileInitialContextFactory\");\n properties.put(\"connectionfactory.qpidConnectionfactory\",\n \"amqp://\" + userName + \":\" + password + \"@agocontrolvaadinsite/client\" +\n \"?brokerlist='tcp://\" + host + \":\" + port + \"'\");\n \n context = new InitialContext(properties);\n connectionFactory = (ConnectionFactory) context.lookup(\"qpidConnectionfactory\");\n connection = connectionFactory.createConnection();\n \n connection.start();\n \n session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n final Destination sendDestination = new AMQAnyDestination(new Address(\"agocontrol\", \"\", null));\n final Destination receiveDestination = new AMQAnyDestination(new Address(\"agocontrol\", \"#\", null));\n \n replyQueue = session.createTemporaryQueue();\n \n messageProducer = session.createProducer(sendDestination);\n messageConsumer = session.createConsumer(receiveDestination);\n replyConsumer = session.createConsumer(replyQueue);\n \n eventHandlerThread = new Thread(new Runnable() {\n @Override\n public void run() {\n final EntityManager entityManager = entityManagerFactory.createEntityManager();\n final Company company = entityManager.getReference(Company.class, bus.getOwner().getCompanyId());\n while (!closeRequested) {\n try {\n Thread.sleep(100);\n handleEvent(entityManager, company);\n } catch (final Throwable t) {\n LOGGER.error(\"Error in handling events.\", t);\n }\n }\n entityManager.close();\n }\n });\n eventHandlerThread.start();\n \n replyHandlerThread = new Thread(new Runnable() {\n @Override\n public void run() {\n final EntityManager entityManager = entityManagerFactory.createEntityManager();\n final Company company = entityManager.getReference(Company.class, bus.getOwner().getCompanyId());\n while (!closeRequested) {\n try {\n Thread.sleep(100);\n handleReply(entityManager, company);\n } catch (final Throwable t) {\n LOGGER.error(\"Error in handling events.\", t);\n }\n }\n entityManager.close();\n }\n });\n replyHandlerThread.start();\n \n inventoryRequestThread = new Thread(new Runnable() {\n @Override\n public void run() {\n final EntityManager entityManager = entityManagerFactory.createEntityManager();\n while (!closeRequested) {\n try {\n requestInventory(entityManager);\n } catch (final Throwable t) {\n LOGGER.error(\"Error in inventory request message sending.\", t);\n }\n try {\n Thread.sleep(5 * 60 * 1000);\n } catch (final Throwable t) {\n LOGGER.warn(\"Interrupted inventory request message send wait.\", t);\n }\n }\n entityManager.close();\n }\n });\n inventoryRequestThread.start();\n LOGGER.info(\"Connected to bus: \" + bus.getName());\n }", "title": "" }, { "docid": "e648abcf23475b7a4030c5120c6c3247", "score": "0.4524739", "text": "public String getClientName() {\n\t\treturn clientName;\n\t}", "title": "" }, { "docid": "c4a8ad4b16c93e3a3550b20c6f3d2b6a", "score": "0.4523529", "text": "public abstract ClientManager getClientManager();", "title": "" }, { "docid": "0f5f0145cf091f476865652574d4b79d", "score": "0.45109126", "text": "public String getEvent() {\n return event;\n }", "title": "" }, { "docid": "713e393d807e1fc1791bbdce340b542e", "score": "0.45071", "text": "public io.bloombox.schema.licensure.Licensure.LicenseEventOrBuilder getEventOrBuilder(\n int index) {\n if (eventBuilder_ == null) {\n return event_.get(index); } else {\n return eventBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "46d5cbbd4dcac679eda6cd67ae730bf8", "score": "0.4504733", "text": "public String getEventName() {\n return eventName;\n }", "title": "" }, { "docid": "46d5cbbd4dcac679eda6cd67ae730bf8", "score": "0.4504733", "text": "public String getEventName() {\n return eventName;\n }", "title": "" }, { "docid": "46d5cbbd4dcac679eda6cd67ae730bf8", "score": "0.4504733", "text": "public String getEventName() {\n return eventName;\n }", "title": "" }, { "docid": "46d5cbbd4dcac679eda6cd67ae730bf8", "score": "0.4504733", "text": "public String getEventName() {\n return eventName;\n }", "title": "" }, { "docid": "ca7dbbe7530986426a3605d343be67db", "score": "0.4501621", "text": "public java.util.List<? extends io.bloombox.schema.licensure.Licensure.LicenseEventOrBuilder> \n getEventOrBuilderList() {\n if (eventBuilder_ != null) {\n return eventBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(event_);\n }\n }", "title": "" }, { "docid": "9f21ea4a331fdeaa010c9ccd3160d25d", "score": "0.45002753", "text": "public EventAdapterService getEventAdapterService() {\n return statementContext.getEventAdapterService();\n }", "title": "" }, { "docid": "961d49aaba3fbb8fe254f7d36104223a", "score": "0.4499881", "text": "public CloseableHttpClient getClient() {\n return client;\n }", "title": "" }, { "docid": "91a140ed2ffde4704ee85a67a0e2a419", "score": "0.44953352", "text": "@java.lang.Override\n public java.lang.String getEventId() {\n java.lang.Object ref = eventId_;\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 eventId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "d2074f58f8bad7eb09cf283f84449de0", "score": "0.44891804", "text": "Client get(String uuid);", "title": "" }, { "docid": "5fbd0fb9c8878d21d66ef76d2f381845", "score": "0.44878542", "text": "public JComboBox getCbxCliente() {\n return cbxCliente;\n }", "title": "" }, { "docid": "b084e3a90af919a67d325fa76b3b3068", "score": "0.44855744", "text": "@Override\n \tpublic synchronized List<RemoteEvent<?>> getQueuedEvents(Long eventBusUUID) {\n \t\tBlockingQueue<RemoteEvent<?>> eventQueue = getEventQueue(eventBusUUID);\n \t\tList<RemoteEvent<?>> events = new ArrayList<RemoteEvent<?>>();\n \t\tif (eventQueue.drainTo(events) > 0) {\n \t\t\tSystem.err.println(\"Server: getting next events...\" + events.size());\n \t\t\tfor (Iterator<RemoteEvent<?>> i = events.iterator(); i.hasNext(); ) {\n \t\t\t\tSystem.err.println(\" \"+i.next());\n \t\t\t}\n \t\t\treturn events;\n \t\t}\n \t\tSystem.err.println(\"Server: getting next event...\");\n \t\tclients.get(eventBusUUID).suspendInfo = suspend();\n \t\treturn null;\n \t}", "title": "" }, { "docid": "bfc9024582d9a88f1a0c7ad2c7a861fc", "score": "0.4481024", "text": "@Override\n public void eventReceived(CuratorFramework client, CuratorEvent event) throws Exception {\n System.out.println(event.getName());\n }", "title": "" }, { "docid": "4386a705668ec4b1fc7b1cbdbc9d1f61", "score": "0.4479246", "text": "public String getEvent()\n {\n return event;\n }", "title": "" }, { "docid": "9b9f17f1825e6ae8ce86fb69d2200fa8", "score": "0.44749796", "text": "private String getClientId(){\r\n\t\tRegistrationAdapter db = new RegistrationAdapter(this);\r\n\t\t\r\n\t\tSystem.out.println(\"getting client_id..\");\r\n\t\treturn db.getClientId().toString();\r\n\t}", "title": "" }, { "docid": "32a0b63b48c9137a38b8df9bdab62827", "score": "0.44748086", "text": "public Client getDelegate() {\n\t\treturn delegate;\n\t}", "title": "" }, { "docid": "cef4968140f271474e020ad8f4104491", "score": "0.44744283", "text": "public Client getClient();", "title": "" }, { "docid": "e9147ad74b94b39e2fa753cb0d5053f2", "score": "0.44726646", "text": "public java.lang.String getEventId() {\n java.lang.Object ref = eventId_;\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 eventId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "706a2c3042e9632dca50349627c1eb48", "score": "0.44665995", "text": "public java.util.List<com.techxmind.el.Message.EventLog> getEventsList() {\n if (eventsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(events_);\n } else {\n return eventsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "d5544883422c1301b2239540e301a9c4", "score": "0.44654727", "text": "public String getClientApp() {\n return clientApp;\n }", "title": "" }, { "docid": "741af2c789fd105fb694df5995376513", "score": "0.44607547", "text": "public String clientLibrary() {\n return this.clientLibrary;\n }", "title": "" } ]